/* Theme Picker */
.theme-picker {
    position: fixed;
    top: 20px;
    right: 80px;
    z-index: 100;
}
.theme-picker-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.theme-picker-btn:hover {
    border-color: var(--accent);
}
.theme-picker-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 160px;
    box-shadow: 0 8px 30px var(--accent-glow);
}
.theme-picker-dropdown.open {
    display: flex;
}
.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.theme-option:hover {
    transform: scale(1.2);
    border-color: var(--accent);
}
.theme-option.active {
    border-color: var(--accent);
}

/* Accent color CSS variables */
/* Tile Size Control */.tile-size-control {    transition: all 0.3s ease;}.tile-size-control:hover {    border-color: var(--accent);    box-shadow: 0 4px 20px var(--accent-glow);}#tileSizeSlider::-webkit-slider-thumb {    -webkit-appearance: none;    appearance: none;    width: 18px;    height: 18px;    border-radius: 50%;    background: var(--accent);    cursor: pointer;    border: 2px solid var(--bg-primary);    box-shadow: 0 2px 8px var(--accent-glow);    transition: transform 0.2s ease;}#tileSizeSlider::-webkit-slider-thumb:hover {    transform: scale(1.2);}#tileSizeSlider::-moz-range-thumb {    width: 18px;    height: 18px;    border-radius: 50%;    background: var(--accent);    cursor: pointer;    border: 2px solid var(--bg-primary);    box-shadow: 0 2px 8px var(--accent-glow);}/* Tile Size CSS Variables */:root {    /* Tile sizes: 0=XS, 1=S, 2=M, 3=L, 4=XL */    --tile-card-min-width: 280px;    --tile-scale: 1;}:root[data-tile-size="0"] {    --tile-card-min-width: 160px;    --tile-scale: 0.65;}:root[data-tile-size="1"] {    --tile-card-min-width: 220px;    --tile-scale: 0.85;}:root[data-tile-size="2"] {    --tile-card-min-width: 280px;    --tile-scale: 1;}:root[data-tile-size="3"] {    --tile-card-min-width: 360px;    --tile-scale: 1.15;}:root[data-tile-size="4"] {    --tile-card-min-width: 460px;    --tile-scale: 1.3;}
:root[data-accent="purple"],
body[data-accent="purple"] {
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
}
:root[data-accent="green"],
body[data-accent="green"] {
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.4);
}
:root[data-accent="fire"],
body[data-accent="fire"] {
    --accent: #f97316;
    --accent-glow: rgba(249, 115, 22, 0.4);
}

/* Light mode accent overrides */
body.light-mode[data-accent="purple"] {
    --accent: #9333ea;
    --accent-glow: rgba(147, 51, 234, 0.3);
}
body.light-mode[data-accent="green"] {
    --accent: #16a34a;
    --accent-glow: rgba(22, 163, 74, 0.3);
}
body.light-mode[data-accent="fire"] {
    --accent: #ea580c;
    --accent-glow: rgba(234, 88, 12, 0.3);
}

/* Header accent colors */
:root[data-accent="purple"] header h1,
body[data-accent="purple"] header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulsePurple 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}
:root[data-accent="green"] header h1,
body[data-accent="green"] header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulseGreen 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6));
}
:root[data-accent="fire"] header h1,
body[data-accent="fire"] header h1 {
    background: linear-gradient(135deg, #ffffff 0%, #f97316 50%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulseFire 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.6));
}

/* Light mode header accents */
body.light-mode[data-accent="purple"] header h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #9333ea 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulsePurple 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5));
}
body.light-mode[data-accent="green"] header h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #16a34a 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulseGreen 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(22, 163, 74, 0.5));
}
body.light-mode[data-accent="fire"] header h1 {
    background: linear-gradient(135deg, #1a1a2e 0%, #ea580c 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulseFire 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(234, 88, 12, 0.5));
}

/* Title pulse keyframes */
@keyframes titlePulsePurple {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(192, 132, 252, 0.9)); }
}
@keyframes titlePulseGreen {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(74, 222, 128, 0.9)); }
}
@keyframes titlePulseFire {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.6)); }
    50% { filter: drop-shadow(0 0 35px rgba(251, 146, 60, 0.9)); }
}

/* Card glow on hover */
.server-card:hover {
    box-shadow: 0 0 25px var(--accent), 0 12px 40px var(--accent-glow);
}

/* === INLINED STYLES === */

        :root {
            /* Dark Theme (Default) */
            --bg-primary: rgba(20, 20, 30, 0.85);
            --bg-secondary: rgba(10, 10, 20, 0.7);
            --bg-tertiary: rgba(255, 255, 255, 0.03);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.5);
            --border-color: rgba(255, 255, 255, 0.12);
            --border-hover: rgba(255, 255, 255, 0.25);
            --accent: #00d4ff;
            --accent-glow: rgba(0, 212, 255, 0.15);
            --online: #22c55e;
            --offline: #ef4444;
            --warning: #eab308;
            --card-bg: rgba(20, 20, 30, 0.85);
            --card-hover: rgba(255, 255, 255, 0.05);
            --overlay-bg: rgba(10, 10, 20, 0.95);

        /* Accent color variants */
        :root[data-accent="purple"],
        body[data-accent="purple"] {
            --accent: #a855f7;
            --accent-glow: rgba(168, 85, 247, 0.3);
        }
        :root[data-accent="green"],
        body[data-accent="green"] {
            --accent: #22c55e;
            --accent-glow: rgba(34, 197, 94, 0.3);
        }
        :root[data-accent="fire"],
        body[data-accent="fire"] {
            --accent: #f97316;
            --accent-glow: rgba(249, 115, 22, 0.3);
        }

        /* Light mode accent overrides */
        body.light-mode[data-accent="purple"] {
            --accent: #9333ea;
            --accent-glow: rgba(147, 51, 234, 0.25);
        }
        body.light-mode[data-accent="green"] {
            --accent: #16a34a;
            --accent-glow: rgba(22, 163, 74, 0.25);
        }
        body.light-mode[data-accent="fire"] {
            --accent: #ea580c;
            --accent-glow: rgba(234, 88, 12, 0.25);
        }

        }

        body.light-mode {
            /* Light Theme - More transparent so background shows through */
            --bg-primary: rgba(255, 255, 255, 0.55);
            --bg-secondary: rgba(240, 240, 245, 0.35);
            --bg-tertiary: rgba(0, 0, 0, 0.04);
            --text-primary: #1a1a2e;
            --text-secondary: rgba(26, 26, 46, 0.7);
            --text-muted: rgba(26, 26, 46, 0.5);
            --border-color: rgba(0, 0, 0, 0.2);
            --border-hover: rgba(0, 0, 0, 0.35);
            --accent: #0088aa;
            --accent-glow: rgba(0, 136, 170, 0.2);
            --card-bg: rgba(255, 255, 255, 0.85);
            --card-hover: rgba(0, 0, 0, 0.04);
            --overlay-bg: rgba(255, 255, 255, 0.85);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            min-height: 100vh;
            background-image: url('/images/background.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            background-repeat: no-repeat;
            color: var(--text-primary);
            transition: background-color 0.3s, color 0.3s;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background: var(--bg-secondary);
            z-index: -1;
        }

        /* Login Overlay */
        .login-overlay {
            position: fixed;
            inset: 0;
            background: var(--overlay-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            backdrop-filter: blur(5px);
        }

        .login-overlay.hidden {
            display: none;
        }

        .login-box {
            background: var(--bg-primary);
            border: 2px solid var(--border-color);
            border-radius: 4px;
            padding: 40px;
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .login-box h2 {
            font-size: 1.5rem;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .login-box p {
            color: var(--text-secondary);
            margin-bottom: 24px;
            font-size: 0.9rem;
        }

        .login-box input[type="password"] {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid var(--border-color);
            border-radius: 2px;
            background: var(--bg-tertiary);
            color: var(--text-primary);
            font-size: 1rem;
            font-family: inherit;
            margin-bottom: 16px;
            outline: none;
            transition: border-color 0.2s;
        }

        .login-box input[type="password"]:focus {
            border-color: var(--accent);
        }

        .login-box button {
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 2px;
            background: var(--accent);
            color: #000000;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s;
        }

        .login-box button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px var(--accent-glow);
        }

        .login-error {
            color: #ef4444;
            margin-top: 12px;
            font-size: 0.85rem;
            display: none;
        }

        .login-error.show {
            display: block;
        }

        /* Main Content */
        .main-content {
            display: none;
        }

        .main-content.visible {
            display: block;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
        }

        header h1 {
            font-size: 3rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #00ff88 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
            animation: titlePulse 3s ease-in-out infinite;
        }

        @keyframes titlePulse {
            0%, 100% {
                filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
            }
            50% {
                filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)) drop-shadow(0 0 60px rgba(0, 255, 136, 0.5));
            }
        }

        body.light-mode header h1 {
            background: linear-gradient(135deg, #1a1a2e 0%, #0088aa 50%, #00d4ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 15px rgba(0, 136, 170, 0.4));
        }

        header .subtitle {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 300;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }

        /* Theme Toggle Button */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 2px solid var(--border-color);
            background: var(--bg-primary);
            color: var(--text-primary);
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 100;
        }

        .theme-toggle:hover {
            border-color: var(--accent);
            box-shadow: 0 4px 20px var(--accent-glow);
        }

        .theme-toggle.rotating {
            animation: rotateButton 0.6s ease-in-out;
        }

        @keyframes rotateButton {
            0% { transform: rotate(0deg); }
            50% { transform: rotate(180deg); }
            100% { transform: rotate(360deg); }
        }

        /* Light Mode Adjustments */
        body.light-mode .login-overlay {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(5px);
        }

        body.light-mode .server-players {
            background: rgba(34, 197, 94, 0.15);
        }

        body.light-mode .monitor-status {
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
        }

        body.light-mode .monitor-status.down {
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
        }

        body.light-mode .header h1 {
            background: linear-gradient(135deg, #1a1a2e 0%, #0088aa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .overall-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            margin-bottom: 40px;
            padding: 20px 32px;
            background: var(--bg-primary);
            border: 2px solid var(--border-color);
            border-radius: 4px;
            width: fit-content;
            margin-left: auto;
            margin-right: auto;
        }

        .status-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 20px #22c55e, 0 0 40px rgba(34, 197, 94, 0.3);
        }

        .status-dot.down {
            background: #ef4444;
            box-shadow: 0 0 20px #ef4444;
            animation: none;
        }

        .status-dot.partial {
            background: #eab308;
            box-shadow: 0 0 20px #eab308;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.9); }
        }

        .status-text {
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .player-count-global {
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--accent);
        }

        .groups {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(var(--tile-card-min-width), 1fr));
            gap: 20px;
        }

        .group {
            background: var(--card-bg) !important;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            overflow: hidden;
        }

        .group-header {
            padding: 20px 24px;
            border-bottom: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--bg-tertiary);
        }

        .group-icon {
            font-size: 1.6rem;
        }

        .group-name {
            font-size: 1.15rem;
            font-weight: 600;
            letter-spacing: -0.01em;
        }

        .group-count {
            margin-left: auto;
            font-size: 0.8rem;
            color: var(--text-muted);
            background: var(--bg-tertiary);
            padding: 6px 14px;
            border-radius: 20px;
        }

        .monitors {
            padding: 8px 0;
        }

        .monitor {
            display: flex;
            align-items: center;
            padding: 14px 24px;
            gap: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .monitor:last-child {
            border-bottom: none;
        }

        .monitor:hover {
            background: var(--card-hover);
        }

        .monitor-status {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            flex-shrink: 0;
            background: #22c55e;
            box-shadow: 0 0 12px #22c55e;
        }

        .monitor-status.down {
            background: #ef4444;
            box-shadow: 0 0 12px #ef4444;
        }

        .monitor-name {
            font-size: 0.95rem;
            font-weight: 400;
            flex: 1;
        }

        .monitor-type {
            font-size: 0.72rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 4px 10px;
            border: 1px solid var(--border-color);
            border-radius: 2px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .monitor-cert {
            font-size: 0.72rem;
            padding: 5px 12px;
            border-radius: 8px;
            font-weight: 600;
        }

        .monitor-cert.ok {
            color: #22c55e;
            background: rgba(34, 197, 94, 0.12);
        }

        .monitor-cert.warn {
            color: #eab308;
            background: rgba(234, 179, 8, 0.12);
        }

        .monitor-cert.expired {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.12);
        }

        .loading {
            text-align: center;
            padding: 80px;
            color: var(--text-muted);
            font-size: 1rem;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--border-color);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 16px;
        }

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

        .error {
            text-align: center;
            padding: 40px;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
            border-radius: 16px;
            color: #ef4444;
        }

        footer {
            margin-top: 50px;
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        footer a {
            color: var(--text-secondary);
            text-decoration: none;
        }

        footer a:hover {
            color: var(--text-primary);
            text-decoration: underline;
        }

        .footer-divider {
            color: var(--text-muted);
            margin: 0 10px;
        }

        .last-updated {
            margin-top: 12px;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .logo {
            width: 60px;
            height: 60px;
            margin-bottom: 16px;
        }

        @media (max-width: 600px) {
            header h1 { font-size: 2rem; }
            .monitor { padding: 14px 18px; }
            .monitor-type, .monitor-cert { display: none; }
            .group-header { padding: 18px 20px; }
        }

        /* Game Server Cards */
        .game-servers {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(var(--tile-card-min-width), 1fr));
            gap: 20px;
            margin-top: 16px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        .service-card {
            background: var(--card-bg) !important;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            padding: 16px 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            cursor: default;
            transition: all 0.3s ease;
            transform-origin: center center;
            opacity: 0;
            transform: scale(1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            animation: modernCardEntrance 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }
        
        .service-card.online {
            border-color: var(--online);
        }
        
        .service-card.offline {
            border-color: var(--offline);
        }
        
        .service-card:hover {
            border-color: var(--accent);
            transform: translateY(-4px) scale(1.03) !important;
            box-shadow: 0 0 25px var(--accent), 0 12px 40px var(--accent-glow);
            z-index: 10;
        }
        
        .service-info {
            flex: 1;
            min-width: 0;
        }
        
        .service-name {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 4px;
            color: var(--text-primary);
        }
        
        .service-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .service-status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .service-status-badge.online {
            background: rgba(34, 197, 94, 0.2);
            color: var(--online);
        }
        
        .service-status-badge.offline {
            background: rgba(239, 68, 68, 0.2);
            color: var(--offline);
        }
        
        .service-ping {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .server-card {
            background: var(--card-bg) !important;
            border: 2px solid var(--border-color);
            border-radius: 4px;
            padding: 16px 20px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            transform-origin: center center;
            /* Animation handled by JS */
            opacity: 0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            transform: scale(1);
        }

        @keyframes cardEntrance {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .server-card:hover {
            border-color: var(--accent);
            transform: translateY(-4px) scale(1.03) !important;
            box-shadow: 0 0 25px var(--accent), 0 12px 40px var(--accent-glow);
            z-index: 10;
        }

        /* Click/Active State */
        .server-card:active {
            transform: translateY(-2px) scale(0.98);
            transition-duration: 0.1s;
        }

        .server-thumb {
            width: 100%;
            max-width: 460px;
            height: auto;
            aspect-ratio: 460 / 215;
            object-fit: cover;
            border-radius: 4px;
            background: var(--bg-tertiary);
            transition: transform 0.3s ease, filter 0.3s ease;
        }
        .server-card:hover .server-thumb {
            transform: scale(1.02);
            filter: brightness(1.05);
        }

        .server-thumb-placeholder {
            width: 100%;
            max-width: 460px;
            aspect-ratio: 460 / 215;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-tertiary);
            border-radius: 4px;
            font-size: 1.5rem;
        }

        .server-status {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
            align-self: flex-start;
            margin-top: 4px;
            transition: background-color 0.5s ease, box-shadow 0.5s ease;
        }

        .server-status-text.online { color: #22c55e; font-weight: 600; margin-left: 8px; }
        .server-status-text.offline { color: #ef4444; font-weight: 600; margin-left: 8px; }

        .server-status.online {
            background: #22c55e;
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
        }

        .server-status.offline {
            background: #ef4444;
            box-shadow: none;
        }

        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
            }
            50% {
                box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
            }
        }
            background: #ef4444;
            box-shadow: none;
        }

        .server-info {
            flex: 1;
            min-width: 150px;
        }

        .server-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .server-ip {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-family: monospace;
        }

        .server-players {
            text-align: center;
            padding: 8px 12px;
            background: rgba(34, 197, 94, 0.15);
            border-radius: 4px;
            min-width: 60px;
            flex-shrink: 0;
        }

        .player-count {
            display: block;
            font-size: 1.5rem;
            font-weight: 700;
            color: #22c55e;
        }

        .player-label {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.5);
            text-transform: uppercase;
        }
    
/* ===== MODERNISIERTE SERVER-KARTEN v10.8 ===== */

/* Verbesserte Server-Card Base */
.server-card {
    background: var(--card-bg) !important;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    opacity: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.05) inset;
    position: relative;
    overflow: hidden;
}



/* Hover-Effekt — v10.7 Glow Style */
.server-card:hover {
    box-shadow: 0 0 25px var(--accent), 0 12px 40px var(--accent-glow);
}

/* Active State */
.server-card:active {
    transform: translateY(-4px) scale(0.99) !important;
    transition-duration: 0.1s;
}

/* Server Thumbnail */
.server-thumb {
    width: 100%;
    max-width: 460px;
    height: auto;
    aspect-ratio: 460 / 215;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-tertiary);
    transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.server-card:hover .server-thumb {
    transform: scale(1.03);
    filter: brightness(1.08);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.server-thumb-placeholder {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 460 / 215;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 12px;
    font-size: 2rem;
}

/* Server Status Indicator */
.server-status {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
    transition: all 0.4s ease;
    position: relative;
}

.server-status.online {
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6), 0 0 24px rgba(34, 197, 94, 0.3);
}

.server-status.offline {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
    animation: none;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.6), 0 0 24px rgba(34, 197, 94, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.9), 0 0 40px rgba(34, 197, 94, 0.5);
    }
}

/* Server Info */
.server-info {
    flex: 1;
    min-width: 150px;
}

.server-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.server-ip {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

/* Verbesserte Spieler-Anzeige */
.server-players {
    text-align: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    min-width: 70px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.server-players::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-card:hover .server-players::before {
    opacity: 1;
}

.server-card:hover .server-players {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.player-count {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    position: relative;
}

.player-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

/* Server Status Text */
.server-status-text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 8px;
}

.server-status-text.online { 
    color: #22c55e; 
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.server-status-text.offline { 
    color: #ef4444; 
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Card Entrance Animation */
@keyframes modernCardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Tile Size - Internal element scaling */
:root[data-tile-size="0"] .server-card {
    font-size: 0.75rem;
}
:root[data-tile-size="0"] .server-card .server-name { font-size: 0.9rem; }
:root[data-tile-size="0"] .server-card .server-ip { font-size: 0.65rem; padding: 2px 6px; }
:root[data-tile-size="0"] .server-card .server-players { padding: 8px 10px; min-width: 50px; }
:root[data-tile-size="0"] .server-card .player-count { font-size: 1.2rem; }
:root[data-tile-size="0"] .server-card .player-label { font-size: 0.6rem; }
:root[data-tile-size="0"] .server-card .server-thumb { max-width: 100%; border-radius: 8px; }

:root[data-tile-size="1"] .server-card {
    font-size: 0.85rem;
}
:root[data-tile-size="1"] .server-card .server-name { font-size: 1rem; }
:root[data-tile-size="1"] .server-card .server-ip { font-size: 0.75rem; }
:root[data-tile-size="1"] .server-card .server-players { padding: 10px 14px; min-width: 60px; }
:root[data-tile-size="1"] .server-card .player-count { font-size: 1.4rem; }
:root[data-tile-size="1"] .server-card .player-label { font-size: 0.65rem; }

:root[data-tile-size="3"] .server-card .player-count { font-size: 2rem; }
:root[data-tile-size="4"] .server-card .player-count { font-size: 2.2rem; }

:root[data-tile-size="0"] .server-card .server-status { width: 10px; height: 10px; }
:root[data-tile-size="0"] .server-card .server-status-text { font-size: 0.6rem; padding: 2px 6px; white-space: nowrap; margin-left: 4px; }


:root[data-tile-size="0"] .server-card .server-status { width: 10px; height: 10px; }
:root[data-tile-size="0"] .server-card .server-status-text { font-size: 0.6rem; padding: 2px 6px; white-space: nowrap; margin-left: 4px; }
