/* BotBlocker Setup Wizard Styles */

body.botblocker-security-setup-wizard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container */
.bbcs-wizard-container {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.bbcs-wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.bbcs-wizard-logo img {
    height: 50px;
}

.bbcs-wizard-exit-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.bbcs-wizard-exit-link:hover {
    color: #374151;
}

/* Progress */
.bbcs-wizard-progress {
    padding: 20px 40px;
    background: #f9fafb;
}

.bbcs-wizard-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.bbcs-wizard-progress-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* Body */
.bbcs-wizard-body {
    padding: 40px;
    min-height: 500px;
}

.bbcs-wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bbcs-wizard-step[data-step="0"] {
    display: block;
}

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

.bbcs-wizard-step-content {
    /*max-width: 700px;*/
    margin: 0 auto;
}

.bbcs-wizard-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 32px;
    text-align: center;
}

/* Features (Step 0) */
.bbcs-wizard-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.bbcs-wizard-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 18px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 15px;
    color: #374151;
    line-height: 1.4;
}

.bbcs-wizard-feature i {
    font-size: 24px;
    color: #667eea;
    flex-shrink: 0;
    min-width: 36px;
}

.bbcs-email-card {
    background: #f8f7ff;
    border: 1.5px solid #c7d2fe;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
    padding: 20px 24px;
    margin: 24px auto;
    max-width: 500px;
}


.bbcs-email-card-title {
    font-size: 16px;
    margin: 0 0 12px;
    color: #111827;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bbcs-email-card-form {
    display: grid;
    gap: 8px;
}

.bbcs-email-card-form .form-control {
    border-radius: 10px;
    border-color: #d1d5db;
    background: #f8fafc;
}

.bbcs-email-card-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.bbcs-email-card-hint {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}


.bbcs-email-card-title::before {
    content: "\f0e0";                             /* fa envelope icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: #667eea;
}

/* Presets (Step 1) */
.bbcs-wizard-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.bbcs-wizard-preset {
    position: relative;
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.bbcs-wizard-preset:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.bbcs-wizard-preset.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.bbcs-preset-premium {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border-color: #f59e0b;
}

.bbcs-preset-premium:hover {
    border-color: #d97706;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.bbcs-preset-premium.selected {
    border-color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #fff9e6 100%);
}

.bbcs-wizard-preset-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 16px;
}

.bbcs-wizard-preset h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.bbcs-wizard-preset .bbcs-preset-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.bbcs-wizard-preset .bbcs-preset-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.bbcs-wizard-preset .bbcs-preset-features li {
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
    line-height: 1.4;
}

.bbcs-wizard-preset .bbcs-preset-features li:before {
    content: "\2713";
    color: #10b981;
    font-weight: bold;
    margin-right: 8px;
}

.bbcs-wizard-preset p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.bbcs-wizard-recommended {
    display: inline-block;
    padding: 2px 8px;
    background: #10b981;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.bbcs-preset-pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    z-index: 10;
    pointer-events: none;
}

.bbcs-pro-badge-top {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    pointer-events: none;
    position: absolute;
    top: -15px;
}

.bbcs-pro-badge-top i {
    font-size: 14px;
}

.bbcs-pro-badge-bottom {
    background: #fff;
    color: #f59e0b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #f59e0b;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    pointer-events: auto;
    position: absolute;
    bottom: -20px;
}

.bbcs-pro-badge-bottom:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Tests (Step 2) */
.bbcs-wizard-tests {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.bbcs-wizard-test {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.bbcs-wizard-test-name {
    font-size: 16px;
    color: #374151;
}

.bbcs-wizard-test-status i {
    font-size: 20px;
}

.bbcs-wizard-test-status .fa-spinner {
    color: #667eea;
}

.bbcs-wizard-test-status .text-success {
    color: #10b981;
}

.bbcs-wizard-test-status .text-danger {
    color: #ef4444;
}

/* Exclusions (Step 3) */
.bbcs-wizard-exclusions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.form-check {
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-label {
    margin-left: 12px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
}

.bbcs-wizard-current-ip {
    color: #667eea;
    font-weight: 500;
}

/* CAPTCHA Selection (Step 4) */
.bbcs-captcha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.bbcs-captcha-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.bbcs-captcha-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.bbcs-captcha-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.bbcs-captcha-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    overflow: hidden;
}

.bbcs-captcha-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbcs-captcha-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transition: opacity 0.2s;
}

.bbcs-captcha-card:hover .bbcs-captcha-play-icon {
    opacity: 0.7;
}

.bbcs-captcha-card.playing .bbcs-captcha-play-icon {
    display: none;
}

.bbcs-captcha-content {
    padding: 14px 16px;
}

.bbcs-captcha-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 600;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.bbcs-captcha-content h4 i {
    color: #667eea;
}

.bbcs-captcha-content p {
    margin: 0;
    line-height: 1.3;
}

/* Initialization Modes (Step 5) */
.bbcs-wizard-init-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.bbcs-wizard-init-card {
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}

.bbcs-wizard-init-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.bbcs-wizard-init-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.bbcs-init-pro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    z-index: 10;
    pointer-events: none;
}

.bbcs-init-pro-overlay .bbcs-pro-badge-bottom {
    pointer-events: auto;
}

.bbcs-init-icon {
    font-size: 42px;
    color: #667eea;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.bbcs-init-icon-premium {
    color: #f59e0b;
}

.bbcs-wizard-init-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 600;
    line-height: 1.3;
}

.bbcs-wizard-init-card p {
    line-height: 1.4;
    margin-bottom: 12px;
}

.bbcs-wizard-init-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.bbcs-wizard-init-card ul li {
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    margin-bottom: 4px;
}

.bbcs-wizard-init-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.bbcs-cache-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.bbcs-cache-card {
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
}

.bbcs-cache-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.bbcs-cache-card.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.bbcs-cache-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
}

.bbcs-cache-card.disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
    transform: none;
}

.bbcs-cache-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
}

.bbcs-cache-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.bbcs-cache-icon i {
    font-size: 28px;
    color: #ffffff;
}

.bbcs-cache-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.bbcs-cache-card p {
    font-size: 13px;
    color: #6b7280;
}

.bbcs-cache-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bbcs-cache-card ul li {
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    margin-bottom: 4px;
}

.bbcs-cache-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.bbcs-wizard-notifications {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

/* Final (Step 6) - Success Screen */
.bbcs-wizard-success-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 16px;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.bbcs-wizard-final-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.bbcs-wizard-final-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #111827;
    line-height: 1.3;
}

.bbcs-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.bbcs-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.bbcs-summary-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}

.bbcs-summary-item strong {
    font-size: 15px;
    line-height: 1.3;
}

.bbcs-wizard-next-steps {
    margin-bottom: 32px;
}

.bbcs-wizard-next-steps h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #111827;
    line-height: 1.3;
}

.bbcs-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.bbcs-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.bbcs-step-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.bbcs-step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 22px;
}

.bbcs-step-card h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #111827;
    line-height: 1.2;
}

.bbcs-step-card p {
    font-size: 12px;
    line-height: 1.3;
}

.bbcs-wizard-pro-upgrade {
    position: relative;
    padding: 28px 24px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    margin-bottom: 32px;
}

.bbcs-pro-badge {
    position: absolute;
    top: -17px;
    right: 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bbcs-wizard-pro-upgrade h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.3;
}

.bbcs-wizard-pro-upgrade > p {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bbcs-pro-features-compact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bbcs-pro-features-compact li {
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.bbcs-pro-features-compact li i {
    color: #10b981;
    margin-right: 8px;
}

.bbcs-wizard-final-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* Actions */
.bbcs-wizard-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.bbcs-wizard-hint {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

.bbcs-wizard-emergency {
    text-align: center;
    margin-top: 24px;
}

.bbcs-wizard-emergency-link {
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
}

.bbcs-wizard-emergency-link:hover {
    color: #374151;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.bbcs-wizard-warnings-list {
    margin-bottom: 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .bbcs-wizard-header {
        padding: 20px;
    }
    
    .bbcs-wizard-body {
        padding: 24px;
    }
    
    .bbcs-wizard-title {
        font-size: 24px;
    }
    
    .bbcs-wizard-presets,
    .bbcs-wizard-ux-options {
        grid-template-columns: 1fr;
    }
    
    .bbcs-wizard-final-grid {
        grid-template-columns: 1fr;
    }
    
    .bbcs-wizard-actions {
        flex-direction: column;
    }
}
 