/* ── NoxStack Hq Language Switcher ── */
.nox-lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 12px;
  flex-shrink: 0;
}
.nox-lang-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.8) !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 5px 10px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  height: 30px !important;
  width: auto !important;
  min-height: unset !important;
  min-width: unset !important;
  max-width: unset !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease !important;
}
.nox-lang-btn:hover,
.nox-lang-btn.open {
  background: rgba(168,255,87,0.1) !important;
  border-color: rgba(168,255,87,0.4) !important;
  color: #a8ff57 !important;
}
.nox-lang-btn svg {
  flex-shrink: 0 !important;
  display: block !important;
  width: 13px !important;
  height: 13px !important;
}
.nox-lang-arrow {
  transition: transform 0.22s ease;
  opacity: 0.55;
}
.nox-lang-btn.open .nox-lang-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown — fixed so it escapes any parent overflow:hidden */
.nox-lang-dropdown {
  position: fixed;
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 166px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(168,255,87,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94), visibility 0.2s ease;
  z-index: 999999;
}
.nox-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.nox-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.16s ease, color 0.16s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nox-lang-item:hover {
  background: rgba(168,255,87,0.07);
  color: rgba(255,255,255,0.9);
}
.nox-lang-item.active {
  color: #a8ff57;
  background: rgba(168,255,87,0.08);
}
.nox-lang-flag {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.nox-lang-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 6px;
}

/* Dark-header variant (sub-pages with light background) */
.nox-lang-switch--dark .nox-lang-btn {
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.14) !important;
  color: rgba(0,0,0,0.55) !important;
}
.nox-lang-switch--dark .nox-lang-btn:hover,
.nox-lang-switch--dark .nox-lang-btn.open {
  background: rgba(0,0,0,0.09) !important;
  border-color: rgba(0,0,0,0.22) !important;
  color: #000 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .nox-lang-switch { margin-left: 8px; }
  .nox-lang-btn span.nox-lang-label { display: none; }
}
