/* Matrix / Hacker Theme */
body.konami-active,
[data-theme="light"] body.konami-active,
[data-theme="dark"] body.konami-active {
    --bg: #000000 !important;
    --bg-secondary: #0a0a0a !important;
    --bg-tertiary: #111111 !important;
    --bg-card: #050505 !important;
    --color-primary: #00ff00 !important;
    --color-primary-rgb: 0, 255, 0 !important;
    --color-header: #00ff00 !important;
    --color-text: #00dd00 !important;
    --color-text-muted: #008800 !important;
    --border-color: #004400 !important;
    --card-bg: #000000 !important;

    background-color: #000000 !important;
    color: #00ff00 !important;
    font-family: 'Courier New', monospace !important;
}

/* Force dark backgrounds on all specific elements that might be light */
body.konami-active .main,
body.konami-active .header,
body.konami-active .footer,
body.konami-active section,
body.konami-active .card,
body.konami-active .account-card,
body.konami-active .dropdown-menu {
    background-color: #000000 !important;
    color: #00ff00 !important;
    border-color: #004400 !important;
}

body.konami-active * {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

body.konami-active .page-header mark,
body.konami-active h1 mark,
body.konami-active h2 mark {
    color: #ffffff !important;
    background: transparent !important;
    text-shadow: 0 0 10px #00ff00;
}

body.konami-active .button,
body.konami-active .btn {
    background: #000 !important;
    color: #00ff00 !important;
    border: 1px solid #00ff00 !important;
    border-radius: 0 !important;
}

body.konami-active .button:hover,
body.konami-active .btn:hover {
    background: #00ff00 !important;
    color: #000 !important;
}

/* Modal Styling */
.konami-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s;
}

.konami-modal {
    background: #000;
    border: 2px solid #00ff00;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.2);
    animation: slideUp 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.konami-glitch-text {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff00;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    animation: glitch 1s infinite alternate;
}

.konami-code-display {
    background: #111;
    border: 1px dashed #00ff00;
    color: #ffffff;
    font-size: 2rem;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    letter-spacing: 4px;
}

.konami-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #00ff00;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 0 red, -2px 0 0 blue;
        transform: skewX(0deg);
    }

    20% {
        text-shadow: 2px 0 0 red, -2px 0 0 blue;
        transform: skewX(20deg);
    }

    40% {
        text-shadow: 2px 0 0 red, -2px 0 0 blue;
        transform: skewX(-5deg);
    }

    100% {
        text-shadow: 2px 0 0 red, -2px 0 0 blue;
        transform: skewX(0deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}