/* مفتاح اللغة — ملف مستقل (لا تضع <style> داخل <li>) */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(100, 255, 218, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 10050;
    pointer-events: auto;
    cursor: pointer;
    isolation: isolate;
}

.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8 !important;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
    font-family: inherit;
    cursor: pointer !important;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(100, 255, 218, 0.25);
}

.lang-switch__btn:hover {
    color: #64ffda !important;
    background: rgba(100, 255, 218, 0.12);
    transform: translateY(-1px);
}

.lang-switch__btn.is-active,
span.lang-switch__btn.is-active {
    color: #0f172a !important;
    background: #64ffda;
    border-color: #64ffda;
    cursor: default;
    pointer-events: none;
}

.lang-switch__btn.is-active:hover,
span.lang-switch__btn.is-active:hover {
    transform: none;
}

a.lang-switch__btn {
    cursor: pointer !important;
}

.lang-switch__flag-img {
    display: block;
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    flex-shrink: 0;
}

.lang-switch__code {
    pointer-events: none;
    line-height: 1;
}

.lang-switch__btn.is-active .lang-switch__flag-img {
    border-color: rgba(15, 23, 42, 0.35);
}

.lang-switch--inline {
    margin-inline: 8px;
}

.lang-switch-host {
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10051;
    pointer-events: auto;
}

.lang-switch-host__inner {
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.navbar .navbar__lang {
    position: relative;
    z-index: 2100;
    flex-shrink: 0;
    pointer-events: auto;
    display: flex;
    align-items: center;
}

.premium-nav__aside .lang-switch {
    align-self: center;
    width: 100%;
    justify-content: center;
}

.shared-app-nav-patient .lang-switch {
    flex-shrink: 0;
}

/* ترتيب الموبايل لـ Home/Cases في nav-lang-bar-public.css (.navbar--public) */
