.custom-upgrade-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1D1D1D;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    color: white;
}

.custom-upgrade-popup .popup-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    gap: 20px;
}

.custom-upgrade-popup h3 {
    margin-bottom: 0px;
    font-size: 20px;
}

.custom-upgrade-popup p {
    margin-bottom: 0px;
    font-size: 20px;
}

.custom-upgrade-popup .upgrade-option, .custom-upgrade-popup .button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
}

.custom-upgrade-popup .upgrade-option:hover, .custom-upgrade-popup .button:hover {
    background-color: lightgray;
    color: black;
}

.custom-upgrade-popup .close-popup {
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    font-size: 40px;
    display: none; /* Initially hidden */
    line-height: 30px;
}

.custom-loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    align-self: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
