/* Overlay */
#coelum-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

/* Box */
#coelum-popup-box {
    width: 40vw;
    max-width: 520px;
    min-width: 260px;
    background: linear-gradient(180deg, rgba(5,9,33,0.95) 0%, rgba(10,14,42,0.95) 100%), url('https://upload.wikimedia.org/wikipedia/commons/4/4c/Starsinthesky.jpg');
    background-size: cover;
    border: 2px solid rgba(79,163,255,0.9);
    color: #ffffff;
    padding: 26px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 30px rgba(79,163,255,0.12) inset;
    position: relative;
    margin: 0 auto;
}

/* Content text */
#coelum-popup-content {
    font-size: 18px;
    line-height: 1.45;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
    color: #f8fbff;
}

/* Close button */
#coelum-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 8px;
}

/* CTA button */
#coelum-cta-button {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 22px;
    font-size: 17px;
    background: #4fa3ff;
    color: #062033;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(79,163,255,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 44px;      /* assicura visibilità anche vuoto */
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
}

/* Hover */
#coelum-cta-button:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(79,163,255,0.32); }

/* Responsive: mobile show 80% width (40% su mobile era irrealistico) */
@media screen and (max-width: 767px) {
    #coelum-popup-box {
        width: 80vw;
        padding: 18px;
    }
    #coelum-popup-content { font-size: 16px; }
    #coelum-cta-button { font-size: 16px; padding: 10px 16px; min-height: 42px; }
}
