/* OTC language switcher v11: patch6 translation + working index, safe runtime */
.otc-lang-switch {
  z-index: 350;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.56);
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  user-select: none;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.otc-lang-switch:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
}

.otc-lang-switch:active { opacity: .82; }

.otc-lang-switch:focus-visible {
  outline: 1px solid rgba(188, 255, 47, 0.42);
  outline-offset: 2px;
}

.otc-lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  color: rgba(255, 255, 255, 0.46);
  transition: color .15s ease;
}

.otc-lang-switch__item--active { color: #bcff2f; }

.otc-lang-switch__divider {
  width: 1px;
  height: 14px;
  margin: 0 7px;
  background: rgba(255, 255, 255, 0.16);
}

/* Desktop dashboard: fixed in the native top nav, centered before the profile/logout card. */
.otc-lang-switch--dashboard {
  position: absolute;
  right: 302px;
  top: 26px;
  width: 78px;
  height: 40px;
}

/* Mobile dashboard: same line, immediately before the logout button. */
.otc-lang-switch-host-mobile {
  grid-template-columns: 44px minmax(0, 1fr) auto 44px !important;
}

.otc-lang-switch--mobile-dashboard {
  position: static;
  width: 66px;
  height: 40px;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.otc-lang-switch--mobile-dashboard .otc-lang-switch__item { min-width: 18px; }
.otc-lang-switch--mobile-dashboard .otc-lang-switch__divider {
  height: 13px;
  margin: 0 5px;
}

/* Login/landing: keep the original floating language control. */
.otc-lang-switch--floating {
  position: fixed;
  top: 22px;
  right: 22px;
  min-width: 92px;
  height: 42px;
  padding: 0 13px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid #bcff2f;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 0 0 1px rgba(188, 255, 47, 0.08), 0 8px 24px rgba(0, 0, 0, 0.32);
}

.otc-lang-switch--floating .otc-lang-switch__item { min-width: 24px; }
.otc-lang-switch--floating .otc-lang-switch__divider {
  height: 17px;
  margin: 0 9px;
}

@media (max-width: 820px) {
  .otc-lang-switch--floating {
    top: 11px;
    right: 64px;
    min-width: 78px;
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .otc-lang-switch--floating {
    right: 58px;
    min-width: 70px;
    padding: 0 8px;
  }
}


/* v12 click stability fix: keep the switch above header overlays and make only the button receive clicks. */
.otc-lang-switch {
  pointer-events: auto !important;
  z-index: 999999 !important;
}

.otc-lang-switch__item,
.otc-lang-switch__divider {
  pointer-events: none !important;
}

.otc-lang-switch--dashboard,
.otc-lang-switch--mobile-dashboard,
.otc-lang-switch--floating {
  z-index: 999999 !important;
}
