/**
 * ==============================================================================
 * Project: Electron Anticheat UI Theme & FiveM WebRTC Surveillance
 * File: external-web-client/style.css
 * Description: Exact 1:1 Styling replica of Electron Anticheat Demo & Monitoring
 * ==============================================================================
 */

:root {
    --bg-main: #020817;
    --bg-surface: #0b1220;
    --bg-card: #070d18;
    --bg-card-hover: #0e172a;
    --border-color: #1e293b;
    --border-light: rgba(255, 255, 255, 0.08);
    
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --primary-bg: #172554;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
    
    --sidebar-width: 240px;
    --players-width: 270px;
    --topbar-height: 48px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    color: inherit;
    outline: none;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* -------------------------------------------------------------------------- */
/* Main Layout Containers                                                     */
/* -------------------------------------------------------------------------- */
.electron-layout {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    position: relative;
    overflow: hidden;
}

/* Top Sticky Banner Bar */
.top-banner-bar {
    height: var(--topbar-height);
    background: rgba(2, 8, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
    position: relative;
}

.top-toggle-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.15s;
}
.top-toggle-btn:hover {
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}

/* Center Floating Pill */
.banner-center-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.4) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 4px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.banner-pill-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.sparkles-icon {
    color: #60a5fa;
}
.badge-demo {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}
.banner-text {
    color: var(--text-main);
    font-weight: 500;
}

.banner-tabs {
    display: flex;
    background: #0b1220;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2px;
}
.banner-tab-btn {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.15s;
}
.banner-tab-btn.active {
    background: #1e293b;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.connection-status-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}
.connection-status-dot.offline .status-indicator {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

/* -------------------------------------------------------------------------- */
/* Electron Body (Sidebar + Content Stage)                                     */
/* -------------------------------------------------------------------------- */
.electron-body {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--topbar-height));
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Left Sidebar Navigation (Electron AC Style)                                 */
/* -------------------------------------------------------------------------- */
.electron-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-main);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

.electron-sidebar.collapsed {
    width: 60px;
}
.electron-sidebar.collapsed .server-name,
.electron-sidebar.collapsed .chevrons-icon,
.electron-sidebar.collapsed .sidebar-search-wrap,
.electron-sidebar.collapsed .nav-item span,
.electron-sidebar.collapsed .nav-group-trigger span,
.electron-sidebar.collapsed .group-chevron,
.electron-sidebar.collapsed .nav-sub-list,
.electron-sidebar.collapsed .pulse-tag,
.electron-sidebar.collapsed .subnav-count {
    display: none !important;
}
.electron-sidebar.collapsed .server-selector-btn {
    justify-content: center;
    padding: 0;
}
.electron-sidebar.collapsed .nav-link,
.electron-sidebar.collapsed .nav-group-trigger {
    justify-content: center;
    padding: 10px 0;
}

/* Sidebar Server Header */
.sidebar-header {
    padding: 10px;
}
.server-selector-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 10px;
    background-color: var(--bg-surface);
    transition: background 0.15s, border-color 0.15s;
}
.server-selector-btn:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}
.server-icon-wrap {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #070d18;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.server-name {
    font-weight: 600;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chevrons-icon {
    color: var(--text-dim);
}

/* Sidebar Search Box */
.sidebar-search-wrap {
    padding: 0 10px 10px 10px;
}
.sidebar-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 10px;
    height: 32px;
    color: var(--text-muted);
}
.sidebar-search-box input {
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--text-main);
    width: 100%;
}
.sidebar-search-box input::placeholder {
    color: var(--text-dim);
}

/* Sidebar Navigation Items */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
}
.sidebar-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}
.nav-link.active {
    background: var(--primary-bg);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Nav Collapsible Group */
.nav-group-trigger {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-group-trigger:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}
.group-chevron {
    margin-left: auto;
    color: var(--text-dim);
    transition: transform 0.2s;
}
.nav-group.expanded .group-chevron {
    transform: rotate(180deg);
}

.nav-sub-list {
    list-style: none;
    margin-left: 18px;
    padding-left: 8px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
    margin-bottom: 6px;
}
.nav-group:not(.expanded) .nav-sub-list {
    display: none;
}

.nav-sub-link {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
}
.nav-sub-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}
.nav-sub-link.active {
    background: var(--primary-bg);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
}

.pulse-tag {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    background: #3b82f6;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.subnav-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background: #1e293b;
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 9999px;
}

/* Sidebar Footer & User Profile Widget */
.sidebar-footer {
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
}

.sidebar-user-profile:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.user-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.sidebar-user-profile:hover .user-avatar-img {
    transform: scale(1.03);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    gap: 1px;
}

.user-display-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.user-email-text {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.sidebar-user-profile:hover .user-chevron {
    color: var(--text-main);
}

.electron-sidebar.collapsed .sidebar-user-profile {
    justify-content: center;
    padding: 6px 0;
    border: none;
    background: transparent;
}

.electron-sidebar.collapsed .user-info-text,
.electron-sidebar.collapsed .user-chevron {
    display: none !important;
}

.footer-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3px;
}
.footer-icon-btn {
    flex: 1;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.footer-icon-btn:hover {
    background: #1e293b;
    color: var(--text-main);
}

/* -------------------------------------------------------------------------- */
/* Main Content View Container                                                */
/* -------------------------------------------------------------------------- */
.electron-main {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

.main-view {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* -------------------------------------------------------------------------- */
/* VIEW A: ELECTRON AC MONITORING STAGE (3 COLUMNS)                            */
/* -------------------------------------------------------------------------- */
.monitoring-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Center Video Stage */
.monitoring-stage {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #020817;
    position: relative;
}

/* Dynamic Multi-Feed Video Grid */
.monitoring-grid {
    flex: 1;
    display: grid;
    gap: 6px;
    padding: 8px 12px;
    overflow: hidden;
    height: calc(100% - 50px);
}

/* Grid Presets matching Electron AC */
.monitoring-grid.grid-9 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.monitoring-grid.grid-16 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
}
.monitoring-grid.grid-25 {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
}
.monitoring-grid.grid-36 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

/* Single Slot / Cell Card */
.monitoring-slot {
    background: #040813;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    user-select: none;
}
.monitoring-slot:hover {
    border-color: rgba(59, 130, 246, 0.6);
}
.monitoring-slot.active-feed {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

/* Slot Video Feed & Canvas Fallback */
.monitoring-slot video,
.monitoring-slot .stream-feed-img,
.monitoring-slot .slot-surveillance-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020611;
    display: block;
}

/* Slot Idle Placeholder */
.slot-placeholder-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: radial-gradient(circle at center, #0a1122 0%, #030712 100%);
    color: var(--text-dim);
}
.slot-placeholder-card .idle-icon {
    opacity: 0.35;
    transition: opacity 0.2s, transform 0.2s;
}
.slot-placeholder-card:hover .idle-icon {
    opacity: 0.7;
    transform: scale(1.05);
}
.slot-placeholder-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}
.slot-assign-hint {
    font-size: 11px;
    color: var(--text-dim);
}

/* Slot Floating Header Overlay (Exact Electron AC Style) */
.slot-header-pill {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}

.slot-tag-left {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(2, 8, 23, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    max-width: calc(100% - 35px);
}

.slot-id-badge {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
}
.slot-player-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slot-status-icon {
    width: 14px;
    height: 14px;
    color: #3b82f6;
    flex-shrink: 0;
}

.slot-action-btn {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 8, 23, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.15s;
}
.slot-action-btn:hover {
    background: #1e293b;
    color: #fff;
    border-color: #3b82f6;
}

/* Slot Telemetry Mini Chip */
.slot-telemetry-chip {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(2, 8, 23, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #10b981;
    z-index: 10;
}

/* Monitoring Bottom Controls Bar */
.monitoring-bottom-bar {
    height: 50px;
    background: #020817;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
}

.bottom-controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.grid-presets-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.preset-btn {
    width: 34px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preset-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: #0e172a;
}
.preset-btn.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary-bg);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.audio-mute-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.audio-mute-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}
.audio-mute-btn.active, .audio-mute-btn.unmuted {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.action-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 2px;
}
.action-menu-item.sound-active {
    color: #10b981 !important;
}

.btn-audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.slot-audio-badge {
    margin-left: auto;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.15s;
    color: var(--text-dim);
}
.slot-audio-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.slot-audio-badge.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.18);
}

.bottom-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.fullscreen-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.fullscreen-btn:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

/* View Selector Dropdown */
.view-selector-dropdown {
    position: relative;
}
.view-select-btn {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}
.view-select-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.view-select-menu {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 170px;
    background: #0b1220;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.view-menu-item {
    width: 100%;
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.15s;
}
.view-menu-item:hover {
    background: #1e293b;
    color: #fff;
}
.view-menu-item.active {
    background: var(--primary-bg);
    color: #60a5fa;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* Right Sidebar: Players List (Exact Electron AC Style)                      */
/* -------------------------------------------------------------------------- */
.electron-players-sidebar {
    width: var(--players-width);
    height: 100%;
    background: #020817;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.players-sidebar-search {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    height: 34px;
}
.players-sidebar-search input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 13px;
    color: var(--text-main);
}
.players-sidebar-search input::placeholder {
    color: var(--text-dim);
}

.players-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 8px 8px 8px;
}
.players-card-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Player List Item Card */
.player-list-card {
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.player-list-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.4);
}
.player-list-card.active-spectating {
    border-color: #3b82f6;
    background: #0f1c38;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.player-id-pill {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-muted);
}
.player-list-card.active-spectating .player-id-pill {
    background: #172554;
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.player-card-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.player-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
}
.card-quick-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.6;
}
.player-list-card:hover .card-quick-btn {
    opacity: 1;
}
.card-quick-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.1);
}
.badge-stream-active {
    color: #3b82f6;
}
.badge-threat-shield {
    color: #f59e0b;
}

.players-sidebar-footer {
    padding: 10px 8px;
    border-top: 1px solid var(--border-color);
}
.footer-view-dropdown-btn {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* VIEW B & C: DASHBOARD & BANS SECTIONS                                       */
/* -------------------------------------------------------------------------- */
.dashboard-inner-container,
.bans-inner-container {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
}

.panel-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.hero-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}
.hero-text p {
    color: var(--text-muted);
    font-size: 13.5px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}
.kpi-value-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}
.kpi-total {
    color: var(--text-dim);
    font-size: 14px;
}
.kpi-progress-bar {
    height: 5px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}
.kpi-progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
}
.kpi-subtext {
    font-size: 12px;
    color: var(--text-dim);
}
.kpi-chips-wrap {
    display: flex;
    gap: 6px;
}
.mini-chip {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.chip-perm { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.chip-temp { background: rgba(245, 158, 11, 0.15); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Ban Cause Styles */
.ban-cause-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.ban-cause-title {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.ban-cause-title i {
    color: #ef4444;
    font-size: 11px;
}
.ban-cause-detail {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    max-width: 440px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Split Layout */
.dashboard-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.dashboard-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.panel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.panel-section-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.section-badge {
    background: #1e293b;
    color: var(--text-muted);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 9999px;
}

.quick-actions-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.quick-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #070d18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.qa-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.qa-blue { background: rgba(59, 130, 246, 0.15); }
.qa-red { background: rgba(239, 68, 68, 0.15); }
.qa-amber { background: rgba(245, 158, 11, 0.15); }
.qa-info h4 { font-size: 13.5px; font-weight: 600; color: #fff; }
.qa-info p { font-size: 12px; color: var(--text-muted); }
.quick-action-row button { margin-left: auto; }

.server-telemetry-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #070d18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 12.5px;
}
.telemetry-row {
    display: flex;
    justify-content: space-between;
}
.telemetry-label { color: var(--text-muted); }
.telemetry-val { font-weight: 500; font-family: var(--font-mono); }

/* Bans Table Card */
.directory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 12px;
    height: 38px;
    flex: 1;
    max-width: 480px;
    color: var(--text-muted);
}
.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
}
.filter-chips-group {
    display: flex;
    gap: 6px;
}
.filter-chip {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}
.filter-chip.active {
    background: var(--primary-bg);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.bans-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.bans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bans-table th {
    text-align: left;
    padding: 12px 16px;
    background: #070d18;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.bans-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
.bans-table tr:hover td {
    background: #0e172a;
}
.text-right { text-align: right; }

/* Empty State (Centered Perfectly) */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.empty-state .empty-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-state h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main, #f8fafc);
    margin: 0 0 6px 0;
    text-align: center;
}
.empty-state p {
    font-size: 13px;
    color: var(--text-dim, #94a3b8);
    margin: 0;
    max-width: 460px;
    text-align: center;
    line-height: 1.5;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #1e293b; color: #f8fafc; border: 1px solid rgba(255, 255, 255, 0.08); }
.btn-secondary:hover { background: #334155; }
.btn-crimson { background: #dc2626; color: #fff; }
.btn-crimson:hover { background: #b91c1c; }
.btn-amber { background: #d97706; color: #fff; }
.btn-amber:hover { background: #b45309; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #10b981; color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* -------------------------------------------------------------------------- */
/* Modals & Popovers                                                          */
/* -------------------------------------------------------------------------- */
.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;
    z-index: 200;
}
.modal-card {
    width: 100%;
    max-width: 500px;
    background: #0b1220;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-footer {
    padding: 14px 20px;
    background: #070d18;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}
.form-group input,
.form-group select {
    background: #070d18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: #fff;
    font-size: 13.5px;
}
.quick-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.reason-chip {
    background: #1e293b;
    color: var(--text-muted);
    font-size: 11.5px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.reason-chip:hover {
    background: #334155;
    color: #fff;
}
.close-btn {
    font-size: 20px;
    color: var(--text-dim);
}
.close-btn:hover { color: #fff; }

/* Slot Action Popover (Anchored to 3-dots) */
.slot-action-popover {
    position: fixed;
    background: #0b1220;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 190px;
}
.action-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 13px;
    text-align: left;
    transition: all 0.15s;
}
.action-menu-item:hover {
    background: #1e293b;
    color: #fff;
}
.action-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 3px 0;
}
.text-amber { color: #f59e0b !important; }
.text-crimson { color: #ef4444 !important; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}
.toast {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: slideIn 0.2s ease-out;
}
.toast.toast-success { border-color: var(--success); }
.toast.toast-error { border-color: var(--danger); }
.toast.toast-info { border-color: var(--primary); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Solo Theater View */
.theater-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #020817;
}
.stream-header-bar {
    height: 50px;
    background: #070d18;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.stream-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.target-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.target-id-badge {
    background: #1e293b;
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 11.5px;
    padding: 2px 6px;
    border-radius: 4px;
}
.live-pill {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 9999px;
}
.stream-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.theater-stage {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.theater-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.theater-video-container video,
.theater-video-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.telemetry-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(2, 8, 23, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    z-index: 30;
}
.hud-val { color: #fff; font-weight: 600; }
.hud-val.text-green, .telemetry-hud .text-green { color: #10b981 !important; }
.hud-val.text-yellow, .telemetry-hud .text-yellow { color: #f59e0b !important; }
.hud-val.text-red, .telemetry-hud .text-red { color: #ef4444 !important; }

/* -------------------------------------------------------------------------- */
/* Stream Loading Overlay & Spinners (FLUX Loading)                           */
/* -------------------------------------------------------------------------- */
.stream-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.90);
    backdrop-filter: blur(8px);
    z-index: 25;
    text-align: center;
    padding: 24px;
    gap: 14px;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: streamSpinner 0.8s linear infinite;
}

.spinner-sm {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(59, 130, 246, 0.25);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: streamSpinner 0.8s linear infinite;
}

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

.stream-overlay h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    letter-spacing: 0.2px;
}

.stream-overlay p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Slot Loading Overlay (Grid Multi-Monitoring) */
.slot-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(3, 8, 22, 0.80);
    backdrop-filter: blur(4px);
    z-index: 10;
    pointer-events: none;
}

.slot-loading-text {
    font-size: 11.5px;
    font-family: var(--font-mono, monospace);
    color: #93c5fd;
    letter-spacing: 0.3px;
}

/* ==============================================================================
   LOGS & SECURITY TELEMETRY FEED (WaveShield Style)
   ============================================================================== */
.logs-inner-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 32px;
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
    animation: fadeIn 0.25s ease-out;
}

.logs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logs-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip-explosions.active {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}

.chip-weapons.active {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
    color: #fdba74 !important;
}

.chip-entities.active {
    background: rgba(234, 179, 8, 0.2) !important;
    border-color: #eab308 !important;
    color: #fde047 !important;
}

.chip-connections.active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #6ee7b7 !important;
}

.chip-detections.active {
    background: rgba(236, 72, 153, 0.2) !important;
    border-color: #ec4899 !important;
    color: #f472b6 !important;
}

.live-indicator-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    margin-right: 6px;
    animation: pulseGlow 1.5s infinite;
}

.logs-feed-card {
    background: rgba(13, 19, 36, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.logs-feed-container {
    overflow-y: auto;
    max-height: calc(100vh - 340px);
    padding-right: 6px;
}

.logs-feed-container::-webkit-scrollbar {
    width: 6px;
}

.logs-feed-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.logs-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Telemetry Card */
.telemetry-card {
    background: rgba(18, 25, 46, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.telemetry-card:hover {
    background: rgba(22, 32, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.telemetry-card.card-type-EXPLOSION {
    border-left-color: #ef4444;
}

.telemetry-card.card-type-WEAPON {
    border-left-color: #f97316;
}

.telemetry-card.card-type-ENTITY_CREATE {
    border-left-color: #eab308;
}

.telemetry-card.card-type-CONNECTION {
    border-left-color: #10b981;
}

.telemetry-card.card-type-DETECTION,
.telemetry-card.card-type-BAN {
    border-left-color: #ec4899;
}

.telemetry-card.card-type-UNBAN {
    border-left-color: #38bdf8;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-time {
    font-family: var(--font-mono, monospace);
    font-size: 11.5px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.card-type-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-type-badge.badge-explosion {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.card-type-badge.badge-weapon {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.card-type-badge.badge-entity {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.card-type-badge.badge-connection {
    background: rgba(16, 185, 129, 0.2);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.card-type-badge.badge-detection {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.4);
}

.card-type-badge.badge-ban {
    background: rgba(220, 38, 38, 0.25);
    color: #fca5a5;
    border: 1px solid #ef4444;
}

.card-player-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-player-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.card-player-id {
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 1px 5px;
    border-radius: 4px;
}

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

.btn-card-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-spectate-log {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.35);
}

.btn-spectate-log:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.btn-ban-log {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-ban-log:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-copy-log {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.btn-copy-log:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.card-body-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.card-details-text {
    color: #e2e8f0;
    line-height: 1.4;
}

.card-coords-pill {
    font-family: var(--font-mono, monospace);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 7px;
    border-radius: 4px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modal-purple .modal-header {
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

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

/* ==============================================================================
 * ANTICHEAT LIVE CONFIGURATOR UI (Brand Neutral - Zero Reboot Sync)
 * ============================================================================== */

#configView {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable;
}

#configView::-webkit-scrollbar {
    width: 8px;
}

#configView::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.7);
}

#configView::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 4px;
}

#configView::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

.config-view-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 24px 28px 140px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: min-content;
}

/* Top Toolbar */
.config-top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(13, 19, 36, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
}

.config-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-config-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 8px;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-config-help:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.help-question-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.config-title-text h2 {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 2px 0;
}

.config-title-text p {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0;
}

.config-actions-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.config-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.config-search-box svg {
    position: absolute;
    left: 12px;
    color: #64748b;
    pointer-events: none;
}

.config-search-box input {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 7px 32px 7px 34px;
    color: #f1f5f9;
    font-size: 12.5px;
    width: 250px;
    transition: all 0.2s ease;
}

.config-search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    width: 280px;
}

.config-presets-group {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

/* 9-Card Grid */
.config-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1280px) {
    .config-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .config-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual Config Card */
.config-card {
    background: rgba(13, 19, 36, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s ease;
}

.config-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.config-card-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 8px;
    color: #60a5fa;
    flex-shrink: 0;
}

.card-title-meta {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.2px;
}

.card-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

/* Card Body Rows */
.config-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.config-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 4px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.config-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.config-label-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.config-label {
    font-family: var(--font-mono, monospace);
    font-size: 12.5px;
    font-weight: 500;
    color: #cbd5e1;
}

.btn-edit-submodule {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    opacity: 0.6;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-edit-submodule:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.config-controls-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action Dropdown Select */
.action-dropdown {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 22px 3px 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.action-dropdown:hover,
.action-dropdown:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.25);
}

/* iOS/Dashboard Style Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.toggle-switch input:checked + .slider-round {
    background: #3b82f6;
    border-color: #60a5fa;
}

.toggle-switch input:checked + .slider-round:before {
    transform: translateX(16px);
}

/* Configuration Help Modal Content */
.config-help-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
}

.help-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.help-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.help-cat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

/* Submodule Editor Modal (Blacklists & Limits) */
.submodule-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.submodule-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-family: var(--font-mono, monospace);
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.submodule-tag-remove {
    background: none;
    border: none;
    color: #f87171;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0 2px;
}

.submodule-tag-remove:hover {
    color: #ef4444;
}

.submodule-add-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.submodule-add-row input {
    flex: 1;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 6px 12px;
    color: #f1f5f9;
    font-size: 12.5px;
}

/* ========================================================================== */
/* Authentication Screen Overlay (Login Portal)                               */
/* ========================================================================== */
.auth-screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at top center, rgba(30, 58, 138, 0.25) 0%, rgba(2, 8, 23, 0.96) 70%);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #0b1220;
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(59, 130, 246, 0.12);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-logo-wrap {
    margin-bottom: 4px;
}

.auth-shield-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.auth-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form-group label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap svg:first-child {
    position: absolute;
    left: 12px;
    color: var(--text-dim);
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 42px;
    background: #060b14;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 40px 0 38px;
    color: #f8fafc;
    font-size: 13.5px;
    transition: all 0.15s ease;
}

.auth-input-wrap input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: #080f1e;
}

.auth-pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.15s;
}

.auth-pwd-toggle:hover {
    color: var(--text-main);
}

.auth-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.auth-remember-label input[type="checkbox"] {
    accent-color: #3b82f6;
    cursor: pointer;
}

.auth-security-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #60a5fa;
    font-family: var(--font-mono, monospace);
    font-size: 10.5px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 7px;
    border-radius: 9999px;
}

.auth-submit-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    margin-top: 4px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

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

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================================================== */
/* Account Settings Modal Details & Tabs                                      */
/* ========================================================================== */
.account-modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #070d18;
    padding: 0 20px;
    gap: 8px;
}

.account-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}

.account-tab-btn:hover {
    color: var(--text-main);
}

.account-tab-btn.active {
    color: #60a5fa;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.account-tab-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.avatar-preview-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #070d18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.avatar-preview-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.account-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.avatar-upload-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #070d18;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.15s;
}

.avatar-upload-badge:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.avatar-info-column {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.avatar-helper-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

.avatar-helper-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

.security-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 10px 14px;
    border-radius: 8px;
    color: #93c5fd;
    font-size: 12px;
    line-height: 1.4;
}
.security-info-banner svg {
    flex-shrink: 0;
    color: #60a5fa;
}

.form-input {
    background: #070d18;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: #fff;
    font-size: 13px;
    transition: border-color 0.15s;
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ==============================================================================
   VIEW: NO SERVER ASSIGNED (EMPTY STATE)
   ============================================================================== */
.no-server-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 30px;
}

.no-server-card {
    position: relative;
    max-width: 580px;
    width: 100%;
    background: rgba(11, 19, 38, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(6, 182, 212, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.no-server-glow {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 180px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.no-server-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.2);
    margin-bottom: 24px;
}

.no-server-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.no-server-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.no-server-notice {
    background: rgba(4, 9, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 28px;
}

.no-server-notice .notice-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.no-server-notice p {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.no-server-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 10px;
    font-weight: 600;
}

/* ==============================================================================
   VIEW: ADMINS MANAGEMENT (Matching Screenshot)
   ============================================================================== */
.admins-inner-container {
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.admins-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admins-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
}

.admins-search-box svg {
    position: absolute;
    left: 12px;
    color: #64748b;
    pointer-events: none;
}

.admins-search-box input {
    width: 100%;
    background: #0b1329;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.admins-search-box input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.admins-search-box input::placeholder {
    color: #64748b;
}

/* Admin + Button (Matching Screenshot) */
.btn-admin-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #030712;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.btn-admin-add:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-plus-icon {
    font-weight: 700;
    font-size: 15px;
}

/* Admins Table Card */
.admins-table-card {
    background: #080e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.admins-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admins-table thead tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.admins-table th {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: left;
    user-select: none;
}

.admins-table th.sortable {
    cursor: pointer;
}

.admins-table th.sortable:hover {
    color: #fff;
}

.sort-arrows {
    margin-left: 4px;
    font-size: 11px;
    color: #64748b;
}

.admins-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.15s ease;
}

.admins-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

.admins-table td {
    padding: 14px 18px;
    vertical-align: middle;
    color: #e2e8f0;
}

.admin-table-avatar,
.admin-avatar-img,
.col-avatar img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: inline-block !important;
    vertical-align: middle !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    background: #1e293b !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    flex-shrink: 0 !important;
}

.col-avatar {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    padding-right: 8px !important;
    vertical-align: middle !important;
}

.admin-email-text,
.user-email-text {
    font-family: 'Geist Mono', monospace;
    font-size: 12.5px;
    color: #f1f5f9;
}

.admin-username-text,
.user-name-text {
    font-weight: 500;
    color: #f8fafc;
}

/* Permissions Badges Matching Screenshot */
.badge-permission {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Master Badge (White Pill, Dark Text - Exactly like Screenshot) */
.badge-master {
    background: #ffffff;
    color: #030712;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Admin Badge (Cyan) */
.badge-admin {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.35);
}

/* Moderator Badge (Purple) */
.badge-moderator {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Pending Badge (Amber) */
.badge-pending {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Server Chips */
.server-chip-tag,
.server-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
    margin-right: 4px;
    margin-bottom: 4px;
}

.server-chip-tag.all,
.server-pill-tag.all {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
}

.server-chip-tag.none,
.server-pill-tag.none {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

/* Admin Action Buttons */
.btn-admin-action,
.btn-action-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.btn-action-edit:hover,
.btn-admin-manage:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Admin Modals Styling */
.admin-user-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.admin-modal-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    background: #1e293b !important;
    flex-shrink: 0 !important;
}

.server-checkboxes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(3, 7, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.server-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #e2e8f0;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.server-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.04);
}

.server-checkbox-label input[type="checkbox"] {
    accent-color: #06b6d4;
    width: 16px;
    height: 16px;
}

/* ==============================================================================
   WAVESHIELD-GRADE BANS TABLE & PROOF / SHADOWPLAY STYLES
   ============================================================================== */
.waveshield-style-table {
    width: 100%;
    border-collapse: collapse;
}

.waveshield-style-table th {
    background: rgba(10, 18, 33, 0.95);
    color: var(--text-dim, #94a3b8);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.waveshield-style-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: #e2e8f0;
}

.waveshield-style-table tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

/* Player Cell */
.ban-player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ban-player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim, #94a3b8);
    flex-shrink: 0;
}

.ban-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ban-player-name {
    font-weight: 600;
    color: #fff;
    font-size: 13.5px;
}

.ban-player-sub {
    font-size: 11.5px;
    color: var(--text-dim, #94a3b8);
    font-family: var(--font-mono, monospace);
}

/* Proof Thumbnail Container (WaveShield EvidenceCell Look) */
.ban-proof-thumb {
    position: relative;
    width: 68px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: #090f1d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s, border-color 0.18s;
    user-select: none;
}

.ban-proof-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(59, 130, 246, 0.25);
}

.ban-proof-thumb video,
.ban-proof-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ban-proof-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: background 0.18s ease;
}

.ban-proof-thumb:hover .ban-proof-play-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.ban-proof-play-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.18s ease, background 0.18s ease;
}

.ban-proof-play-circle svg {
    margin-left: 2px;
}

.ban-proof-play-circle.eye-circle svg {
    margin-left: 0;
}

.ban-proof-thumb:hover .ban-proof-play-circle {
    transform: scale(1.12);
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
}

.ban-proof-none {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

/* Status Badges */
.badge-ban-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
}

.badge-ban-status.status-temp {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
}

.badge-ban-status.status-perm {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Date Cells */
.ban-date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ban-date-main {
    color: #e2e8f0;
    font-weight: 500;
}

.ban-date-sub {
    font-size: 11px;
    color: var(--text-dim, #94a3b8);
}

/* Actions Cell */
.ban-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.action-icon-btn.btn-inspect-proof:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.action-icon-btn.btn-delete-ban:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.25);
}

/* ==============================================================================
   MODAL: PROOF & SHADOWPLAY VIEWER (WaveShield-Grade)
   ============================================================================== */
.modal-proof-card {
    max-width: 860px;
    width: 95%;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

.proof-modal-header {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.proof-header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proof-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    width: fit-content;
}

.proof-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.proof-reason-text {
    margin: 0;
    font-size: 12.5px;
    color: #ef4444;
    font-weight: 500;
}

.proof-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proof-media-tabs {
    display: flex;
    gap: 8px;
}

.media-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim, #94a3b8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.media-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.media-tab-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

.proof-media-viewport {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 440px;
    background: #020617;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-video-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.proof-video-wrapper video {
    width: 100%;
    height: calc(100% - 36px);
    object-fit: contain;
    background: #000;
}

.proof-speed-bar {
    height: 36px;
    background: rgba(10, 15, 28, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.playback-speed-label {
    font-size: 11.5px;
    color: var(--text-dim, #94a3b8);
}

.speed-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.speed-pill:hover {
    color: #fff;
}

.speed-pill.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.proof-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.proof-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.proof-empty-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: var(--text-dim, #94a3b8);
}

.proof-empty-fallback h4 {
    margin: 12px 0 4px 0;
    color: #e2e8f0;
}

.proof-empty-fallback p {
    font-size: 12px;
    margin: 0;
}

/* Telemetry HUD Panel */
.proof-telemetry-panel {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 16px;
}

.telemetry-hud-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.proof-telemetry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .proof-telemetry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hud-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-label {
    font-size: 10.5px;
    color: var(--text-dim, #64748b);
    text-transform: uppercase;
}

.hud-value {
    font-size: 12.5px;
    color: #f1f5f9;
    font-weight: 500;
}

.proof-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* ==============================================================================
   RESPONSIVE DESIGN & MULTI-DEVICE SUPPORT (PC, LAPTOP, TABLET, PHONE)
   ============================================================================== */

/* Mobile Backdrop Overlays */
.sidebar-backdrop,
.players-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-backdrop.active,
.players-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Header for Right Players Drawer */
.players-sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    background: #040814;
}
.players-mobile-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}
.players-mobile-title svg {
    color: var(--primary);
}
.players-toggle-btn {
    display: none;
}

/* Table Responsive Wrappers */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------------------------------- */
/* TIER 1: LAPTOPS & COMPACT DESKTOPS (<= 1440px)                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .banner-text {
        max-width: 320px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12.5px;
    }
    .banner-pill-content {
        gap: 12px;
    }
    .config-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* -------------------------------------------------------------------------- */
/* TIER 2: TABLETS (<= 1024px) (iPad Pro, iPad Air, Surface, Android Tablets) */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Layout Height with dynamic viewport */
    .electron-layout {
        height: 100dvh;
    }
    .electron-body {
        height: calc(100dvh - var(--topbar-height));
    }

    /* Top Sticky Banner Bar */
    .top-banner-bar {
        padding: 0 12px;
        gap: 10px;
    }
    .banner-center-pill {
        position: static;
        transform: none;
        padding: 4px 12px;
        margin: 0 auto;
        box-shadow: none;
        max-width: calc(100% - 100px);
    }
    .banner-text {
        display: none;
    }
    .banner-info {
        gap: 6px;
    }
    .badge-demo {
        padding: 1px 5px;
    }

    /* Navigation Sidebar Off-Canvas Drawer */
    .electron-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 82vw;
        height: 100dvh;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: var(--bg-main);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
        border-right: 1px solid var(--border-color);
    }
    .electron-sidebar.mobile-open {
        transform: translateX(0);
    }
    /* Reset collapsed desktop rules when on tablet/mobile */
    .electron-sidebar.collapsed {
        width: 280px;
    }
    .electron-sidebar.collapsed .server-name,
    .electron-sidebar.collapsed .chevrons-icon,
    .electron-sidebar.collapsed .sidebar-search-wrap,
    .electron-sidebar.collapsed .nav-item span,
    .electron-sidebar.collapsed .nav-group-trigger span,
    .electron-sidebar.collapsed .group-chevron,
    .electron-sidebar.collapsed .nav-sub-list,
    .electron-sidebar.collapsed .pulse-tag,
    .electron-sidebar.collapsed .subnav-count,
    .electron-sidebar.collapsed .user-info-text,
    .electron-sidebar.collapsed .user-chevron {
        display: flex !important;
    }
    .electron-sidebar.collapsed .user-info-text {
        display: flex !important;
        flex-direction: column !important;
    }
    .electron-sidebar.collapsed .server-selector-btn,
    .electron-sidebar.collapsed .nav-link,
    .electron-sidebar.collapsed .nav-group-trigger {
        justify-content: flex-start;
        padding: 0 10px;
    }

    /* Right Players Sidebar Off-Canvas Drawer */
    .players-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border-color);
        background: var(--bg-surface);
        color: var(--text-muted);
        transition: all 0.15s;
    }
    .players-toggle-btn:hover {
        color: var(--text-main);
        border-color: var(--primary);
    }
    .players-sidebar-mobile-header {
        display: flex;
    }
    .electron-players-sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 310px;
        max-width: 85vw;
        height: 100dvh;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        background: #020817;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
        border-left: 1px solid var(--border-color);
    }
    .electron-players-sidebar.mobile-open {
        transform: translateX(0);
    }

    /* Monitoring Video Grid (Adaptive 2 Columns on Tablet) */
    .monitoring-grid,
    .monitoring-grid.grid-9,
    .monitoring-grid.grid-16,
    .monitoring-grid.grid-25,
    .monitoring-grid.grid-36 {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        overflow-y: auto !important;
        height: calc(100% - 50px);
        padding: 8px 10px;
        gap: 8px;
    }
    .monitoring-slot {
        min-height: 220px;
        aspect-ratio: 16/9;
    }

    /* Dashboard Layout */
    .dashboard-inner-container,
    .bans-inner-container,
    .logs-inner-container,
    .config-view-container,
    .admins-inner-container {
        padding: 16px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }
    .dashboard-split-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Toolbars & Directories */
    .directory-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .search-box {
        max-width: 100%;
        width: 100%;
    }
    .filter-chips-group {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        display: flex;
        gap: 8px;
    }
    .filter-chip {
        flex-shrink: 0;
    }

    /* Tables */
    .bans-table-card,
    .admins-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .bans-table,
    .admins-table {
        min-width: 650px;
    }

    /* Solo Theater View */
    .stream-header-bar {
        padding: 8px 14px;
        min-height: 52px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Modals */
    .modal-card {
        width: 90vw;
        max-width: 600px;
        max-height: 88vh;
        overflow-y: auto;
    }
    .modal-proof-card {
        width: 94vw;
        max-width: 780px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* -------------------------------------------------------------------------- */
/* TIER 3: SMARTPHONES & SMALL SCREENS (<= 640px)                             */
/* -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    /* Top Banner Bar */
    .top-banner-bar {
        height: 52px;
        padding: 0 10px;
    }
    .top-toggle-btn {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        color: var(--text-main);
    }
    .banner-center-pill {
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        max-width: none;
    }
    .banner-tabs {
        display: none; /* Hidden on phone to prevent squashing; accessible in sidebar */
    }
    .sparkles-icon {
        display: none;
    }
    .banner-info {
        gap: 4px;
    }
    .connection-status-dot {
        font-size: 11px;
    }
    .status-label {
        font-size: 11px;
    }

    /* Navigation Sidebar Touch Targets */
    .electron-sidebar {
        width: 290px;
        max-width: 86vw;
    }
    .nav-link,
    .nav-group-trigger {
        height: 42px;
        font-size: 14px;
    }
    .nav-sub-link {
        height: 38px;
        font-size: 13.5px;
    }
    .server-selector-btn {
        height: 48px;
    }

    /* Monitoring Grid Single Column Feed */
    .monitoring-grid,
    .monitoring-grid.grid-9,
    .monitoring-grid.grid-16,
    .monitoring-grid.grid-25,
    .monitoring-grid.grid-36 {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 12px;
        padding: 8px;
        overflow-y: auto !important;
        height: calc(100% - 54px);
    }
    .monitoring-slot {
        width: 100%;
        min-height: 200px;
        aspect-ratio: 16/9;
        border-radius: var(--radius-md);
    }
    .slot-tag-left {
        padding: 2px 6px;
        font-size: 10.5px;
    }
    .slot-player-name {
        max-width: 120px;
        font-size: 11.5px;
    }
    .slot-header-pill {
        top: 4px;
        left: 4px;
        right: 4px;
    }

    /* Monitoring Bottom Bar */
    .monitoring-bottom-bar {
        padding: 6px 8px;
        min-height: 48px;
        height: auto;
        gap: 6px;
        flex-wrap: wrap;
    }
    .bottom-controls-left {
        gap: 6px;
    }
    .grid-presets-group {
        gap: 4px;
    }
    .preset-btn {
        width: 28px;
        height: 28px;
        font-size: 11.5px;
    }
    .audio-mute-btn,
    .fullscreen-btn,
    .players-toggle-btn {
        width: 30px;
        height: 30px;
    }
    .bottom-controls-right {
        gap: 6px;
    }
    .view-select-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 11.5px;
        gap: 4px;
    }

    /* Dashboard View on Mobile */
    .dashboard-inner-container {
        padding: 12px;
    }
    .panel-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    .hero-text h1 {
        font-size: 19px;
    }
    .hero-text p {
        font-size: 12px;
    }
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }
    .kpi-card {
        padding: 12px 14px;
    }
    .kpi-value {
        font-size: 22px;
    }
    .quick-action-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    .quick-action-row button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    .server-telemetry-box {
        font-size: 11.5px;
        padding: 10px;
    }

    /* Bans, Logs, Admins Views on Mobile */
    .bans-inner-container,
    .logs-inner-container,
    .admins-inner-container {
        padding: 12px;
    }
    .search-box {
        height: 36px;
        padding: 0 10px;
        font-size: 12.5px;
    }
    .filter-chip {
        padding: 5px 10px;
        font-size: 12px;
    }
    .toolbar-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .toolbar-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 12px;
    }
    .bans-table,
    .admins-table {
        min-width: 560px;
        font-size: 12px;
    }
    .bans-table th,
    .bans-table td,
    .admins-table th,
    .admins-table td {
        padding: 8px 10px;
    }

    /* Config View on Mobile */
    .config-view-container {
        padding: 12px;
    }
    .config-top-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .config-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .config-title-text h2 {
        font-size: 18px;
    }
    .config-title-text p {
        font-size: 12px;
    }
    .config-toolbar-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }
    .config-toolbar-actions .search-box {
        width: 100%;
    }
    .config-toolbar-actions .config-action-buttons {
        display: flex;
        gap: 6px;
        width: 100%;
    }
    .config-toolbar-actions .config-action-buttons .btn {
        flex: 1;
        justify-content: center;
    }
    .config-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Solo Theater View on Mobile */
    .stream-header-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 8px;
    }
    .stream-nav {
        width: 100%;
        justify-content: space-between;
    }
    .target-title-wrap h2 {
        font-size: 15px;
    }
    .stream-header-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .stream-header-actions .btn {
        justify-content: center;
        font-size: 12px;
        padding: 6px 8px;
    }

    /* Modals & Dialogs on Mobile */
    .modal-backdrop {
        padding: 10px;
        align-items: center;
    }
    .modal-card {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        max-height: 92dvh;
        overflow-y: auto;
    }
    .modal-header {
        padding: 12px 14px;
    }
    .modal-header h3 {
        font-size: 15px;
    }
    .modal-body {
        padding: 14px;
        gap: 12px;
    }
    .modal-footer {
        padding: 10px 14px;
        flex-direction: column-reverse;
        gap: 8px;
    }
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    /* Proof Modal & ShadowPlay Viewer on Mobile */
    .modal-proof-card {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        max-height: 94dvh;
        overflow-y: auto;
    }
    .proof-modal-header {
        padding: 12px 14px;
    }
    .proof-modal-header h3 {
        font-size: 14px;
    }
    .proof-modal-body {
        padding: 12px;
        gap: 10px;
    }
    .proof-media-tabs {
        flex-direction: column;
        gap: 6px;
    }
    .media-tab-btn {
        width: 100%;
        justify-content: center;
    }
    .proof-telemetry-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .proof-speed-bar {
        flex-wrap: wrap;
        gap: 4px;
    }
    .proof-modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    .proof-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------------------- */
/* TIER 4: ULTRA-COMPACT SCREENS (<= 380px) (iPhone SE, Galaxy Fold front)    */
/* -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .electron-sidebar {
        width: 88vw;
    }
    .electron-players-sidebar {
        width: 88vw;
    }
    .top-banner-bar {
        padding: 0 6px;
    }
    .banner-info {
        font-size: 11px;
    }
    .badge-demo {
        display: none;
    }
    .preset-btn {
        width: 25px;
        height: 25px;
        font-size: 11px;
    }
    .view-select-btn span {
        display: none;
    }
}

/* ==============================================================================
 * Modern Crisp SVG Icon System (Zero Emojis - Enterprise Design Standard)
 * ============================================================================== */
.kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
.kpi-blue .kpi-icon svg { color: #60a5fa; }
.kpi-purple .kpi-icon svg { color: #c084fc; }
.kpi-crimson .kpi-icon svg { color: #f87171; }
.kpi-green .kpi-icon svg { color: #34d399; }

.qa-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.qa-icon-wrap svg {
    width: 18px;
    height: 18px;
    display: block;
}
.qa-blue svg { color: #60a5fa; }
.qa-red svg { color: #f87171; }
.qa-amber svg { color: #fbbf24; }

.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.empty-icon svg {
    width: 44px;
    height: 44px;
    opacity: 0.6;
    display: block;
}

.chip-svg {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    width: 13px;
    height: 13px;
}
.chip-explosions .chip-svg { color: #f87171; }
.chip-weapons .chip-svg { color: #fbbf24; }
.chip-entities .chip-svg { color: #60a5fa; }
.chip-connections .chip-svg { color: #34d399; }
.chip-detections .chip-svg { color: #c084fc; }

.btn-svg {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    width: 13px;
    height: 13px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.modal-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-icon-badge svg {
    width: 20px;
    height: 20px;
    display: block;
}
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-crimson { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.inline-svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -2px;
    margin-right: 6px;
}
.inline-svg-icon svg {
    width: 14px;
    height: 14px;
}
.inline-svg-icon.svg-green { color: #34d399; }
.inline-svg-icon.svg-crimson { color: #f87171; }
.inline-svg-icon.svg-amber { color: #fbbf24; }
.inline-svg-icon.svg-blue { color: #60a5fa; }
.inline-svg-icon.svg-purple { color: #c084fc; }

.log-badge-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -1px;
    margin-right: 5px;
}
.log-badge-svg svg {
    width: 12px;
    height: 12px;
}

.btn-edit-submodule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-edit-submodule svg {
    width: 12px;
    height: 12px;
    display: block;
}
.card-coords-pill svg {
    display: inline-block;
}
.root-badge svg {
    display: inline-block;
}

