* {
    font-family: 'Inter', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 100%);
    min-height: 100vh;
}

/* Matrix rain effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 0;
}

/* Neon glow effects */
.neon-cyan {
    text-shadow: 0 0 10px #00d9ff, 0 0 20px #00d9ff, 0 0 30px #00d9ff;
}

.neon-purple {
    text-shadow: 0 0 10px #b362ff, 0 0 20px #b362ff, 0 0 30px #b362ff;
}

.neon-green {
    text-shadow: 0 0 10px #4ade80, 0 0 20px #4ade80, 0 0 30px #4ade80;
}

/* Glowing button */
.glow-button {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5), 0 0 40px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.glow-button:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.8), 0 0 60px rgba(0, 217, 255, 0.5);
    transform: scale(1.05);
}

.glow-button:active {
    transform: scale(0.95);
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-glow {
    animation: pulse 2s ease-in-out infinite;
}

/* Float up animation for VP */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px);
    }
}

.float-vp {
    animation: floatUp 1s ease-out forwards;
}

/* Scanlines */
.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Glitch text effect */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.glitch-title:hover {
    animation: glitch 0.3s ease;
}

/* Number count up */
.number-glow {
    color: #00d9ff;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* Upgrade card hover */
.upgrade-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.upgrade-card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    transform: translateX(-4px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.upgrade-card.affordable {
    border-color: rgba(74, 222, 128, 0.5);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.05), transparent);
}

.upgrade-card.affordable:hover {
    border-color: rgba(74, 222, 128, 0.8);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

/* Progress bar */
.progress-bar {
    transition: width 0.5s ease;
}

/* Particle effect */
@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

.particle {
    animation: particle 1s ease-out forwards;
}

/* Achievement popup */
@keyframes slideIn {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.achievement-popup {
    animation: slideIn 0.5s ease-out;
}

/* Prestige button */
.prestige-button {
    background: linear-gradient(135deg, #b362ff, #00d9ff);
    box-shadow: 0 0 30px rgba(179, 98, 255, 0.5);
    transition: all 0.3s ease;
}

.prestige-button:hover {
    box-shadow: 0 0 50px rgba(179, 98, 255, 0.8);
    transform: scale(1.05);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.8);
}

/* Code snippet background */
@keyframes scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.code-scroll {
    animation: scroll 20s linear infinite;
}

/* Combo meter */
.combo-meter {
    transition: all 0.3s ease;
}

.combo-active {
    color: #4ade80;
    text-shadow: 0 0 10px #4ade80;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
}

/* Settings icon */
.settings-icon {
    transition: transform 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(90deg);
}