/* =========================
   TOP BAR (responsive)
   ========================= */

.top-info{
    background:#222834;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.topbar{
    height:38px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}


.topbar__left,
.topbar__right{
    display:flex;
    align-items:center;
    min-width:0;
}

.topbar__left{ flex:0 0 auto; }

.topbar__right{
    flex:1 1 auto;
    justify-content:flex-end;
    min-width:0;
}

.topbar-item{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:rgba(255,255,255,.78);
    line-height:1;
    white-space:nowrap;
    padding:0 10px;
    min-height:26px;
}

.topbar__right .topbar-item + .topbar-item{
    position:relative;
}
.topbar__right .topbar-item + .topbar-item:before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:18px;
    background:rgba(255,255,255,.10);
}

.topbar__right .topbar-sep{ display:none !important; }

.topbar-item--link{
    color:rgba(255,255,255,.82);
    text-decoration:none;
    transition:.15s ease;
}
.topbar-item--link:hover{ color:#f0ce30; }

.topbar-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    display:inline-block;
    box-shadow:0 0 0 2px rgba(0,0,0,.15);
    flex:0 0 auto;
}
.topbar-dot--on{ background:#39d98a; }
.topbar-dot--off{ background: #dd2525; }


.topbar-ico{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:rgba(255,255,255,.70);
    flex:0 0 auto;
}
.topbar-item--link .topbar-ico{ color:rgba(255,255,255,.82); }
.topbar-item--link:hover .topbar-ico{ color:#f0ce30; }

/* =========================
   Language dropdown
   ========================= */
.topbar-lang{ position:relative; display:flex; align-items:center; }

.topbar-lang__open{
    display:inline-flex;
    align-items:center;
    gap:6px;
    cursor:pointer;
    user-select:none;
    padding:4px 8px;
    border-radius:10px;
    transition:.15s ease;
}
.topbar-lang__open:hover{ background:rgba(255,255,255,.06); }

.topbar-lang__open img{
    width:22px;
    height:16px;
    border-radius:3px;
    box-shadow:0 0 0 1px rgba(255,255,255,.08);
}

.topbar-lang__arrow{
    width:0;height:0;
    border-left:4px solid transparent;
    border-right:4px solid transparent;
    border-top:5px solid rgba(255,255,255,.55);
    transform:translateY(1px);
}

.dropdown-content.topbar-lang__menu{
    position:absolute !important;
    top:calc(100% + 8px) !important;
    left:0 !important;
    display:none;
    z-index:10000;
    background:#1f2430;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    padding:6px;
    min-width:120px;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}
.dropdown-content.topbar-lang__menu a{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-radius:10px;
    color:rgba(255,255,255,.82);
    text-decoration:none;
    font-size:13px;
}
.dropdown-content.topbar-lang__menu a:hover{
    background:rgba(240,206,48,.12);
    color:#f0ce30;
}
.dropdown-content.topbar-lang__menu img{
    width:22px;height:16px;border-radius:3px;
}

/* =========================
   Mobile: keep only Language + Online/Offline
   ========================= */
@media (max-width: 520px){
    .topbar{ height:40px; }

    .topbar__right .topbar-item:last-child{ display:none !important; }

    .topbar-item{ padding:0 8px; gap:6px; }

    .topbar__right .topbar-item--status .topbar-text{ display:inline; }

    .topbar__right .topbar-item:not(.topbar-item--status) .topbar-text{ display:none; }
}