.nm-lang-widget {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  font-family: Inter, Arial, sans-serif;
}

.nm-lang-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(212, 195, 160, 0.34);
  border-radius: 999px;
  background: rgba(16, 17, 19, 0.62);
  color: #f2ede4;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  opacity: 0.68;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nm-lang-toggle:hover,
.nm-lang-widget.open .nm-lang-toggle {
  opacity: 1;
  border-color: rgba(212, 195, 160, 0.76);
  transform: translateY(-1px);
}

.nm-lang-menu {
  position: absolute;
  top: 42px;
  right: 0;
  display: none;
  min-width: 148px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(16, 17, 19, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.nm-lang-widget.open .nm-lang-menu {
  display: grid;
  gap: 4px;
}

.nm-lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(242, 237, 228, 0.76);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.nm-lang-menu button:hover,
.nm-lang-menu button.active {
  background: rgba(255, 255, 255, 0.08);
  color: #f2ede4;
}

.nm-copy-toast {
  position: fixed;
  right: clamp(18px, 6vw, 76px);
  bottom: clamp(24px, 7vw, 72px);
  z-index: 10000;
  max-width: min(620px, calc(100vw - 36px));
  padding: clamp(18px, 4vw, 34px) clamp(22px, 5vw, 44px);
  border: 1px solid rgba(212, 195, 160, 0.28);
  border-radius: 18px;
  background: rgba(16, 17, 19, 0.94);
  color: #f2ede4;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: clamp(2rem, 7vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nm-copy-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 760px) {
  .nm-lang-widget {
    top: 14px;
    right: 14px;
  }

  .nm-lang-toggle {
    width: 31px;
    height: 31px;
    font-size: 15px;
  }

  .nm-copy-toast {
    left: 18px;
    right: 18px;
  }
}
