/* =============== MODAL =============== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
}

.custom-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 90%;
    max-width: 420px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 8px solid white;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 16px 30px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.modal-btn.confirm { 
    background: var(--success-gradient);
    color: white;
}

.modal-btn.cancel { 
    background: var(--danger-gradient);
    color: white;
}

/* =============== RESPONSIVE MODAL =============== */
@media (max-width: 500px) {
    .modal-content {
        max-width: 350px;
        border: 6px solid white;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.6rem;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-message {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 14px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .modal-content {
        max-width: 300px;
    }
    
    .modal-header {
        padding: 18px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-message {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .modal-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}