.av-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
            
            /* Centering flexbox */
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .av-popup-overlay.av-popup-visible {
            display: flex;
            opacity: 1;
        }

        .av-popup-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            background: transparent;
            text-align: center;
            animation: popupSlideIn 0.4s ease;
            transform: translateY(-5%);  /* Shift slightly up from center */
        }

        .av-popup-close {
            position: absolute;
            top: -50px;  /* Increased from -40px */
            right: 0;    /* Aligned with content */
            width: 40px;
            height: 40px;
            background: #ff4136;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.2s ease;
            z-index: 10000;
        }

        .av-popup-close:hover {
            transform: scale(1.1);
        }

        .av-popup-close::before,
        .av-popup-close::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 3px;
            background-color: white;
        }

        .av-popup-close::before {
            transform: rotate(45deg);
        }

        .av-popup-close::after {
            transform: rotate(-45deg);
        }

        /* Prevent scrolling when popup is open */
        body.av-popup-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* Responsive Adjustments */
        @media screen and (max-width: 768px) {
            .av-popup-close {
                top: -40px;
                right: 0;
                width: 30px;
                height: 30px;
            }

            .av-popup-content {
                max-width: 95%;
                max-height: 95%;
		transform: translateY(-20%);
            }
        }

        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: scale(0.7) translateY(-5%);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(-5%);
            }
        }