/* Language switcher */
.lang-switch {
  position: relative;
  font-size: 14px;
}
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(116, 69, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #2d2d2d;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover,
.lang-switch[open] summary { border-color: #7445ff; color: #7445ff; }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 200;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(45, 45, 45, 0.16);
}
.lang-switch li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: #2d2d2d;
  font-weight: 500;
  text-decoration: none;
}
.lang-switch li a:hover { background: rgba(116, 69, 255, 0.08); color: #7445ff; }
.lang-switch li a[aria-current="page"] { background: rgba(116, 69, 255, 0.12); color: #7445ff; font-weight: 700; }
@media (max-width: 575px) {
  .lang-switch summary { height: 36px; padding: 0 10px; }
}

/* Arabic: font and right-to-left adjustments */
html[lang="ar"] {
  --td-ff-body: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif;
}
html[lang="ar"] body { letter-spacing: 0; }

/* Right-to-left layout fixes */
@media (min-width: 992px) {
  [dir="rtl"] .banner-style-one .banner-visual { right: auto; left: 3%; }
}
[dir="rtl"] .pc .plan-features li { padding: 7px 28px 7px 0; }
[dir="rtl"] .pc .plan-features li::before { left: auto; right: 0; }
[dir="rtl"] .mean-container .mean-nav ul > li a { float: right; text-align: right; }
[dir="rtl"] .td-install-section .row [class*=col-] > .install-item::after {
  left: auto;
  right: 70%;
  transform: scaleX(-1);
}
