.site-ad-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 540px);
    max-width: 100%;
    min-width: 0;
    max-height: min(86vh, 780px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(168,85,247,.28);
    background: linear-gradient(145deg, #0d0f16, #090b11);
    box-shadow: 0 35px 100px rgba(0,0,0,.55), 0 0 55px rgba(168,85,247,.08);
    padding: 44px 28px 32px;
    transform: translateY(14px) scale(.985);
    opacity: .98;
    transition: transform .36s cubic-bezier(.22,.61,.36,1), opacity .36s cubic-bezier(.22,.61,.36,1);
}

.site-ad-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.025);
    color: var(--white, #f4f5f7);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    z-index: 3;
    transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.site-ad-close:hover {
    transform: rotate(90deg);
    border-color: rgba(34,211,238,.5);
    background: rgba(34,211,238,.06);
}

.site-ad-blocks {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.site-ad-blocks[data-linked="true"] {
    cursor: pointer;
}

.site-ad-block-title,
.site-ad-block-subtitle,
.site-ad-block-paragraph {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.site-ad-block-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.site-ad-block-subtitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.site-ad-block-paragraph {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted, #9a9ca8);
}

.site-ad-block-title.is-gradient,
.site-ad-block-subtitle.is-gradient,
.site-ad-block-paragraph.is-gradient {
    background: linear-gradient(100deg, var(--purple-light, #c084fc), var(--cyan-light, #67e8f9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-ad-block-countdown {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.site-ad-block-countdown.is-gradient {
    background: linear-gradient(100deg, var(--purple-light, #c084fc), var(--cyan-light, #67e8f9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-ad-text-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.site-ad-block-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,.08);
    object-fit: contain;
}

@media (max-width: 600px) {
    .site-ad-dialog {
        padding: 44px 20px 24px;
    }

    .site-ad-block-title {
        font-size: 32px;
    }
}
