/* Premium language switcher — visible flags, grid picker, mobile-friendly */
.sl-lang-switcher{
    position:relative;
    display:inline-flex;
    align-items:center;
    z-index:12040;
}
.sl-lang-switcher-trigger{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    padding:8px 12px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.14);
    background:linear-gradient(180deg,#1a1f2b 0%,#12151c 100%);
    color:#f8fafc;
    font:inherit;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 14px rgba(0,0,0,.22);
    transition:transform .15s ease,border-color .15s ease,background .15s ease;
}
.sl-lang-switcher-trigger:hover,
.sl-lang-switcher-trigger[aria-expanded="true"]{
    transform:translateY(-1px);
    border-color:rgba(242,182,0,.45);
    background:linear-gradient(180deg,#222836 0%,#151922 100%);
}
.sl-lang-switcher-flag{
    width:28px;
    height:28px;
    border-radius:4px;
    object-fit:cover;
    box-shadow:0 0 0 1px rgba(255,255,255,.12);
    flex-shrink:0;
}
.sl-lang-switcher-flag-current{
    width:32px;
    height:32px;
}
.sl-lang-switcher-label{
    color:#e5e7eb;
    font-size:13px;
    font-weight:600;
    letter-spacing:0;
    text-transform:none;
    white-space:nowrap;
}
.sl-lang-switcher-current{
    color:#fff;
    font-size:13px;
    font-weight:700;
}
.sl-lang-switcher-caret{
    font-size:11px;
    color:#f2b600;
    margin-left:2px;
}
.sl-lang-switcher-panel{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:min(360px,calc(100vw - 24px));
    max-height:min(70vh,520px);
    overflow:auto;
    padding:12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(10,12,18,.98);
    box-shadow:0 18px 48px rgba(0,0,0,.45);
    backdrop-filter:blur(16px);
}
.sl-lang-switcher-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
    padding-bottom:8px;
    border-bottom:1px solid rgba(255,255,255,.08);
    color:#f8fafc;
    font-size:14px;
}
.sl-lang-switcher-close{
    width:34px;
    height:34px;
    border:0;
    border-radius:8px;
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
}
.sl-lang-switcher-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}
.sl-lang-switcher-grid--drawer{
    grid-template-columns:repeat(2,minmax(0,1fr));
}
.sl-lang-switcher-option{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:48px;
    padding:10px 12px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.08);
    background:#151922;
    color:#e8edf7;
    font:inherit;
    font-size:13px;
    font-weight:700;
    text-align:left;
    cursor:pointer;
    transition:transform .12s ease,border-color .12s ease,background .12s ease;
}
.sl-lang-switcher-option:hover,
.sl-lang-switcher-option.is-active{
    transform:translateY(-1px);
    border-color:rgba(242,182,0,.42);
    background:#1c2230;
}
.sl-lang-switcher-option span{
    flex:1;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.sl-lang-switcher-option small{
    font-size:16px;
    line-height:1;
}
.sl-lang-switcher--legacy{
    margin:6px 8px;
}
.sl-lang-switcher--compact .sl-lang-switcher-trigger{
    min-height:38px;
    min-width:38px;
    padding:6px 8px;
    gap:4px;
}
.sl-lang-switcher--compact .sl-lang-switcher-label{
    display:none!important;
}
.sl-lang-switcher--compact .sl-lang-switcher-caret{
    display:none;
}
.sl-lang-switcher--compact .sl-lang-switcher-globe{
    font-size:12px;
    color:#fbbf24;
}
.sl-lang-switcher--compact .sl-lang-switcher-flag-current{
    width:24px;
    height:24px;
}
.sl-lang-gtranslate-hidden{
    position:fixed!important;
    left:0!important;
    bottom:0!important;
    width:220px!important;
    height:42px!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    z-index:-1!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
}
.sl-front-actions .sl-lang-switcher{
    margin-right:4px;
}
.sl-front-tabs .gtranslate_wrapper,
.sl-front-link.gtranslate_wrapper{
    display:none!important;
}
body.sl-lang-panel-open{
    overflow:hidden;
}
.sl-lang-switcher-backdrop{
    position:fixed;
    inset:0;
    z-index:12030;
    background:rgba(0,0,0,.45);
}
@media (max-width:860px){
    .sl-lang-switcher-label{
        display:inline-flex;
        font-size:12px;
    }
    .sl-lang-switcher-current{
        max-width:88px;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .sl-lang-switcher-panel{
        position:fixed;
        top:auto;
        right:12px;
        left:12px;
        bottom:calc(12px + env(safe-area-inset-bottom));
        width:auto;
        max-height:62vh;
    }
    .sl-lang-switcher-grid{
        grid-template-columns:1fr;
    }
}
