/* Global variables */
:root {
    --glass-background: rgba(0, 0, 0, 0.35);
    --glass-border: rgba(255, 255, 255, 0.1);
    --space-purple: #9d4edd;
    --space-blue: #3a86ff;
    --space-pink: #ff006e;
    --space-cyan: #06ffa5;
    --space-orange: #fb5607;
    --space-gold: #ffbe0b;
}

/* Ensure scrolling works */
body, html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    margin: 0;
    padding: 0;
}

/* DEEP SPACE BACKGROUND */
#__next,
#page_wrapper {
    background: 
        radial-gradient(ellipse at 20% 80%, #1a0033 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #001a33 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, #0d001a 0%, transparent 80%),
        #000000 !important;
    background-attachment: fixed !important;
    position: relative;
    min-height: 100vh;
}

/* AURORA WAVES - Subtle color shifts */
#__next::before,
#__next::after {
    animation: starsTwinkle1 8s ease-in-out infinite, starPulse 3s ease-in-out infinite, auroraWaves 30s ease-in-out infinite !important;
}
/* STARS LAYER 1 - Small twinkling stars */
#__next::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, white, transparent),
        radial-gradient(1px 1px at 30% 60%, white, transparent),
        radial-gradient(2px 2px at 50% 30%, white, transparent),
        radial-gradient(1px 1px at 70% 80%, white, transparent),
        radial-gradient(2px 2px at 85% 40%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent),
        radial-gradient(1px 1px at 45% 10%, white, transparent),
        radial-gradient(2px 2px at 65% 70%, white, transparent),
        radial-gradient(1px 1px at 90% 15%, white, transparent),
        radial-gradient(2px 2px at 25% 45%, white, transparent) !important;
    background-size: 400px 400px !important;
    background-repeat: repeat !important;
    animation: starsTwinkle1 8s ease-in-out infinite, starPulse 3s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes starsTwinkle1 {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* STARS LAYER 2 - Larger colored stars */
#__next::after {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: 
        radial-gradient(3px 3px at 20% 30%, rgba(157, 78, 221, 0.8), transparent),
        radial-gradient(2px 2px at 60% 50%, rgba(58, 134, 255, 0.8), transparent),
        radial-gradient(3px 3px at 80% 70%, rgba(255, 0, 110, 0.8), transparent),
        radial-gradient(2px 2px at 40% 85%, rgba(6, 255, 165, 0.8), transparent),
        radial-gradient(3px 3px at 15% 65%, rgba(255, 190, 11, 0.8), transparent),
        radial-gradient(2px 2px at 75% 25%, rgba(251, 86, 7, 0.8), transparent),
        radial-gradient(3px 3px at 55% 15%, rgba(157, 78, 221, 0.8), transparent),
        radial-gradient(2px 2px at 35% 95%, rgba(58, 134, 255, 0.8), transparent) !important;
    background-size: 600px 600px !important;
    background-repeat: repeat !important;
    animation: starsTwinkle2 12s ease-in-out infinite 2s !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes starsTwinkle2 {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* NEBULA GAS CLOUDS */
#page_wrapper::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: 
        radial-gradient(ellipse at 15% 25%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 75%, rgba(255, 0, 110, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(58, 134, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(6, 255, 165, 0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 70%, rgba(251, 86, 7, 0.1) 0%, transparent 40%) !important;
    animation: nebulaDrift 30s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

@keyframes nebulaDrift {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(20px, -20px) scale(1.05);
        opacity: 1;
    }
}

/* DISTANT GALAXY */
#page_wrapper::after {
    content: '' !important;
    position: fixed !important;
    top: 15% !important;
    right: 10% !important;
    width: 200px !important;
    height: 200px !important;
    background: 
        radial-gradient(ellipse at center, 
            rgba(157, 78, 221, 0.3) 0%,
            rgba(58, 134, 255, 0.2) 30%,
            rgba(255, 0, 110, 0.1) 60%,
            transparent 80%
        ) !important;
    filter: blur(20px) !important;
    animation: galaxyRotate 60s linear infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MOON RISE/SET - Slowly moving celestial body */
#page_container::before {
    content: '' !important;
    position: fixed !important;
    width: 120px !important;
    height: 120px !important;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(220, 220, 255, 0.12) 30%,
            rgba(180, 180, 220, 0.08) 60%,
            transparent 80%
        ) !important;
    border-radius: 50% !important;
    filter: blur(2px) !important;
    animation: moonCycle 180s linear infinite !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 0.6 !important;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.1),
        inset -20px -20px 20px rgba(0, 0, 0, 0.2) !important;
}

@keyframes moonCycle {
    0% { 
        left: -150px;
        bottom: 10%;
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    15% {
        left: 15%;
        bottom: 25%;
    }
    25% {
        left: 30%;
        bottom: 35%;
    }
    35% {
        left: 45%;
        bottom: 40%;
    }
    50% {
        left: 60%;
        bottom: 45%;
        opacity: 0.8;
    }
    65% {
        left: 75%;
        bottom: 40%;
    }
    75% {
        left: 85%;
        bottom: 35%;
    }
    85% {
        left: 95%;
        bottom: 25%;
    }
    95% {
        opacity: 0.6;
    }
    100% { 
        left: calc(100% + 150px);
        bottom: 10%;
        opacity: 0;
    }
}

/* MOON GLOW - Subtle light effect */
#page_container::after {
    content: '' !important;
    position: fixed !important;
    width: 200px !important;
    height: 200px !important;
    background: 
        radial-gradient(circle, 
            rgba(255, 255, 255, 0.03) 0%,
            rgba(220, 220, 255, 0.02) 40%,
            transparent 70%
        ) !important;
    border-radius: 50% !important;
    animation: moonGlow 180s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(10px) !important;
}

@keyframes moonGlow {
    0% { 
        left: -250px;
        bottom: 0%;
        opacity: 0;
    }
    5% {
        opacity: 0.4;
    }
    15% {
        left: 10%;
        bottom: 15%;
    }
    25% {
        left: 25%;
        bottom: 25%;
    }
    35% {
        left: 40%;
        bottom: 30%;
    }
    50% {
        left: 55%;
        bottom: 35%;
        opacity: 0.6;
    }
    65% {
        left: 70%;
        bottom: 30%;
    }
    75% {
        left: 80%;
        bottom: 25%;
    }
    85% {
        left: 90%;
        bottom: 15%;
    }
    95% {
        opacity: 0.4;
    }
    100% { 
        left: calc(100% + 250px);
        bottom: 0%;
        opacity: 0;
    }
}


/* CSS-ONLY SHOOTING STARS */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, white, transparent),
        radial-gradient(2px 2px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 30% 5%, white, transparent);
    background-size: 100% 100%;
    animation: shootingStars 15s linear infinite;
    pointer-events: none;
    z-index: 3;
    opacity: 0.8;
}

@keyframes shootingStars {
    0% {
        background-position: -200px -200px, -200px -200px, -200px -200px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        background-position: 200px 200px, -100px -100px, -150px -150px;
    }
    30% {
        background-position: 400px 400px, 100px 100px, -50px -50px;
    }
    40% {
        background-position: 600px 600px, 300px 300px, 150px 150px;
    }
    50% {
        background-position: 800px 800px, 500px 500px, 350px 350px;
        opacity: 0;
    }
    60% {
        opacity: 0;
        background-position: -200px -200px, 700px 700px, 550px 550px;
    }
    70% {
        opacity: 1;
        background-position: 0px 0px, 900px 900px, 750px 750px;
    }
    80% {
        background-position: 200px 200px, 1100px 1100px, 950px 950px;
    }
    90% {
        background-position: 400px 400px, 1300px 1300px, 1150px 1150px;
    }
    100% {
        background-position: 600px 600px, 1500px 1500px, 1350px 1350px;
        opacity: 0;
    }
}

/* Main container */
#page_container {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    position: relative;
    z-index: 10 !important;
}

/* Layout: Monitoring on top (full width), then 4 columns, then Games full width */
#layout-groups {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-areas: 
        "monitoring monitoring monitoring monitoring"
        "media automation utilities downloads"
        "games games games games" !important;
    gap: 0.5rem !important;
    overflow: visible !important;
}

/* Assign grid areas to each section */
.services-group:nth-child(1) { grid-area: monitoring; } /* Monitoring - full width top */
.services-group:nth-child(2) { grid-area: media; }      /* Media */
.services-group:nth-child(3) { grid-area: automation; } /* Automation */
.services-group:nth-child(4) { grid-area: utilities; }  /* Utilities */
.services-group:nth-child(5) { grid-area: downloads; }  /* Downloads */
.services-group:nth-child(6) { grid-area: games; }      /* Games - full width bottom */

.services-group,
ul.services-list {
    overflow: visible !important;
}

.service {
    margin: 8px !important;
}

@media (max-width: 1024px) {
    #layout-groups {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-areas: 
            "monitoring monitoring"
            "media automation"
            "utilities downloads"
            "games games" !important;
    }
}

@media (max-width: 640px) {
    #layout-groups {
        grid-template-columns: 1fr !important;
        grid-template-areas: 
            "monitoring"
            "media"
            "automation" 
            "utilities"
            "downloads"
            "games" !important;
    }
    
    .service {
        padding: 12px !important;
        margin: 6px !important;
    }
    
    .services-group h2 {
        padding: 14px 20px !important;
        font-size: 1.1rem !important;
        letter-spacing: 2px !important;
    }
    
    #information-widgets {
        flex-direction: column !important;
    }
    
    #information-widgets-right {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Make Monitoring section display its widgets in a grid */
.services-group:nth-child(1) .services-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.5rem !important;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1024px) {
    .services-group:nth-child(1) .services-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .services-group:nth-child(1) .services-list {
        grid-template-columns: 1fr !important;
    }
}

.services-group {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Header - STARSHIP HUD */
.header {
    background: 
        linear-gradient(180deg, 
            rgba(26, 0, 51, 0.9) 0%, 
            rgba(0, 0, 0, 0.95) 100%
        ) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-top: 2px solid rgba(157, 78, 221, 0.5) !important;
    border-bottom: 2px solid rgba(58, 134, 255, 0.5) !important;
    box-shadow: 
        0 0 40px rgba(157, 78, 221, 0.3),
        0 0 80px rgba(58, 134, 255, 0.2),
        0 5px 30px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    font-family: 'Arial', sans-serif !important;
    position: relative;
}

/* Scanning line effect */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(6, 255, 165, 0.3) 50%,
        transparent 100%
    );
    animation: scanLine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Service group headers - PERFECTLY CENTERED */
.services-group h2 {
    background: 
        linear-gradient(135deg, 
            rgba(157, 78, 221, 0.2) 0%, 
            rgba(58, 134, 255, 0.2) 50%, 
            rgba(6, 255, 165, 0.2) 100%
        ) !important;
    padding: 16px 20px !important; /* Minimal padding */
    border-radius: 12px !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    font-weight: 600 !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-align: center !important; /* Center the text */
    text-shadow: 
        0 0 15px rgba(157, 78, 221, 1),
        0 0 30px rgba(58, 134, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.9) !important;
    border: 2px solid transparent !important;
    border-image: linear-gradient(
        135deg, 
        var(--space-purple), 
        var(--space-blue), 
        var(--space-cyan)
    ) 1 !important;
    box-shadow: 
        0 0 30px rgba(157, 78, 221, 0.4),
        0 0 50px rgba(58, 134, 255, 0.3),
        0 8px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(6, 255, 165, 0.1) !important;
    font-family: 'Arial', sans-serif !important;
    position: relative !important;
    animation: cosmicGlow 4s ease-in-out infinite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 16px !important; /* Shift the entire box to the right */
    margin-right: 0 !important; /* Keep right margin at 0 */
    width: calc(100% - 30px) !important; /* Adjust width so it doesn't overflow */
}

@keyframes cosmicGlow {
    0%, 100% { 
        box-shadow: 
            0 0 30px rgba(157, 78, 221, 0.4),
            0 0 50px rgba(58, 134, 255, 0.3),
            0 8px 30px rgba(0, 0, 0, 0.8),
            inset 0 0 40px rgba(6, 255, 165, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(157, 78, 221, 0.6),
            0 0 70px rgba(58, 134, 255, 0.5),
            0 8px 30px rgba(0, 0, 0, 0.8),
            inset 0 0 60px rgba(6, 255, 165, 0.2);
    }
}

/* Remove star icon decoration */
.services-group h2::before {
    display: none !important;
}

/* Shimmer line - BOTTOM */
.services-group h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    height: 1px !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--space-cyan) 50%,
        transparent 100%
    ) !important;
    opacity: 0.6 !important;
}

/* Service cards - SPACE STATION MODULES */
.service {
    background: 
        linear-gradient(135deg, 
            rgba(26, 0, 51, 0.8) 0%, 
            rgba(13, 0, 26, 0.9) 100%
        ) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: 
        0 0 1px rgba(157, 78, 221, 0.5),
        0 0 30px rgba(157, 78, 221, 0.2),
        0 0 60px rgba(58, 134, 255, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 50px rgba(157, 78, 221, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(157, 78, 221, 0.3) !important;
    position: relative;
    overflow: hidden;
}

/* STATUS INDICATOR DOTS */
/* Override the existing ::after for starlight shimmer - move to a different pseudo-element approach */
.service::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid transparent;
    z-index: 20;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
}

/* Move starlight shimmer to a new approach that doesn't conflict */
.service::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        linear-gradient(
            45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 60%
        ),
        radial-gradient(
            circle,
            rgba(157, 78, 221, 0.1) 0%,
            transparent 70%
        );
    transform: rotate(45deg);
    animation: starlightShimmer 10s ease-in-out infinite, energyPulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* ONLINE - Green dot */
.service:has(.docker-status-running)::after,
.service:has(.docker-status-healthy)::after,
.service:has(.service-block .text-green-500)::after,
.service:has(.ping-status):not(:has([title*="Down"]))::after {
    display: block;
    background: #00ff41;
    border-color: #00ff41;
    box-shadow: 
        0 0 8px rgba(0, 255, 65, 0.6),
        0 0 16px rgba(0, 255, 65, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: dotPulseGreen 2s ease-in-out infinite;
}

@keyframes dotPulseGreen {
    0%, 100% { 
        box-shadow: 
            0 0 8px rgba(0, 255, 65, 0.6),
            0 0 16px rgba(0, 255, 65, 0.4),
            inset 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(0, 255, 65, 0.8),
            0 0 24px rgba(0, 255, 65, 0.6),
            inset 0 0 12px rgba(255, 255, 255, 0.4);
    }
}

/* WARNING - Yellow/Orange dot */
.service:has(.docker-status-unhealthy)::after,
.service:has(.docker-status-starting)::after {
    display: block;
    background: #ffbe0b;
    border-color: #fb5607;
    box-shadow: 
        0 0 8px rgba(255, 190, 11, 0.6),
        0 0 16px rgba(251, 86, 7, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: dotPulseYellow 1.5s ease-in-out infinite;
}

@keyframes dotPulseYellow {
    0%, 100% { 
        box-shadow: 
            0 0 8px rgba(255, 190, 11, 0.6),
            0 0 16px rgba(251, 86, 7, 0.4),
            inset 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(255, 190, 11, 0.8),
            0 0 24px rgba(251, 86, 7, 0.6),
            inset 0 0 12px rgba(255, 255, 255, 0.4);
    }
}

/* OFFLINE - Red dot */
.service:has(.docker-status-exited)::after,
.service:has(.docker-status-stopped)::after,
.service:has(.service-block .text-red-500)::after,
.service:has([title*="Down"])::after,
.service:has([title*="down"])::after {
    display: block;
    background: #ff0040;
    border-color: #ff006e;
    box-shadow: 
        0 0 8px rgba(255, 0, 64, 0.6),
        0 0 16px rgba(255, 0, 110, 0.4),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: dotPulseRed 1s ease-in-out infinite;
}

@keyframes dotPulseRed {
    0%, 100% { 
        box-shadow: 
            0 0 8px rgba(255, 0, 64, 0.6),
            0 0 16px rgba(255, 0, 110, 0.4),
            inset 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 
            0 0 12px rgba(255, 0, 64, 0.8),
            0 0 24px rgba(255, 0, 110, 0.6),
            inset 0 0 12px rgba(255, 255, 255, 0.4);
    }
}

/* Hover effects for dots */
.service:hover::after {
    transform: scale(1.2);
    border-width: 1px;
}

/* Remove old separate animations that are now combined */

.service:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 0 2px rgba(6, 255, 165, 0.7),
        0 0 40px rgba(157, 78, 221, 0.4),
        0 0 80px rgba(58, 134, 255, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.9),
        inset 0 0 70px rgba(157, 78, 221, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(6, 255, 165, 0.6) !important;
}

/* Service icons - CELESTIAL OBJECTS */
.service-icon {
    filter: 
        drop-shadow(0 0 12px var(--space-purple))
        drop-shadow(0 0 24px var(--space-blue))
        brightness(1.2)
        contrast(1.2);
    transition: all 0.4s ease-out;
}

.service:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    filter: 
        drop-shadow(0 0 20px var(--space-cyan))
        drop-shadow(0 0 40px var(--space-purple))
        drop-shadow(0 0 60px var(--space-blue))
        brightness(1.4)
        contrast(1.3);
}

/* COSMIC WIND - Randomized timing for each card */
.service:nth-child(1) { animation: cosmicWind 8s ease-in-out infinite 0s !important; }
.service:nth-child(2) { animation: cosmicWind 8s ease-in-out infinite 1.2s !important; }
.service:nth-child(3) { animation: cosmicWind 8s ease-in-out infinite 2.7s !important; }
.service:nth-child(4) { animation: cosmicWind 8s ease-in-out infinite 4.1s !important; }
.service:nth-child(5) { animation: cosmicWind 8s ease-in-out infinite 0.8s !important; }
.service:nth-child(6) { animation: cosmicWind 8s ease-in-out infinite 3.4s !important; }
.service:nth-child(7) { animation: cosmicWind 8s ease-in-out infinite 1.9s !important; }
.service:nth-child(8) { animation: cosmicWind 8s ease-in-out infinite 5.2s !important; }
.service:nth-child(9) { animation: cosmicWind 8s ease-in-out infinite 2.3s !important; }
.service:nth-child(10) { animation: cosmicWind 8s ease-in-out infinite 4.6s !important; }
.service:nth-child(11) { animation: cosmicWind 8s ease-in-out infinite 1.5s !important; }
.service:nth-child(12) { animation: cosmicWind 8s ease-in-out infinite 3.8s !important; }

@keyframes cosmicWind {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(0.5deg); }
    75% { transform: translateY(2px) rotate(-0.5deg); }
}

/* ============================================
   STATUS EFFECTS - COSMIC EDITION
   ============================================ */

.docker-status div {
    display: none !important;
}

/* Supernova animation */
@keyframes supernova {
    0%, 100% {
        background: linear-gradient(135deg, rgba(26, 0, 51, 0.8), rgba(51, 0, 26, 0.9));
        border-color: rgba(255, 0, 110, 0.5);
        box-shadow: 
            0 0 1px rgba(255, 0, 110, 0.6),
            0 0 30px rgba(255, 0, 110, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.8),
            inset 0 0 50px rgba(255, 0, 110, 0.1);
    }
    50% {
        background: linear-gradient(135deg, rgba(51, 0, 26, 0.95), rgba(77, 0, 38, 0.95));
        border-color: rgba(251, 86, 7, 0.7);
        box-shadow: 
            0 0 2px rgba(251, 86, 7, 0.8),
            0 0 50px rgba(255, 0, 110, 0.5),
            0 10px 40px rgba(0, 0, 0, 0.8),
            inset 0 0 70px rgba(251, 86, 7, 0.2);
    }
}

/* ONLINE - Cyan/Purple energy */
.service:has(.docker-status-running) .service-card,
.service:has(.docker-status-healthy) .service-card {
    border-color: rgba(6, 255, 165, 0.5) !important;
    box-shadow: 
        0 0 1px rgba(6, 255, 165, 0.6),
        0 0 30px rgba(157, 78, 221, 0.3),
        0 0 60px rgba(58, 134, 255, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 0 50px rgba(6, 255, 165, 0.1) !important;
}

/* OFFLINE - Red supernova */
.service:has(.docker-status-exited) .service-card,
.service:has(.docker-status-stopped) .service-card {
    animation: supernova 2s ease-in-out infinite !important;
}

/* WARNING - Golden star */
.service:has(.docker-status-unhealthy) .service-card,
.service:has(.docker-status-starting) .service-card {
    border-color: rgba(255, 190, 11, 0.5) !important;
    box-shadow: 
        0 0 1px rgba(255, 190, 11, 0.6),
        0 0 30px rgba(251, 86, 7, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.service:has(.docker-status-running):hover .service-card,
.service:has(.docker-status-healthy):hover .service-card {
    box-shadow: 
        0 0 2px rgba(6, 255, 165, 0.8),
        0 0 40px rgba(157, 78, 221, 0.5),
        0 0 80px rgba(58, 134, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.9),
        inset 0 0 70px rgba(6, 255, 165, 0.15) !important;
}

/* Ping status */
.ping-status div {
    display: none !important;
}

.service:has(.ping-status) .service-card {
    border-color: rgba(58, 134, 255, 0.5) !important;
    box-shadow: 
        0 0 1px rgba(58, 134, 255, 0.6),
        0 0 30px rgba(157, 78, 221, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.service:has([title*="Down"]) .service-card,
.service:has([title*="down"]) .service-card {
    animation: supernova 2s ease-in-out infinite !important;
}

.service:has(.ping-status):hover .service-card {
    box-shadow: 
        0 0 2px rgba(58, 134, 255, 0.8),
        0 0 40px rgba(157, 78, 221, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.9) !important;
}

/* Minecraft status */
.service:has(.service-block .text-green-500) .service-card {
    border-color: rgba(6, 255, 165, 0.5) !important;
    box-shadow: 
        0 0 1px rgba(6, 255, 165, 0.6),
        0 0 30px rgba(58, 134, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.8) !important;
}

.service:has(.service-block .text-red-500) .service-card {
    animation: supernova 2s ease-in-out infinite !important;
}

.service:has(.service-block .text-green-500):hover .service-card {
    box-shadow: 
        0 0 2px rgba(6, 255, 165, 0.8),
        0 0 40px rgba(58, 134, 255, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.9) !important;
}

/* Widgets - NAVIGATION DISPLAY */
.widget {
    background: 
        linear-gradient(135deg, 
            rgba(26, 0, 51, 0.8), 
            rgba(13, 0, 26, 0.9)
        ) !important;
    border-radius: 14px !important;
    padding: 15px !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    box-shadow: 
        0 0 1px rgba(157, 78, 221, 0.5),
        0 0 30px rgba(157, 78, 221, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(157, 78, 221, 0.05) !important;
    border: 1px solid rgba(157, 78, 221, 0.3) !important;
    font-family: 'Courier New', monospace !important;
    color: var(--space-cyan) !important;
    text-shadow: 0 0 8px var(--space-cyan);
}

/* Subtle space particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25% 35%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 75% 65%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 45% 85%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 800px 800px;
    animation: particleFloat 40s linear infinite, solarFlare 25s ease-in-out infinite !important;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* SOLAR FLARE EFFECTS */
@keyframes solarFlare {
    0%, 90%, 100% { filter: brightness(1); }
    95% { filter: brightness(3) saturate(2); }
}

/* AURORA WAVES EFFECT */
@keyframes auroraWaves {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    33% { filter: hue-rotate(8deg) brightness(1.05); }
    66% { filter: hue-rotate(-8deg) brightness(0.95); }
}

/* 1. SPECIFIC FIX: Turn "Trash Guides" icon White */
/* This targets the link containing "trash-guides" and inverts the icon color */
a[href*="trash-guides"] img {
    filter: invert(1) brightness(2) !important;
}

/* 2. GLOBAL FIX: Add a Glow/Backlight to ALL Resource Icons */
/* This targets images inside the Resources group */
/* We use the 'href' attribute selector to be safe and specific to bookmarks */
a[href^="http"] img:not(.service-icon) {
    /* Creates a white silhouette glow behind the icon */
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 4px var(--space-cyan)) !important;
}

/* Optional: Make them pop when you hover */
a[href^="http"]:not(.service):hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 8px var(--space-purple)) !important;
}

/* ============================
   KONAMI MODAL (NEON TERMINAL)
   ============================ */

.konami-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent),
    rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

/* Modal container */
.konami-modal {
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent),
    #020617;
  border-radius: 18px;
  padding: 22px 26px;
  max-width: 420px;
  width: 90%;
  color: #e5e7eb;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

/* Glow border */
.konami-modal::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.8),
    rgba(129, 140, 248, 0.8),
    rgba(52, 211, 153, 0.8)
  );
  opacity: 0.25;
  z-index: -1;
}

/* Header row */
.konami-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Pixel icon */
.konami-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #22c55e, #16a34a);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Title + subtitle */
.konami-title {
  font-size: 16px;
  font-weight: 600;
}

.konami-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

/* Body text */
.konami-body {
  margin-top: 4px;
  font-size: 13px;
  color: #d1d5db;
}

.konami-accent {
  color: #22c55e;
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.9);
}

.konami-subtext {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* Footer / button row */
.konami-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Close button */
.konami-button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #020617;
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.konami-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.5);
}

.konami-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
}
