.lang-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    font-family: inherit;
}

[dir="rtl"] .lang-switcher {
    right: auto;
    left: 12px;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.lang-switcher__toggle:hover {
    background: rgba(0, 0, 0, 0.55);
}

.lang-switcher__flag {
    font-size: 18px;
    line-height: 1;
}

.lang-switcher__code {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.lang-switcher__arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[dir="rtl"] .lang-switcher__menu {
    right: auto;
    left: 0;
}

.lang-switcher.open .lang-switcher__menu {
    display: block;
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.lang-switcher__item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-switcher__item--active {
    color: #4ecca3;
    font-weight: 600;
}

.lang-switcher__name {
    white-space: nowrap;
}

/* Toggle dropdown via JS */
