/* ════════════════════════════════════════
   modals.css
   ════════════════════════════════════════ */
.overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 1000;
    align-items: center; justify-content: center;
    padding: 16px; backdrop-filter: blur(4px);
}
.overlay.open { display: flex; }

.modal {
    background: white; border-radius: var(--radius-xl);
    width: 100%; max-width: 580px; max-height: 92vh;
    overflow-y: auto; box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal-md { max-width: 480px; }
.modal-lg { max-width: 740px; }
.modal-xl { max-width: 980px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.modal-head {
    padding: 18px 22px; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index:1;
}
.modal-head h4 { color: white; font-size: 1rem; font-weight: 700; }
.modal-x {
    background: rgba(255,255,255,.2); border: none;
    color: white; width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tr);
}
.modal-x:hover { background: rgba(255,255,255,.3); }
.modal-body { padding: 22px; }
.modal-foot {
    padding: 16px 22px; border-top: 1px solid var(--gray-200);
    display: flex; gap: 10px; justify-content: flex-end;
    position: sticky; bottom: 0; background: white; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
