.atrux-language {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-family: 'Poppins', sans-serif;
}

.atrux-language__trigger {
    height: 44px;
    min-width: 108px;
    padding: 5px 12px 5px 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(0, 102, 255, .25);
    border-radius: 999px;
    color: #1f2937;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 7px 22px rgba(31, 41, 55, .07);
    cursor: pointer;
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background-color .22s ease;
}

.atrux-language__trigger:hover,
.atrux-language__trigger:focus-visible,
.atrux-language.is-open .atrux-language__trigger {
    border-color: #0066ff;
    box-shadow: 0 8px 26px rgba(0, 102, 255, .16), 0 0 0 3px rgba(0, 102, 255, .09);
}

.atrux-language__trigger:active { transform: scale(.97); }

.atrux-language__globe {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #0066ff;
    box-shadow: 0 5px 13px rgba(0, 102, 255, .27);
}

.atrux-language__globe svg { width: 16px; height: 16px; }

.atrux-language__current {
    min-width: 22px;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
}

.atrux-language__chevron {
    width: 7px;
    height: 7px;
    margin: -4px 1px 0 auto;
    border-right: 2px solid #0066ff;
    border-bottom: 2px solid #0066ff;
    transform: rotate(45deg);
    transition: transform .22s ease, margin .22s ease;
}

.atrux-language.is-open .atrux-language__chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.atrux-language__menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 11px);
    right: 0;
    width: 190px;
    padding: 7px;
    border: 1px solid rgba(0, 102, 255, .16);
    border-radius: 19px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 55px rgba(31, 41, 55, .18), 0 5px 16px rgba(0, 102, 255, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.atrux-language.is-open .atrux-language__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.atrux-language__option {
    width: 100%;
    min-height: 47px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 13px;
    color: #4b5563;
    background: transparent;
    font: 600 13px/1.2 'Poppins', sans-serif;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.atrux-language__option:hover,
.atrux-language__option:focus-visible {
    color: #0066ff;
    background: #f2f7ff;
}

.atrux-language__option:active { transform: scale(.98); }

.atrux-language__code {
    width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 9px;
    color: #0066ff;
    background: #edf5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
}

.atrux-language__check {
    width: 18px;
    height: 18px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: transparent;
    background: transparent;
}

.atrux-language__option.is-active {
    color: #0066ff;
    background: #f2f7ff;
}

.atrux-language__option.is-active .atrux-language__code {
    color: #fff;
    background: #0066ff;
    box-shadow: 0 5px 12px rgba(0, 102, 255, .24);
}

.atrux-language__option.is-active .atrux-language__check {
    color: #fff;
    background: #0066ff;
}

.atrux-language__check svg { width: 11px; height: 11px; }

.atrux-language--mobile .atrux-language__trigger {
    min-width: 156px;
    height: 50px;
    padding-right: 16px;
}

.atrux-language--mobile .atrux-language__current { font-size: 14px; }
.atrux-language--mobile .atrux-language__menu { left: 50%; right: auto; transform-origin: top center; transform: translate(-50%, -8px) scale(.97); }
.atrux-language--mobile.is-open .atrux-language__menu { transform: translate(-50%, 0) scale(1); }

html.dark .atrux-language__trigger,
html[data-theme="dark"] .atrux-language__trigger,
html.dark .atrux-language__menu,
html[data-theme="dark"] .atrux-language__menu {
    color: #f1f5f9;
    background: rgba(24, 29, 43, .97);
    border-color: rgba(96, 165, 250, .34);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .36);
}

html.dark .atrux-language__option,
html[data-theme="dark"] .atrux-language__option { color: #cbd5e1; }

html.dark .atrux-language__option:hover,
html.dark .atrux-language__option:focus-visible,
html.dark .atrux-language__option.is-active,
html[data-theme="dark"] .atrux-language__option:hover,
html[data-theme="dark"] .atrux-language__option:focus-visible,
html[data-theme="dark"] .atrux-language__option.is-active {
    color: #fff;
    background: rgba(0, 102, 255, .18);
}

html.dark .atrux-language__code,
html[data-theme="dark"] .atrux-language__code {
    color: #93c5fd;
    background: rgba(0, 102, 255, .16);
}

html.dark .atrux-language__option.is-active .atrux-language__code,
html[data-theme="dark"] .atrux-language__option.is-active .atrux-language__code { color: #fff; background: #0066ff; }

@media (max-width: 767px) {
    .atrux-language--desktop { display: none; }
}

@media (min-width: 768px) and (max-width: 1150px) {
    .atrux-language__trigger { min-width: 98px; }
}

@media (prefers-reduced-motion: reduce) {
    .atrux-language *, .atrux-language *::before, .atrux-language *::after { transition: none !important; }
}
