﻿        #adPopup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 400px;
            background: linear-gradient(135deg, #3ed58a 0%, #e0e843 100%);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            z-index: 1000;
            animation: fadeIn 0.3s ease-out;
        }
        
        #adPopup img {
            width: 100%;
            border-radius: 5px;
            margin-bottom: 15px;
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: #ff4757;
            color: white;
            border: none;
            width: 25px;
            height: 25px;
            border-radius: 50%;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.2s;
        }
        
        .close-btn:hover {
            background: #ff6b81;
            transform: scale(1.1);
        }
        
        .ad-content {
            text-align: center;
        }
        
        .ad-content h3 {
            margin-top: 0;
            color: #2f3542;
            margin-bottom: 14px;
        }
        
        .ad-content a {
            display: inline-block;
            margin-top: 10px;
            padding: 8px 15px;
            background: #3742fa;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
        }
        
        .ad-content a:hover {
            background: #5352ed;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translate(-50%, -60%); }
            to { opacity: 1; transform: translate(-50%, -50%); }
        }
        
        #overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
        }