html.mx-iag-active,
html.mx-iag-active body {
    overflow: hidden !important;
}

#mx-iag-root,
#mx-iag-root * {
    box-sizing: border-box;
}

#mx-iag-root {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: flex;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    background: rgba(8, 15, 28, .72);
    color: #f3f4f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    opacity: 1;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.mx-iag-card {
    width: min(450px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: linear-gradient(155deg, #1b1d23 0%, #101216 72%);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .42);
    text-align: center;
}

.mx-iag-brand {
    position: relative;
    padding: 25px 24px 19px;
}

.mx-iag-brand::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .13), transparent);
}

.mx-iag-brand-title {
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1.35;
}

.mx-iag-brand-title::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 9px;
    border-radius: 50%;
    background: #f23863;
    vertical-align: 3px;
}

.mx-iag-brand-subtitle {
    margin-top: 7px;
    color: #999da8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.5;
}

.mx-iag-media {
    position: relative;
    display: block;
    width: auto;
    margin: 20px 24px 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: linear-gradient(110deg, #20232a 20%, #292c34 38%, #20232a 56%);
    background-size: 220% 100%;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .23);
    animation: mx-iag-placeholder 1.35s linear infinite;
}

.mx-iag-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s ease;
}

.mx-iag-media.mx-iag-has-image {
    animation: none;
    background: #20232a;
}

.mx-iag-media.mx-iag-has-image .mx-iag-image {
    opacity: 1;
}

@keyframes mx-iag-placeholder {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

.mx-iag-content {
    padding: 23px 24px 25px;
}

.mx-iag-title {
    margin: 0 0 20px;
    color: #f3f4f7;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.4;
}

.mx-iag-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mx-iag-button {
    appearance: none;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 48px;
    transition: transform .15s ease, opacity .15s ease, background .15s ease;
}

.mx-iag-button:active {
    transform: scale(.98);
}

.mx-iag-button:disabled {
    cursor: wait;
    opacity: .66;
}

.mx-iag-leave {
    border-color: rgba(255, 255, 255, .12);
    background: #252830;
    color: #d1d3d9;
}

.mx-iag-confirm {
    border-color: rgba(255, 87, 126, .44);
    background: linear-gradient(135deg, #f23b66, #d8214d);
    color: #fff;
    box-shadow: 0 8px 22px rgba(226, 38, 82, .25);
}

.mx-iag-direct {
    grid-column: 1 / -1;
    border-color: rgba(91, 154, 255, .45);
    background: #17243a;
    color: #8fbdff;
}

.mx-iag-direct[hidden] {
    display: none !important;
}

.mx-iag-status {
    min-height: 20px;
    margin: 14px 0 0;
    color: #ff718f;
    font-size: 13px;
    line-height: 1.5;
}

.mx-iag-status:empty {
    display: none;
}

@media (max-width: 520px) {
    #mx-iag-root {
        padding: 14px;
    }

    .mx-iag-card {
        border-radius: 15px;
    }

    .mx-iag-brand {
        padding: 21px 18px 16px;
    }

    .mx-iag-brand::after {
        right: 18px;
        left: 18px;
    }

    .mx-iag-brand-title {
        font-size: 21px;
    }

    .mx-iag-brand-subtitle {
        margin-top: 5px;
        font-size: 13px;
    }

    .mx-iag-media {
        margin: 16px 17px 0;
        border-radius: 10px;
    }

    .mx-iag-content {
        padding: 20px 17px 20px;
    }

    .mx-iag-title {
        margin-bottom: 17px;
        font-size: 19px;
    }

    .mx-iag-actions {
        gap: 9px;
    }

    .mx-iag-button {
        min-height: 46px;
        padding: 0 10px;
        font-size: 15px;
        line-height: 46px;
    }
}
