/* ==========================================================================
   NEXUS GAMING - HOSTED SERVERS DASHBOARD STYLES
   Designed with ultra-premium GTA6 neon & dark glassmorphism aesthetic
   ========================================================================== */

/* Main Tab Container - Full Screen Layout matching Library Tab */
.servers-tab-container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Left Filter Sidebar - Spanning Top to Bottom of the Screen */
.servers-filter-sidebar {
    width: 270px;
    background: #090b12;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    position: relative;
    z-index: 5;
}

.servers-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(9, 11, 18, 0.98);
    flex-shrink: 0;
}

.servers-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servers-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.servers-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.servers-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.servers-cat-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.2px;
    padding: 6px 4px 8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content Area to the Right of the Sidebar */
.servers-main-content {
    flex: 1;
    height: 100%;
    background: radial-gradient(circle at 80% 10%, rgba(255, 42, 133, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(255, 85, 0, 0.06) 0%, transparent 40%),
                var(--background-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.servers-main-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 28px 36px 60px;
}

.servers-main-scroll::-webkit-scrollbar {
    width: 6px;
}

.servers-main-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.servers-main-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Legacy/Fallback Wrapper */
.play-servers-view {
    height: 100%;
    width: 100%;
    display: flex;
    overflow: hidden;
}

/* Hero Section */
.servers-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    padding: 34px 40px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(20, 24, 40, 0.95) 0%, rgba(12, 14, 22, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.servers-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/server_gta6_vicecity.jpg') center/cover no-repeat;
    opacity: 0.18;
    filter: blur(2px);
    pointer-events: none;
}

.servers-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.servers-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, rgba(255, 42, 133, 0.2) 0%, rgba(255, 85, 0, 0.2) 100%);
    border: 1px solid rgba(255, 42, 133, 0.4);
    color: #ff70b0;
    margin-bottom: 10px;
}

.servers-hero-title {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.servers-hero-title .neon-accent {
    background: linear-gradient(135deg, #ff2a85 0%, #ff7700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 42, 133, 0.4);
}

.servers-hero-desc {
    color: var(--secondary-text-color);
    max-width: 620px;
    font-size: 0.92rem;
    line-height: 1.55;
}

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

.btn-neon-deploy {
    background: linear-gradient(135deg, #ff2a85 0%, #ff5500 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(255, 42, 133, 0.35);
    transition: all 0.25s ease;
}

.btn-neon-deploy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 42, 133, 0.55);
    filter: brightness(1.1);
}

.btn-glass-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-glass-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fleet Telemetry Top Bar */
.fleet-telemetry-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.fleet-stat-card {
    background: rgba(18, 21, 32, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: border-color 0.2s;
}

.fleet-stat-card:hover {
    border-color: rgba(255, 85, 0, 0.3);
}

.fleet-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-icon-purple {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.stat-icon-pink {
    background: rgba(255, 42, 133, 0.14);
    color: #ff65a8;
    border: 1px solid rgba(255, 42, 133, 0.3);
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-icon-orange {
    background: rgba(255, 85, 0, 0.14);
    color: #ffaa44;
    border: 1px solid rgba(255, 85, 0, 0.3);
}

.fleet-stat-details {
    display: flex;
    flex-direction: column;
}

.fleet-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.fleet-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-text-color);
    margin-top: 2px;
}

/* Two Column Layout (Server List + Featured/Telemetry Sidebar) */
.servers-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

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

/* Left Filter Panel (GTA6 Servers Styled) */
.servers-filter-panel {
    background: rgba(18, 21, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.servers-sidebar-header .filter-panel-header {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 900px) {
    .servers-tab-container {
        flex-direction: column;
    }
    .servers-filter-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .servers-main-scroll {
        padding: 16px;
    }
}

.filter-panel-title {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-filters {
    background: none;
    border: none;
    color: #ff5500;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-clear-filters:hover {
    color: #ff7733;
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary-text-color);
    margin-bottom: 8px;
}

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

.filter-search-box i {
    position: absolute;
    left: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.filter-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 9px 12px 9px 34px;
    border-radius: 8px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-search-input:focus {
    border-color: #ff2a85;
    background: rgba(255, 255, 255, 0.07);
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.filter-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.filter-checkbox-item input {
    display: none;
}

.filter-custom-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: transparent;
    transition: all 0.15s;
    margin-right: 8px;
    flex-shrink: 0;
}

.filter-checkbox-item input:checked + .filter-checkbox-label .filter-custom-check {
    background: #ff2a85;
    border-color: #ff2a85;
    color: #fff;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.filter-count-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Systems as Categories & Games Hierarchy */
.system-category-group {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.system-category-item {
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.system-sub-games-list {
    margin-left: 14px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.sub-game-item {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    cursor: pointer;
    transition: color 0.15s;
}

.sub-game-item:hover {
    color: #fff;
}

/* Center Column: Server Cards */
.servers-list-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.servers-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px 6px;
}

.servers-count-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.servers-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

/* Server Card Component */
.server-card-item {
    background: rgba(20, 23, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.server-card-item:hover {
    border-color: rgba(255, 42, 133, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.server-card-item.status-stopped {
    opacity: 0.85;
    border-color: rgba(255, 255, 255, 0.05);
}

.server-card-top {
    display: grid;
    grid-template-columns: 40px 180px 1fr 140px;
    gap: 20px;
    padding: 20px 24px;
    align-items: center;
}

@media (max-width: 900px) {
    .server-card-top {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.server-rank-num {
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.server-thumb-wrap {
    position: relative;
    width: 180px;
    height: 105px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.server-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.server-card-item:hover .server-thumb-wrap img {
    transform: scale(1.05);
}

.server-game-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-info-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.server-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.server-item-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.server-billing-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.billing-monthly {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.billing-annual {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.server-item-desc {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.server-badges-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.server-tag-chip {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 42, 133, 0.12);
    color: #ff65a8;
    border: 1px solid rgba(255, 42, 133, 0.25);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.server-status-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

@media (max-width: 900px) {
    .server-status-col {
        align-items: flex-start;
    }
}

.server-players-badge {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-players-badge span {
    color: var(--secondary-text-color);
    font-size: 0.78rem;
    font-weight: 600;
}

.server-players-bar-bg {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.server-players-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2a85 0%, #ff5500 100%);
    border-radius: 4px;
}

.server-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.state-running {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.state-running .dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDot 1.5s infinite;
}

.state-stopped {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.state-stopped .dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.server-region-meta {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Server Card Bottom Action Bar */
.server-card-bottom {
    background: rgba(14, 16, 25, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.server-connect-ip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 0.78rem;
    color: #38bdf8;
}

.btn-copy-ip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.75rem;
    transition: color 0.15s;
}

.btn-copy-ip:hover {
    color: #fff;
}

.server-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-server-join {
    background: linear-gradient(135deg, #ff2a85 0%, #ff5500 100%);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 42, 133, 0.35);
    transition: all 0.2s ease;
}

.btn-server-join:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-ctrl-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.btn-ctrl-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ctrl-stop {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.25);
}

.btn-ctrl-stop:hover {
    background: rgba(239, 68, 68, 0.15);
}

.btn-ctrl-start {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-ctrl-start:hover {
    background: rgba(34, 197, 94, 0.15);
}

/* Right Sidebar: Featured & Telemetry (GTA6 Servers Styled) */
.servers-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-server-box {
    background: rgba(18, 21, 32, 0.85);
    border: 1px solid rgba(255, 42, 133, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-header-badge {
    background: linear-gradient(90deg, #ff2a85 0%, #ff5500 100%);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-image-holder {
    position: relative;
    height: 160px;
    width: 100%;
}

.featured-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.featured-desc {
    font-size: 0.8rem;
    color: var(--secondary-text-color);
    line-height: 1.4;
}

.featured-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

.btn-featured-join {
    width: 100%;
    background: linear-gradient(135deg, #ff2a85 0%, #ff5500 100%);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(255, 42, 133, 0.4);
    transition: filter 0.2s;
}

.btn-featured-join:hover {
    filter: brightness(1.12);
}

/* Sidebar Analytics Card */
.sidebar-analytics-card {
    background: rgba(18, 21, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.analytics-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.analytics-metric-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
}

.metric-tile-val {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
}

.metric-tile-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-text-color);
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* Mini Activity Sparkline Chart */
.analytics-chart-wrap {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.sparkline-svg {
    width: 100%;
    height: 48px;
    display: block;
}

.chart-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}



/* Terminal / RCON Console Modal */
.terminal-modal-window {
    background: #090a10;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #111420;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-header-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
}

.terminal-logs-screen {
    height: 320px;
    background: #06070a;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-line-info { color: #38bdf8; }
.log-line-success { color: #4ade80; }
.log-line-warn { color: #fbbf24; }
.log-line-cmd { color: #f43f5e; font-weight: 700; }

.terminal-command-bar {
    background: #0d0f18;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-cmd-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.82rem;
    outline: none;
}

.terminal-cmd-input:focus {
    border-color: #38bdf8;
}

/* Modals general */
.server-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
