/* BYNZO RTL — Arabic luxury layout */
html[dir="rtl"] {
  --font: "Cairo", "IBM Plex Sans Arabic", "Plus Jakarta Sans", ui-sans-serif, sans-serif;
}

html[dir="rtl"] body {
  font-feature-settings: "ss01" on;
}

html[dir="rtl"] .nav-label,
html[dir="rtl"] .brand-lockup span {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 11px;
}

html[dir="rtl"] .brand-lockup b {
  letter-spacing: 0.12em;
}

html[dir="rtl"] .side-search kbd,
html[dir="rtl"] .nav-link .count {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .top-actions {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .user-chip {
  text-align: right;
}

html[dir="rtl"] .input-group .lead {
  left: auto;
  right: 12px;
}
html[dir="rtl"] .input-group .input {
  padding-left: 12px;
  padding-right: 40px;
}
html[dir="rtl"] .select {
  background-position: left 12px center;
  padding-left: 36px;
  padding-right: 12px;
}

html[dir="rtl"] .dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .dropdown-item {
  text-align: right;
}

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

html[dir="rtl"] .bubble.me {
  margin-left: 0;
  margin-right: auto;
  border-bottom-right-radius: 16px;
  border-bottom-left-radius: 6px;
}
html[dir="rtl"] .bubble.them {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 6px;
}

html[dir="rtl"] .timeline {
  padding-left: 0;
  padding-right: 22px;
}
html[dir="rtl"] .timeline::before {
  left: auto;
  right: 7px;
}
html[dir="rtl"] .tl-item::before {
  left: auto;
  right: -18px;
}

html[dir="rtl"] .split .pane {
  border-right: 0;
  border-left: 1px solid var(--bnz-border);
}

html[dir="rtl"] .toast-wrap {
  right: auto;
  left: 18px;
}

html[dir="rtl"] .auth-art h1 {
  letter-spacing: -0.03em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--bnz-border);
  border-radius: 999px;
  padding: 3px;
  height: 42px;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.lang-switch button {
  min-width: 54px;
  height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bnz-muted);
  padding: 0 12px;
  transition: 180ms var(--ease);
}
.lang-switch button.active {
  background: var(--bnz-black);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 11, 12, 0.18);
}
.lang-switch .lang-div {
  width: 1px;
  height: 16px;
  background: var(--bnz-border);
  margin: 0 2px;
}
html[dir="rtl"] .lang-switch button.active {
  background: var(--bnz-orange);
  box-shadow: var(--shadow-pop);
}

.lang-switch.ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.lang-switch.ghost button { color: #d4d4d8; }
.lang-switch.ghost button.active {
  background: #fff;
  color: var(--bnz-black);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
.handle {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.app-card h3 .ltr {
  display: inline-block;
}

.auth-lang {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

html[dir="rtl"] .flow-arr { transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .perm-table th:first-child,
html[dir="rtl"] .perm-table td:first-child { text-align: right; }
html[dir="rtl"] .ws-switch { text-align: right; }
html[dir="rtl"] .guest-top { flex-wrap: wrap; }
html[dir="rtl"] .v2-subnav { direction: rtl; }
html[dir="rtl"] .sign-pad { font-family: var(--font); }
  html[dir="rtl"] .toast-wrap {
    left: 12px;
    right: 12px;
  }
}
