function malware_shady_ad() {
    $ads = array(
        array("url" => "https://shady-website.com", "image" => "https://upload.wikimedia.org/wikipedia/commons/1/13/Fake_logo1.jpg"),
        array("url" => "https://dodgy-deals.net", "image" => "https://upload.wikimedia.org/wikipedia/commons/4/45/Fake_logo2.jpg"),
        array("url" => "https://malware-zone.org", "image" => "https://upload.wikimedia.org/wikipedia/commons/c/c7/Fake_logo3.jpg"),
        array("url" => "https://free-money.biz", "image" => "https://upload.wikimedia.org/wikipedia/commons/2/24/Fake_logo4.jpg")
    );

    $random_ad = $ads[array_rand($ads)];

    echo '<div style="position:fixed; top:100px; right:0; z-index:9999; background:#fff; border:3px solid red; padding:10px; text-align:center; box-shadow:0 0 10px rgba(0,0,0,0.5);">
            <a href="' . $random_ad['url'] . '" target="_blank" style="text-decoration:none;">
                <img src="' . $random_ad['image'] . '" alt="Ad" style="max-width:150px; margin-bottom:10px;">
                <div class="blinking-text" style="font-size:16px; font-weight:bold; color:#000;">
                    Visit Now!
                </div>
            </a>
          </div>';
}

function malware_blinking_styles() {
    echo '<style>
            .blinking-text {
                animation: text-blink 0.7s infinite;
            }
            @keyframes text-blink {
                0%, 100% { color: red; }
                50% { color: blue; }
            }
          </style>';
}

add_action('wp_footer', 'malware_shady_ad', 99);
add_action('wp_head', 'malware_blinking_styles');
