body {
    background-color: #0B0B0B;
    color: #FFFFFF;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* CRT Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
}

/* CRT Power-On Animation */
@keyframes crtTurnOn {
    0% {
        opacity: 0;
        transform: scale(0.95, 0.05);
        filter: brightness(8);
    }
    60% {
        opacity: 1;
        transform: scale(1.02, 1.02);
        filter: brightness(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1, 1);
        filter: brightness(1);
    }
}

.terminal {
    text-align: center;
    border: 1px solid #87A9A2;
    padding: 40px;
    background-color: #0B0B0B;
    position: relative;
    z-index: 10;
    animation: crtTurnOn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.brand-logo {
    display: block;
    max-width: 300px;
    width: 100%;
    margin: 0 auto 20px auto; 
}

.status-grid {
    text-align: left;
    display: inline-block;
    border-top: 1px solid #333;
    padding-top: 20px;
}

@keyframes pulseGlow {
    0% { opacity: 1; text-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
    50% { opacity: 0.4; text-shadow: none; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(255, 68, 68, 0.6); }
}

.offline { 
    color: #FF4444; 
    animation: pulseGlow 2s infinite ease-in-out;
}

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

.access-portal {
    margin-top: 20px;
}

.access-portal a {
    color: #87A9A2;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #87A9A2;
    padding: 8px 15px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Blinking underscore cursor */
.access-portal a::after {
    content: "_";
    animation: blink 1s infinite;
    margin-left: 5px;
    font-weight: bold;
}

/* Light sweep effect on hover */
.access-portal a::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(135, 169, 162, 0.3), transparent);
    transition: 0.5s;
    pointer-events: none;
}

.access-portal a:hover::before {
    left: 100%;
}

.access-portal a:hover {
    background-color: #87A9A2;
    color: #0B0B0B;
}