/* Hide Google Translate's injected chrome so only our custom switcher shows. */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
.skiptranslate > iframe,
.goog-te-gadget,
.goog-logo-link,
.goog-te-spinner-pop,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip { display: none !important; visibility: hidden !important; }
#google_translate_element { display: none !important; }
html, body { top: 0 !important; position: static !important; min-height: 100%; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font { background: none !important; box-shadow: none !important; }

/* Custom language switcher */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e9edf6;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.lang-current:hover { border-color: rgba(247, 147, 26, 0.5); background: rgba(247, 147, 26, 0.08); }
.lang-caret { font-size: 11px; opacity: 0.7; }
.lang-flag { font-size: 18px; line-height: 1; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  min-width: 210px;
  max-height: 70vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #0f1626;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.lang-switch.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cdd5e4;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}
.lang-menu li:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang-menu li.active { background: rgba(247, 147, 26, 0.14); color: #ffb454; }

@media (max-width: 900px) {
  .lang-menu { right: auto; left: 0; }
}
