/* ============================================================
   WSAS Ban System — Panel Style Sheet
   Theme : Dark / Dark Red / Dark Grey
   Icons : Font Awesome 6 (no emojis)
   ============================================================ */

/* ── Google Font Import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
    /* Background Layers */
    --bg-body:          #0b0c0f;
    --bg-sidebar:       #0f1014;
    --bg-navbar:        #111318;
    --bg-card:          #141720;
    --bg-card-hover:    #191d2b;
    --bg-input:         #0f1014;
    --bg-modal:         #131620;
    --bg-table-row:     #131620;
    --bg-table-hover:   #181c28;
    --bg-table-alt:     #111418;

    /* Borders */
    --border:           rgba(255,255,255,0.06);
    --border-hover:     rgba(255,255,255,0.12);
    --border-red:       rgba(180,20,20,0.35);
    --border-input:     rgba(255,255,255,0.08);

    /* Accent — Red Scale */
    --accent:           #c0392b;
    --accent-bright:    #e74c3c;
    --accent-dim:       #8b1a10;
    --accent-glow:      rgba(192,57,43,0.25);
    --accent-glow-lg:   rgba(192,57,43,0.12);

    /* Text */
    --text-main:        #dde1ea;
    --text-muted:       #616880;
    --text-faint:       #3d4255;
    --text-bright:      #f0f2f8;
    --text-red:         #e74c3c;
    --text-link:        #c0392b;

    /* Semantic Colors */
    --success:          #27c97a;
    --success-bg:       rgba(39,201,122,0.08);
    --success-border:   rgba(39,201,122,0.22);

    --warning:          #f59e0b;
    --warning-bg:       rgba(245,158,11,0.08);
    --warning-border:   rgba(245,158,11,0.22);

    --danger:           #e74c3c;
    --danger-bg:        rgba(231,76,60,0.08);
    --danger-border:    rgba(231,76,60,0.25);

    --info:             #3b82f6;
    --info-bg:          rgba(59,130,246,0.08);
    --info-border:      rgba(59,130,246,0.22);

    --pink-accent:      #c084fc;

    /* Layout */
    --sidebar-width:    250px;
    --sidebar-collapsed:72px;
    --navbar-height:    56px;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;

    /* Typography */
    --font-ui:          'Inter', system-ui, sans-serif;
    --font-display:     'Rajdhani', sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:        0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:        0 8px 40px rgba(0,0,0,0.6);
    --shadow-red:       0 0 24px rgba(192,57,43,0.3);

    /* Transitions */
    --transition:       0.18s ease;
    --transition-slow:  0.3s ease;
}

/* ── Base Reset ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar              { width: 5px; height: 5px; }
::-webkit-scrollbar-track        { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb        { background: rgba(192,57,43,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(192,57,43,0.65); }

/* ── Loading Spinner ────────────────────────────────────── */
#spinner {
    background: var(--bg-body) !important;
    z-index: 9999;
    transition: opacity 0.4s;
}
#spinner.show { display: flex !important; }
#spinner.hide { opacity: 0; pointer-events: none; }

.spinner-border.text-primary {
    color: var(--accent) !important;
    width: 3rem;
    height: 3rem;
    border-width: 3px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--transition-slow), transform var(--transition-slow);
}

/* Sidebar brand / logo */
.sidebar .navbar-brand {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.4rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.sidebar .navbar-brand h5 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-bright), #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar .navbar-brand .fa-gamepad,
.sidebar .navbar-brand .fa-shield-halved,
.sidebar .navbar-brand .fa-hexagon-check {
    font-size: 1.3rem;
    color: var(--accent);
    margin-right: 0.6rem;
    -webkit-text-fill-color: var(--accent);
    flex-shrink: 0;
}

/* Nav links */
.sidebar .navbar-nav {
    padding: 0.25rem 0.75rem;
    flex: 1;
}

.sidebar .nav-item.nav-link,
.sidebar a.nav-item.nav-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.9rem;
    margin: 1px 0;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background var(--transition), color var(--transition), padding-left var(--transition);
    position: relative;
    gap: 0.5rem;
    white-space: nowrap;
}

.sidebar .nav-item.nav-link i,
.sidebar a.nav-item.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color var(--transition);
}

.sidebar .nav-item.nav-link:hover,
.sidebar a.nav-item.nav-link:hover {
    background: rgba(192,57,43,0.08);
    color: var(--text-bright);
    padding-left: 1.15rem;
}

.sidebar .nav-item.nav-link:hover i,
.sidebar a.nav-item.nav-link:hover i {
    color: var(--accent-bright);
}

.sidebar .nav-item.nav-link.active,
.sidebar a.nav-item.nav-link.active {
    background: rgba(192,57,43,0.15);
    color: #fff;
    font-weight: 600;
    border-left: 3px solid var(--accent-bright);
}

.sidebar .nav-item.nav-link.active i,
.sidebar a.nav-item.nav-link.active i {
    color: var(--accent-bright);
}

/* Logout link */
.sidebar a[href*="logout"] {
    color: rgba(231,76,60,0.6) !important;
    margin-top: 0.25rem;
}
.sidebar a[href*="logout"]:hover {
    background: rgba(231,76,60,0.08) !important;
    color: var(--danger) !important;
}

/* Sidebar separator */
.sidebar [style*="border-top"] {
    border-color: var(--border) !important;
    margin: 0.4rem 0.5rem !important;
}

/* ============================================================
   NAVBAR / HEADER BAR
   ============================================================ */
.navbar.nvb-dark,
nav.navbar.nvb-dark {
    position: sticky;
    top: 0;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    z-index: 998;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar .sidebar-toggler {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.navbar .sidebar-toggler:hover {
    color: var(--text-bright);
    background: rgba(255,255,255,0.05);
}

/* Live monitor button */
.btn-custom-red {
    background: linear-gradient(135deg, rgba(192,57,43,0.15), rgba(192,57,43,0.08));
    border: 1px solid rgba(192,57,43,0.35);
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
}

.btn-custom-red:hover {
    background: rgba(192,57,43,0.25);
    border-color: var(--accent-bright);
    box-shadow: 0 0 12px var(--accent-glow);
    color: #fff;
    text-decoration: none;
}

.btn-custom-blue {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition);
}

.btn-custom-blue:hover {
    background: rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.45);
    color: #93c5fd;
    text-decoration: none;
}

/* Navbar dropdowns */
.navbar .nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.navbar .nav-link:hover {
    color: var(--text-bright);
    background: rgba(255,255,255,0.04);
}

.navbar .dropdown-menu {
    background: #1a1e2b;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    min-width: 200px;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
}

.navbar .dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-bright);
}

.navbar .dropdown-item.text-danger {
    color: var(--danger) !important;
}

.navbar .dropdown-item.text-danger:hover {
    background: var(--danger-bg);
    color: var(--danger) !important;
}

.navbar .dropdown-divider {
    border-color: var(--border);
    margin: 0.25rem 0;
}

/* Badge (notification) */
.badge.rounded-circle.bg-danger {
    background: var(--accent) !important;
    font-size: 9px;
    padding: 3px 6px;
}

/* Avatar */
.navbar img.rounded-circle {
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 8px var(--accent-glow) !important;
}

/* ============================================================
   LAYOUT — MAIN CONTENT WRAPPER
   ============================================================ */
.container-fluid.d-flex {
    min-height: 100vh;
}

.content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left var(--transition-slow);
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.main-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.main-header h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0 0 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================================
   BOX / CARD COMPONENT
   ============================================================ */
.box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.box:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.box_title {
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1.2rem;
}

.box-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.box_content {
    padding: 1.25rem;
}

/* Panel card (alias) */
.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* ============================================================
   BADGE COMPONENT
   ============================================================ */
.bdg {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.bdg a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}
.bdg a:hover { color: var(--text-bright); }

.bdg-r {
    background: rgba(192,57,43,0.15);
    border: 1px solid rgba(192,57,43,0.3);
    color: var(--accent-bright);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

/* ============================================================
   STAT CARDS (Dashboard)
   ============================================================ */
.box.stat-card {
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid var(--border);
}

.box.stat-card:hover {
    border-color: var(--border-red);
    box-shadow: var(--shadow-red);
    transform: translateY(-2px);
}

.box.stat-card .box_title {
    padding: 8px 0;
}

.box.stat-card h3.box-title {
    justify-content: center;
    font-size: 10px;
}

.box.stat-card .box_content {
    padding: 18px 0;
}

.box.stat-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
}

/* Link wrapping stat cards — no underline */
a:has(.box) {
    text-decoration: none;
}

/* ============================================================
   TABLE COMPONENT
   ============================================================ */
.table-scroll-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

table.glass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.865rem;
}

table.glass-table thead tr {
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid var(--border-hover);
}

table.glass-table thead th {
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

table.glass-table tbody tr {
    background: var(--bg-table-row);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

table.glass-table tbody tr:nth-child(even) {
    background: var(--bg-table-alt);
}

table.glass-table tbody tr:hover {
    background: var(--bg-table-hover);
}

table.glass-table tbody tr:last-child {
    border-bottom: none;
}

table.glass-table tbody td {
    padding: 0.7rem 1rem;
    vertical-align: middle;
    color: var(--text-main);
}

/* Compact table */
table.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

table.compact-table thead th {
    padding: 0.55rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

table.compact-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background var(--transition);
}

table.compact-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

table.compact-table tbody td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}

/* Player info within table */
.player-info-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-bright);
    margin-bottom: 3px;
}

.player-info-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.player-info-ids code {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* ============================================================
   BADGE PILLS — Status, Server, Client
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.status-badge.expired {
    background: rgba(97,104,128,0.1);
    border: 1px solid rgba(97,104,128,0.2);
    color: var(--text-muted);
}

.status-badge.pending {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
}

.server-badge {
    display: inline-block;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.client-badge.steam {
    background: rgba(39,201,122,0.1);
    border: 1px solid rgba(39,201,122,0.25);
    color: var(--success);
}

.client-badge.pirate {
    background: rgba(192,57,43,0.1);
    border: 1px solid rgba(192,57,43,0.25);
    color: var(--accent-bright);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label,
label.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.form-input,
input.form-input,
select.form-input,
textarea.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
input.form-input:focus,
select.form-input:focus,
textarea.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-input::placeholder { color: var(--text-faint); }

/* Bootstrap form-control overrides */
.form-control {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-main) !important;
    font-size: 0.875rem !important;
    padding: 0.55rem 0.9rem !important;
    transition: border-color var(--transition), box-shadow var(--transition) !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12) !important;
    background: var(--bg-input) !important;
    color: var(--text-main) !important;
}

.form-control::placeholder { color: var(--text-faint) !important; }

select.form-control option {
    background: #1a1e2b;
    color: var(--text-main);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-bright);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-success {
    background: rgba(39,201,122,0.1);
    border-color: rgba(39,201,122,0.3);
    color: var(--success);
}
.btn-success:hover {
    background: rgba(39,201,122,0.18);
    border-color: var(--success);
    color: var(--success);
}

.btn-danger {
    background: rgba(231,76,60,0.1);
    border-color: rgba(231,76,60,0.3);
    color: var(--danger);
}
.btn-danger:hover {
    background: rgba(231,76,60,0.18);
    border-color: var(--danger);
    color: var(--danger);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 3px 16px var(--accent-glow);
    transition: all var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(192,57,43,0.4);
}

.btn-submit:active { transform: translateY(0); }

/* Lift ban button */
.btn-lift {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.28);
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-lift:hover {
    background: rgba(231,76,60,0.2);
    border-color: var(--danger);
}

/* Quick ban button */
.btn-quick-ban {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-quick-ban:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-bright);
}

/* Filter button */
.btn-filter {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-filter:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-bright);
}

/* Lift form inline layout */
.lift-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.lift-input {
    flex: 1;
    min-width: 110px;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    color: var(--text-main);
    font-size: 0.78rem;
    outline: none;
    transition: border-color var(--transition);
}

.lift-input:focus {
    border-color: var(--accent);
}

/* ============================================================
   ALERT BOXES
   ============================================================ */
.alert-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.alert-box::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.alert-box.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.alert-box.success::before { content: "\f058"; } /* fa-circle-check */

.alert-box.error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: #fc8f87;
}

.alert-box.error::before { content: "\f06a"; } /* fa-circle-exclamation */

.alert-box.warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning);
}

.alert-box.warning::before { content: "\f071"; } /* fa-triangle-exclamation */

.alert-box.info {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    color: #60a5fa;
}

.alert-box.info::before { content: "\f05a"; } /* fa-circle-info */

/* Remove emoji spans inside alert-box if they appear */
.alert-box > span:first-child { display: none; }

/* ============================================================
   NO DATA STATE
   ============================================================ */
.no-data {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-data-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
    color: var(--text-muted);
}

/* Replace emoji no-data icon with FA */
.no-data .no-data-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f05e"; /* fa-ban */
}

/* ============================================================
   FILTERS PANEL
   ============================================================ */
.filters-panel {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1rem 1.2rem !important;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}
.filter-group.search-group {
    flex: 2;
    min-width: 250px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.4rem;
}

.filter-input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    max-width: 100% !important;
    outline: none !important;
    box-sizing: border-box !important;
    height: 38px !important;
}
.filter-input:focus {
    border-color: var(--accent-bright) !important;
    box-shadow: 0 0 8px rgba(192,57,43,0.15) !important;
}

.btn-filter {
    height: 38px !important;
    padding: 0 1.5rem !important;
    border-radius: var(--radius-md) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

.pagination-info {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pagination-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.page-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--border-hover);
    color: var(--text-bright);
    text-decoration: none;
}

.page-btn.active {
    background: rgba(192,57,43,0.2);
    border-color: var(--accent);
    color: var(--accent-bright);
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
    background: var(--bg-modal) !important;
    border: 1px solid var(--border-hover) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-main) !important;
}

.modal-header {
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border) !important;
    padding: 1rem 1.5rem;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1rem;
    color: var(--text-bright);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border) !important;
    background: rgba(0,0,0,0.15);
    padding: 0.75rem 1.5rem;
    gap: 0.5rem;
}

.btn-close {
    filter: invert(1) brightness(0.6);
}
.btn-close:hover { filter: invert(1) brightness(1); }

/* Backdrop */
.modal-backdrop.show { opacity: 0.65; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-navbar);
    border-top: 1px solid var(--border);
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.footer a:hover { color: var(--accent-bright); }

/* ============================================================
   CODE TAGS
   ============================================================ */
code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    color: #a0c4ff;
}

/* ============================================================
   SIDEBAR COLLAPSED STATE (toggled by JS)
   ============================================================ */
.sidebar-collapse .sidebar {
    width: var(--sidebar-collapsed);
}

.sidebar-collapse .sidebar .navbar-brand h5,
.sidebar-collapse .sidebar .nav-item.nav-link span:not(.badge),
.sidebar-collapse .sidebar .nav-item.nav-link > *:not(i):not(.badge),
.sidebar-collapse .sidebar a.nav-item.nav-link > span:not(.badge) {
    display: none;
}

.sidebar-collapse .sidebar .navbar-brand {
    justify-content: center;
    padding: 1.25rem 0;
}

.sidebar-collapse .content {
    margin-left: var(--sidebar-collapsed);
}

.sidebar-collapse .sidebar .nav-item.nav-link,
.sidebar-collapse .sidebar a.nav-item.nav-link {
    justify-content: center;
    padding: 0.75rem;
}

/* ============================================================
   LIVE MONITOR — specific classes
   ============================================================ */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   NOTIFICATION / TOAST (optional)
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-msg {
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toastIn 0.25s ease;
    min-width: 280px;
    max-width: 380px;
}

@keyframes toastIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary   { color: var(--accent-bright) !important; }
.text-muted     { color: var(--text-muted)    !important; }
.text-success   { color: var(--success)       !important; }
.text-warning   { color: var(--warning)       !important; }
.text-danger    { color: var(--danger)        !important; }
.text-info      { color: var(--info)          !important; }

.bg-dark        { background: var(--bg-body)  !important; }
.bg-secondary   { background: var(--bg-card)  !important; }

.border-top     { border-top: 1px solid var(--border) !important; }
.border-bottom  { border-bottom: 1px solid var(--border) !important; }

/* Animated beat (Font Awesome) keep working */
.fa-beat { --fa-animation-duration: 0.9s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.show-mobile {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.6);
    }

    .content {
        margin-left: 0 !important;
    }

    .widgets-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; }

    .main-header h2 { font-size: 1.35rem; }

    .navbar.nvb-dark { padding: 0 1rem; }

    .box_content { padding: 1rem; }

    .pagination-container {
        flex-direction: column;
        align-items: flex-start;
    }

    table.glass-table thead th,
    table.glass-table tbody td {
        padding: 0.6rem 0.7rem;
    }
}

/* ============================================================
   BOOTSTRAP OVERRIDES — keep dark theme consistent
   ============================================================ */
.dropdown-menu.bg-secondary  { background: var(--bg-card) !important; }
.border-0                    { border: none !important; }
.rounded-0                   { border-radius: 0 !important; }
.rounded-bottom              { border-radius: 0 0 var(--radius-md) var(--radius-md) !important; }

/* Ensure Bootstrap text-primary matches our red accent */
.text-primary { color: var(--accent-bright) !important; }

/* ============================================================
   REPORTS PAGE — METRICS GRID
   ============================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
}

.metric-item-card {
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.25rem;
    transition: background var(--transition), box-shadow var(--transition);
}

.metric-item-card:hover {
    background: rgba(0,0,0,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.metric-item-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.metric-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   REPORTS PAGE — WIDGETS LAYOUT (metrics + filter side by side)
   ============================================================ */
.widgets-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
    .widgets-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   REPORTS PAGE — FILTER ROW & FILTER GROUP TABS
   ============================================================ */
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Active filter button state */
.btn-filter.active {
    background: rgba(192,57,43,0.18);
    border-color: rgba(192,57,43,0.45);
    color: var(--accent-bright);
    font-weight: 700;
}

.btn-filter.active:hover {
    background: rgba(192,57,43,0.28);
    color: #fff;
}

/* ============================================================
   REPORTS PAGE — INLINE FORM CONTROL
   ============================================================ */
.form-control-inline {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    padding: 0.55rem 0.9rem;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    height: 38px;
}

.form-control-inline:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-control-inline::placeholder { color: var(--text-faint); }

/* Full-width form control for modals */
.form-control-full {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control-full:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-control-full::placeholder { color: var(--text-faint); }

/* ============================================================
   REPORTS PAGE — TABLE PROFILE CELLS
   ============================================================ */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.steamid-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Inline block (🚫) button next to player name */
.btn-inline-block {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px 3px;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0.35;
    transition: opacity var(--transition), transform var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.btn-inline-block:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* ============================================================
   REPORTS PAGE — STATUS BADGES
   ============================================================ */
.report-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.22rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

.report-status-badge.pending {
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.28);
    color: #fc8f87;
}

.report-status-badge.claimed {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    color: var(--warning);
}

.report-status-badge.resolved {
    background: rgba(39,201,122,0.1);
    border: 1px solid rgba(39,201,122,0.25);
    color: var(--success);
}

/* ============================================================
   REPORTS PAGE — ACTION BUTTONS ROW
   ============================================================ */
.btn-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.32rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition);
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
    color: var(--text-muted);
}

/* Claim — blue */
.btn-action.claim {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.28);
    color: #60a5fa;
}
.btn-action.claim:hover {
    background: rgba(59,130,246,0.22);
    border-color: rgba(59,130,246,0.5);
    color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(59,130,246,0.2);
}

/* Resolve — green */
.btn-action.resolve {
    background: rgba(39,201,122,0.1);
    border-color: rgba(39,201,122,0.28);
    color: var(--success);
}
.btn-action.resolve:hover {
    background: rgba(39,201,122,0.2);
    border-color: var(--success);
    color: #4ade80;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(39,201,122,0.2);
}

/* Ban — red */
.btn-action.ban {
    background: rgba(192,57,43,0.1);
    border-color: rgba(192,57,43,0.28);
    color: var(--accent-bright);
}
.btn-action.ban:hover {
    background: rgba(192,57,43,0.22);
    border-color: var(--accent-bright);
    color: #ff8a80;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px var(--accent-glow);
    text-decoration: none;
}

/* Delete — ghost danger */
.btn-action.delete {
    background: rgba(231,76,60,0.05);
    border-color: rgba(231,76,60,0.15);
    color: rgba(231,76,60,0.55);
    padding: 0.32rem 0.55rem;
}
.btn-action.delete:hover {
    background: rgba(231,76,60,0.15);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-1px);
}

/* ============================================================
   REPORTS PAGE — CUSTOM MODAL (Block Player)
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: backdropFadeIn 0.2s ease;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
    width: 100%;
    max-width: 460px;
    animation: modalSlideIn 0.22s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: translateY(-20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);        opacity: 1; }
}

.modal-card .modal-header {
    background: rgba(192,57,43,0.08);
    border-bottom: 1px solid rgba(192,57,43,0.2);
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-card .modal-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-bright);
    margin: 0;
}

.close-modal-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    padding: 0;
}

.close-modal-btn:hover {
    background: rgba(231,76,60,0.15);
    border-color: rgba(231,76,60,0.35);
    color: var(--danger);
}

.modal-card form {
    padding: 1.4rem;
}

.modal-card .form-group label {
    display: block;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ============================================================
   PLAYERS PAGE — GLASSMORPHIC STAT CARDS
   ============================================================ */
.players-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

@media (max-width: 900px) { .players-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .players-stat-grid { grid-template-columns: 1fr; } }

.players-stat-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.players-stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.psc-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.psc-icon-wrap.blue   { background: rgba(59,130,246,0.12);  color: #60a5fa;  border: 1px solid rgba(59,130,246,0.2); }
.psc-icon-wrap.green  { background: rgba(39,201,122,0.12);  color: var(--success); border: 1px solid rgba(39,201,122,0.2); }
.psc-icon-wrap.red    { background: rgba(192,57,43,0.12);   color: var(--accent-bright); border: 1px solid rgba(192,57,43,0.22); }
.psc-icon-wrap.danger { background: rgba(231,76,60,0.12);   color: var(--danger); border: 1px solid rgba(231,76,60,0.2); }

.psc-body { flex: 1; min-width: 0; }

.psc-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.psc-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.psc-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* Ambient glow orb */
.psc-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: -20px;
    right: -20px;
    opacity: 0.12;
    pointer-events: none;
}
.psc-glow.blue   { background: radial-gradient(circle, #3b82f6, transparent); }
.psc-glow.green  { background: radial-gradient(circle, #27c97a, transparent); }
.psc-glow.red    { background: radial-gradient(circle, var(--accent-bright), transparent); }
.psc-glow.danger { background: radial-gradient(circle, var(--danger), transparent); }

/* Steam ratio progress */
.psc-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.04);
}
.psc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 0 2px 2px 0;
    transition: width 0.8s ease;
}

/* ============================================================
   PLAYERS PAGE — PILL TAB NAVIGATION
   ============================================================ */
.players-tab-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.players-tab-pills {
    display: flex;
    gap: 0.4rem;
}

.players-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    margin-bottom: -1px;
}

.players-tab-pill i { font-size: 0.85rem; }

.players-tab-pill:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-bright);
}

.players-tab-pill.active {
    background: rgba(192,57,43,0.1);
    border-color: var(--border-red);
    border-bottom-color: var(--bg-card);
    color: var(--accent-bright);
    font-weight: 700;
}

.players-tab-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
}

/* Tab panels */
.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
    animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PLAYERS PAGE — SEARCH BAR
   ============================================================ */
.players-search-bar {
    margin-bottom: 1.2rem;
    padding: 0.9rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(192,57,43,0.12);
    border-radius: var(--radius-md);
}

.players-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 420px;
}

.players-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.players-search-input {
    width: 100%;
    padding: 0.58rem 0.9rem 0.58rem 2.4rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.players-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.players-search-input::placeholder { color: var(--text-faint); }

/* ============================================================
   PLAYERS PAGE — TABLE PLAYER CELL
   ============================================================ */
.player-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-dim), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.player-avatar.avatar-online {
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(39,201,122,0.35);
}

.player-cell-info {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.player-cell-name {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live online badge with pulse dot */
.player-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.online-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(39,201,122,0.5);
    animation: pulseRing 1.5s ease-out infinite;
    flex-shrink: 0;
}

@keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(39,201,122,0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(39,201,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,201,122,0); }
}

.player-lastseen {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Sessions count badge */
.sessions-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Steam status pills */
.steam-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.steam-status-badge.original {
    background: rgba(39,201,122,0.1);
    border: 1px solid rgba(39,201,122,0.25);
    color: var(--success);
}

.steam-status-badge.pirate {
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.2);
    color: var(--danger);
}

/* Search/filter buttons for players page */
.btn-filter-custom {
    background: rgba(192,57,43,0.08);
    border: 1px solid rgba(192,57,43,0.3);
    color: var(--accent-bright);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.btn-filter-custom:hover {
    background: rgba(192,57,43,0.2);
    border-color: var(--accent-bright);
    color: #fff;
    box-shadow: 0 0 12px rgba(192,57,43,0.25);
}

.btn-filter-custom.clear {
    background: rgba(255,255,255,0.03);
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-filter-custom.clear:hover {
    background: rgba(255,255,255,0.07);
    color: var(--text-bright);
    border-color: var(--border-hover);
}

/* ============================================================
   PLAYERS PAGE — LEADERBOARD PANELS
   ============================================================ */
.lb-intro-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(192,57,43,0.05);
    border: 1px solid rgba(192,57,43,0.12);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.lb-intro-icon { font-size: 2rem; flex-shrink: 0; }

.lb-intro-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.lb-intro-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Side-by-side grid */
.lb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1000px) { .lb-grid { grid-template-columns: 1fr; } }

/* Each leaderboard panel card */
.lb-panel {
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Panel header */
.lb-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border);
}

.lb-panel-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.lb-panel-icon.admin  { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }
.lb-panel-icon.player { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.2); }

.lb-panel-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.lb-panel-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.lb-panel-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Each leaderboard row */
.lb-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background var(--transition);
}

.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(255,255,255,0.025); }

.lb-row-top { background: rgba(245,158,11,0.025); }
.lb-row-first { background: rgba(245,158,11,0.05) !important; }

/* Rank cell */
.lb-rank {
    width: 34px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.lb-rank.lb-rank-gold   { color: #f59e0b; text-shadow: 0 0 12px rgba(245,158,11,0.4); }
.lb-rank.lb-rank-silver { color: #94a3b8; }
.lb-rank.lb-rank-bronze { color: #cd7c50; }
.lb-rank.lb-rank-plain  { font-size: 0.75rem; color: var(--text-muted); }

/* Player info area */
.lb-player-info {
    flex: 1;
    min-width: 0;
}

.lb-player-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.15rem;
}

.lb-player-steamid {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress bar */
.lb-progress-bar-wrap {
    height: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
    overflow: hidden;
}

.lb-progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
}

/* Times column */
.lb-times {
    text-align: right;
    flex-shrink: 0;
}

.lb-time-total {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.2rem;
}

.lb-time-meta {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.lb-time-meta i { font-size: 0.6rem; }

/* Empty state */
.lb-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.lb-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
    display: block;
}

.lb-empty p { font-size: 0.85rem; margin: 0; }

/* ============================================================
   GAGS PANEL COMPONENT STYLES
   ============================================================ */

/* Action trigger button (e.g. Gag, Audit Log, etc.) */
.btn-action-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.btn-action-trigger i {
    font-size: 0.75rem;
}

.btn-action-trigger:hover {
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.25);
    color: var(--pink-accent);
    transform: translateY(-1px);
}

.btn-action-trigger:active {
    transform: translateY(0);
}

/* Success lift (ungag) button */
.btn-lift.btn-lift-success {
    background: rgba(39, 201, 122, 0.08);
    border: 1px solid rgba(39, 201, 122, 0.25);
    color: var(--success);
}

.btn-lift.btn-lift-success:hover {
    background: rgba(39, 201, 122, 0.18);
    border-color: var(--success);
}

/* Audit log timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    margin-top: 1rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pink-accent);
    border: 2px solid var(--bg-modal);
    box-shadow: 0 0 8px var(--pink-accent);
}

.timeline-dot.lifted {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.timeline-desc {
    font-size: 0.82rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    margin-top: 0.4rem;
}

.timeline-desc.lifted {
    border-color: rgba(39, 201, 122, 0.15);
    background: rgba(39, 201, 122, 0.02) !important;
}

/* ============================================================
   LIVE MONITOR PAGE COMPONENT STYLES
   ============================================================ */

/* 1. Server Selector Card */
.server-dropdown-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 250px;
}

.server-dropdown-card label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.server-select {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    transition: all var(--transition);
    cursor: pointer;
}

.server-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

/* 2. Player Row Card Elements */
.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: background var(--transition);
}

.player-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.player-row:last-child {
    border-bottom: none;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.player-slot {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    width: 16px;
    text-align: right;
}

.player-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.player-name {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.player-weapon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.1rem;
}

.player-weapon-img {
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.player-weapon-icon {
    font-size: 0.78rem;
}

.player-dead-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--danger);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.player-dead-skull {
    height: 11px;
    filter: invert(1);
    opacity: 0.75;
}

.player-zone-row {
    margin-top: 0.2rem;
}

.player-zone-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.player-zone-badge.known {
    background: rgba(192, 132, 252, 0.08);
    border-color: rgba(192, 132, 252, 0.25);
    color: var(--pink-accent);
}

.player-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.player-health-bar-container {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.player-health-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.player-stats {
    display: flex;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-width: 45px;
    justify-content: flex-end;
}

.player-stats-kills {
    font-weight: 700;
    color: var(--text-bright);
}

.player-ping {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 48px;
    text-align: right;
}

.player-ping.good { color: var(--success); }
.player-ping.medium { color: var(--warning); }
.player-ping.bad { color: var(--danger); }

/* Spectator badges */
.spec-player-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.spec-player-ping {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* 3. RCON Terminal Console styling */
.rcon-server-row {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.rcon-server-select {
    background: var(--bg-body);
    border: 1px solid var(--border-input);
    border-radius: 4px;
    color: var(--text-main);
    outline: none;
    font-weight: 600;
}

.rcon-terminal {
    background: #06070a;
    border: 1px solid rgba(192, 57, 43, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(192, 57, 43, 0.02);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--font-mono);
}

.rcon-title-bar {
    background: #0f1016;
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rcon-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.rcon-dot.red { background: #ef4444; }
.rcon-dot.yellow { background: #f59e0b; }
.rcon-dot.green { background: #10b981; }

.rcon-title-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.rcon-output {
    padding: 0.8rem 1rem;
    overflow-y: auto;
    font-size: 0.78rem;
    line-height: 1.45;
    white-space: pre-wrap;
    display: flex;
    flex-direction: column;
}

.console-line {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.console-time {
    color: var(--text-faint);
    font-weight: 500;
}

.console-chat-all {
    color: #c084fc;
    font-weight: 700;
}

.console-chat-team {
    color: #fbbf24;
    font-weight: 700;
}

.console-action-sys {
    color: var(--success);
    font-weight: 600;
}

.console-action-alert {
    color: var(--danger);
    font-weight: 700;
}

.rcon-line-sys {
    color: var(--text-muted);
}

.rcon-line-cmd {
    color: var(--pink-accent);
    font-weight: 700;
}

.rcon-line-err {
    color: var(--danger);
    font-weight: 600;
}

.rcon-line-ok {
    color: #38bdf8;
}

.rcon-input-bar {
    background: #090a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rcon-prompt {
    font-size: 0.78rem;
    color: var(--success);
    font-weight: 700;
    white-space: nowrap;
}

.rcon-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    flex: 1;
}

.rcon-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

.rcon-send-btn {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rcon-send-btn:hover {
    background: rgba(192, 57, 43, 0.2);
    border-color: var(--accent-bright);
}

/* 4. Live Server Chat Feed styling */
.live-chat-body {
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-msg-row {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color var(--transition);
}

.chat-msg-row:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.chat-msg-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chat-badge {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.chat-badge.ct {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.chat-badge.t {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.25);
    color: #f97316;
}

.chat-badge.spec {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.chat-badge.web {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.25);
    color: var(--pink-accent);
}

.chat-badge.dead {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.chat-badge.team {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.25);
    color: #eab308;
}

.chat-msg-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-bright);
}

.chat-msg-time {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-left: auto;
}

.chat-msg-text {
    font-size: 0.85rem;
    color: var(--text-main);
    word-break: break-word;
}

/* 5. Radar Map Overview viewport & players overlay */
.radar-viewport {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #0b0c0f;
}

.radar-player-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: left 0.3s ease, top 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

.radar-player-dot.ct.alive {
    background: #38bdf8;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

.radar-player-dot.t.alive {
    background: #f97316;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
}

.radar-player-dot.dead {
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    width: 10px;
    height: 10px;
    z-index: 5;
    box-shadow: none;
}

.radar-player-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 800;
    color: #000;
    pointer-events: none;
}

.radar-player-dot.dead .radar-player-label {
    display: none;
}

.radar-player-tooltip {
    display: none;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #141720;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
}

.radar-player-dot:hover .radar-player-tooltip {
    display: block;
}

/* ============================================================
   GROUPS & FLAGS PAGE COMPONENT STYLES
   ============================================================ */

/* Group Priority Level Badge */
.group-priority-badge {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: var(--accent-bright);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* Group AMX Access Flags tag */
.group-flags-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    word-break: break-all;
}

/* Web Permissions badge items */
.group-perms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.group-perms-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* AMXX Flags reference helper guide */
.flags-guide-container {
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}

.flags-guide-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.4rem;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
}

.flag-item {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.flag-letter {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-bright);
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-radius: 3px;
    padding: 0.02rem 0.25rem;
    font-size: 0.72rem;
    line-height: 1;
    display: inline-block;
    flex-shrink: 0;
}

/* Standard Permissions checkbox chip grid selector */
.permissions-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
}

.permission-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.permission-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.08);
}

.permission-checkbox-label.active {
    background: rgba(192, 57, 43, 0.06);
    border-color: rgba(192, 57, 43, 0.28);
    color: var(--text-bright);
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.05);
}

.permission-checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

/* Custom groups layout column ratios */
.widgets-layout.groups-layout {
    grid-template-columns: 1.3fr 1fr;
}

@media (max-width: 1200px) {
    .widgets-layout.groups-layout {
        grid-template-columns: 1fr;
    }
}

/* Make form labels inside form-group consistent and premium */
.form-group > label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

/* Glassmorphic backdrop filter and subtle border highlights for the flags guide */
.flags-guide-container {
    margin-top: 0.75rem;
    background: rgba(20, 23, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
}

/* Custom scrollbars for the flags grid */
.flags-grid::-webkit-scrollbar {
    width: 6px;
}
.flags-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
}
.flags-grid::-webkit-scrollbar-thumb {
    background: rgba(192, 57, 43, 0.35);
    border-radius: 3px;
}
.flags-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 57, 43, 0.6);
}

/* ============================================================
   SYSTEM SETTINGS PAGE COMPONENT STYLES
   ============================================================ */

/* 2-column symmetric configuration grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* Helper text below input fields */
.form-help {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-weight: 500;
}

/* Save button wrapper at footer */
.settings-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-footer .btn-submit {
    width: auto;
    min-width: 240px;
    padding: 0.8rem 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   WEB USERS PAGE COMPONENT STYLES
   ============================================================ */

/* 2-column layout */
.widgets-layout.web-users-layout {
    grid-template-columns: 1.35fr 1fr;
}

@media (max-width: 1200px) {
    .widgets-layout.web-users-layout {
        grid-template-columns: 1fr;
    }
}

/* User avatar */
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.22);
    color: var(--accent-bright);
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* User identity details */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-meta-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.2;
}

.user-meta-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Security role badges */
.role-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}
.role-badge.super {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: var(--accent-bright);
}
.role-badge.admin {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}
.role-badge.mod {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
}
.role-badge.spec {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}
.role-badge.user {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

/* Active/Suspended status indicator dot */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-dot.active {
    color: var(--success);
}
.status-dot.active::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.status-dot.suspended {
    color: #f87171;
}
.status-dot.suspended::before {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

/* Approve / Reject pending user buttons */
.btn-approve {
    background: rgba(39, 201, 122, 0.1);
    border: 1px solid rgba(39, 201, 122, 0.25);
    color: var(--success);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-approve:hover {
    background: rgba(39, 201, 122, 0.2);
    border-color: var(--success);
    color: #fff;
    box-shadow: 0 0 10px rgba(39, 201, 122, 0.25);
}

.btn-reject {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: var(--accent-bright);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-reject:hover {
    background: rgba(192, 57, 43, 0.2);
    border-color: var(--accent-bright);
    color: #fff;
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.25);
}

/* Edit / Delete action icons in table */
.actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}
.actions-cell .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.75rem;
}
.actions-cell .btn-icon:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}
.actions-cell .btn-icon.delete:hover {
    background: rgba(192, 57, 43, 0.15);
    border-color: rgba(192, 57, 43, 0.35);
    color: var(--accent-bright);
}

/* Edit mode cancel button */
.btn-cancel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--transition);
    cursor: pointer;
    vertical-align: middle;
}
.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    text-decoration: none;
}

/* ============================================================
   INTEGRATIONS HUB PAGE COMPONENT STYLES
   ============================================================ */

/* 2-column layout */
.integrations-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .integrations-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom design for test buttons inside input groups */
.input-group .btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-input) !important;
    border-left: none !important;
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 0 1.25rem !important;
    transition: all var(--transition) !important;
    box-shadow: none !important;
}

.input-group .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
}

.input-group .btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Code pills & Copy credential button */
.code-pill {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--text-bright);
}

.copy-key-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-key-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* Interactive Tabs */
.tabs-header {
    display: flex;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.55rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.28);
    color: #fff;
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.08);
}

@media (max-width: 768px) {
    .tabs-header {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    .tab-btn {
        flex: 1 1 calc(50% - 0.2rem);
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Documentation Sections */
.doc-section {
    display: none;
}

.doc-section.active {
    display: block;
    animation: fadeIn 0.35s ease-out;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.badge-method {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.badge-method.get {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.badge-method.post {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.doc-url {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-bright);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.doc-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Documentation Code Box Card */
.code-box-container {
    background: rgba(20, 23, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-code-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.copy-code-btn:hover {
    color: var(--text-main);
}

.code-box-content {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #e2e8f0;
    padding: 0.85rem;
    white-space: pre-wrap;
    word-break: break-all;
    background: #0f111a;
}

/* Webhook Test Loader spinner */
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.25rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   PANEL MOBILE SIDEBAR & TABLE RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 992px) {
    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 30px rgba(0,0,0,0.6) !important;
    }
}
@media (max-width: 768px) {
    .box_content {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
