/* ==============================================================
   RTL SUPPORT (Arabic & Persian) - Pirates Mini App
   ============================================================== */

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Outfit', sans-serif;
}

html[dir="rtl"] .top-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .fleet-arena {
  direction: ltr !important;
  grid-template-columns: 1.35fr 1fr !important;
}

html[dir="rtl"] .crew-table th,
html[dir="rtl"] .crew-table td {
  text-align: right;
}

html[dir="rtl"] .lang-selector-btn {
  left: auto;
  right: 14px;
}

html[dir="rtl"] .stone-btn,
html[dir="rtl"] .lang-item-btn {
  flex-direction: row-reverse;
}

html[dir="rtl"] .ref-link-box {
  flex-direction: row-reverse;
}

html[dir="rtl"] .ref-link-text {
  direction: ltr; /* Keep URL formatted ltr */
  text-align: left;
}

html[dir="rtl"] .balance-card {
  padding: 6px 18px 6px 14px;
}

html[dir="rtl"] .balance-label-val {
  align-items: flex-end;
}

html[dir="rtl"] .tutorial-feature-card {
  text-align: right;
}

html[dir="rtl"] .onboarding-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .admin-data-table th,
html[dir="rtl"] .admin-data-table td {
  text-align: right;
}

html[dir="rtl"] .admin-search-bar {
  flex-direction: row-reverse;
}

/* FlyMage Partners RTL Support */
html[dir="rtl"] .flymage-pill-link {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .flymage-crew-table th,
html[dir="rtl"] .flymage-crew-table td {
  text-align: center;
}

html[dir="rtl"] .flymage-crew-table td:nth-child(2) {
  text-align: right;
}

html[dir="rtl"] .col-user {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

html[dir="rtl"] .col-income-wrap {
  justify-content: center;
}



