/* =====================================================
   CPT MARKETS - PROFESSIONAL POPUP SYSTEM
   Used for Login / Registration / Validation
===================================================== */

.cpt-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    font-family:
        Inter,
        Arial,
        sans-serif;
}

.cpt-popup.show {
    display: flex;
}

/* Background */

.cpt-popup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

/* Popup Box */

.cpt-popup-box {
    position: relative;

    width: 100%;
    max-width: 390px;

    padding: 30px 24px 24px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #0b121a 0%,
            #050a10 100%
        );

    border: 1px solid rgba(212, 160, 23, 0.25);

    border-radius: 24px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.75),
        0 0 35px rgba(212, 160, 23, 0.08);

    transform: scale(0.82);
    opacity: 0;

    animation: cptPopupOpen 0.25s ease forwards;
}

@keyframes cptPopupOpen {

    0% {
        transform: scale(0.82);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Icon */

.cpt-popup-icon {

    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 800;

    border: 1px solid rgba(255,255,255,0.08);
}

/* SUCCESS */

.cpt-popup.success .cpt-popup-icon {

    background:
        linear-gradient(
            145deg,
            #e0ad00,
            #8c6500
        );

    color: #071019;

    box-shadow:
        0 0 30px rgba(224,173,0,0.25);
}

/* ERROR */

.cpt-popup.error .cpt-popup-icon {

    background:
        linear-gradient(
            145deg,
            #d84b4b,
            #7d1d1d
        );

    color: #ffffff;

    box-shadow:
        0 0 30px rgba(216,75,75,0.20);
}

/* WARNING */

.cpt-popup.warning .cpt-popup-icon {

    background:
        linear-gradient(
            145deg,
            #dca900,
            #8b6400
        );

    color: #071019;
}

/* INFO */

.cpt-popup.info .cpt-popup-icon {

    background:
        linear-gradient(
            145deg,
            #3c7edb,
            #1d477f
        );

    color: #ffffff;
}

/* Title */

.cpt-popup-title {

    margin: 0 0 10px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;
}

/* Message */

.cpt-popup-message {

    margin: 0 auto 20px;

    max-width: 310px;

    color: #9ca7b3;

    font-size: 15px;

    line-height: 1.6;
}

/* User ID */

.cpt-popup-user {

    display: none;

    margin: 0 auto 20px;

    padding: 12px 15px;

    background: rgba(212,160,23,0.07);

    border: 1px solid rgba(212,160,23,0.18);

    border-radius: 12px;
}

.cpt-popup-user-label {

    display: block;

    margin-bottom: 4px;

    color: #7f8994;

    font-size: 12px;
}

.cpt-popup-user-value {

    color: #e0ad00;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: 1px;
}

/* Button */

.cpt-popup-button {

    width: 100%;

    padding: 14px 20px;

    border: 0;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #e0ad00,
            #997000
        );

    color: #080b0f;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow:
        0 8px 25px rgba(212,160,23,0.16);
}

.cpt-popup-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(212,160,23,0.25);
}

.cpt-popup-button:active {

    transform: scale(0.98);
}

/* Mobile */

@media (max-width: 480px) {

    .cpt-popup {
        padding: 16px;
    }

    .cpt-popup-box {

        max-width: 350px;

        padding:
            27px 20px 22px;

        border-radius: 22px;
    }

    .cpt-popup-icon {

        width: 60px;
        height: 60px;

        font-size: 28px;
    }

    .cpt-popup-title {

        font-size: 22px;
    }

    .cpt-popup-message {

        font-size: 14px;
    }
}
