.language-selector {
    position: relative;
    margin-left: 0.2rem;
}
.language-button {
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 55px;
    justify-content: space-between;
    border: 1px solid transparent;
    height: 35px;
}

.language-button:hover,
.language-button.active,
.language-button.open {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}
.arrow {
    transition: transform 0.3s ease;
    font-size: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.85);;
    background: none;
    font-size: 0;
}

.language-button.open .chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    border: 1px solid #8eb7c2;
    position: absolute;
    background: linear-gradient(180deg, #e3f2f7 0%, #d8edf3 100%);
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(74, 159, 184, 0.15),
                0 4px 16px rgba(74, 159, 184, 0.12),
                0 8px 32px rgba(0, 0, 0, 0.08);
    top: 31px;
    right: -12px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    /*transform: translateY(-10px);*/
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    width: fit-content;
}

.language-dropdown.open {
    opacity: 1;
    visibility: visible;
    /*transform: translateY(0);*/
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-option:not(.selected) {
    /*background: white;*/
}
.language-option.selected {
    background: linear-gradient(135deg, #90c5d3 0%, #98d7eb 100%);
    color: #1a4d5c;
    font-weight: 600;
}

.language-option:hover {
    background: #4a8ca3;
    color: white;
}

@media (max-width: 840px) {
    .pg_forgot_password .language-dropdown,
    .pg_pricing .language-dropdown,
    .pg_signup_paid_plan_pro .language-dropdown,
    .pg_signup_paid_plan_premium .language-dropdown,
    .pg_signin .language-dropdown {
        right: 0;
    }

}