/* Scoped language controls and long-text/RTL support; no business layout rewrite. */
.language-control{display:inline-flex!important;align-items:center;gap:5px;color:#d9e9fb;background:#081b34;border:1px solid #42688d;border-radius:9px;padding:5px 7px;min-height:34px;flex:0 0 auto;max-width:180px}
.language-control select{font:inherit;font-size:12px;color:inherit;background:transparent;border:0;outline:0;min-width:0;width:auto;max-width:140px;cursor:pointer;padding:0}
.language-control select option{color:#eef6ff;background:#081b34}
.language-control:focus-within{outline:2px solid #d5aa50;outline-offset:2px}
.join-language-bar{position:relative;z-index:3;width:min(1100px,calc(100% - 28px));margin:16px auto 0;display:flex;justify-content:flex-end}
.join-language-bar+.fb-backdrop{z-index:0}.join-shell{min-height:calc(100vh - 66px)}
.admin-language-bar{position:fixed;z-index:120;top:12px;inset-inline-end:14px}
body[data-channel=admin] .admin-info{margin-inline-end:160px}
body[data-channel=admin] .auth-card{margin-top:50px}
[dir=rtl] body{font-family:"Segoe UI",Tahoma,Arial,system-ui,sans-serif}
[dir=rtl] .fb-address,[dir=rtl] .fb-notice-strip,[dir=rtl] .modal,[dir=rtl] .field,[dir=rtl] .auth-form{ text-align:start }
[dir=rtl] .modal-close{right:auto;inset-inline-end:10px}
[dir=rtl] .fb-hero-tag{left:auto;inset-inline-start:18px}
[dir=rtl] .sidebar{left:auto;right:0}

[dir=rtl] .announce-track{direction:rtl}
code,.mono,.pay-address,.wrap-data,.pay-amount,.amount,.pay-num,
#bannerTrx,#rentUPrice,#rentNoUPrice,#unitPrice,
input[name=username],input[name=password],input[name=confirm_password],
input[name$=_address],input[name$=_domain],input[name=bot_token],input[name$=_tg_id],
input[name=server_public_ip],input[type=date],input[type=number],#receiving{
 direction:ltr;unicode-bidi:isolate}
bdi[data-i18n-raw]{unicode-bidi:isolate}
.hero,.fb-hero,.join-hero{position:relative}
.localized-hero-caption{position:absolute;inset-inline:10px;bottom:12%;display:flex;align-items:center;flex-direction:column;gap:4px;text-align:center;pointer-events:none;text-shadow:0 2px 9px #000,0 0 20px #000}
.localized-hero-caption[hidden]{display:none!important}
.localized-hero-caption strong{font-size:clamp(18px,4.2vw,33px);line-height:1.15;font-weight:900;color:#ffe09a}
.localized-hero-caption small{font-size:clamp(13px,2.5vw,19px);font-weight:750;color:white;direction:ltr}
html:not([lang^=zh]) .hero-energy{font-size:12px}
html:not([lang^=zh]) .hero-slogan{font-size:clamp(10px,2.2vw,14px)}
html:not([lang^=zh]) .panel-heading{flex-wrap:wrap;gap:8px}
html:not([lang^=zh]) .panel-heading strong,html:not([lang^=zh]) .rent-heading strong{font-size:18px}
html:not([lang^=zh]) .rent-heading{gap:8px;flex-wrap:wrap}
html:not([lang^=zh]) .hot-pill{white-space:normal;max-width:100%}
html:not([lang^=zh]) .price-line{flex-wrap:wrap;gap:8px}
html:not([lang^=zh]) .price-line small{white-space:normal}
html:not([lang^=zh]) .tabs button{white-space:normal;line-height:1.4}
html:not([lang^=zh]) .plan .qty{font-size:14px;line-height:1.4;white-space:normal}
html:not([lang^=zh]) .modal-row{gap:10px;align-items:flex-start}
html:not([lang^=zh]) .modal-actions button,html:not([lang^=zh]) .copy-actions button{white-space:normal;line-height:1.4}
html:not([lang^=zh]) .fb-brand strong,html:not([lang^=zh]) .brand-mini strong{font-size:16px}
html:not([lang^=zh]) .join-brand{flex-wrap:wrap}
html:not([lang^=zh]) .join-copy strong{font-size:clamp(22px,3vw,30px)}
html:not([lang^=zh]) .fb-topbar,html:not([lang^=zh]) .topbar{gap:8px}
html:not([lang^=zh]) .fb-actions,html:not([lang^=zh]) .header-actions{flex-wrap:wrap;justify-content:flex-end}
html:not([lang^=zh]) .fb-notice-card{grid-template-columns:minmax(0,1fr) auto}
html:not([lang^=zh]) .fb-notice-card strong{grid-column:1/-1}
html:not([lang^=zh]) .fb-notice-strip{grid-template-columns:auto minmax(0,1fr) auto}
.toast{max-width:calc(100vw - 30px);overflow-wrap:anywhere;text-align:center}
[hidden]{display:none!important}
.notice-preview-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media(max-width:760px){
 .language-control{max-width:142px;padding:5px;min-height:32px}
 .language-control select{max-width:110px;font-size:11px}
 .fb-topbar,.topbar{flex-wrap:wrap}
 body[data-channel=tg] .header-actions{gap:6px}
 body[data-channel=tg] .language-control{margin-inline-start:0}
 .fb-brand{flex:1 1 100px}.fb-actions{flex:1 1 auto}
 html:not([lang^=zh]) .fb-actions button{font-size:11px}
 .join-language-bar{margin-top:10px;margin-bottom:0}
 .join-shell{padding-top:14px}
 html:not([lang^=zh]) .rent-cards{gap:7px}
 html:not([lang^=zh]) .rent-card{padding:10px 8px}
 html:not([lang^=zh]) .rent-card h3{font-size:14px}
 html:not([lang^=zh]) .rent-card p{font-size:12px;white-space:normal}
 html:not([lang^=zh]) .rent-card p strong{font-size:18px}
 [dir=rtl] .main{margin-right:0}
 [dir=rtl] .sidebar{transform:translateX(110%)}[dir=rtl] .sidebar.open{transform:translateX(0)}
 .admin-language-bar{top:8px;inset-inline-end:8px}
 body[data-channel=admin] .admin-info{margin-inline-end:140px}
 body[data-channel=admin] .topbar{min-height:84px;padding-inline-end:8px}
}
@media(prefers-reduced-motion:reduce){.announce-track{animation:none!important}}

body[data-channel=tg] .topbar{height:auto;min-height:58px;padding-top:9px;padding-bottom:9px;overflow:visible}
body[data-channel=fb] .fb-address code{white-space:normal;overflow-wrap:anywhere;word-break:break-all;overflow:visible;text-overflow:clip;line-height:1.5}
@media(max-width:560px){body[data-channel=tg] .header-actions{flex:1 1 100%;justify-content:flex-end}}
