/* Language switcher — compact EN | عربي control */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.lang-switcher-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 80, 173, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
}

.lang-switcher-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.7rem;
  line-height: 1.2;
  cursor: pointer;
  min-width: 2.4rem;
}

.lang-switcher-btn.active {
  background: #1f50ad;
  color: #fff;
}

.lang-switcher-btn:not(.active):hover,
.lang-switcher-btn:not(.active):focus {
  background: rgba(31, 80, 173, 0.12);
  outline: none;
}

.navbar-nav .lang-switcher {
  margin-inline: 0.35rem;
}

.portal-lang-host {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-layout-lang {
  position: absolute;
  top: 16px;
  inset-inline-end: 24px;
  z-index: 20;
}

.portal-body {
  position: relative;
}

.dark-style .lang-switcher-group {
  border-color: rgba(255, 255, 255, 0.22);
}

.dark-style .lang-switcher-btn.active {
  background: #1f50ad;
  color: #fff;
}
