/* Loaded only for English. All overrides remain scoped to html[lang=en]. */
html[lang="en"] {
  direction:ltr !important;
  --font-ar:'Montserrat',Arial,sans-serif;
  --font-en:'Montserrat',Arial,sans-serif;
  --font-primary:'Montserrat',Arial,sans-serif;
  --font-body:'Montserrat',Arial,sans-serif;
  --font-heading:'Montserrat',Arial,sans-serif;
}
html[lang="en"] body { direction:ltr; font-family:Montserrat,Arial,sans-serif !important; }
html[lang="en"] :is(h1,h2,h3,h4,h5,h6,p,a,button,input,select,textarea,table,label,small,strong,div,span,li,dt,dd,legend,option):not(.ph):not(.ph-fill):not(.ph-bold):not(.fas):not(.fab):not(.far) {
  font-family:'Montserrat',Arial,sans-serif !important;
}
html[lang="en"] :is(button,input,select,textarea) { min-width:0; }
/* English rotating headlines must wrap inside the copy column. */
html[lang="en"] body.fx-flat-ui #heroMainTitle .fx-hero-title-line { white-space:normal !important; }
/* Presentation only: keep stored titles, form values and Arabic text intact. */
html[lang="en"] :is(
  h1,h2,h3,h4,h5,h6,[role="heading"],
  .fx-bulk-step-title,.fx-drop-title,.fx-live-card-title,
  .pbb-history-title,.pbb-ai-title,.fx-checkout-option-title,
  .fx-checkout-vehicle-title,.fx-cart-item__title,.fx-filter-title,
  .fx-map-popup-title,.fx-bid-preview-title,.fx-autodata-title,
  .sanad-title,.fleet-card-title,.fx-nav-dropdown-title,.notif-title
) {
  text-transform:uppercase !important;
  overflow-wrap:anywhere;
}
html[lang="en"] :is(h1,h2,h3,h4,button,.btn,.settings-label,.admin-nav-link) { overflow-wrap:break-word; }
html[lang="en"] .nav-dropdown-content { left:0; right:auto; }
html[lang="en"] .leaflet-popup-content-wrapper { direction:ltr; }
html[lang="en"] body.fx-flat-ui .fx-auth-topbar { direction:ltr; }
html[lang="en"] body.fx-flat-ui .fx-listing-loop__track>.auction-card,
html[lang="en"] body.fx-flat-ui .fx-listing-loop__group>.auction-card { direction:ltr; }
html[lang="en"] body.fx-flat-ui.fx-home-index :is(.fx-hero-offer,.fx-hero-offer__amount,.fx-bid-sign__board) { direction:ltr; }
html[lang="en"] body.fx-flat-ui .fx-auth-tagline { font-size:clamp(30px,3.4vw,54px) !important; line-height:1.18; }
html[lang="en"] :is(
  .fx-about-v2__arrow .ph-arrow-left,
  a:not([data-fx-back]):not([href="/index.php"]) .ph-arrow-left,
  .btn-next .ph-arrow-left,
  .fx-back-link .ph-arrow-right,
  .admin-sidebar .fa-arrow-right
) { transform:scaleX(-1); }
html[lang="en"] .bid-amount { margin-right:0; margin-left:auto; }
html[lang="en"] body.fx-flat-ui .admin-sidebar { left:0; right:auto; border-left:0 !important; border-right:1px solid var(--glass-border) !important; }
html[lang="en"] body.fx-flat-ui .admin-content { margin-right:0 !important; margin-left:286px !important; }
html[lang="en"] :is(.admin-topbar,.fx-page-hero__row,.fx-auth-topbar) { min-width:0; }
html[lang="en"] .fx-admin-theme-control { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
@media(max-width:992px) {
  html[lang="en"] body.fx-flat-ui .admin-content { margin-left:0 !important; }
  html[lang="en"] body.fx-flat-ui .admin-sidebar { transform:translateX(-105%) !important; }
  html[lang="en"] body.fx-flat-ui .admin-sidebar.open { transform:translateX(0) !important; }
}
@media(max-width:600px) {
  html[lang="en"] .navbar-actions { gap:8px; }
  html[lang="en"] body.fx-flat-ui .fx-auth-tagline { font-size:32px !important; }
  html[lang="en"] .fx-page-hero__title { font-size:clamp(26px,7vw,36px) !important; }
  html[lang="en"] :is(.fx-auth-topbar,.fx-dash-mobile-profile) { gap:8px !important; }
}

html[lang="en"] .plan-card.current-plan::before { content:"Your current plan"; }
