.exotic-welcome-popup[hidden] {
    display: none;
}

.exotic-welcome-popup {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.exotic-welcome-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 38, 31, .72);
    backdrop-filter: blur(4px);
}

.exotic-welcome-popup-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 680px);
    max-height: calc(100vh - 48px);
    flex-direction: column;
    overflow: auto;
    border-radius: 18px;
    background: #1FAAA2;
    box-shadow: 0 24px 70px rgba(4, 27, 22, .42);
    color: #fff;
}

.exotic-welcome-popup-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 50%;
    background: rgba(20, 79, 74, .3);
    color: #fff;
    font-size: 20px;
    transition: background .2s ease, transform .2s ease;
}

.exotic-welcome-popup-close:hover,
.exotic-welcome-popup-close:focus-visible {
    background: rgba(17, 63, 59, .58);
    transform: scale(1.05);
}

.exotic-welcome-popup-logo {
    display: block;
    width: min(255px, 60%);
    height: auto;
    margin: 42px auto 24px;
    object-fit: contain;
}

/* Popup Content */
.exotic-welcome-popup-content {
    padding: 0 clamp(25px, 5vw, 54px) clamp(34px, 5vw, 52px);
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

/* Force consistent line spacing from Summernote content */
.exotic-welcome-popup-content,
.exotic-welcome-popup-content * {
    line-height: 1.2 !important;
}

/* Control spacing between content blocks */
.exotic-welcome-popup-content p,
.exotic-welcome-popup-content h1,
.exotic-welcome-popup-content h2,
.exotic-welcome-popup-content h3,
.exotic-welcome-popup-content h4,
.exotic-welcome-popup-content h5,
.exotic-welcome-popup-content h6,
.exotic-welcome-popup-content ul,
.exotic-welcome-popup-content ol,
.exotic-welcome-popup-content blockquote {
    margin-top: 0 !important;
    margin-bottom: .4em !important;
}

.exotic-welcome-popup-content > :first-child {
    margin-top: 0 !important;
}

.exotic-welcome-popup-content > :last-child {
    margin-bottom: 0 !important;
}

.exotic-welcome-popup-content h1,
.exotic-welcome-popup-content h2,
.exotic-welcome-popup-content h3,
.exotic-welcome-popup-content h4,
.exotic-welcome-popup-content h5,
.exotic-welcome-popup-content h6 {
    color: #fff;
}

.exotic-welcome-popup-content a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.exotic-welcome-popup-content ul,
.exotic-welcome-popup-content ol {
    padding-left: 1.4em;
}

body.exotic-welcome-popup-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 575.98px) {
    .exotic-welcome-popup {
        align-items: flex-end;
        padding: 12px;
    }

    .exotic-welcome-popup-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .exotic-welcome-popup-logo {
        width: min(220px, 65%);
        margin: 34px auto 18px;
    }

    .exotic-welcome-popup-content {
        padding: 0 24px 30px;
        font-size: 15px;
    }

    .exotic-welcome-popup-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}