/* =================== LANG SWITCHER =================== */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #E5E5E5;
    background: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.lang-switcher__trigger:hover {
    border-color: #001B4D;
    background: #F4F6FB;
}

.lang-switcher__flag,
.lang-switcher__flag-icon {
    font-size: 0.75rem;
    font-weight: 700;
    background: #F4F6FB;
    color: #001B4D;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.lang-switcher__menu .lang-switcher__flag-icon {
    background: #001B4D;
    color: #fff;
}

.lang-switcher__caret {
    font-size: 0.65rem;
    color: #666;
    transition: transform 0.2s ease;
}

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

.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #E5E5E5;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.lang-switcher.is-open .lang-switcher__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s ease;
}

.lang-switcher__item:hover {
    background: #F4F6FB;
    color: #001B4D;
}

.lang-switcher__item.is-active {
    background: #F4F6FB;
    color: #001B4D;
    font-weight: 700;
}

.lang-switcher__item.is-active::after {
    content: '\2713';
    margin-left: auto;
    color: #0B8043;
    font-weight: 700;
}

.lang-switcher__flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Mode RTL */
[dir="rtl"] .lang-switcher__menu {
    right: auto;
    left: 0;
    text-align: right;
}

[dir="rtl"] .lang-switcher__item.is-active::after {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 640px) {
    .lang-switcher__trigger {
        padding: 6px 10px;
        font-size: 0.82rem;
    }
}
