/* ── Language Switcher ── */
.lang-switcher-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.lang-switcher__current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #e0e0e0;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.lang-switcher__current:hover {
  border-color: rgba(239, 249, 35, 0.6);
  color: #eff923;
}

.lang-switcher__current .lang-caret {
  font-size: 0.55rem;
  opacity: 0.55;
  margin-left: 1px;
}

/* Flag images */
.lang-flag-img {
  display: block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Dropdown — fixed so overflow:hidden on topbar doesn't clip it */
.lang-switcher__menu {
  display: none;
  position: fixed;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 99999;
  min-width: 120px;
  padding: 4px 0;
}

.lang-switcher__menu.open {
  display: block;
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  color: #bbb;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}

.lang-switcher__option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.lang-switcher__option.active {
  color: #eff923;
  background: rgba(239, 249, 35, 0.07);
  font-weight: 700;
}
