/* Design-System: Serverleih24 (Zap-Hosting Inspired Blue/White/Gray Theme with Light/Dark Mode) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Blue/Gray/White System Constants */
    --primary: #005cff;
    --primary-glow: rgba(0, 92, 255, 0.18);
    --primary-light: #3b82f6;
    --primary-hover: #004ecc;
    
    --accent-blue: #00c0ff;
    --purple: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #f4f7fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-input: #f8fafc;
    --border-glass: #e2e8f0;
    --border-hover: #005cff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-neon: 0 10px 30px rgba(0, 0, 0, 0.02);
    --shadow-primary: 0 0 15px rgba(0, 92, 255, 0.05);
    --warning: #b45309;
    animation: none !important;
    background-color: #f4f7fc !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 92, 255, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(0, 192, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.02) 0%, transparent 50%) !important;
}

body.light-theme::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(244, 247, 252, 0.96)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80" opacity="0.025"><rect width="80" height="80" fill="none"/><path d="M 80 0 L 0 0 0 80" fill="none" stroke="%23005cff" stroke-width="1"/></svg>') !important;
}

/* Dark Theme Variables (Default) */
body, body.dark-theme {
    --bg-dark: #0b0f19;
    --bg-card: #131929;
    --bg-card-hover: #1c2336;
    --bg-input: #080b12;
    --border-glass: #1e2638;
    --border-hover: #005cff;
    --text-main: #f3f4f6;
    --text-muted: #8d9ba8;
    --shadow-neon: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-primary: 0 0 15px var(--primary-glow);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 92, 255, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
    animation: ambient-glow 15s ease-in-out infinite alternate;
}

@keyframes ambient-glow {
    0% {
        background-image: 
            radial-gradient(circle at 50% 0%, rgba(0, 92, 255, 0.08) 0%, transparent 55%),
            radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.04) 0%, transparent 40%);
    }
    50% {
        background-image: 
            radial-gradient(circle at 50% 10%, rgba(0, 92, 255, 0.12) 0%, transparent 60%),
            radial-gradient(circle at 15% 85%, rgba(139, 92, 246, 0.07) 0%, transparent 45%),
            radial-gradient(circle at 85% 85%, rgba(0, 212, 255, 0.06) 0%, transparent 45%);
    }
    100% {
        background-image: 
            radial-gradient(circle at 50% 0%, rgba(0, 92, 255, 0.08) 0%, transparent 55%),
            radial-gradient(circle at 5% 95%, rgba(139, 92, 246, 0.05) 0%, transparent 35%),
            radial-gradient(circle at 95% 75%, rgba(0, 212, 255, 0.04) 0%, transparent 35%);
    }
}

/* Grid Line Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(11, 15, 25, 0.8), rgba(11, 15, 25, 0.98)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80" opacity="0.015"><rect width="80" height="80" fill="none"/><path d="M 80 0 L 0 0 0 80" fill="none" stroke="white" stroke-width="1"/></svg>');
    z-index: -10;
    pointer-events: none;
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 80px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header */
header {
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    justify-self: start;
}
.logo:hover {
    transform: scale(1.03);
}
.logo img {
    height: 48px !important;
    border-radius: 8px !important;
}

/* Default theme: Dark mode logo visible, Light mode logo hidden */
.logo-light {
    display: none !important;
}
.logo-dark {
    display: inline-block !important;
}

/* Light theme: Light mode logo visible, Dark mode logo hidden */
body.light-theme .logo-dark {
    display: none !important;
}
body.light-theme .logo-light {
    display: inline-block !important;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px 0 rgba(0, 92, 255, 0.15);
    }
}
.logo-icon {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-blue) 100%);
    color: #0b0f19;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    box-shadow: 0 0 20px var(--primary-glow);
}
.logo-text {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
    justify-self: center;
    justify-content: center;
    width: 100%;
    max-width: 950px;
}

.nav-links li {
    flex: 0 0 calc(20% - 1rem);
    text-align: center;
}

/* If there are 5 or fewer items in total, let them size naturally to prevent text wrapping */
.nav-links li:first-child:nth-last-child(-n+5),
.nav-links li:first-child:nth-last-child(-n+5) ~ li {
    flex: 0 1 auto;
}

.nav-actions {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
    justify-self: end;
}

/* Intermediate screen size: scale down navigation to prevent overlap */
@media (max-width: 1300px) {
    .nav-links {
        gap: 0.75rem;
        max-width: 850px;
    }
    .nav-links li {
        flex: 0 0 calc(20% - 0.6rem);
    }
    .nav-links li:first-child:nth-last-child(-n+5),
    .nav-links li:first-child:nth-last-child(-n+5) ~ li {
        flex: 0 1 auto;
    }
    .nav-links a {
        font-size: 0.82rem;
        padding: 0.4rem 0.6rem;
    }
    .nav-container {
        padding: 0.85rem 1.2rem;
        gap: 1rem;
    }
    .nav-actions {
        gap: 0.75rem;
    }
}

/* Break to stacked layout earlier for tablets and smaller viewports */
@media (max-width: 1150px) {
    .nav-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem;
        text-align: center;
    }
    .nav-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
        max-width: 100%;
    }
    .nav-links li {
        flex: 0 1 auto;
    }
    .nav-actions {
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
}

.nav-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(0, 92, 255, 0.04);
    border-color: rgba(0, 92, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 92, 255, 0.08);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    font-size: 0.85rem;
}

/* Layouts */
main {
    flex-grow: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 1rem 4rem 1rem;
    max-width: 850px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
    line-height: 1.05;
}

.hero h1 span {
    background: linear-gradient(120deg, var(--primary) 0%, var(--accent-blue) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-gradient 4s linear infinite;
}

@keyframes shine-gradient {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--primary-glow);
    animation: button-glow 3s infinite ease-in-out;
}
.btn-primary:hover {
    animation: none;
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 92, 255, 0.5);
}

@keyframes button-glow {
    0%, 100% {
        box-shadow: 0 4px 15px var(--primary-glow);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 92, 255, 0.45);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 12px var(--danger-glow);
}
.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Immersive Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: var(--shadow-neon);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-blue), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: left;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 92, 255, 0.25);
    box-shadow: 0 12px 35px rgba(0, 92, 255, 0.08);
    transform: translateY(-2px);
}

.card:hover::after {
    transform: scaleX(1);
}

.card-game {
    position: relative;
    overflow: hidden;
    background-size: 100% auto;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease, background-size 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-game::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.3) 0%, rgba(11, 15, 25, 0.95) 100%);
    z-index: 1;
    transition: all 0.35s ease;
}
.card-game:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0, 92, 255, 0.15);
    background-size: 105% auto;
}
.card-game:hover::before {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.1) 0%, rgba(11, 15, 25, 0.92) 100%);
}
.card-game-content {
    position: relative;
    z-index: 2;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    justify-content: space-between;
}

/* Game Card Covers (Fallback Unsplash images mimicking game keyart) */
.game-cs2 { background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=600'); }
.game-minecraft_vanilla, .game-minecraft_paper, .game-minecraft_forge { background-image: url('https://images.unsplash.com/photo-1607988795691-3d0147b43231?q=80&w=600'); }
.game-rust { background-image: url('https://images.unsplash.com/photo-1553481187-be93c21490a9?q=80&w=600'); }
.game-palworld { background-image: url('https://images.unsplash.com/photo-1552820728-8b83bb6b773f?q=80&w=600'); }
.game-fivem { background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=600'); }
.game-valheim { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?q=80&w=600'); }
.game-l4d2 { background-image: url('https://images.unsplash.com/photo-1509198397868-475647b2a1e5?q=80&w=600'); }
.game-discord_bot, .game-default { background-image: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=600'); }

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.75rem 0.95rem;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(10, 12, 22, 0.95);
}

/* Server Cabinet (Dashboard Rack) */
.rack-cabinet {
    background: rgba(6, 8, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.rack-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.rack-blades {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rack-blade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    transition: all 0.2s ease;
}
.rack-blade:hover {
    background: rgba(0, 92, 255, 0.04);
    border-color: rgba(0, 92, 255, 0.25);
}

.led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.6rem;
}
.led-online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success), 0 0 20px var(--success-glow);
    animation: led-pulse 1.5s infinite alternate;
}
.led-offline {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}
.led-installing {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: led-blink 1s infinite steps(2);
}

@keyframes led-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
@keyframes led-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.fan {
    display: inline-block;
    font-size: 1.1rem;
    animation: spin 2s linear infinite;
    color: var(--text-muted);
}
.rack-blade:hover .fan {
    color: var(--primary);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.grid-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.8rem;
}

@media (max-width: 1024px) {
    .grid-sidebar, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Badges */
.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid transparent;
}
.badge-success { background: rgba(0, 255, 136, 0.08); color: var(--success); border-color: rgba(0, 255, 136, 0.15); }
.badge-danger { background: rgba(255, 59, 105, 0.08); color: var(--danger); border-color: rgba(255, 59, 105, 0.15); }
.badge-warning { background: rgba(255, 221, 87, 0.08); color: var(--warning); border-color: rgba(255, 221, 87, 0.15); }
.badge-info { background: rgba(0, 212, 255, 0.08); color: var(--accent-blue); border-color: rgba(0, 212, 255, 0.15); }

/* Sidebar Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Alert Boxes */
.alert {
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid transparent;
}
.alert-success { background: rgba(0, 255, 136, 0.08); color: var(--success); border-color: rgba(0, 255, 136, 0.2); }
.alert-danger { background: rgba(255, 59, 105, 0.08); color: var(--danger); border-color: rgba(255, 59, 105, 0.2); }

/* Table design */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}
th {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.2);
}
tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Terminal / Live Console */
.terminal-window {
    background: #04050a;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.85rem;
}
.terminal-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.4rem;
    margin-bottom: 0.6rem;
}
.terminal-body {
    height: 250px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-blue);
    padding: 0.25rem;
    line-height: 1.45;
}
.terminal-line { margin-bottom: 0.25rem; }
.terminal-input-group {
    display: flex;
    margin-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.6rem;
}
.terminal-input-group span {
    font-family: var(--font-mono);
    color: var(--primary);
    margin-right: 0.5rem;
    align-self: center;
}
.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}
.terminal-input:focus { outline: none; }

/* Admin panel tab system */
.admin-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.35rem;
    overflow-x: auto;
}
.admin-tab {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.admin-tab:hover, .admin-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--primary);
}

/* Analytics Graph Mocks */
.chart-container {
    padding: 1.25rem;
    height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-glass);
    border-left: 1px solid var(--border-glass);
    margin-top: 1rem;
}
.chart-bar-group {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}
.chart-bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--accent-blue));
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease;
}
.chart-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    white-space: nowrap;
}

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
    background: rgba(5, 7, 14, 0.9);
    border-top: 1px solid var(--border-glass);
    padding: 1.8rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4rem;
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
}
footer a:hover {
    color: var(--primary);
}

/* ==========================================================================
   System Status Layout Elements
   ========================================================================== */

/* Configurator Container */
.configurator-wrapper {
    background: rgba(10, 14, 30, 0.85);
    border: 1.5px solid rgba(0, 92, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto 4rem auto;
    box-shadow: 0 15px 45px rgba(0, 92, 255, 0.05), var(--shadow-neon);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.configurator-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.configurator-tab {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.configurator-tab:hover {
    background: rgba(0, 92, 255, 0.03);
    border-color: rgba(0, 92, 255, 0.3);
    transform: translateY(-2px);
}

.configurator-tab.active {
    background: rgba(0, 92, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 92, 255, 0.15);
}

.configurator-tab .tab-icon {
    font-size: 1.8rem;
}

.configurator-tab .tab-name {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.configurator-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

@media (max-width: 768px) {
    .configurator-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    .configurator-grid {
        grid-template-columns: 1fr;
    }
}

/* Range Slider */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.slider-val {
    color: var(--primary);
    font-size: 1.1rem;
    font-family: var(--font-mono);
}

.configurator-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.07);
    outline: none;
    transition: background 0.3s;
}

.configurator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary-glow);
    transition: transform 0.1s;
}

.configurator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Location Selector Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.location-option {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.location-option:hover {
    background: rgba(0, 212, 255, 0.04);
    border-color: rgba(0, 212, 255, 0.3);
}

.location-option.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

/* Configurator Summary Card */
.configurator-summary {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-glass);
    padding-top: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

/* Live Node Stats board */
.stats-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 4.5rem 0;
}

.stat-item {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.stat-val {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Technical Server Table */
.esports-table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    margin-bottom: 5rem;
}

.esports-table {
    width: 100%;
    border-collapse: collapse;
}

.esports-table th {
    background: rgba(4, 6, 12, 0.9);
    padding: 1rem;
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1.5px solid var(--border-glass);
}

.esports-table td {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
}

.esports-row {
    transition: background 0.2s ease;
}

.esports-row:hover {
    background: rgba(0, 92, 255, 0.015);
}

.game-title-cell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.game-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hardware-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.ping-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--success);
}

.ping-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

/* Comparison Table Grid */
.comparison-section {
    margin: 5rem 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s;
}

.comparison-card.recommended {
    border: 1.5px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 92, 255, 0.06);
    background: rgba(10, 18, 30, 0.75);
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    .comparison-card.recommended {
        transform: none;
    }
}

.comparison-card h3 {
    margin-bottom: 0.5rem;
}

.comparison-price {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}

.comparison-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comparison-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.88rem;
}

.comparison-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Theme Switcher & Zap-Hosting Inspired Light Mode Overrides
   ========================================================================== */

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 0.45rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.theme-toggle-btn:hover {
    color: var(--primary);
    background: var(--bg-card-hover);
    border-color: var(--border-glass);
    transform: scale(1.05);
}

/* Light Theme Style Rules */
body.light-theme header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}
body.light-theme .logo-text {
    color: #0f172a;
}
body.light-theme .nav-links a:hover, body.light-theme .nav-links a.active {
    color: var(--primary);
    background: rgba(0, 92, 255, 0.05);
    border-color: rgba(0, 92, 255, 0.15);
}
body.light-theme .comparison-card.recommended {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 92, 255, 0.05);
}
body.light-theme .btn-primary {
    color: #ffffff !important;
}
body.light-theme .btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
body.light-theme .rack-cabinet {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}
body.light-theme .rack-title-bar {
    border-bottom: 1px solid #e2e8f0;
}
body.light-theme .rack-blade {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
body.light-theme .card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
body.light-theme .card:hover {
    background: #f8fafc;
    border-color: rgba(0, 92, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 92, 255, 0.06);
}
body.light-theme .form-control {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
body.light-theme .form-control:focus {
    background: #ffffff;
    border-color: var(--primary);
}
body.light-theme select.form-control {
    background-color: #f8fafc;
}
body.light-theme .comparison-price {
    color: #0f172a;
}
body.light-theme table th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}
body.light-theme table td {
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}
body.light-theme table tr:hover td {
    background: #f8fafc;
}
body.light-theme .sidebar-link {
    color: #475569;
}
body.light-theme .sidebar-link:hover, body.light-theme .sidebar-link.active {
    background: rgba(0, 92, 255, 0.05);
    color: var(--primary);
}
body.light-theme .terminal-container {
    background: #0f172a;
    color: #f8fafc;
}
body.light-theme .terminal-line {
    color: #f8fafc;
}
body.light-theme .terminal-line-success {
    color: #10b981 !important;
}
body.light-theme .alert {
    background: rgba(0, 92, 255, 0.05);
    border-color: rgba(0, 92, 255, 0.15);
    color: #0f172a;
}
body.light-theme .alert-danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}
body.light-theme .alert-success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
body.light-theme .console-input {
    background: #1e293b !important;
    color: #f8fafc !important;
}
body.light-theme .progress-bar {
    background: #e2e8f0 !important;
}
body.light-theme .progress-fill {
    background: var(--primary) !important;
}
body.light-theme .nav-user {
    background: rgba(0, 92, 255, 0.03);
    border: 1px solid #cbd5e1;
    color: #334155;
}
body.light-theme footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}
body.light-theme footer a {
    color: #64748b !important;
}
body.light-theme footer a:hover {
    color: var(--primary) !important;
}
body.light-theme footer p {
    color: #64748b !important;
}
body.light-theme .led-online {
    box-shadow: 0 0 10px #10b981;
}

/* Configurator Interactive Styles */
.config-game-btn:hover {
    border-color: rgba(0, 92, 255, 0.4) !important;
    background: rgba(0, 92, 255, 0.03) !important;
}
.config-game-btn.active {
    border-color: var(--primary) !important;
    background: rgba(0, 92, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 92, 255, 0.1);
}
.loc-card:hover {
    border-color: rgba(0, 92, 255, 0.4) !important;
    background: rgba(0, 92, 255, 0.03) !important;
}
.loc-card.active {
    border-color: var(--primary) !important;
    background: rgba(0, 92, 255, 0.08) !important;
}

body.light-theme .config-game-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.light-theme .config-game-btn:hover {
    background: rgba(0, 92, 255, 0.03) !important;
    border-color: rgba(0, 92, 255, 0.3) !important;
}
body.light-theme .config-game-btn.active {
    background: rgba(0, 92, 255, 0.08) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

body.light-theme .loc-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.light-theme .loc-card:hover {
    background: rgba(0, 92, 255, 0.03) !important;
    border-color: rgba(0, 92, 255, 0.3) !important;
}
body.light-theme .loc-card.active {
    background: rgba(0, 92, 255, 0.08) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}


/* Game Filter Tabs Styling */
.filter-tab {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0.2rem;
}
.filter-tab:hover {
    color: #fff;
    background: rgba(0, 92, 255, 0.04);
    border-color: rgba(0, 92, 255, 0.2);
    transform: translateY(-1px);
}
.filter-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

body.light-theme .filter-tab {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
body.light-theme .filter-tab:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
body.light-theme .filter-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 92, 255, 0.2);
}

/* Game SVG Icon helper */
.game-svg-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Antigravity SVG Utility Classes */
.icon-inline {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    display: inline-block;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.sidebar-icon {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    display: inline-block;
    margin-right: 0.75rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.title-icon {
    width: 1.35em;
    height: 1.35em;
    vertical-align: -0.25em;
    display: inline-block;
    margin-right: 0.6rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    transition: all 0.2s ease;
}

.tab-icon {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    display: inline-block;
    margin-right: 0.5rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: all 0.2s ease;
}

/* User Profile Dropdown */
.nav-user-container {
    position: relative;
    display: inline-block;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s ease;
}

.nav-user-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #0b0f19;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    z-index: 1010;
}

.nav-user-dropdown.active {
    display: flex;
}

.nav-user-dropdown a {
    color: var(--text-muted) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

.nav-user-dropdown a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Light Theme overrides for dropdown */
body.light-theme .nav-user-dropdown {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
body.light-theme .nav-user-dropdown a:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}
body.light-theme .nav-user-dropdown hr {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Light Theme overrides for admin tabs */
body.light-theme .admin-tab {
    color: #64748b;
}
body.light-theme .admin-tab:hover, body.light-theme .admin-tab.active {
    color: var(--primary) !important;
    background: rgba(0, 92, 255, 0.05) !important;
}

/* Horizontal Server Cards Layout */
.server-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 5rem;
}
.server-card-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    width: 100%;
}
.server-card-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}
.server-card-horizontal-info {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.server-card-horizontal-specs {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    padding: 0 2rem;
    margin: 0 2rem;
}
.server-card-horizontal-action {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: center;
}

@media (max-width: 992px) {
    .server-card-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .server-card-horizontal-specs {
        border-left: none;
        border-right: none;
        padding: 1rem 0;
        margin: 0;
        border-top: 1px solid var(--border-glass);
        border-bottom: 1px solid var(--border-glass);
    }
    .server-card-horizontal-action {
        align-items: stretch;
        text-align: left;
    }
}

/* ==========================================================================
   Vertical Gameserver Grid & Card Design (Original Covers & Premium Cards)
   ========================================================================== */

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.server-card-vertical {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* GPU-beschleunigtes Clipping zur Vermeidung von Subpixel-Lücken/Rändern bei Skalierungen */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.server-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), var(--shadow-primary);
    border-color: rgba(0, 92, 255, 0.3);
}

body.light-theme .server-card-vertical:hover {
    box-shadow: 0 15px 35px rgba(0, 92, 255, 0.08), 0 0 15px rgba(0, 92, 255, 0.1);
}

.server-card-cover {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: var(--bg-card);
    /* -2px margin-bottom combined with z-index ensures the body overlaps the cover container */
    /* to completely prevent subpixel/white rendering line glitches on hover scaling. */
    margin-bottom: -2px;
    z-index: 1;
}

.server-card-cover img {
    display: block; /* Verhindert das standardmäßige Inline-Loch unter Bildern */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    /* GPU acceleration & backface visibility to prevent flickering and subpixel rendering artifacts */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.server-card-vertical:hover .server-card-cover img {
    transform: scale(1.06) translateZ(0);
}

/* Cover gradient overlay - dynamically uses var(--bg-card) for both light and dark themes */
.server-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
    transition: background 0.2s ease;
}

.server-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    /* Explicit background and relative positioning with z-index overlaps the cover container */
    background: var(--bg-card);
    position: relative;
    z-index: 2;
}

.server-card-specs {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 0;
    margin: 0.5rem 0;
}

.server-card-spec-item {
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.server-card-spec-item strong {
    color: var(--text-muted);
}

.server-card-highlight {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

body.light-theme .server-card-highlight {
    color: var(--primary);
}

.server-card-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 0.5rem;
}

body.light-theme .server-card-meta {
    border-top-color: rgba(0,0,0,0.02);
}



