.lang-switcher {
    position: fixed;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.lang-fab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    border: 2px solid #6e1372;
    background: #fff;
    color: #6e1372;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.lang-fab .flag {
    width: 18px;
    height: 13px;
    flex: none;
    display: inline-block;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.lang-options.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lang-tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 5px;
    border: 2px solid #6e1372;
    background: rgba(255, 255, 255, 0.92);
    color: #6e1372;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.lang-tab .flag {
    width: 18px;
    height: 13px;
    flex: none;
    display: inline-block;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lang-tab:hover {
    background: #fce4f1;
    transform: translateY(-1px);
}

.lang-tab.active {
    background: #6e1372;
    color: #fff;
}

html[dir="rtl"] .lang-switcher {
    direction: ltr;
}

.item-desc {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    color: #800080;
    font-size: 12px;
    line-height: 1.5;
}

@media only screen and (max-width: 700px) {
    .lang-tab {
        font-size: 11px;
        padding: 5px 9px;
    }
}
