/* Overlay (Nền tối phía sau) */
.ny-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Ẩn mặc định */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

/* Khung nội dung Popup */
.ny-popup-content {
    background: linear-gradient(135deg, #1a237e 0%, #2a3eb1 100%);
    width: 90%;
    max-width: 500px;
    padding: 40px 20px;
    border-radius: 25px;
    position: relative;
    border: 3px solid #c5a059;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: popupScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999; /* Số cực lớn để đè lên mọi thứ */
    display: none;
    background: transparent;
}


@keyframes popupScale {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Nút đóng */
.ny-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    color: white;
    font-size: 25px;
    cursor: pointer;
    opacity: 0.7;
}
.ny-close-btn:hover { opacity: 1; color: #c5a059; }

/* Giữ nguyên style timer cũ nhưng chỉnh cho đẹp hơn trong popup */
.timer { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.time-box {
    background: rgba(255,255,255,0.1);
    padding: 15px 10px;
    border-radius: 12px;
    min-width: 80px;
    border-bottom: 4px solid #c5a059;
}
.time-box span { font-size: 2.2rem; font-weight: 900; color: #fff; display: block; }
.time-box small { color: #c5a059; text-transform: uppercase; font-size: 0.7rem; }