.widget-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    position: relative;
}

.gift-box {
    position: relative;
    width: 350px;
    height: 350px;
    cursor: pointer;
    transform-style: preserve-3d;
    z-index: 1;
}

.gift-box.idle-pulse {
    animation: gentle-pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gentle-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.gift-image {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    position: relative;
    z-index: 2;
}

.glitter-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.deal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.deal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Glow effect */
.gift-box.glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    }
}

/* Shimmer particles */
.shimmer-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

/* Particle styles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

@keyframes shimmer-fade {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

/* Pulse effect */
.pulse {
    animation: pulse-animation 1s cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 300px) {
    .gift-box {
        width: 200px;
        height: 200px;
    }
}
