/* ── Base ─────────────────────────────────────────────────────────────────── */

body {
    margin: 0;
    min-height: 100vh;
    background: #050505;
    color: #f5f5f5;
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Teko', 'Arial Narrow', sans-serif;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Background video lives in .site-bg (see main.css), not as a direct body child. */
.site-bg video {
    pointer-events: none;
}

/* Nav hover gradient lives in main.css (.nav-item:hover::before). */

/* ── Server browser: tab bar ──────────────────────────────────────────────── */

.sb-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px;
    height: 42px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    font-family: inherit;
}
.sb-tab:hover { background: rgba(255,255,255,0.04); }
.sb-tab {
    position: relative;
    z-index: 0;
}
.sb-tab[data-active="1"]:not([data-locked="1"]) {
    background: #5d7238;
    border-bottom-color: transparent;
    color: #fff;
}
.sb-tab[data-active="1"]::before {
    content: none;
    display: none;
}

.sb-tab-icon { width: 14px; height: 14px; opacity: 0.4; }
.sb-tab[data-active="1"] .sb-tab-icon { opacity: 0.9; }

.sb-tab-count {
    font-size: 9px;
    font-weight: 700;
    padding: 0;
    background: transparent;
    color: rgba(255,255,255,0.38);
}
.sb-tab[data-active="1"] .sb-tab-count {
    background: transparent;
    color: rgba(255,255,255,0.72);
}

/* ── Server browser: sidebar ──────────────────────────────────────────────── */

.sb-sidebar-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 7px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    font-family: inherit;
}
.sb-sidebar-item:hover { background: rgba(255,255,255,0.04); }
.sb-sidebar-item {
    position: relative;
    z-index: 0;
}
.sb-sidebar-item[data-active="1"] {
    background: transparent;
}
.sb-sidebar-item[data-active="1"]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(220, 75, 45, 0.62) 0%, rgba(220, 75, 45, 0.28) 50%, rgba(220, 85, 50, 0.04) 100%);
    pointer-events: none;
}

.sb-sidebar-label {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255,255,255,0.42);
}
.sb-sidebar-item[data-active="1"] .sb-sidebar-label { color: rgba(255,255,255,0.90); }

.sb-sidebar-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.20);
}
.sb-sidebar-item[data-active="1"] .sb-sidebar-count { color: rgba(255,255,255,0.55); }

/* ── Server browser: buttons ──────────────────────────────────────────────── */

.sb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.40);
    font-family: inherit;
    transition: background 0.12s;
}
.sb-btn:hover { background: rgba(255,255,255,0.09); }

/* ── Server browser: tab bar toolbar (Play page) ─────────────────────────── */

.sb-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    flex-shrink: 0;
    height: 100%;
}

/* Shared pill shell — live stats, sort, search */
.sb-livestats,
.sb-sort,
.sb-search {
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.sb-toolbar-label,
.sb-livestats-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1;
}

/* Bold white values (327, NAME, etc.) */
.sb-livestats-val,
.sb-sort__value {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.sb-livestats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}

.sb-livestats-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8ed270;
    box-shadow: 0 0 6px rgba(142, 210, 112, 0.7);
    animation: sb-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.sb-livestats-sep {
    color: rgba(255, 255, 255, 0.18);
    padding: 0 2px;
}

/* SORT trigger pill */
.sb-sort {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.sb-sort__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 12px;
    margin: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.sb-sort__trigger:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.25);
    outline-offset: -1px;
}

.sb-sort--open {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.sb-sort__field {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 1em;
    padding-right: 14px;
}

.sb-sort__value {
    white-space: nowrap;
}

.sb-sort__caret {
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
    transition: transform 0.12s ease;
    flex-shrink: 0;
}

.sb-sort--open .sb-sort__caret {
    transform: translateY(-50%) rotate(180deg);
}

/* Custom dropdown — vertical list, nav-style active (glow runs left → right) */
.sb-sort__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: rgba(32, 36, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
}

.sb-sort__menu[hidden] {
    display: none;
}

.sb-sort__option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 1.15rem;
    height: 36px;
    font-family: var(--font-body, 'Rajdhani', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.12s ease;
    z-index: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-sort__option:last-child {
    border-bottom: none;
}

.sb-sort__option:hover,
.sb-sort__option:focus {
    color: #fff;
    outline: none;
}

.sb-sort__option:hover:not([data-selected="1"])::before,
.sb-sort__option:focus:not([data-selected="1"])::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* Nav-like active — orange wash left → right (nav uses bottom → top) */
.sb-sort__option[data-selected="1"] {
    color: #fff;
}

.sb-sort__option[data-selected="1"]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(220, 75, 45, 0.62) 0%,
        rgba(220, 75, 45, 0.28) 50%,
        rgba(220, 85, 50, 0.04) 100%
    );
    pointer-events: none;
}

.sb-sort__group {
    padding: 8px 1.15rem 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1;
    pointer-events: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
}

.sb-search__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.30);
    pointer-events: none;
}

.sb-search__input {
    width: 100%;
    height: 100%;
    padding: 0 12px 0 32px;
    border: none;
    border-radius: 2px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    font-family: inherit;
    outline: none;
}

.sb-search__input::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

.sb-search__input:focus {
    outline: none;
}

.sb-search:focus-within {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

@keyframes sb-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.profile-restrictions-notice {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
}
.profile-restrictions-notice strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #fecaca;
}
.profile-restrictions-notice p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-muted, rgba(255, 255, 255, 0.65));
}
.profile-restrictions-notice a {
    color: #fca5a5;
    text-decoration: underline;
}
.profile-restrictions-notice--page {
    margin-bottom: 1rem;
}
