/* System Loader - Integrated Style */
#hacker-loader {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--black, #000000);
    border-top: 0.5px solid var(--white, #ffffff);
    padding: 4px 12px;
    color: var(--white, #ffffff);
    font-family: 'Roboto Mono', monospace;
    font-size: 8px;
    line-height: 1.3;
    z-index: 99999;
    pointer-events: auto;
    display: none; /* Hidden by default */
    text-transform: uppercase;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

#hacker-loader.visible {
    display: flex !important;
}

#loader-content {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    padding: 0;
}

#loader-content::-webkit-scrollbar {
    display: none;
}

.log-line {
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    color: #888; /* Dimmed history */
    flex-shrink: 0;
    display: block;
}

.log-line:last-child {
    color: var(--white, #ffffff); /* Active line white */
    font-weight: bold;
}

/* Status Indicator - HIDDEN */
.loader-status {
    display: none;
}

.blink-cursor {
    display: inline-block;
    width: 6px;
    height: 10px;
    background: #af1d1f; /* Site Red */
    animation: blink 1s step-end infinite;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DESKTOP: Larger, scrollable logger */
@media (min-width: 769px) {
    #hacker-loader {
        max-height: 120px;
        padding: 12px 20px;
    }
    
    #loader-content {
        max-height: 100px;
    }
    
    .log-line {
        font-size: 10px;
    }
}

/* MOBILE: Keep logger visible but more compact */
@media (max-width: 768px) {
    #hacker-loader {
        height: 30px;
        padding: 2px 8px;
        font-size: 7px;
        border-top: 0.5px solid var(--white, #ffffff);
    }
    
    #loader-content {
        gap: 4px;
    }
    
    .log-line {
        font-size: 7px;
    }
}