/* Floating language translator */
.vfb-lang-float {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 99990;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.vfb-lang-float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(78, 115, 223, 0.45);
  background: linear-gradient(145deg, #4e73df, #3753a8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(78, 115, 223, 0.45), 0 2px 8px rgba(0,0,0,.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vfb-lang-float-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px rgba(78, 115, 223, 0.55);
}
.vfb-lang-float-btn:focus-visible {
  outline: 2px solid #7b9bff;
  outline-offset: 3px;
}
.vfb-lang-float-panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 10px);
  width: min(280px, calc(100vw - 2rem));
  background: #121733;
  border: 1px solid #252b4d;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: .18s ease;
  color: #eef0f8;
}
.vfb-lang-float.is-open .vfb-lang-float-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.vfb-lang-float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0 0.15rem;
}
.vfb-lang-float-head strong {
  font-size: 0.82rem;
  letter-spacing: .02em;
}
.vfb-lang-float-close {
  background: transparent;
  border: none;
  color: #9aa3c7;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem;
}
.vfb-lang-float-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  max-height: 280px;
  overflow-y: auto;
}
.vfb-lang-float-list button {
  appearance: none;
  border: 1px solid #252b4d;
  background: #0c1024;
  color: #d8dcf0;
  border-radius: 10px;
  padding: 0.55rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s;
}
.vfb-lang-float-list button:hover {
  border-color: rgba(78,115,223,.5);
  background: rgba(78,115,223,.12);
}
.vfb-lang-float-list button.is-active {
  border-color: #4e73df;
  background: rgba(78,115,223,.2);
  color: #fff;
}
.vfb-lang-float-note {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  color: #8b8fb0;
  line-height: 1.35;
}
/* Hide Google banner clutter */
.goog-te-banner-frame, .skiptranslate > iframe.skiptranslate {
  display: none !important;
}
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
#google_translate_element { width: 0; height: 0; overflow: hidden; position: absolute; }

@media (max-width: 576px) {
  .vfb-lang-float { left: 0.85rem; bottom: 0.85rem; }
  .vfb-lang-float-btn { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .vfb-lang-float-btn, .vfb-lang-float-panel { transition: none; }
}

.goog-logo-link, .goog-te-gadget span { display: none !important; }
iframe.goog-te-banner-frame { display: none !important; }
body > .skiptranslate { display: none !important; }
