/* Seletor de idioma (landing / home pública / login / app autenticado) */
.lang-switch-form {
    margin: 0;
    display: inline-flex;
}

.lang-switch {
    display: inline-flex;
    align-items: stretch;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
    vertical-align: middle;
    margin-right: 0.5rem;
}

.lang-switch-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    padding: 0.38rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1;
    border-radius: 999px;
}

.lang-switch-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lang-switch-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(71, 178, 228, 0.55);
}

.lang-switch-btn:focus:not(:focus-visible) {
    box-shadow: none;
}

.lang-switch-btn.active {
    background: #47b2e4;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Header claro (ex.: scroll em alguns temas): use no container com fundo claro */
.header.scrolled .lang-switch,
.index-page .header.scrolled .lang-switch {
    border-color: rgba(55, 81, 126, 0.28);
    background: rgba(55, 81, 126, 0.05);
}

.header.scrolled .lang-switch-btn,
.index-page .header.scrolled .lang-switch-btn {
    color: rgba(55, 81, 126, 0.88);
}

.header.scrolled .lang-switch-btn:hover:not(.active),
.index-page .header.scrolled .lang-switch-btn:hover:not(.active) {
    background: rgba(71, 178, 228, 0.12);
    color: #37517e;
}

.header.scrolled .lang-switch-btn.active,
.index-page .header.scrolled .lang-switch-btn.active {
    background: #47b2e4;
    color: #fff;
}
