:root {
  --bg: #141414;
  --bg-2: #0f1626;
  --panel: #1a1a1a;
  --panel-2: #141414;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --accent: #af242c;
  --accent-2: #af242c;
  --premium: #f0a94a;
  --skins: #c44af0;
  --text: #e7ecf5;
  --muted: #7c869b;
  --muted-2: #5c6678;
  --green: #46d17f;
  --discord: #7286f7;
  --orange: #f0a94a;
  --red: #f0554d;
  --radius: 4px;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--bg);
}

*::-webkit-scrollbar-thumb {
  background: #af242c;
  border-radius: 20px;
  transition: 0.2s;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

html { background: var(--bg); }

body {
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.rk-spinner {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 10px;
  color: var(--muted-2);
  animation: spin .8s linear infinite;
}

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.brand__logo { display: grid; place-items: center; }
.brand__logo img { height: 40px; width: 200px; }

.profile_disable { display: none !important; }

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.profile__avatar {
  width: 40px; height: 40px; border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  flex-shrink: 0;
}
.profile__avatar img { height: 40px; width: 40px; border-radius: 4px; }
.profile__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.profile__name { font-weight: 700; font-size: 14px; }
.profile__rank_admin { font-size: 11.5px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile__rank { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile__go {
  width: 30px; height: 30px; border-radius: 4px; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: .15s;
}
.profile__go:hover { color: var(--text); background: rgba(255,255,255,.09); }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav__label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted-2); font-weight: 700; padding: 14px 10px 6px;
}
.nav__label:first-child { padding-top: 2px; }

.nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 4px;
  color: var(--muted); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  position: relative; transition: .15s;
}
.nav__item:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav__icon { display: grid; place-items: center; width: 22px; }
.nav__text { flex: 1; }
.nav__count {padding: 4px; background: rgba(36, 175, 38, 0.56); border-radius: 4px; color: var(--text); font-size: 11px;}

.nav__item.is-active {
  background: linear-gradient(90deg, rgba(254, 77, 77, 0.18), rgba(254, 77, 77, 0.04));
  color: #fff;
}
.nav__item.is-active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: var(--accent);
}
.nav__item.is-active .nav__icon { color: var(--accent-2); }

.nav__item--premium {
  background: linear-gradient(90deg, rgba(240,169,74,.14), rgba(240,169,74,.02));
  color: var(--premium);
  margin: 4px 0;
}
.nav__item--premium .nav__icon { color: var(--premium); }
.nav__item--premium:hover { background: linear-gradient(90deg, rgba(240,169,74,.22), rgba(240,169,74,.05)); color: var(--premium); }

.nav__item--skins {
  background: linear-gradient(90deg, rgba(168, 74, 240, 0.14), rgba(240,169,74,.02));
  color: var(--skins);
  margin: 4px 0;
}

.nav__item--skins .nav__icon { color: var(--skins); }
.nav__item--skins:hover { background: linear-gradient(90deg, rgba(168, 74, 240,.22), rgba(240,169,74,.05)); color: var(--skins); }

.nav__item--discord {
  background: linear-gradient(90deg, rgba(114, 134, 247, 0.14), rgba(104, 125, 247,.02));
  color: var(--discord);
  margin: 4px 0;
}

.nav__item--discord .nav__icon { color: var(--discord); }
.nav__item--discord:hover { background: linear-gradient(90deg, rgba(114, 134, 247,.22), rgba(104, 125, 247,.05)); color: var(--discord); }

.sidebar__foot { padding-top: 14px; border-top: 1px solid var(--line); }
.socials { display: flex; gap: 6px; justify-content: center; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--muted); background: rgba(255,255,255,.03); transition: .15s;
}
.socials a:hover { color: var(--text); background: rgba(255,255,255,.08); }

@media (max-width: 980px) {
  .sidebar { position: fixed; z-index: 50; transform: translateX(-100%); transition: .25s; }
  .sidebar.is-open { transform: none; }
}

.socials-text {
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
}

.copyright {
  margin-top: 5px;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
}

.lang-switch {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 5px;
}
.admin-entry-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; box-sizing: border-box; padding: 11px 14px; margin-bottom: 12px;
  border-radius: 4px; border: 1px solid var(--accent);
  background: linear-gradient(90deg, var(--accent), #7a161c); color: #fff;
  font-weight: 700; font-size: 13px; text-decoration: none;
  transition: .15s; box-shadow: 0 2px 10px rgba(175,36,44,.25);
}
.admin-entry-btn svg { color: #fff; flex-shrink: 0; }
.admin-entry-btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(175,36,44,.35); }
.admin-entry-btn:active { transform: translateY(0); }
.lang-switch__btn {
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  cursor: pointer;
  transition: .15s;
}
.lang-switch__btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.lang-switch__btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lang_disable { 
   pointer-events: none;
   opacity: 0.5;
}

.lang_disable_text { 
   color: var(--accent);
   pointer-events: none;
}


.content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 60px;
}
 
.content__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
 
.content__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}
 
.refresh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.refresh-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.refresh-btn svg { transition: transform .5s ease; }
.refresh-btn.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
 
.server-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
}
 
.server-groups__loading,
.server-groups__error {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.server-groups__error { color: var(--red); }
 
.server-group--full { grid-column: 1 / -1; }
.server-group--half { grid-column: span 1; }
 
@media (max-width: 980px) {
  .server-groups { grid-template-columns: 1fr; }
  .server-group--half { grid-column: 1 / -1; }
}
 
.server-group {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--panel-2);
}
 
.server-group__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--panel);
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  cursor: pointer;
}
.server-group__head .game-icon { width: 20px; height: 20px; flex-shrink: 0; }
.server-group__head .game-icon img { width: 20px; height: 20px; flex-shrink: 0; }
.server-group__head span.grow { flex: 1; text-align: left; }
.server-group__head svg.chev { transition: transform .2s; color: var(--muted); }
.server-group.is-collapsed .server-group__head svg.chev { transform: rotate(-90deg); }
.server-group.is-collapsed .server-group__body { display: none; }
 
.server-group__body { display: flex; flex-direction: column; }
 
.server-row {
  display: grid;
  grid-template-columns: 28px minmax(160px, 1.5fr) 1fr 1fr 140px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.server-row:last-child { border-bottom: none; }
.server-row:hover { background: rgba(255,255,255,.02); }
 
.server-group--half .server-row {
  grid-template-columns: 24px minmax(120px, 1.3fr) 1fr 1fr auto;
  gap: 12px;
}
 
.server-row__icon { display: flex; align-items: center; justify-content: center; }
.server-row__icon img { width: 20px; height: 20px; }
.server-row__icon .game-icon { width: 20px; height: 20px; }
 
.server-row__status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(70,209,127,.5);
}
.status-dot.is-online { background: var(--green); animation: pulse 2s infinite; }
.status-dot.is-offline { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(70,209,127,.45); }
  70% { box-shadow: 0 0 0 6px rgba(70,209,127,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,209,127,0); }
}
 
.server-row__name-wrap { min-width: 0; }
.server-row__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-row__connect {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.server-row__players { min-width: 0; }
.players-label {
  font-size: 10px;
  letter-spacing: .8px;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 5px;
}
.players-bar {
  position: relative;
  width: 100%;
  max-width: 170px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  overflow: hidden;
}
.players-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7a161c);
  transition: width .4s ease;
}
.players-bar__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.players-bar.is-offline .players-bar__fill { background: rgba(255,255,255,.05); }
.players-bar.is-offline .players-bar__text { color: var(--muted); }
 
.server-row__meta-label {
  font-size: 10px;
  letter-spacing: .8px;
  color: var(--muted-2);
  font-weight: 700;
  margin-bottom: 5px;
}
.server-row__map {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-row__map.is-empty { color: var(--muted-2); font-weight: 600; }
 
.server-row__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.connect-btn,
.stats-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: .15s;
}
.connect-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}
.connect-btn:hover { background: #c92b34; }
.connect-btn svg { flex-shrink: 0; }
 
.stats-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.stats-btn:hover { background: rgba(255,255,255,.09); border-color: var(--accent); color: var(--text); }
.stats-btn svg { flex-shrink: 0; color: var(--muted); }
.stats-btn:hover svg { color: var(--accent-2); }
 
@media (max-width: 620px) {
  .server-group--half .server-row .server-row__actions .stats-btn span,
  .server-group--half .server-row .server-row__actions .connect-btn span { display: none; }
  .server-group--half .server-row .server-row__actions .stats-btn,
  .server-group--half .server-row .server-row__actions .connect-btn { padding: 9px 10px; }
}
 
@media(max-width:880px){
.server-row,
.server-group--half .server-row {
    display:grid;
    grid-template-columns:
        35px 1fr auto;
    gap:12px;
    padding:14px;
}

.server-row__icon {
    grid-column:1;
    grid-row:1 / 4;
}
.server-row__status {
    grid-column:2;
}
.server-row__players {
    grid-column:2;
}
.server-row__map-wrap {
    display:none;
}

.server-row__actions {
    grid-column:3;
    grid-row:1 / 3;
    flex-direction:column;
}
.connect-btn,
.stats-btn {
    width:38px;
    height:38px;
    padding:0;
    justify-content:center;
}

.connect-btn span,
.stats-btn span {

    display:none;

}
.players-bar {
    max-width:none;
}
.server-row__name {
    font-size:14px;
}
.server-row__connect {

    font-size:11px;

}
}
 
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 10, 16, .72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
 
.modal {
  width: 100%;
  max-width: 580px;
  max-height: min(78vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.01);
}
 
.modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.modal__title { flex: 1; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.modal__close {
  width: 30px; height: 30px; border-radius: 4px; flex-shrink: 0;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1;
  display: grid; place-items: center; transition: .15s;
}
.modal__close:hover { color: var(--text); background: rgba(255,255,255,.09); }
 
.modal__body {
  padding: 8px 0;
  overflow-y: auto;
}


.stats-state {
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.stats-state--error { color: var(--red); }
 
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stats-table thead th {
  position: sticky;
  top: 0;
  background: var(--panel);
  text-align: left;
  padding: 10px 18px;
  font-size: 10.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.stats-table thead th:nth-child(2),
.stats-table thead th:nth-child(3), .stats-table thead th:nth-child(4) { text-align: right; }
.stats-table tbody td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.stats-table tbody td:nth-child(2), .stats-table tbody td:nth-child(3), .stats-table tbody td:nth-child(4) { text-align: right; color: var(--muted); font-weight: 700; }

.stats-table tbody td:nth-child(1) { text-align: left; color: var(--muted); font-weight: 700; }


.mobile-menu-btn {
    display:none;
    position:fixed;
    top:15px;
    left:15px;
    z-index:120;
    width:42px;
    height:42px;
    border-radius:6px;
    background:var(--panel);
    border:1px solid var(--line);
    color:var(--text);
    font-size:22px;
    cursor:pointer;
}


.sidebar-overlay {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:90;
}

@media(max-width:980px){
    .mobile-menu-btn {
        display:grid;
        place-items:center;
    }
    .sidebar {
        position:fixed;
        left:0;
        top:0;
        height:100vh;
        transform:translateX(-100%);
        transition:.25s ease;
        z-index:100;
        width:260px;
    }
    .sidebar.is-open {
        transform:translateX(0);
    }
    .sidebar-overlay.is-open {
        display:block;
    }
    .content {
        padding:70px 15px 40px;
    }
}

@media(max-width:980px){
    .socials {
        display:none;
    }
    .socials-text {
        display:none;
    }
}