/* Preserve page width while the dialog locks background scrolling. */
html { scrollbar-gutter: stable; }

.vip-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 18, 23, .56);
}
.vip-dialog-mask.is-open { display: flex; }
.vip-dialog-card {
    position: relative;
    box-sizing: border-box;
    width: 420px;
    max-width: 100%;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 44px 32px 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 64px rgba(20, 18, 23, .24);
    color: #333;
    text-align: center;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    scrollbar-color: #ccc #fff;
}
.vip-dialog-brand { display: block; width: 181px; height: 40px; margin: 0 auto 28px; }
.vip-dialog-card .vip-dialog-title { margin: 0 0 12px; font-size: 24px; line-height: 1.4; font-weight: 600; text-wrap: balance; }
.vip-dialog-card .vip-dialog-desc { margin: 0 0 28px; color: #666; font-size: 15px; line-height: 1.8; }
.vip-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #777;
    cursor: pointer;
}
.vip-dialog-close svg, .vip-dialog-card .vip-dialog-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vip-dialog-close:hover { background: #f3f3f3; color: #333; }
.vip-dialog-card .vip-dialog-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #dc2451;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease;
}
.vip-dialog-card .vip-dialog-cta:hover { background: #c51e46; color: #fff; }
.vip-dialog-card .vip-dialog-cta:active { background: #af193d; }
.vip-dialog-card .vip-dialog-hint { margin: 10px 0 12px; color: #767676; font-size: 12px; line-height: 1.5; }
.vip-dialog-skip { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; color: #666; font: inherit; font-size: 14px; cursor: pointer; }
.vip-dialog-skip:hover { background: #f3f3f3; color: #333; }
.vip-dialog-card :focus-visible { outline: 2px solid #dc2451; outline-offset: 3px; }
.vip-dialog-card ::selection { background: #ffe3eb; color: #80132e; }
@media (max-width: 480px) {
    .vip-dialog-card { padding: 40px 24px 20px; }
    .vip-dialog-card .vip-dialog-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .vip-dialog-card .vip-dialog-cta { transition: none; } }
