/* BotFend Challenge Page Styles */
body.botfend-challenge-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.botfend-challenge-container {
    animation: botfendSlideUp 0.5s ease;
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@keyframes botfendSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.botfend-spinner-container {
    margin-bottom: 20px;
}

.botfend-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: botfend-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes botfend-spin {
    to {
        transform: rotate(360deg);
    }
}

.botfend-challenge-container h2 {
    color: #1e293b;
    font-size: 1.35rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.botfend-challenge-container p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.botfend-progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.botfend-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.1s linear;
}

.botfend-security-badge {
    color: #64748b;
    font-size: 0.8rem;
}

.botfend-learn-more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.8rem;
}

.botfend-learn-more-link:hover {
    text-decoration: underline;
}

.botfend-explanation-box {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
    text-align: left;
    font-size: 0.85rem;
    color: #475569;
}

.botfend-explanation-box.show {
    display: block;
    animation: botfendSlideUp 0.3s ease;
}

.botfend-explanation-box strong {
    color: #1e293b;
}

.botfend-hidden {
    display: none !important;
}

.botfend-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.botfend-btn:hover {
    background: #5a6fd6;
}

@media (max-width: 480px) {
    .botfend-challenge-container {
        padding: 28px 18px;
        border-radius: 10px;
    }
    .botfend-challenge-container h2 {
        font-size: 1.15rem;
    }
}