/* ── Language switcher panel (index.php right sidebar) ── */
.lang-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 12px;
}

.lang-panel .lang-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.lang-panel .lang-label.active {
  opacity: 1;
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c8d8c8;
  border-radius: 999px;
  transition: background 0.25s;
}

.lang-switch .slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s;
}

.lang-switch input:checked + .slider {
  background: #2f9f5a;
}

.lang-switch input:checked + .slider::before {
  transform: translateX(22px);
}
