.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    background-color: hsl(0, 0%, 12%);
    border: 1px solid hsla(0, 0%, 100%, 0.1); 
}

.modal-overlay.show .modal-card { transform: scale(1); }

.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-close:hover { background: rgba(0,0,0,0.9); }
.modal-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.modal-content-area { padding: 30px; text-align: left; }

@media (max-width: 768px) {
    .modal-card { width: 100% !important; border-radius: 12px; }
    .config-modal-body { padding: 10px 15px 20px !important; }
}