button[data-lang-toggle] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 4.1rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.72rem !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(5, 5, 5, 0.82) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

button[data-lang-toggle]:hover {
  border-color: rgba(255, 255, 255, 0.38) !important;
  background: rgba(12, 12, 12, 0.92) !important;
}

button[data-lang-toggle]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lang-globe {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.lang-globe svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-current {
  display: inline;
  color: #fff;
  letter-spacing: 0;
}

.lang-menu {
  position: fixed;
  z-index: 100;
  display: none;
  padding: 0.28rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.7rem;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lang-menu.is-open {
  display: block;
}

.lang-menu-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.42rem 0.55rem;
  border-radius: 0.48rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-menu-option:hover,
.lang-menu-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
}

#mobile-menu button[data-lang-toggle] {
  width: 100%;
  justify-content: flex-start;
  min-width: 0;
  min-height: 2.75rem;
  border-radius: 0.5rem !important;
  padding: 0.75rem !important;
  box-shadow: none;
}

@media (max-width: 767px) {
  nav.fixed > div:first-child > div:last-child {
    position: static;
  }

  nav.fixed > div:first-child button[data-lang-toggle] {
    position: fixed !important;
    top: 0.82rem;
    right: 3.55rem;
    z-index: 70;
    transform: translateX(-3.7rem);
  }

  nav.fixed > div:first-child #mobile-menu-toggle {
    position: fixed !important;
    top: 0.65rem;
    right: 0.75rem;
    z-index: 70;
    transform: translateX(-3.7rem);
  }

  button[data-lang-toggle] {
    min-width: 3.85rem;
    min-height: 2.25rem;
    padding: 0.38rem 0.62rem !important;
    font-size: 0.78rem;
  }

  .lang-globe {
    width: 0.95rem;
    height: 0.95rem;
    flex-basis: 0.95rem;
  }

  #mobile-menu button[data-lang-toggle] {
    position: static !important;
    transform: none;
    width: 100%;
    min-width: 0;
  }
}
