/* ==========================================================
   FragCity Server List — CS2 public server browser
   Layout inspired by compact game-server browsers.
   Site palette intentionally kept close to the existing page.
   ========================================================== */

.serverlist-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 24px 0 72px;
    direction: rtl;
    box-sizing: border-box;
    color: #cbd5e1;
}

.serverlist-page,
.serverlist-page * {
    box-sizing: border-box;
}

/* ---------- Page header ---------- */
.sl-page-head {
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sl-page-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.sl-title-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 14px;
    color: #60a5fa;
    background: rgba(37, 99, 235, .10);
    box-shadow: 0 10px 30px rgba(2, 6, 23, .18);
}

.sl-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    direction: ltr;
    text-align: right;
}

.sl-page-title h1 {
    margin: 0;
    color: #f1f5f9;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.25;
}

.sl-page-title p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: .82rem;
}

.sl-live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    white-space: nowrap;
    background: rgba(11, 18, 32, .72);
    border: 1px solid rgba(51, 65, 85, .55);
    border-radius: 12px;
    color: #64748b;
    font-size: .76rem;
}

.sl-live-counter strong {
    color: #e2e8f0;
    font-size: .94rem;
}

/* ---------- Toolbar ---------- */
.sl-toolbar {
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sl-filter-pills {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.sl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(51, 65, 85, .55);
    border-radius: 10px;
    color: #94a3b8;
    background: rgba(11, 18, 32, .70);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.sl-pill:hover {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, .30);
}

.sl-pill.active {
    color: #dbeafe;
    background: rgba(59, 130, 246, .14);
    border-color: rgba(59, 130, 246, .42);
}

.sl-pill-count {
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .12);
    font-size: .68rem;
}

.sl-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-search {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #22304a;
    border-radius: 10px;
    color: #64748b;
    background: #0b1220;
}

.sl-search:focus-within {
    border-color: rgba(59, 130, 246, .40);
}

.sl-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: .80rem;
}

.sl-search input::placeholder {
    color: #475569;
}

.sl-sort-dropdown {
    position: relative;
}

.sl-sort-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #22304a;
    border-radius: 10px;
    background: #0b1220;
    color: #cbd5e1;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.sl-sort-btn:hover {
    border-color: rgba(59, 130, 246, .35);
}

.sl-sort-menu {
    min-width: 170px;
}

.sl-sort-menu .frag-drop-link {
    width: 100%;
    border: 0;
    background: none;
    text-align: right;
    font: inherit;
    cursor: pointer;
}

.sl-sort-menu .frag-drop-link.active {
    color: #93c5fd;
    background: rgba(59, 130, 246, .10);
}

/* ---------- Server groups ---------- */
.server-grid {
    width: min(1450px, calc(100% - 48px));
    margin: 0 auto;
}

.sl-server-group {
    margin: 0 0 24px;
}

.sl-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.sl-group-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.sl-group-accent {
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, .18);
}

.sl-group-title h2 {
    margin: 0;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 800;
}

.sl-group-count,
.sl-group-sub {
    color: #64748b;
    font-size: .70rem;
}

.sl-group-sub {
    direction: ltr;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sl-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

/* ---------- Server card ---------- */
.sl-server-card {
    position: relative;
    min-width: 0;
    padding: 13px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, .55);
    border-radius: 14px;
    background: rgba(11, 18, 32, .82);
    box-shadow: 0 8px 22px rgba(2, 6, 23, .10);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.sl-server-card:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, .34);
    box-shadow: 0 12px 28px rgba(2, 6, 23, .18);
}

.sl-server-card.status-stopped,
.sl-server-card.status-suspended {
    opacity: .82;
}

.sl-card-clickarea {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sl-card-clickarea:focus-visible {
    outline: 2px solid rgba(96, 165, 250, .75);
    outline-offset: -2px;
    border-radius: 14px;
}

.sl-card-top,
.sl-card-body,
.sl-card-bottom {
    position: relative;
    z-index: 2;
}

.sl-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sl-card-name-wrap {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.sl-card-name-block {
    min-width: 0;
}

.sl-server-card .status-dot {
    margin-top: 5px;
}

.name-text {
    display: block;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: #f1f5f9;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-ip-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

.ip-text {
    direction: ltr;
    color: #475569;
    font-family: 'Courier New', monospace;
    font-size: .67rem;
}

.sl-copy-btn {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(59, 130, 246, .20);
    border-radius: 6px;
    background: rgba(59, 130, 246, .08);
    color: #60a5fa;
    font: inherit;
    font-size: .66rem;
    cursor: pointer;
    transition: .15s ease;
}

.sl-copy-btn:hover {
    background: rgba(59, 130, 246, .16);
}

.sl-copy-btn.copied {
    border-color: rgba(34, 197, 94, .32);
    background: rgba(34, 197, 94, .14);
    color: #4ade80;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    display: inline-block;
    border-radius: 50%;
    box-shadow: 0 0 7px currentColor;
}

.status-dot.running { background: #22c55e; color: #22c55e; }
.status-dot.starting { background: #38bdf8; color: #38bdf8; animation: sl-pulse 1.2s infinite; }
.status-dot.stopped { background: #64748b; color: #64748b; }
.status-dot.suspended { background: #f97316; color: #f97316; }

.status-badge {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: .64rem;
    font-weight: 800;
}

.status-badge.running { background: rgba(34, 197, 94, .12); color: #4ade80; }
.status-badge.starting { background: rgba(56, 189, 248, .12); color: #38bdf8; }
.status-badge.stopped { background: rgba(100, 116, 139, .15); color: #94a3b8; }
.status-badge.suspended { background: rgba(249, 115, 22, .12); color: #fb923c; }

@keyframes sl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.sl-card-body {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr;
    gap: 7px;
    margin-top: 12px;
}

.sl-map-box,
.sl-card-stat {
    min-width: 0;
    min-height: 55px;
    padding: 9px 8px;
    border: 1px solid rgba(51, 65, 85, .42);
    border-radius: 9px;
    background: rgba(2, 6, 23, .22);
}

.sl-map-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sl-map-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #60a5fa;
    background: rgba(59, 130, 246, .10);
}

.sl-map-box span,
.sl-card-stat span {
    display: block;
    margin-bottom: 3px;
    color: #475569;
    font-size: .63rem;
}

.sl-map-box strong,
.sl-card-stat strong {
    display: block;
    overflow: hidden;
    color: #cbd5e1;
    font-size: .73rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-players {
    display: inline-block !important;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 6px;
}

.sl-players.low { color: #86efac !important; background: rgba(34, 197, 94, .08); }
.sl-players.mid { color: #fde047 !important; background: rgba(234, 179, 8, .08); }
.sl-players.hot { color: #fca5a5 !important; background: rgba(239, 68, 68, .10); }

.sl-ping {
    direction: ltr;
    width: fit-content;
}
.sl-ping.good { color: #4ade80 !important; }
.sl-ping.ok { color: #fde047 !important; }
.sl-ping.bad { color: #f87171 !important; }

.sl-muted {
    color: #475569 !important;
}

.sl-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.sl-node {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: .68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-node i {
    color: #475569;
}

.sl-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sl-info-btn,
.sl-join-btn {
    position: relative;
    z-index: 3;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font: inherit;
    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.sl-info-btn {
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(148, 163, 184, .08);
    color: #cbd5e1;
}

.sl-info-btn:hover {
    background: rgba(148, 163, 184, .14);
}

.sl-join-btn {
    border: 1px solid rgba(59, 130, 246, .22);
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
    color: #06111f;
}

.sl-join-btn:hover {
    filter: brightness(1.06);
}

/* ---------- Empty / no result ---------- */
.sl-empty,
.sl-no-match {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 30px 20px;
    border: 1px solid rgba(51, 65, 85, .55);
    border-radius: 16px;
    background: rgba(11, 18, 32, .70);
    color: #94a3b8;
    text-align: center;
    grid-column: 1 / -1;
}

.sl-empty i,
.sl-no-match i {
    color: #475569;
    font-size: 1.45rem;
}

/* ---------- Sidebar ---------- */
.sl-sidebar {
    position: fixed;
    inset-inline-end: 24px;
    top: 120px;
    width: 290px;
    display: none;
}

.sl-promo-card {
    padding: 20px 18px;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(37, 99, 235, .14), rgba(11, 18, 32, .92));
}

.sl-promo-icon {
    margin-bottom: 10px;
    color: #60a5fa;
    font-size: 1.8rem;
}

.sl-promo-card h3 {
    margin: 0 0 7px;
    color: #f1f5f9;
    font-size: .95rem;
}

.sl-promo-card p {
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: .76rem;
    line-height: 1.75;
}

.sl-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border-radius: 10px;
    color: #06111f;
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

/* ---------- Info modal ---------- */
.sl-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sl-modal.open {
    display: flex;
}

.sl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .76);
    backdrop-filter: blur(5px);
}

.sl-modal-card {
    position: relative;
    width: min(620px, 100%);
    max-height: min(820px, calc(100vh - 36px));
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(96, 165, 250, .22);
    border-radius: 18px;
    background: #0b1220;
    box-shadow: 0 28px 100px rgba(0, 0, 0, .45);
}

.sl-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 4;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 9px;
    background: rgba(148, 163, 184, .06);
    color: #94a3b8;
    cursor: pointer;
}

.sl-modal-close:hover {
    color: #f1f5f9;
    background: rgba(148, 163, 184, .12);
}

.sl-modal-head {
    padding: 14px 48px 14px;
    border-radius: 13px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(59, 130, 246, .10), rgba(2, 6, 23, .05));
}

.sl-modal-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #60a5fa;
    font-size: .72rem;
    font-weight: 800;
    direction: ltr;
}

.sl-modal-head h2 {
    margin: 4px 0 5px;
    color: #f1f5f9;
    font-size: 1.12rem;
}

.sl-modal-player-count {
    direction: ltr;
    color: #e2e8f0;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.sl-modal-connect {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.sl-modal-connect > span {
    min-width: 0;
    flex: 1;
    padding: 9px 11px;
    overflow: hidden;
    border: 1px solid #22304a;
    border-radius: 10px;
    background: #07101c;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-modal-copy,
.sl-modal-play {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
}

.sl-modal-copy {
    border: 1px solid rgba(59, 130, 246, .18);
    background: rgba(59, 130, 246, .10);
    color: #60a5fa;
}

.sl-modal-play {
    border: 0;
    background: linear-gradient(135deg, #3b82f6, #38bdf8);
    color: #06111f;
    text-decoration: none;
}

.sl-modal-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.sl-modal-meta span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(51, 65, 85, .42);
    border-radius: 9px;
    background: rgba(2, 6, 23, .22);
}

.sl-modal-meta i {
    color: #475569;
    font-size: .68rem;
}

.sl-modal-meta b {
    color: #64748b;
    font-size: .61rem;
    font-weight: 700;
}

.sl-modal-meta em {
    color: #cbd5e1;
    font-size: .70rem;
    font-style: normal;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-modal-players-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(51, 65, 85, .45);
}

.sl-modal-players-head > div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e2e8f0;
    font-size: .78rem;
    font-weight: 800;
}

.sl-modal-players-head > span {
    color: #64748b;
    font-size: .66rem;
}

.sl-modal-players {
    min-height: 70px;
    margin-top: 8px;
}

.sl-modal-loading,
.sl-modal-error,
.sl-modal-empty {
    padding: 20px;
    border: 1px solid rgba(51, 65, 85, .38);
    border-radius: 10px;
    background: rgba(2, 6, 23, .22);
    color: #64748b;
    text-align: center;
    font-size: .72rem;
}

.sl-modal-player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.sl-modal-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(51, 65, 85, .38);
    border-radius: 9px;
    background: rgba(2, 6, 23, .24);
}

.sl-modal-player-name {
    min-width: 0;
    color: #cbd5e1;
    font-size: .70rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sl-modal-player-info {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: .61rem;
    direction: ltr;
}

.sl-modal-player-info strong {
    color: #93c5fd;
}

body.sl-modal-open {
    overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (min-width: 1350px) {
    .sl-sidebar {
        display: block;
    }

    .server-grid,
    .sl-toolbar,
    .sl-page-head {
        width: min(1120px, calc(100% - 380px));
        margin-inline-start: 24px;
        margin-inline-end: 340px;
    }
}

@media (max-width: 1050px) {
    .sl-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .sl-page-head,
    .sl-toolbar,
    .server-grid {
        width: min(100% - 24px, 1450px);
    }

    .sl-page-head {
        align-items: flex-start;
    }

    .sl-live-counter {
        margin-top: 2px;
    }

    .sl-toolbar {
        align-items: stretch;
    }

    .sl-toolbar-actions {
        flex: 1;
    }

    .sl-search {
        flex: 1;
        min-width: 0;
    }

    .sl-group-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sl-modal-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .serverlist-page {
        padding-top: 16px;
    }

    .sl-page-head {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .sl-live-counter {
        align-self: flex-start;
    }

    .sl-group-grid {
        grid-template-columns: 1fr;
    }

    .sl-group-sub {
        display: none;
    }

    .sl-toolbar-actions {
        width: 100%;
    }

    .sl-sort-dropdown {
        flex: 0 0 auto;
    }

    .sl-server-card {
        padding: 12px;
    }

    .sl-card-body {
        grid-template-columns: 1.2fr .8fr;
    }

    .sl-card-stat:last-child {
        grid-column: 2;
    }

    .sl-card-bottom {
        align-items: flex-end;
    }

    .sl-card-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .sl-modal-card {
        padding: 13px;
        border-radius: 15px;
    }

    .sl-modal-head {
        padding-inline: 34px;
    }

    .sl-modal-player-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FragCity Server List
   CS2RED-style layout + BuyServerOpen background
   IMPORTANT:
   Put this section at the END of serverlist.css
   ========================================================= */

/* ---------- Global page background ---------- */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at top,
            rgba(59, 130, 246, 0.10),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom,
            rgba(14, 165, 233, 0.06),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            rgba(2, 6, 23, 0.98),
            rgba(8, 15, 28, 0.99)
        );
}

/* Make sure the global site wrappers don't cover the background */

.app-container,
.main-content,
.content-fader {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* The server page itself must also stay transparent */

.serverlist-page {
    width: 100% !important;
    min-height: 100vh;
    padding: 30px 24px 64px !important;
    background: transparent !important;
}

/* Remove the previous serverlist pseudo-background */
.serverlist-page::before {
    display: none !important;
}


/* =========================================================
   DESKTOP
   Sidebar on LEFT
   Main content fills the rest of the screen
   ========================================================= */

@media (min-width: 1351px) {

    /* ---------------- Sidebar ---------------- */

    .sl-sidebar {
        display: block !important;

        position: fixed !important;

        top: 158px !important;
        left: 48px !important;
        right: auto !important;

        width: 280px !important;

        z-index: 10;
    }

    .sl-promo-card {
        width: 280px;

        padding: 22px 18px;

        border-radius: 16px;
    }


    /* ---------------- Main content ---------------- */

    .sl-page-head,
    .sl-toolbar,
    .server-grid {

        width: calc(100% - 352px) !important;

        max-width: none !important;

        /*
         * 328px on the left leaves room for the sidebar.
         * 24px on the right keeps the page away from the edge.
         */
        margin-left: 328px !important;
        margin-right: 24px !important;
    }


    /* ---------------- Header ---------------- */

    .sl-page-head {
        margin-bottom: 18px !important;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sl-page-title {
        gap: 13px;
    }

    .sl-page-title h1 {
        font-size: 1.65rem;
    }

    .sl-page-title p {
        font-size: .78rem;
    }

    .sl-live-counter {
        margin-left: auto;
        margin-right: auto;
    }


    /* ---------------- Toolbar ---------------- */

    .sl-toolbar {
        margin-bottom: 18px !important;

        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sl-filter-pills {
        justify-content: flex-start;
    }

    .sl-toolbar-actions {
        flex: 0 0 auto;
    }


    /* =====================================================
       SERVER GRID

       CS2RED-style 3 cards per row
       ===================================================== */

    .sl-group-grid {
        display: grid !important;

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 12px !important;
    }


    /* ---------------- Map group ---------------- */

    .sl-server-group {
        margin-bottom: 25px !important;
    }

    .sl-group-head {
        margin-bottom: 10px !important;
    }

    .sl-group-title {
        justify-content: flex-start;
    }

    .sl-group-title h2 {
        font-size: .92rem;
        font-weight: 800;
    }

    .sl-group-count {
        font-size: .68rem;
    }

    .sl-group-sub {
        font-size: .65rem;
        letter-spacing: .04em;
        text-transform: uppercase;
    }


    /* =====================================================
       SERVER CARDS
       ===================================================== */

    .sl-server-card {

        min-height: 164px;

        padding: 12px !important;

        border-radius: 14px !important;

        background:
            rgba(11, 18, 32, 0.78) !important;
    }

    .sl-server-card:hover {
        transform: translateY(-2px);
    }


    /* Card internal layout */

    .sl-card-body {

        display: grid !important;

        grid-template-columns:
            1.35fr
            .82fr
            .82fr !important;

        gap: 7px !important;
    }

    .sl-card-bottom {
        margin-top: 9px;
    }

    .sl-join-btn {
        padding: 7px 11px;

        font-size: .72rem;
    }

    .sl-details-btn {
        width: 31px;
        height: 31px;
    }
}


/* =========================================================
   MEDIUM DESKTOP / LAPTOP
   ========================================================= */

@media (min-width: 901px) and (max-width: 1350px) {

    /* Hide the promotional sidebar */
    .sl-sidebar {
        display: none !important;
    }

    .sl-page-head,
    .sl-toolbar,
    .server-grid {

        width: min(
            100%,
            1250px
        ) !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .sl-group-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 12px !important;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .serverlist-page {
        padding: 22px 12px 56px !important;
    }

    .sl-page-head,
    .sl-toolbar,
    .server-grid {

        width: 100% !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }

    .sl-group-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

    .sl-page-head {
        margin-bottom: 14px !important;
    }

    .sl-live-counter {
        align-self: flex-start;
    }

    .sl-group-grid {
        grid-template-columns: 1fr !important;
    }
}