/* SYS_PUBLIC_LANG_UI_V2 */

.sys-language {
    position: relative;
    z-index: 9999;
    display: inline-flex;
}

.sys-language-button {
    height: 40px;
    min-width: 112px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(11,16,23,.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    backdrop-filter: blur(15px);
    transition: .2s ease;
}

.sys-language-button:hover {
    border-color: rgba(45,151,255,.55);
    background: rgba(17,25,36,.98);
}

.sys-language-button .bi-globe2 {
    color: #3098ff;
    font-size: 16px;
}

.sys-language-arrow {
    font-size: 10px;
    opacity: .6;
    transition: transform .2s ease;
}

.sys-language.open .sys-language-arrow {
    transform: rotate(180deg);
}

.sys-language-menu {
    position: absolute;
    top: calc(100% + 9px);
    inset-inline-end: 0;
    width: 205px;
    padding: 7px;
    background: rgba(7,11,17,.98);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 15px;
    box-shadow: 0 22px 60px rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px) scale(.98);
    transition: .18s ease;
}

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

.sys-language-item {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 11px;
    background: transparent;
    color: rgba(255,255,255,.74);
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
    text-align: start;
    font: inherit;
    cursor: pointer;
}

.sys-language-item:hover {
    color: #fff;
    background: rgba(255,255,255,.06);
}

.sys-language-item.active {
    color: #fff;
    background: rgba(48,152,255,.13);
}

.sys-language-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}

.sys-language-item.active .sys-language-dot {
    background: #3098ff;
    box-shadow: 0 0 0 4px rgba(48,152,255,.12);
}

.sys-language-name {
    font-weight: 700;
}

.sys-language-item small {
    opacity: .42;
    font-size: 10px;
}

html[data-public-lang="ku"] body {
    font-family: "Changa", Tahoma, Arial, sans-serif;
}

@media (max-width: 575px) {
    .sys-language-button {
        min-width: 40px;
        width: 40px;
        padding: 0;
    }

    .sys-language-button > span,
    .sys-language-arrow {
        display: none;
    }

    .sys-language-menu {
        width: 190px;
    }
}

/* SYS_KU_FONT_LAYOUT_FIX_V3_START */

/* -----------------------------------------
   Kurdish typography
   ----------------------------------------- */

html[data-public-lang="ku"] body {
    font-family:
        "Noto Kufi Arabic",
        Tahoma,
        Arial,
        sans-serif !important;

    font-weight: 500;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[data-public-lang="ku"]
.neonight-header .list-item,

html[data-public-lang="ku"]
.sys-classic-title,

html[data-public-lang="ku"]
.container-footer .header,

html[data-public-lang="ku"]
.container-footer .list-item {
    font-family:
        "Noto Kufi Arabic",
        Tahoma,
        Arial,
        sans-serif !important;
}


/* -----------------------------------------
   Header text spacing
   ----------------------------------------- */

html[data-public-lang="ku"]
.neonight-header .list-item {
    font-size: 13px !important;
    line-height: 1.65 !important;
    white-space: nowrap;
}

html[data-public-lang="ku"]
.neonight-header .side-2 {
    gap: 7px;
}


/* -----------------------------------------
   Language button — compact
   ----------------------------------------- */

.sys-language {
    flex: 0 0 auto !important;
}

.sys-language-button {
    min-width: 96px !important;
    width: auto !important;

    height: 36px !important;

    padding:
        0 10px !important;

    gap: 6px !important;

    font-family:
        "Noto Kufi Arabic",
        Tahoma,
        Arial,
        sans-serif !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    border-radius: 10px !important;

    white-space: nowrap !important;

    transform: none !important;
}

.sys-language-button span {
    font-size: 11px !important;
    line-height: 1 !important;
}

.sys-language-button .bi-globe2 {
    font-size: 14px !important;
}

.sys-language-arrow {
    font-size: 8px !important;
}


/* -----------------------------------------
   Language dropdown — FIX huge text
   ----------------------------------------- */

.sys-language-menu {
    width: 176px !important;

    padding: 5px !important;

    border-radius: 12px !important;

    top:
        calc(100% + 7px) !important;
}

.sys-language-item {
    width: 100% !important;

    height: 38px !important;
    min-height: 38px !important;

    padding:
        0 9px !important;

    gap: 8px !important;

    font-family:
        "Noto Kufi Arabic",
        Tahoma,
        Arial,
        sans-serif !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    line-height: 1.2 !important;

    border-radius: 8px !important;

    transform: none !important;
    scale: 1 !important;
}

.sys-language-item:hover,
.sys-language-item:focus,
.sys-language-item:active,
.sys-language-item.active {
    transform: none !important;
    scale: 1 !important;
}

.sys-language-name {
    font-size: 13px !important;
    font-weight: 600 !important;

    line-height: 1.35 !important;

    white-space: nowrap !important;
}

.sys-language-item small {
    font-size: 7px !important;
    font-family:
        Arial,
        sans-serif !important;

    line-height: 1 !important;
}

.sys-language-dot {
    width: 6px !important;
    height: 6px !important;
}


/* -----------------------------------------
   Kurdish Home rows
   ----------------------------------------- */

html[data-public-lang="ku"]
.sys-classic-apps {
    direction: rtl !important;
}

html[data-public-lang="ku"]
.sys-classic-rail {
    direction: rtl !important;
}

html[data-public-lang="ku"]
.sys-classic-title {
    text-align: right !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    line-height: 1.55 !important;

    margin-bottom: 11px !important;
}


/* -----------------------------------------
   App names:
   keep English/Kurdish mixed names clean
   ----------------------------------------- */

.sys-classic-name {
    font-family:
        "Muli",
        "Noto Kufi Arabic",
        Arial,
        sans-serif !important;

    unicode-bidi: plaintext !important;

    text-align: center !important;

    line-height: 1.25 !important;

    word-break: normal !important;
    overflow-wrap: anywhere !important;
}


/* -----------------------------------------
   Don't let Kurdish body font enlarge
   English app/product names
   ----------------------------------------- */

html[data-public-lang="ku"]
.sys-classic-name {
    font-size: 9px !important;
    font-weight: 500 !important;
}


/* -----------------------------------------
   Mobile
   ----------------------------------------- */

@media (max-width: 600px) {

    .sys-language-button {
        min-width: 38px !important;
        width: 38px !important;

        height: 36px !important;

        padding: 0 !important;
    }

    .sys-language-button > span,
    .sys-language-arrow {
        display: none !important;
    }

    .sys-language-menu {
        width: 166px !important;
    }

    .sys-language-item {
        height: 37px !important;
        min-height: 37px !important;
    }

    .sys-language-name {
        font-size: 12.5px !important;
    }

    html[data-public-lang="ku"]
    .sys-classic-title {
        font-size: 14px !important;
    }

    html[data-public-lang="ku"]
    .sys-classic-name {
        font-size: 8.5px !important;
    }
}

/* SYS_KU_FONT_LAYOUT_FIX_V3_END */
