.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: inherit;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: 0.2s ease;
}

.lang-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 160px;
  padding: 8px;
  background: #0b1722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  display: none;
  z-index: 1000;
}

.lang-switcher.open .lang-switcher-menu {
  display: block;
}

.lang-switcher-menu button {
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.lang-switcher-menu button:hover,
.lang-switcher-menu button.active {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

html[dir="rtl"] .lang-switcher-menu button {
  text-align: right;
}

html[dir="ltr"] .lang-switcher-menu button {
  text-align: left;
}
