.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-switch {
  position: relative;
  flex-shrink: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.login-lang-bar {
  position: fixed;
  top: 28px;
  right: 48px;
  z-index: 200;
}

.lang-switch__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255 255 255 / 0.14);
  border-radius: 8px;
  background: rgba(255 255 255 / 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e8edf7;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-switch__trigger:hover {
  border-color: rgba(255 255 255 / 0.22);
  background: rgba(255 255 255 / 0.09);
}

.lang-switch__trigger:focus-visible {
  outline: 2px solid rgba(72 128 247 / 0.65);
  outline-offset: 2px;
}

.lang-switch__trigger[aria-expanded="true"] {
  border-color: rgba(255 255 255 / 0.28);
  background: rgba(255 255 255 / 0.1);
}

.lang-switch__flag {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
}

.lang-switch__label {
  min-width: 7.5rem;
  text-align: left;
}

.lang-switch__chevron {
  width: 10px;
  height: 10px;
  color: rgba(232 237 247 / 0.52);
  flex-shrink: 0;
  transition: rotate 0.15s ease;
}

.lang-switch__trigger[aria-expanded="true"] .lang-switch__chevron {
  rotate: 180deg;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(255 255 255 / 0.14);
  border-radius: 10px;
  background: rgba(12 20 36 / 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 32px rgba(0 0 0 / 0.45);
  z-index: 300;
}

.lang-switch__menu[hidden] {
  display: none;
}

.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #e8edf7;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch__option:hover,
.lang-switch__option:focus-visible {
  background: rgba(255 255 255 / 0.08);
  outline: none;
}

.lang-switch__option[aria-selected="true"] {
  background: rgba(47 111 239 / 0.18);
  color: #fff;
}

@media (max-width: 480px) {
  .login-lang-bar { top: 20px; right: 24px; }
  .lang-switch__label { min-width: 6.5rem; font-size: 12.5px; }
}
