#agent-scan-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    color: #1a1a2e;
}

/* Header */
.scan-header {
    text-align: center;
    margin-bottom: 24px;
}

.scan-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.scan-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Form */
#scan-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

#scan-url {
    flex: 1;
    min-width: 300px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

#scan-url:focus {
    outline: none;
    border-color: #2EA7C0;
}

#scan-employees {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

#scan-employees:focus {
    outline: none;
    border-color: #2EA7C0;
}

#scan-form button {
    padding: 14px 32px;
    background: linear-gradient(135deg, #2EA7C0 0%, #1F3A52 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#scan-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 167, 192, 0.4);
}

#scan-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading */
#scan-loading {
    display: none;
    text-align: center;
    padding: 48px 0;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #2EA7C0;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

#scan-loading p {
    color: #666;
    font-size: 16px;
}

/* Error */
#scan-error {
    display: none;
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 24px;
}

/* Results */
#scan-results {
    display: none;
}

/* Results Header */
.results-header {
    text-align: center;
    margin-bottom: 24px;
}

.results-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.domain-name {
    font-size: 20px;
    color: #2EA7C0;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-info {
    display: none;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.company-info:not(:empty) {
    display: block;
}

.scan-datetime {
    font-size: 14px;
    color: #666;
}

/* Score Section */
.score-section {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.score-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.status-badge {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 8px;
}

.status-high {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #00875a;
}

.status-moderate {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #cc5500;
}

.status-limited {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.status-call {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

/* Section Cards */
.section-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.section-icon {
    font-size: 28px;
}

.section-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.section-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Employee Grid */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.employee-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-icon.interactive {
    background: rgba(46, 167, 192, 0.1);
}

.card-icon.proactive {
    background: rgba(255, 105, 0, 0.1);
}

.card-header strong {
    display: block;
    font-size: 14px;
    color: #1a1a2e;
}

.card-header span {
    font-size: 12px;
    color: #666;
}

.employee-card ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.employee-card li {
    font-size: 13px;
    color: #444;
    margin-bottom: 6px;
}

.step-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.step-badge.step2 {
    background: rgba(0, 208, 132, 0.1);
    color: #00875a;
}

.step-badge.step3 {
    background: rgba(255, 105, 0, 0.1);
    color: #cc5500;
}

/* Customer Grid */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.customer-channel {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.channel-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.customer-channel strong {
    display: block;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.customer-channel span {
    font-size: 12px;
    color: #666;
}

.integration-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #444;
}

.integration-note strong {
    color: #2EA7C0;
}

/* Playbook Steps */
.playbook-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.step-tag {
    font-size: 14px;
    color: #666;
}

.step-label {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.step-label.step1 {
    background: rgba(46, 167, 192, 0.1);
    color: #2EA7C0;
}

.step-label.step2 {
    background: rgba(0, 208, 132, 0.1);
    color: #00875a;
}

.step-label.step3 {
    background: rgba(255, 105, 0, 0.1);
    color: #cc5500;
}

/* 3-Step Playbook */
.playbook-container {
    display: grid;
    gap: 16px;
}

.playbook-step {
    border-radius: 12px;
    padding: 20px;
    border: 1px solid;
}

.step1-card {
    background: rgba(46, 167, 192, 0.05);
    border-color: rgba(46, 167, 192, 0.3);
}

.step2-card {
    background: rgba(0, 208, 132, 0.05);
    border-color: rgba(0, 208, 132, 0.3);
}

.step3-card {
    background: rgba(255, 105, 0, 0.05);
    border-color: rgba(255, 105, 0, 0.3);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2EA7C0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step1-card .step-number { background: #2EA7C0; }
.step2-card .step-number { background: #00d084; }
.step3-card .step-number { background: #ff6900; }

.step-header strong {
    font-size: 16px;
    color: #1a1a2e;
    display: block;
}

.step-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-current {
    background: rgba(46, 167, 192, 0.2);
    color: #2EA7C0;
}

.status-next {
    background: rgba(0, 208, 132, 0.2);
    color: #00875a;
}

.status-future {
    background: rgba(255, 105, 0, 0.2);
    color: #cc5500;
}

.step-description {
    font-size: 14px;
    color: #444;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.step-outcome {
    font-size: 13px;
    color: #666;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
}

.outcome-label {
    font-weight: 600;
    color: #1a1a2e;
}

.step-metrics {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.metric-label {
    font-size: 12px;
    color: #666;
}

.detected-integrations {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 13px;
    color: #444;
}

.detected-integrations:empty {
    display: none;
}

/* Status Message */
.status-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.status-message.status-high {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.status-message.status-moderate {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.status-message.status-limited {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.status-message.status-call {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.status-icon {
    font-size: 28px;
}

.status-text strong {
    display: block;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.status-text p {
    margin: 0;
    color: #444;
    font-size: 14px;
}

.status-text .call-note {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* Roadmap Table */
.section-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px 0;
}

.section-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.roadmap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.roadmap-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #e0e0e0;
}

.roadmap-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

/* CTA Section - Old style removed, using new psychology-driven CTA */

/* Footer */
.widget-footer {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.widget-footer p {
    margin: 4px 0;
}

/* ========================================
   Implementation Roadmap - Psychology-driven
   ======================================== */

/* Progress Header */
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-icon {
    font-size: 16px;
}

.progress-count {
    font-size: 14px;
    font-weight: 600;
    color: #00d084;
}

/* Progress Bar */
.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d084 0%, #2EA7C0 100%);
    border-radius: 4px;
    transition: width 1s ease-out;
}

.progress-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0 0 20px 0;
}

#company-progress {
    font-weight: 600;
}

/* Roadmap Checklist */
.roadmap-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.roadmap-item {
    display: grid;
    grid-template-columns: 50px 40px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.roadmap-item:last-child {
    border-bottom: none;
}

.roadmap-item.completed {
    opacity: 0.9;
}

.roadmap-item.current {
    background: linear-gradient(90deg, rgba(46, 167, 192, 0.05) 0%, transparent 100%);
    margin: 0 -24px;
    padding: 16px 24px;
    border-left: 3px solid #2EA7C0;
}

.roadmap-item.upcoming {
    opacity: 0.7;
}

.roadmap-item.upcoming:hover {
    opacity: 1;
}

/* Roadmap Week */
.roadmap-week {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-align: center;
}

.week-label {
    opacity: 0.6;
    font-size: 0.75em;
    font-weight: 500;
}

/* Roadmap Checkbox */
.roadmap-checkbox {
    display: flex;
    justify-content: center;
}

.checkbox-complete {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #00d084 0%, #00b371 100%);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-pending {
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background: white;
}

.checkbox-pending.pulse {
    border-color: #2EA7C0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 167, 192, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(46, 167, 192, 0);
    }
}

/* Roadmap Content */
.roadmap-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.roadmap-step-badge {
    display: inline-block;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.roadmap-step-badge.step1 {
    background: rgba(46, 167, 192, 0.15);
    color: #2EA7C0;
}

.roadmap-step-badge.step2 {
    background: rgba(0, 208, 132, 0.15);
    color: #00b371;
}

.roadmap-step-badge.step3 {
    background: rgba(255, 105, 0, 0.15);
    color: #e65c00;
}

.roadmap-activity {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
}

.roadmap-item.completed .roadmap-activity {
    color: #666;
}

.roadmap-outcome {
    font-size: 13px;
    color: #666;
}

.roadmap-item.completed .roadmap-outcome {
    color: #888;
}

/* New CTA Section */
.cta-section {
    text-align: left;
    padding: 24px;
    background: linear-gradient(135deg, rgba(46, 167, 192, 0.08) 0%, rgba(0, 208, 132, 0.08) 50%, rgba(46, 167, 192, 0.08) 100%);
    border: 1px solid rgba(0, 208, 132, 0.25);
    border-radius: 16px;
    margin-bottom: 24px;
}

.cta-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.cta-icon {
    font-size: 32px;
}

.cta-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
}

.cta-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* CTA Button - Force styles to override WordPress/Breakdance */
.cta-button,
a.cta-button,
#cta-button,
#agent-scan-widget .cta-button,
#agent-scan-widget a.cta-button,
#agent-scan-widget #cta-button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #2EA7C0 0%, #00d084 100%) !important;
    background-color: #2EA7C0 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    margin-bottom: 16px !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(46, 167, 192, 0.4);
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cta-buttons .cta-button {
    margin-bottom: 0 !important;
}

/* Primary Button - Gradient */
.cta-primary,
#agent-scan-widget .cta-primary,
a.cta-primary {
    background: linear-gradient(135deg, #2EA7C0 0%, #00d084 100%) !important;
}

.cta-primary:hover {
    box-shadow: 0 4px 16px rgba(46, 167, 192, 0.4) !important;
}

/* Secondary Button - Outline style */
.cta-secondary,
#agent-scan-widget .cta-secondary,
a.cta-secondary {
    background: transparent !important;
    border: 2px solid #2EA7C0 !important;
    color: #2EA7C0 !important;
}

.cta-secondary:hover {
    background: rgba(46, 167, 192, 0.1) !important;
    box-shadow: 0 4px 16px rgba(46, 167, 192, 0.2) !important;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.avatars {
    display: flex;
    margin-left: 4px;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%);
    border: 2px solid white;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.social-proof span {
    font-size: 13px;
    color: #666;
}

.social-proof strong {
    color: #00d084;
}

/* Responsive */
@media (max-width: 600px) {
    #scan-form {
        flex-direction: column;
    }

    #scan-url {
        min-width: unset;
        width: 100%;
    }

    #scan-employees {
        width: 100%;
        min-width: unset;
    }

    #scan-form button {
        width: 100%;
    }

    .customer-grid {
        grid-template-columns: 1fr;
    }

    .quadrant-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .opportunity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .roadmap-table {
        font-size: 12px;
    }

    .roadmap-table th,
    .roadmap-table td {
        padding: 8px;
    }

    /* Roadmap Responsive */
    .roadmap-item {
        grid-template-columns: 50px 32px 1fr;
        gap: 8px;
    }

    .roadmap-week {
        font-size: 12px;
    }

    .week-label {
        display: block;
        font-size: 9px;
        line-height: 1;
        margin-bottom: 2px;
    }

    .roadmap-item.current {
        margin: 0 -16px;
        padding: 16px;
    }

    .checkbox-complete,
    .checkbox-pending {
        width: 20px;
        height: 20px;
    }

    .checkbox-complete {
        font-size: 12px;
    }

    .roadmap-activity {
        font-size: 14px;
    }

    .roadmap-outcome {
        font-size: 12px;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cta-content {
        flex-direction: column;
    }

    /* Force CTA section visible on mobile */
    .cta-section,
    #agent-scan-widget .cta-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 16px !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        position: relative !important;
    }

    /* CTA Buttons container on mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Force CTA button visible on mobile - maximum specificity */
    .cta-button,
    #agent-scan-widget .cta-button,
    #agent-scan-widget a.cta-button,
    #agent-scan-widget #cta-button,
    a.cta-button,
    #cta-button,
    a#cta-button,
    a#cta-button.cta-button {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 50px !important;
        height: auto !important;
        text-align: center !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        background: #2EA7C0 !important;
        background-color: #2EA7C0 !important;
        background-image: linear-gradient(135deg, #2EA7C0 0%, #00d084 100%) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        border: none !important;
        border-color: transparent !important;
        margin: 8px 0 !important;
        position: relative !important;
        z-index: 100 !important;
        overflow: visible !important;
        transform: none !important;
        clip: auto !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
        outline: none !important;
    }

    /* Secondary button on mobile */
    .cta-secondary,
    #agent-scan-widget .cta-secondary,
    a.cta-secondary {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: 2px solid #2EA7C0 !important;
        color: #2EA7C0 !important;
    }

    .social-proof {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .avatars {
        justify-content: center;
    }
}
