/* Glassmorphism language picker */
.language-picker {
    position: relative;
    /* display: inline-block; */
    font-family: inherit
}

.lang-btn {
    /* display: inline-flex; */
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--brand-teal);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: var(--text-color, #fff);
    cursor: pointer
}

.lang-btn i {
    font-size: 1.05rem
}

.lang-btn[aria-expanded="true"] .ri-arrow-down-s-line {
    transform: rotate(180deg);
    transition: transform .18s
}

.language-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.6);
    display: none;
    list-style: none;
    margin: 0;
    z-index: 9999
}

.language-list.open {
    display: block
}

.language-item {
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: inherit
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.04)
}

/* Desktop: fix to top-right */
@media (min-width:900px) {
    .language-picker {
        /* position: fixed; */
        /* top: 18px; */
        /* right: 18px; */
        /* z-index: 9999 */

        
    }

    .nav-right .btn-app {
        /* margin-left: 140px */
    }
}

/* Mobile: show inline inside nav panel */
@media (max-width:899px) {
    .language-picker {
        position: static;
        margin-right: 12px
    }

    .language-list {
        position: static;
        margin-top: 10px;
        top: auto;
        right: auto;
        box-shadow: none;
        display: none;
        width: 100%
    }

    .language-list.open {
        display: block
    }

    .language-item {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03)
    }
}