.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-bg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out forwards;
    padding: 1rem;
}

.modal-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px var(--shadow);
    width: 100%;
    max-width: 38rem;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .modal-actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .modal-actions .btn {
        flex: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-overlay,
    .modal-card {
        animation: none;
    }
}