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

.welcome-modal {
    align-items: center;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1160;
}

body.welcome-modal-open {
    overflow: hidden;
}

.welcome-modal__dialog {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%),
        #ffffff;
    border: 1px solid rgba(21, 94, 239, .14);
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
    max-height: calc(100vh - 40px);
    max-width: 500px;
    overflow: hidden auto;
    padding: 28px;
    position: relative;
    width: 100%;
}

.welcome-modal__dialog::before {
    background: linear-gradient(90deg, #155eef, #16b364);
    content: "";
    height: 4px;
    inset: 0 0 auto;
    position: absolute;
}

.welcome-modal__close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dce6f5;
    border-radius: 8px;
    color: #667085;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    width: 34px;
}

.welcome-modal__close:hover {
    background: #ffffff;
    border-color: #b8ccff;
    color: #101828;
    transform: translateY(-1px);
}

.welcome-modal__icon {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #c7d7fe;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 19px;
    height: 46px;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    width: 46px;
}

.welcome-modal__icon i {
    align-items: center;
    background: linear-gradient(135deg, #155eef, #16b364);
    border-radius: 6px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.welcome-modal__icon img {
    border-radius: 6px;
    display: block;
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.welcome-modal__eyebrow {
    color: #0f4fd1;
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.welcome-modal h2 {
    color: #101828;
    font-size: 25px;
    font-weight: 850;
    line-height: 1.2;
    margin: 0 42px 12px 0;
}

.welcome-modal p {
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    color: #344054;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.7;
    margin: 0;
    padding: 14px 16px;
    overflow-wrap: anywhere;
}

.welcome-modal__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 20px;
}

.welcome-modal__actions a {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
    white-space: nowrap;
}

.welcome-modal__primary {
    background: #155eef;
    box-shadow: 0 12px 24px rgba(21, 94, 239, .18);
    color: #ffffff;
}

.welcome-modal__primary:hover {
    background: #0f4fd1;
    color: #ffffff;
    transform: translateY(-1px);
}

.welcome-modal__secondary {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

.welcome-modal__secondary:hover {
    background: #eef4ff;
    border-color: #b8ccff;
    color: #155eef;
    transform: translateY(-1px);
}

@media (max-width: 560px) {
    .welcome-modal {
        padding: 12px;
    }

    .welcome-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 16px 16px;
    }

    .welcome-modal h2 {
        font-size: 22px;
        margin-right: 40px;
    }

    .welcome-modal p {
        font-size: 14px;
        padding: 12px;
    }

    .welcome-modal__actions {
        grid-template-columns: 1fr;
    }

    .welcome-modal__actions a {
        width: 100%;
    }
}
