.language-switcher{
    position:relative;
    display:inline-flex;
    align-items:center;
    z-index:3000;
}

.language-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:58px;
    height:40px;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:999px;
    background:rgba(0,0,0,.38);
    color:#fff;
    font-family:inherit;
    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    cursor:pointer;
    transition:.25s ease;
    -webkit-tap-highlight-color:transparent;
}

.language-toggle:hover,
.language-toggle.active{
    background:#b40000;
    border-color:#b40000;
    box-shadow:0 8px 24px rgba(180,0,0,.28);
}

.language-toggle .language-globe{
    font-size:16px;
    line-height:1;
}

.language-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    min-width:150px;
    margin:0;
    padding:6px;
    list-style:none;
    border:1px solid rgba(255,255,255,.10);
    border-radius:14px;
    background:rgba(15,15,15,.97);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    box-shadow:0 18px 50px rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-6px);
    transition:.2s ease;
}

.language-switcher.open .language-menu{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

.language-menu button{
    display:flex;
    align-items:center;
    width:100%;
    gap:10px;
    padding:11px 12px;
    border:0;
    border-radius:10px;
    background:transparent;
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    transition:.2s ease;
}

.language-menu button:hover,
.language-menu button[aria-checked="true"]{
    background:#b40000;
}

.subpage-language{
    margin-left:auto;
    margin-right:14px;
}

@media(max-width:950px){
    .language-switcher{
        margin-left:auto;
    }

    .subpage-language{
        margin-right:10px;
    }
}

@media(max-width:600px){
    .language-toggle{
        min-width:52px;
        height:38px;
        padding:0 10px;
    }

    .language-menu{
        right:0;
        min-width:145px;
    }

    .subpage-language{
        margin-right:8px;
    }
}

/* Mobile header: burger stays on the left, language switcher stays on the right */
@media(max-width:950px){
    .navbar{
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    .navbar .mobile-menu-btn{
        order:1;
        margin-left:0;
        margin-right:auto;
        flex-shrink:0;
    }

    .navbar .language-switcher{
        order:2;
        margin-left:auto;
        margin-right:0;
        flex-shrink:0;
    }

    .navbar .call-btn{
        order:3;
        flex-shrink:0;
    }
}
