/* IXLARGE Topbar Language Dropdown */
.header-top,
.header-top .container,
.header-top-inner,
.header-top-actions {
    overflow: visible !important;
}

.header-top {
    position: relative;
    z-index: 1200;
}

.header-main {
    z-index: 1000;
}

.header-language-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: 6px;
    z-index: 1300;
}

.header-language-toggle {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.header-language-toggle:hover,
.header-language-toggle:focus,
.header-language-dropdown.is-open .header-language-toggle {
    color: #fff;
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    outline: none;
    transform: translateY(-1px);
}

.header-language-toggle::after {
    display: none !important;
}

.header-language-menu {
    position: fixed;
    display: none;
    width: min(240px, calc(100vw - 20px));
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(2,6,23,.35);
    z-index: 2147483000;
}

.header-language-dropdown.is-open .header-language-menu {
    display: block;
}

.header-language-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #e2e8f0 !important;
    background: transparent;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.header-language-menu .dropdown-item:hover,
.header-language-menu .dropdown-item:focus {
    color: #fff !important;
    background: rgba(37,99,235,.25);
}

.header-language-menu .dropdown-item.active {
    color: #fff !important;
    background: var(--primary, #2563eb);
}

.header-language-menu img {
    width: 24px;
    height: 16px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.2);
}

.header-language-code {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    color: inherit;
    opacity: .8;
}

@media (max-width: 767.98px) {
    .header-language-dropdown { margin-left: 4px; }
    .header-language-toggle { width: 28px; height: 28px; }
    .header-language-menu { min-width: 190px; }
}
