/* Popup Overlay */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .popup-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        /* Popup Container */
        .popup-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 420px;
            max-width: calc(100vw - 40px);
            background: linear-gradient(135deg, #7C6FF6 0%, #538ef5 100%);
            border-radius: 16px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
            overflow: hidden;
            transform: translateY(100px) scale(0.8);
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 10001;
            backdrop-filter: blur(20px);
        }

        .popup-container.show {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        /* Mobile positioning */
        @media (max-width: 768px) {
            .popup-container {
                bottom: 50%;
                right: 50%;
                transform: translateX(50%) translateY(50%) scale(0.8);
                width: 360px;
            }

            .popup-container.show {
                transform: translateX(50%) translateY(50%) scale(1);
            }

            .popup-content {
                padding: 30px 25px 25px;
            }

            .tshirt-placeholder {
                width: 120px;
                height: 180px;
            }
        }

        /* Close Button */
        .close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            color: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            font-weight: 300;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            transform: scale(1.05);
        }

        /* Popup Content */
        .popup-content {
            padding: 35px 30px 30px;
            text-align: center;
            color: white;
        }

        .gift-icon {
            font-size: 2.2rem;
            margin-bottom: 12px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateY(0);
            }
            40% {
                transform: translateY(-8px);
            }
            60% {
                transform: translateY(-4px);
            }
        }

        .popup-headline {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 8px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.3);
            letter-spacing: -0.02em;
        }

        .popup-subheadline {
            font-size: 0.9rem;
            opacity: 0.88;
            line-height: 1.4;
            margin-bottom: 18px;
            font-weight: 400;
        }

        /* T-shirt Image Container */
        .tshirt-container {
            position: relative;
            margin: 20px 0;
            display: flex;
            justify-content: center;
        }

        .tshirt-placeholder {
            width: 136px;
            height: 204px;
            background: linear-gradient(145deg, #ffffff, #f8f9fa);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
            position: relative;
            overflow: hidden;
            animation: float 3s ease-in-out infinite;
            padding: 8px;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-3px);
            }
        }

        .tshirt-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            z-index: 1;
        }

        .placeholder-text {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.65rem;
            color: #666;
            background: rgba(255, 255, 255, 0.95);
            padding: 4px 8px;
            border-radius: 8px;
            font-weight: 500;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 2;
        }

        .image-dimensions {
            position: absolute;
            top: 8px;
            right: 8px;
            font-size: 0.55rem;
            color: #888;
            background: rgba(255, 255, 255, 0.95);
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 500;
            z-index: 2;
        }

        /* Winner Count */
        .winner-count {
            background: rgba(255, 255, 255, 0.12);
            padding: 6px 12px;
            border-radius: 20px;
            display: inline-block;
            margin: 12px 0;
            font-weight: 500;
            font-size: 0.85rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        /* CTA Button */
        .cta-button {
            background: linear-gradient(135deg, #ffa600 ,#ffea01);
            border: none;
            padding: 12px 32px;
            border-radius: 25px;
            color: white;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
            text-transform: none;
            letter-spacing: 0.02em;
            width: 100%;
            margin-top: 8px;
        }

        .cta-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
            background: linear-gradient(135deg, #5865f2, #00d4ff);
        }

        .cta-button:active {
            transform: translateY(0);
        }

        /* Sparkle animation */
        .sparkle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: white;
            border-radius: 50%;
            opacity: 0;
            animation: sparkle 2s infinite;
        }

        .sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
        .sparkle:nth-child(2) { top: 30%; right: 15%; animation-delay: 0.5s; }
        .sparkle:nth-child(3) { bottom: 25%; left: 15%; animation-delay: 1s; }
        .sparkle:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 1.5s; }

        @keyframes sparkle {
            0%, 100% { opacity: 0; transform: scale(0); }
            50% { opacity: 1; transform: scale(1); }
        }

        /* Loading animation for demo */
        .loading-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, #00c9ff, #92fe9d);
            z-index: 10002;
            animation: loading 25s linear;
        }

        @keyframes loading {
            0% { width: 0%; }
            100% { width: 100%; }
        }