/* Language switch (EN / ع) — floats opposite the app's centred toast and
   below the drawer/menu layers so it never covers an open overlay. */
.mila-lang {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(250, 246, 242, 0.94);
  border: 1px solid rgba(59, 31, 46, 0.14);
  box-shadow: 0 6px 22px rgba(59, 31, 46, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: 'IBM Plex Sans Arabic', Jost, system-ui, sans-serif;
}
.mila-lang button {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 40px;
  padding: 7px 10px 8px;
  border-radius: 999px;
  background: transparent;
  color: #3b1f2e;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}
.mila-lang button:hover { background: rgba(194, 69, 111, .1); }
.mila-lang button.is-active { background: #c2456f; color: #faf6f2; }
.mila-lang button:focus-visible { outline: 2px solid #c2456f; outline-offset: 2px; }
html[dir="rtl"] .mila-lang { right: auto; left: 20px; }
@media (max-width: 640px) {
  .mila-lang { right: 12px; bottom: 12px; padding: 2px; }
  .mila-lang button { min-width: 36px; padding: 6px 9px 7px; font-size: 12px; }
  html[dir="rtl"] .mila-lang { right: auto; left: 12px; }
}
