.lang-switch {
  position: relative;
  flex-shrink: 0;
}

.lang-switch-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
  border: none !important;
  border-radius: 10px;
  background: transparent !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: none !important;
  transform: none !important;
}

.nav .lang-switch-btn {
  height: 48px;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  background: var(--bg) !important;
}

.lang-switch-btn:hover,
.lang-switch-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05) !important;
}

.nav .lang-switch-btn:hover,
.nav .lang-switch-btn[aria-expanded="true"] {
  background: #1a1e21 !important;
}

.lang-switch-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: none;
}

.lang-switch.is-open .lang-switch-menu {
  display: block;
}

.lang-switch-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.lang-switch-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.lang-switch-option.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch-option .lang-switch-flag {
  width: 20px;
  height: 14px;
}
