/* Language switcher (МН | EN) — shared by the landing, sign-in, app and superadmin pages. */
.bf-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(127, 127, 127, .14);
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .3px;
  white-space: nowrap;
  vertical-align: middle;
}
.bf-lang-opt {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  opacity: .7;
  line-height: 1;
}
.bf-lang-opt:hover { opacity: 1; }
.bf-lang-opt.is-active {
  opacity: 1;
  background: #fff;
  color: #1f1a24;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  cursor: default;
}
/* Sits on a dark / gradient background (mobile hero banner, dark theme) */
.bf-lang-on-dark { background: rgba(255, 255, 255, .22); color: #fff; }
.bf-lang-on-dark .bf-lang-opt { color: #fff; }
.bf-lang-on-dark .bf-lang-opt.is-active { color: #1f1a24; }
/* Standalone, top-right corner (sign-in page, superadmin page) */
.bf-lang-floating { position: fixed; top: 12px; right: 12px; z-index: 50; }
@media print { .bf-lang { display: none; } }

/* Placement tweaks */
.bfh-nav-inner .bf-lang-nav { margin: 0 10px 0 auto; flex-shrink: 0; }
.bf-lang-header { margin-right: 6px; }
.sa-top-actions .bf-lang { margin-right: 8px; background: rgba(127,127,127,.16); }
/* Phones: the desktop header switcher hides (the hero banner has its own); keep landing/sign-in ones */
@media (max-width: 768px) { .bf-lang-header { display: none; } }
@media (min-width: 769px) { .bf-hero-tools .bf-lang-on-dark { display: none; } }
