/* ═══════════════════════════════════════════════════════════════════════════
   Language Switcher — Pro
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base: full-width segmented control (used in sidebar foot) */
.lang-switch {
  display: flex;
  align-items: stretch;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  box-shadow: var(--hl-top), inset 0 1px 2px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.lang-switch button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 11px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--mono);
  color: var(--text4);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--tr);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.active {
  background: linear-gradient(180deg, var(--bg6) 0%, var(--bg5) 100%);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Float variant: fixed top-right on auth screens — keeps compact pill shape */
.lang-switch-float {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 50;
  width: auto;
  display: inline-flex;
  background: rgba(13, 14, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow), var(--hl-top);
}

.lang-switch-float button {
  flex: 0 0 auto;
  padding: 5px 12px;
}
