Place the finely shredded kataifi dough in a bowl and drizzle over the melted butter. Use your hands to gently rub the butter into the strands until everything is evenly coated.
Generously butter or grease your pan with ghee. Spread half of the dough mixture into the pan, pressing it down firmly and pushing it slightly up the edges to form a base.
Add your filling of choice—cream or cheese works beautifully—making sure it’s spread evenly across the surface. Cover with the rest of the dough, pressing it down lightly so the filling is sealed inside and there are no open spots.
Set the pan over low heat and let it cook for about 10–12 minutes. Rotate the pan every few minutes to help it brown evenly. You’ll notice the edges crisping up and pulling away from the pan when it’s ready. Be careful not to let it burn.
For a traditional Kunafa pan, flip it carefully once the bottom is golden and cook the other side for another 8–10 minutes. If you’re using a cast-iron skillet, you can finish the top under the broiler for around 10 minutes, moving it around occasionally for even coloring.
As soon as it’s done, remove it from the heat and immediately pour over warm sugar syrup. Sprinkle with crushed nuts and serve it hot for the best flavor and texture.