.nv-winner-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.nv-winner-popup.active {
    opacity: 1;
    pointer-events: all;
}

.nv-winner-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 28, 0.78);
    backdrop-filter: blur(5px);
}

.nv-winner-popup-content {
    position: relative;
    z-index: 2;
    width: min(92vw, 560px);
    padding: 34px 28px 28px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255,215,0,.16), transparent 28%),
        linear-gradient(135deg, #071a38 0%, #0b2c5e 55%, #16214f 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.08);
    transform: translateY(20px) scale(.92);
    transition: transform .35s ease, opacity .35s ease;
}

.nv-winner-popup.active .nv-winner-popup-content {
    transform: translateY(0) scale(1);
}

.nv-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background .2s ease, transform .2s ease;
}

.nv-popup-close:hover {
    background: rgba(255,255,255,.18);
    transform: scale(1.06);
}

.nv-popup-icon {
    position: relative;
    z-index: 2;
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}

.nv-winner-popup-content h2 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.1;
    color: #fff3c4;
}

.nv-popup-user {
    position: relative;
    z-index: 2;
    margin: 0 0 10px;
    font-size: 15px;
    opacity: .82;
}

.nv-popup-price {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #ffd76a;
    text-shadow: 0 0 18px rgba(255,215,106,.18);
}

.nv-popup-msg {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,.92);
}

.nv-popup-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, #d63b49 0%, #ff2d2d 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255,45,45,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nv-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(255,45,45,.28);
    filter: brightness(1.04);
}

.nv-popup-confetti-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.nv-confetti-piece {
    position: absolute;
    top: -14%;
    opacity: 0;
    animation-name: nv-confetti-fall;
    animation-timing-function: cubic-bezier(.2,.75,.25,1);
    animation-fill-mode: forwards;
}

.nv-confetti-piece.shape-square {
    background: linear-gradient(135deg, #ffd76a 0%, #ff7a59 100%);
    border-radius: 2px;
}

.nv-confetti-piece.shape-circle {
    background: linear-gradient(135deg, #58e1ff 0%, #7d8bff 100%);
    border-radius: 50%;
}

.nv-confetti-piece.shape-strip {
    background: linear-gradient(180deg, #7cffb2 0%, #2fd6a2 100%);
    border-radius: 999px;
}

@keyframes nv-confetti-fall {
    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--nv-drift), 520px, 0) rotate(var(--nv-rotate));
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .nv-winner-popup-content {
        width: min(94vw, 560px);
        padding: 28px 18px 20px;
        border-radius: 18px;
    }

    .nv-winner-popup-content h2 {
        font-size: 28px;
    }

    .nv-popup-price {
        font-size: 34px;
    }

    .nv-popup-msg {
        font-size: 15px;
    }
}