

        /* Background overlay */
        .ai-card-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        /* Card styling */
        .ai-card {
            background: #fff;
            border-radius: 12px;
            padding: 1.5rem 2rem;
            width: 350px;
            max-width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
            animation: slideDown 0.3s ease-out;
        }

        /* Close button */
        .ai-close-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #555;
        }

        .ai-close-btn:hover {
            color: #000;
        }

        .ai-icon {
            font-size: 3rem;
            margin-bottom: 10px;
        }

        .ai-card-text {
            font-size: 1rem;
            color: #333;
        }

        /* Slide from top animation */
        @keyframes slideDown {
            0% {
                transform: translateY(-40px);
                opacity: 0;
            }

            100% {
                transform: translateY(0);
                opacity: 1;
            }
        }


        /* Animation Content Styles - Centered with Transform */
        .ai-loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 99999;
            backdrop-filter: blur(15px);
            background-color: rgba(255, 255, 255, 0.2);
            /* optional soft layer */
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: all;
        }



        .ai-loading-content {
            background: white;
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            text-align: center;
            max-width: 400px;
            width: 90%;
            animation: float 3s ease-in-out infinite;

            /* Centering with transform */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }


        .ai-icon i {
            font-size: 4rem;
            /* adjust as needed */
            background: linear-gradient(90deg, #3867d6, #2d98da,  #3742fa);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        @media (max-width: 480px) {
            .ai-loading-content {
                padding: 1.5rem;
                width: 85%;
            }
        }

        @keyframes float {

            0%,
            100% {
                transform: translate(-50%, -50%);
            }

            50% {
                transform: translate(-50%, calc(-50% - 10px));
            }
        }

        /* AI Icon Animation */
        .ai-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            display: inline-block;
            animation: pulse 2s infinite;

        }


        .bi-stars {
            color: linear-gradient(90deg, #3867d6, #2d98da,  #3742fa);
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.1);
            }
        }

        /* Text Styles */
        .ai-loading-text {
            font-size: 1.4rem;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 1rem;
        }

        .ai-loading-subtext {
            font-size: 1rem;
            color: #666;
            margin-bottom: 1.5rem;
        }

        /* Progress Bar */
        .ai-progress-container {
            height: 6px;
            background: #e0e0e0;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 1.5rem;
        }

        .ai-progress-bar {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, #3867d6, #2d98da,  #3742fa);
            border-radius: 3px;
            animation: progress 2s ease-in-out infinite;
        }

        @keyframes progress {
            0% {
                width: 0;
                margin-left: 0;
            }

            50% {
                width: 100%;
                margin-left: 0;
            }

            100% {
                width: 0;
                margin-left: 100%;
            }
        }

        /* Animated Dots */
        .ai-dots {
            display: inline-block;
        }

        .ai-dots span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;

            margin: 0 3px;
            opacity: 0;
        }

        .ai-dots span:nth-child(1) {
            animation: dot 1.5s infinite;
            background-color: #3867d6;
        }

        .ai-dots span:nth-child(2) {
            animation: dot 1.5s infinite 0.3s;
            background-color: #2d98da;
        }

        .ai-dots span:nth-child(3) {
            animation: dot 1.5s infinite 0.6s;
            background-color: #3742fa;
        }

        @keyframes dot {

            0%,
            100% {
                opacity: 0;
                transform: scale(0.5);
            }

            50% {
                opacity: 1;
                transform: scale(1);
            }
        }
