.xailo-update-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.xailo-update-card {
    position: relative;
    width: min(360px, 100%);
    max-height: min(80vh, 640px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--border-color, rgba(255,255,255,.1));
    border-radius: 20px;
    color: var(--text-primary, #fff);
    background: var(--bg-secondary, #202127);
    box-shadow: 0 18px 60px rgba(0,0,0,.4);
    text-align: center;
}

.xailo-update-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: var(--text-muted, #aaa);
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.xailo-update-image {
    display: block;
    width: 96px;
    height: 96px;
    margin: 4px auto 16px;
    border-radius: 18px;
    object-fit: cover;
}

.xailo-update-title {
    margin: 8px 26px 12px;
    font-size: 20px;
    font-weight: 650;
}

.xailo-update-message {
    margin: 0 0 22px;
    color: var(--text-secondary, #c7c7cc);
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.xailo-update-action,
.xailo-update-sticky {
    border: 0;
    color: #fff;
    background: #3390ec;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.xailo-update-action {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
}

.xailo-update-action:disabled {
    opacity: .7;
    cursor: progress;
}

.xailo-update-sticky {
    position: fixed;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(0,0,0,.28);
}

@media (min-width: 769px) {
    .xailo-update-sticky {
        right: 24px;
        bottom: 24px;
        left: auto;
        min-width: 220px;
    }
}
