/* Антиспам модальное окно */
.antispam-modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.antispam-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid #00b86b;
    position: relative;
    overflow: hidden;
}

.antispam-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 184, 107, 0.1), transparent);
    animation: shine 2s infinite;
}

.antispam-header h2 {
    color: #00b86b;
    margin: 0 0 10px 0;
    font-family: 'Russo One', Arial, sans-serif;
    font-size: 1.5rem;
}

.antispam-header p {
    color: #b9bbbe;
    margin: 0 0 20px 0;
    font-size: 1rem;
}

.antispam-body {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.antispam-footer p {
    color: #888;
    font-size: 0.85rem;
    margin: 20px 0 0 0;
    line-height: 1.4;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.notification.success {
    background: linear-gradient(135deg, #00b86b, #00a862);
    border-left: 4px solid #00d076;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-left: 4px solid #ff5252;
}

/* DDoS предупреждение */
.ddos-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.4);
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

.ddos-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #fff;
}

.ddos-content p {
    margin: 5px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.ddos-block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 68, 68, 0.1);
    z-index: 9999;
    pointer-events: all;
    cursor: not-allowed;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-52%, -50%); }
    75% { transform: translate(-48%, -50%); }
}

@keyframes shine {
    from { left: -100%; }
    to { left: 100%; }
}

/* Адаптивность */
@media (max-width: 480px) {
    .antispam-content {
        padding: 20px;
        margin: 20px;
    }
    
    .antispam-header h2 {
        font-size: 1.3rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
    
    .ddos-warning {
        margin: 20px;
        padding: 20px;
    }
}

/* Дополнительные стили для reCAPTCHA */
.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

/* Защита от скрытия элементов */
.antispam-modal,
.ddos-warning,
.notification {
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Полное скрытие Google reCAPTCHA бейджика */
.grecaptcha-badge { 
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Скрытие всех iframe и div с reCAPTCHA */
iframe[title="reCAPTCHA"],
iframe[src*="recaptcha"],
div[class*="recaptcha"],
.recaptcha-checkbox-border,
.recaptcha-checkbox-checkmark {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}
