* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a1a;
    color: white;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a3e 0%, #0f0f2a 50%, #1a1a3e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    z-index: 2;
}

.vr-headset {
    position: relative;
    width: 120px;
    height: 80px;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

.headset-body {
    width: 100%;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.headset-lens {
    position: absolute;
    width: 25px;
    height: 25px;
    background: #1a1a3e;
    border-radius: 50%;
    top: 17px;
    border: 3px solid #00d4ff;
    animation: pulse 2s ease-in-out infinite;
}

.headset-lens.left { left: 20px; }
.headset-lens.right { right: 20px; }

.loading-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.loading-percent {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 1.2rem;
}

/* Matrix Background */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="%2300d4ff" opacity="0.1">01010101</text></svg>') repeat;
    animation: matrix-scroll 20s linear infinite;
    opacity: 0.1;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a5e 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    border: 2px solid #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
    z-index: 2;
    animation: modalSlideIn 0.5s ease;
}

.vr-warning {
    font-size: 4rem;
    color: #00d4ff;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.modal-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #bdc3c7;
}

.modal-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-verify, .btn-exit {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-verify {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #1a1a3e;
}

.btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-exit {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.btn-exit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

/* Particle Background */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particle-canvas {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes matrix-scroll {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(100px); }
}

@keyframes modalSlideIn {
    0% { transform: translateY(-50px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .loading-bar {
        width: 250px;
    }
}