/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.2);
    width: 90%;
    max-width: 400px;
    transform: scale(0.8);
    animation: scaleIn 0.3s forwards;
    color: var(--text);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-timer-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 0.1s linear;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}