.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 10px;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    z-index: 1;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
}

.popup-close:hover {
    color: #333;
}

.countdown-timer {
    display: inline-flex;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #dc3545;
}

.time-unit {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .countdown-timer {
        font-size: 20px;
    }
    .time-unit {
        padding: 8px 12px;
        min-width: 45px;
    }
}