/* ============================================================
   SAHM PLUS — ARABIC OVERRIDES FOR LANDING PAGE
   ============================================================
   يُحمَّل بعد style.css، ويحتوي فقط على التعديلات الخاصة
   بالنسخة العربية (اتجاه RTL + خط عربي).
   ============================================================ */

/* ---------- Arabic font ---------- */
body,
input,
select,
textarea,
button {
  font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Keep the monospace font for numbers and codes */
.mono,
.num,
[class*="mono"] {
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', ui-monospace, SFMono-Regular, monospace;
}

/* ---------- RTL: adjust scroll padding for sticky header ---------- */
html {
  scroll-padding-top: 84px;
}

/* ---------- Landing NAV — RTL tweaks ---------- */
.landNavActions {
  /* keep the same visual gap; direction handled by dir="rtl" on <html> */
}

/* When hidden on mobile, the outline button stays hidden */
@media (max-width: 520px) {
  .landNavActions .btn-outline {
    display: none;
  }
}

/* ---------- Language toggle: "EN" text may need slightly different tracking ---------- */
.lang-toggle .lang-text {
  letter-spacing: 0;
  font-family: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace;
}

/* ---------- Hero — flip decorative floating chips to look natural in RTL ---------- */
.floatChip.fc1 { left: auto; right: -26px; }
.floatChip.fc2 { right: auto; left: -8px; }
.floatChip.fc3 { left: auto; right: 18px; }

@media (max-width: 1020px) {
  .floatChip.fc1 { right: -6px; left: auto; }
  .floatChip.fc2 { left: -6px; right: auto; }
  .floatChip.fc3 { right: -6px; left: auto; }
}

@media (max-width: 520px) {
  .floatChip.fc2 { left: -4px; right: auto; }
}

/* ---------- Numbers / prices stay LTR ---------- */
.acVal,
.acChg,
.acW b,
.hPill,
.hPill i,
.pvRow .px,
.pvRow .px small,
.tItem .price,
.tItem .chg,
.statCell .n {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- Hero CTA arrow already uses fa-arrow-left in Arabic HTML ---------- */

/* ---------- Stats band — RTL alignment already handled by flex ---------- */
.statCell {
  text-align: right;
}

/* ---------- Markets terminal — terminal content stays LTR inside ---------- */
.terminal,
.tvHost,
.tvLoading {
  direction: ltr;
}

.termTitle,
.termLive,
.termTabs button {
  direction: rtl;
}

/* ---------- Buy steps list — numbers on the right ---------- */
.buySteps li {
  /* the flex direction already flips for RTL */
}

/* ---------- Product cards — RTL alignment ---------- */
.prodTab b,
.prodTab span {
  text-align: right;
}

.prodTab .ccy {
  margin-left: 0;
  margin-right: auto;
}

/* ---------- Flow chips arrows: switch from → to ← ---------- */
.flowChips i {
  /* the arrow character itself is set in the HTML (←) */
}

/* ---------- Wallet divider (vertical "NEVER MIXED" text) ---------- */
.wallDivider span {
  /* same vertical style works in RTL */
}

/* ---------- Withdrawals stepper — RTL line ---------- */
.stepper li:not(:last-child)::after {
  left: auto;
  right: 15px;
}

/* ---------- Security cards — numbers on the left side in RTL ---------- */
.secCard .no {
  right: auto;
  left: 20px;
}

/* ---------- FAQ: plus icon on the left side in RTL ---------- */
.faqQ {
  text-align: right;
}

/* ---------- Final CTA ---------- */
.finalCta .mark {
  right: auto;
  left: -90px;
}

/* ---------- Footer ---------- */
.footerBrand img {
  /* same */
}

/* ---------- Info modals ---------- */
.modalBody ul li {
  padding-left: 0;
  padding-right: 20px;
}

.modalBody ul li::before {
  left: auto;
  right: 0;
}

.modalBody .cCard a {
  word-break: break-word;
}

/* ---------- Reduced motion: nothing Arabic-specific ---------- */

/* ---------- Small mobile: some tweaks ---------- */
@media (max-width: 720px) {
  .heroH1 {
    font-size: 40px;
    line-height: 1.15;
  }
  .sectionTitle {
    line-height: 1.25;
  }
}

/* ---------- Keep terminal numbers LTR inside RTL page ---------- */
.termFoot,
.termBar {
  direction: rtl;
}

/* ---------- Fix the ticker tape direction inside RTL ---------- */
.tapeStrip {
  direction: ltr;
}

.modalClose {
  left: 18px;
  right: auto;
}

.journey::after {
  left: auto;
  right: 12%;
}