.welcome-popup-root {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.welcome-popup-root[hidden] { display: none !important; }

.welcome-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 38, .62);
    backdrop-filter: blur(4px);
    animation: welcomeFadeIn .4s ease;
}

.welcome-popup-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 35, 80, .35);
    border: 1px solid rgba(255, 255, 255, .15);
    animation: welcomeDialogIn .55s cubic-bezier(.22, 1, .36, 1);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

@keyframes welcomeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes welcomeDialogIn {
    from { opacity: 0; transform: translateY(28px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.welcome-popup-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.welcome-popup-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .45;
    animation: welcomeOrbFloat 6s ease-in-out infinite alternate;
}
.welcome-popup-orbs span:nth-child(1) {
    width: 180px; height: 180px;
    background: #00a651;
    top: -40px; right: 10%;
    animation-delay: 0s;
}
.welcome-popup-orbs span:nth-child(2) {
    width: 140px; height: 140px;
    background: #307ad5;
    bottom: 10%; left: -30px;
    animation-delay: 1.2s;
}
.welcome-popup-orbs span:nth-child(3) {
    width: 100px; height: 100px;
    background: #5ee0a0;
    top: 45%; right: -20px;
    animation-delay: .6s;
}
@keyframes welcomeOrbFloat {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(12px, -16px) scale(1.08); }
}

.welcome-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    border: 0;
    background: rgba(255, 255, 255, .9);
    font-size: 24px;
    line-height: 1;
    color: #5a6478;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: transform .2s, color .2s;
}
.welcome-popup-close:hover {
    color: #307ad5;
    transform: rotate(90deg);
}

.welcome-popup-visual {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(145deg, #0d3d28, #1a5fad);
}
.welcome-popup-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: welcomeKenBurns 8s ease-in-out infinite alternate;
}
@keyframes welcomeKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.welcome-popup-visual-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 166, 81, .35), rgba(48, 122, 213, .4));
    mix-blend-mode: multiply;
}
.welcome-popup-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #00a651;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    animation: welcomeBadgePop .6s .3s both;
}
@keyframes welcomeBadgePop {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-popup-body {
    position: relative;
    z-index: 1;
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, #f6faf8 100%);
}
.welcome-popup-title {
    font-size: 26px;
    line-height: 1.3;
    color: #1a2d4a;
    margin: 0 0 16px;
    animation: welcomeLineIn .5s .15s both;
}
.welcome-popup-lines {
    margin-bottom: 22px;
}
.welcome-popup-line {
    font-size: 14px;
    line-height: 1.75;
    color: #5a6478;
    margin: 0 0 10px;
    padding-left: 14px;
    border-left: 3px solid #00a651;
    animation: welcomeLineIn .5s both;
    animation-delay: calc(.25s + var(--line-delay, 0s));
}
@keyframes welcomeLineIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
.welcome-popup-actions {
    margin-top: auto;
}
.welcome-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00a651, #008f45);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 166, 81, .35);
    transition: transform .2s, box-shadow .2s;
    animation: welcomeLineIn .5s .55s both;
}
.welcome-popup-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 166, 81, .45);
}
.welcome-popup-btn i {
    transition: transform .2s;
}
.welcome-popup-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .welcome-popup-dialog {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .welcome-popup-visual {
        min-height: 200px;
    }
    .welcome-popup-body {
        padding: 24px 22px 26px;
    }
    .welcome-popup-title {
        font-size: 22px;
    }
}
