.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 500;
    opacity: 0;
    transform: translateY(75%);
    transition: transform var(--transition-very-slow) var(--ease), 
                opacity 0.8s var(--ease);
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.4s;
}

.anim-grid {
    display: grid;
    grid-template-columns: repeat(9, 4px);
    gap: 2px;
    row-gap: 2px;
}

.anim-grid .cube {
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.1s ease;
    
    contain: layout style paint;
}


.language-selector {
    position: relative;
    z-index: 501;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-primary, #e8b678);
    color: var(--color-primary, #e8b678);
    padding: 8px 14px;
    font-family: var(--font-main, 'BIOS-SYS', monospace);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(232, 182, 120, 0.1);
    box-shadow: 0 0 10px rgba(232, 182, 120, 0.3);
    transform: translateY(-1px);
}

.lang-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(232, 182, 120, 0.5);
}

.lang-code {
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    font-size: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.lang-indicator {
    width: 8px;
    height: 8px;
    border: 1px solid var(--color-primary, #e8b678);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    position: relative;
}

.lang-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 4px;
    background: var(--color-primary, #e8b678);
    transition: all 0.3s ease;
}

.lang-btn.lang-es .lang-indicator::before {
    background: var(--color-primary, #e8b678);
    animation: pulse 2s infinite;
}

.lang-btn.lang-en .lang-indicator::before {
    background: var(--color-primary, #e8b678);
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) rotate(45deg) scale(0.8);
    }
}


body.i18n-translating {
    position: relative;
    overflow: visible !important; 
}


body.i18n-translating #rootkit-background {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 0;
}

body.i18n-translating::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(232, 182, 120, 0.08) 1px,
            rgba(232, 182, 120, 0.08) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(232, 182, 120, 0.03) 1px,
            rgba(232, 182, 120, 0.03) 2px
        );
    pointer-events: none;
    z-index: 9999;
    animation: matrix-grid 0.6s ease-out;
    opacity: 0;
}



@keyframes matrix-grid {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
        filter: blur(10px);
    }
    30% {
        opacity: 1;
        transform: scale(1.1) rotate(0.5deg);
        filter: blur(2px);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(1.05) rotate(-0.3deg);
        filter: blur(5px);
    }
}

@keyframes data-pulse {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: brightness(0.5);
    }
    20% {
        opacity: 1;
        transform: scale(1.2);
        filter: brightness(1.5);
    }
    50% {
        opacity: 0.8;
        transform: scale(1);
        filter: brightness(1.2);
    }
    80% {
        opacity: 0.6;
        transform: scale(1.1);
        filter: brightness(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
        filter: brightness(0.8);
    }
}

