 #popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: none;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.2);
            z-index: 999;
        }

        /* Popup base */
        #popup {
            background: black;
            border-radius: 23px;
            padding: 20px;
            width: 300px;
            max-height: 500px;
            position: relative;
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.3s ease;
        }

        /* Desktop: center popup */
        @media (min-width: 768px) {
            #popup.show {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Mobile: bottom slide animation */
        @media (max-width: 767px) {
            #popup-overlay {
                justify-content: flex-end;
                align-items: flex-end;
            }

            #popup {
                width: 100%;
                max-width: 100%;
                border-radius: 20px 20px 0 0;
                transform: translateY(100%);
            }

            #popup.show {
                opacity: 1;
                transform: translateY(0);
            }

            #popup.hide {
                transform: translateY(100%);
                opacity: 0;
            }
        }

        #popup h2 {
            color: rgba(245, 245, 245, 0.827);
            font-size: medium;
            text-align: center;
            font-weight: bold;
            margin-top: auto;
            margin-bottom: 10px;
        }

        .sopa {
            display: flex;
            align-items: center;
            margin-top: 11px;
            padding: 10px;
            background: rgb(24, 24, 24);
            border-radius: 10px;
            cursor: pointer;
            position: relative;
            color: rgba(245, 245, 245, 0.827);
        }

        .sopa-container {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 5px;
        }

        .sopa img {
            width: 40px;
            height: 40px;
            margin-right: 10px;
            border-radius: 10px;
        }

        .close-btn {
            position: absolute;
            top: 16px;
            right: 15px;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            color: rgb(90, 85, 85);
        }

        .secure-text {
            text-align: center;
            color: gray;
            font-size: 12px;
            margin-top: 20px;
        }

        .alert-top {
            position: fixed;
            top: -200px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.85);
            color: white;
            padding: 10px 12px;
            border-radius: 0 0 10px 10px;
            transition: top 0.5s ease;
            z-index: 1000;
            text-align: center;
            width: 250px;
            min-height: 60px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .alert-top.show {
            top: 30px;
        }

        .loader-bar {
            height: 4px;
            width: 100%;
            margin-top: 4px;
            border-radius: 4px;
            background: linear-gradient(to right, transparent, red, transparent);
            background-size: 200% 100%;
            animation: barMove 2s linear infinite;
        }

        .loader-bar.static {
            animation: none;
            background: red;
        }

        .loader-icon {
            width: 50px;
            height: 50px;
            margin: auto;
        }

        .hidden {
            display: none !important;
        }

        @keyframes barMove {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        #final-popup .content {
            background: rgb(16, 14, 14);
            color: rgb(213, 207, 207);
            padding: 20px;
            border-radius: 10px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            animation: scaleIn 0.4s ease;
            position: relative;
        }

        #final-popup img {
            width: 60px;
            height: 60px;
            margin-bottom: 10px;
            border-radius: 10px;
        }

        textarea {
            width: 100%;
            height: 100px;
            margin-top: 10px;
        }

        .send-btn {
            margin-top: 10px;
            padding: 10px;
            width: 100%;
            background: #355dee;
            color: white;
            border: none;
            cursor: pointer;
        }

        #final-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: none;
            justify-content: center;
            align-items: center;
            background: rgba(0, 0, 0, 0.2);
            z-index: 999;
        }

        #overlay-dark {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.4);
            z-index: 900;
            display: none;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }