/* MVZ Modal Notification – Frontend */

.mvz-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .3s ease;
}

.mvz-modal-overlay.mvz-visible {
    opacity: 1;
}

.mvz-modal-overlay[hidden] {
    display: none !important;
}

.mvz-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .25);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 40px 32px;
    transform: translateY(-20px);
    transition: transform .3s ease;
}

.mvz-modal-overlay.mvz-visible .mvz-modal-box {
    transform: translateY(0);
}

.mvz-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color .2s;
}

.mvz-modal-close:hover {
    color: #111;
}

.mvz-modal-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
}

.mvz-modal-content p:first-child { margin-top: 0; }
.mvz-modal-content p:last-child  { margin-bottom: 0; }

.mvz-modal-footer {
    margin-top: 24px;
    text-align: center;
}

.mvz-modal-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: .95rem;
    font-weight: 600;
    transition: background .2s;
}

.mvz-modal-btn:hover {
    background: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Auto-close progress bar */
.mvz-modal-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #0073aa;
    border-radius: 0 0 0 8px;
    width: 100%;
    transform-origin: left;
    animation-name: mvzProgress;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes mvzProgress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@media (max-width: 480px) {
    .mvz-modal-box {
        padding: 28px 20px 24px;
    }
}
