.vk-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(10px);
    animation: vkModalFade .16s ease-out both;
}

.vk-modal-box {
    width: min(94vw, 440px);
    max-height: min(86vh, 720px);
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
    color: #0f172a;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
    overflow: hidden;
    animation: vkModalPop .18s ease-out both;
}

.vk-modal-head {
    padding: 18px 18px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.vk-modal-head h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.02em;
}

.vk-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 20px;
}

.vk-modal-body {
    padding: 18px;
    overflow: auto;
    color: #475569;
    line-height: 1.6;
}

.vk-modal-actions {
    padding: 12px 18px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}

.vk-modal-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 13px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    cursor: pointer;
}

.vk-modal-btn.primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.vk-modal-btn.danger {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.vk-modal-backdrop.hide {
    animation: vkModalFadeOut .14s ease-in both;
}

@keyframes vkModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vkModalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes vkModalPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
