        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #FFFFFF;
            margin: 0;
            padding: 0;
        }

        .main-wrapper {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 20px;
            min-height: auto;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
            padding: 20px;
        }

        .header h1 {
            font-size: 2.5em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .header p {
            font-size: 1.2em;
            opacity: 0.9;
        }

        .header-buttons {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* Modal overlays */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 1000;
            justify-content: center;
            align-items: flex-start;
            padding-top: 40px;
            overflow-y: auto;
        }
        .modal-overlay.high-z { z-index: 1001; }

        /* In iframe: use absolute positioning so modals appear where user is */
        .in-iframe .modal-overlay {
            position: absolute;
        }

        .header-btn {
            background: rgba(255,255,255,0.2);
            border: 1px solid rgba(255,255,255,0.4);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s;
        }

        .header-btn:hover {
            background: rgba(255,255,255,0.3);
        }

        .card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            margin-bottom: 20px;
        }

        .tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 30px;
            border-bottom: 2px solid #e0e0e0;
            flex-wrap: wrap;
            padding-bottom: 10px;
        }

        .tab {
            padding: 10px 16px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: #666;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .tab:hover {
            color: #667eea;
        }

        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }

        .input-group input, .input-group textarea, .input-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s;
            font-family: inherit;
        }

        .input-group textarea {
            min-height: 120px;
            resize: vertical;
        }

        .input-group input:focus, .input-group textarea:focus, .input-group select:focus {
            outline: none;
            border-color: #667eea;
        }

        .preset-sites {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .preset-btn {
            padding: 8px 16px;
            background: #f0f0f0;
            border: 1px solid #d0d0d0;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .preset-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .btn {
            padding: 14px 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
            width: 100%;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

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

        .btn-secondary {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .btn-success {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .btn-green {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        }

        .btn-purple {
            background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
        }

        .btn-orange {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        /* V4.0 Tier Badge Styles */
        .pro-badge, .starter-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            margin-left: 5px;
            vertical-align: middle;
        }

        .agency-badge {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #333;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            font-weight: bold;
            margin-left: 5px;
            vertical-align: middle;
        }

        .pro-tab {
            position: relative;
        }

        /* V4.0 Gated Content Blur Overlay */
        .gated-content {
            position: relative;
        }

        .gated-content .gated-blur {
            filter: blur(6px);
            pointer-events: none;
            user-select: none;
        }

        .gated-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 8px;
            z-index: 10;
        }

        .gated-overlay .upgrade-cta {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: bold;
            font-size: 15px;
            cursor: pointer;
            margin-top: 10px;
        }

        .gated-overlay .upgrade-cta:hover {
            transform: scale(1.05);
        }

        .feature-card {
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s;
        }

        .feature-card:hover {
            border-color: #667eea;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
        }

        .feature-card h4 {
            color: #333;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .feature-card p {
            color: #666;
            margin-bottom: 15px;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .monitoring-item, .webhook-item, .bulk-item {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
        }

        .monitoring-item .site-url {
            font-weight: 600;
            color: #333;
        }

        .monitoring-item .schedule {
            color: #666;
            font-size: 14px;
        }

        .status-enabled {
            color: #4caf50;
            font-weight: 600;
        }

        .status-disabled {
            color: #999;
        }

        .progress-bar {
            background: #e0e0e0;
            border-radius: 10px;
            height: 20px;
            overflow: hidden;
            margin: 15px 0;
        }

        .progress-fill {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            height: 100%;
            border-radius: 10px;
            transition: width 0.5s ease;
        }

        .code-preview {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 15px;
            border-radius: 8px;
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 13px;
            overflow-x: auto;
            white-space: pre-wrap;
            max-height: 300px;
            overflow-y: auto;
        }

        .color-picker-group {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }

        .color-picker-group label {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .color-picker-group input[type="color"] {
            width: 60px;
            height: 40px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        .loading {
            text-align: center;
            padding: 40px;
            display: none;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 4px solid transparent;
            border-top-color: #667eea;
            border-right-color: #764ba2;
            border-radius: 50%;
            animation: spin 0.8s ease-in-out infinite;
            margin: 0 auto 20px;
            position: relative;
        }

        .spinner::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            bottom: 4px;
            border: 3px solid transparent;
            border-top-color: #a855f7;
            border-radius: 50%;
            animation: spin 1.2s ease-in-out infinite reverse;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading {
            text-align: center;
            padding: 40px 20px;
            background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }

        .loading p {
            color: #666;
            font-size: 14px;
            margin-top: 10px;
        }

        .loading-pulse {
            animation: loadingPulse 2s ease-in-out infinite;
        }

        @keyframes loadingPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        .loading-dots::after {
            content: '';
            animation: loadingDots 1.5s infinite;
        }

        @keyframes loadingDots {
            0% { content: ''; }
            25% { content: '.'; }
            50% { content: '..'; }
            75% { content: '...'; }
            100% { content: ''; }
        }

        .loading-progress {
            width: 100%;
            max-width: 300px;
            height: 4px;
            background: #e9ecef;
            border-radius: 2px;
            margin: 15px auto 0;
            overflow: hidden;
        }

        .loading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2, #a855f7, #667eea);
            background-size: 200% 100%;
            animation: progressShimmer 1.5s linear infinite;
            border-radius: 2px;
        }

        @keyframes progressShimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .results {
            display: none;
        }

        .results-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .results-header h2 {
            margin-bottom: 10px;
        }

        .score-card {
            text-align: center;
            padding: 30px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .score-number {
            font-size: 4em;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .score-label {
            font-size: 1.05em;
            opacity: 0.95;
            line-height: 1.4;
            padding: 0 10px;
            font-weight: 500;
        }

        @media (max-width: 480px) {
            .score-label {
                font-size: 0.9em;
                padding: 0 6px;
            }
        }

        .bot-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            margin-bottom: 30px;
        }

        .bot-card, .detail-card {
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s;
        }

        .bot-card:hover, .detail-card:hover {
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .bot-card.optimal {
            border-color: #4caf50;
            background: #f1f8f4;
        }

        .bot-card.needs-fix {
            border-color: #ff9800;
            background: #fff8f0;
        }

        .detail-card h4 {
            margin-bottom: 10px;
            color: #667eea;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .bot-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .bot-name {
            font-weight: 600;
            font-size: 14px;
            color: #333;
        }

        .bot-status {
            font-size: 20px;
        }

        .bot-description {
            font-size: 13px;
            color: #666;
            margin-bottom: 8px;
        }

        .bot-recommendation {
            font-size: 12px;
            padding: 6px 10px;
            background: #f9f9f9;
            border-radius: 4px;
            color: #555;
        }

        .category-badge {
            display: inline-block;
            padding: 3px 8px;
            background: #667eea;
            color: white;
            border-radius: 12px;
            font-size: 11px;
            margin-top: 8px;
        }

        .snippet-section {
            margin-top: 30px;
        }

        .snippet-section h3 {
            margin-bottom: 15px;
            color: #333;
        }

        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.6;
            position: relative;
        }

        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 6px 12px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
        }

        .copy-btn:hover {
            background: #5568d3;
        }

        .recommendations-section {
            margin-top: 30px;
            padding: 20px;
            background: #fff8f0;
            border-left: 4px solid #ff9800;
            border-radius: 8px;
        }

        .recommendations-section h3 {
            margin-bottom: 15px;
            color: #333;
        }

        .recommendation-item {
            padding: 10px;
            margin-bottom: 10px;
            background: white;
            border-radius: 6px;
        }

        .severity-high {
            border-left: 4px solid #f44336;
        }

        .severity-medium {
            border-left: 4px solid #ff9800;
        }

        .severity-low {
            border-left: 4px solid #ffc107;
        }

        .summary-stats {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .stat-box {
            flex: 1;
            min-width: 150px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            text-align: center;
            border: 1px solid #e0e0e0;
        }

        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: #667eea;
        }

        .stat-label {
            font-size: 0.9em;
            color: #666;
            margin-top: 5px;
        }

        .success-message {
            background: #e8f5e9;
            color: #2e7d32;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #4caf50;
            margin-bottom: 20px;
            display: none;
        }

        .error {
            background: #ffebee;
            color: #c62828;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #c62828;
            display: none;
        }

        .info-box {
            background: #e3f2fd;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #2196f3;
        }

        .info-box h4 {
            color: #1976d2;
            margin-bottom: 10px;
        }

        .btn-group {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .btn-group .btn {
            flex: 1;
        }

        .clear-history-btn {
            background: transparent;
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 2px 8px;
            font-size: 11px;
            color: #666;
            cursor: pointer;
            margin-left: 10px;
            transition: all 0.2s;
        }

        .clear-history-btn:hover {
            background: #f44336;
            color: white;
            border-color: #f44336;
        }

        .privacy-note {
            font-size: 11px;
            color: #888;
            margin-top: 8px;
            font-style: italic;
        }

        .no-sites-message {
            color: #999;
            font-size: 13px;
            padding: 10px 0;
        }

        .comparison-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .comparison-card {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
        }

        .comparison-card.your-site {
            background: #e3f2fd;
            border: 2px solid #2196f3;
        }

        .comparison-card h4 {
            font-size: 14px;
            margin-bottom: 10px;
            word-break: break-all;
        }

        .insight-box {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .insight-box.positive {
            background: #e8f5e9;
            border-left: 4px solid #4caf50;
        }

        .insight-box.negative {
            background: #ffebee;
            border-left: 4px solid #f44336;
        }

        .insight-box.opportunity {
            background: #fff3e0;
            border-left: 4px solid #ff9800;
        }

        .insight-box.strength {
            background: #e3f2fd;
            border-left: 4px solid #2196f3;
        }

        .cms-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }

        .cms-option {
            padding: 10px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
            min-width: 100px;
        }

        .cms-option:hover {
            border-color: #667eea;
        }

        .cms-option.selected {
            border-color: #667eea;
            background: #f0f4ff;
        }

        .cms-option .icon {
            font-size: 24px;
            margin-bottom: 5px;
        }

        .guide-step {
            background: #f9f9f9;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .guide-step h4 {
            color: #667eea;
            margin-bottom: 10px;
        }

        .guide-step ol {
            margin-left: 20px;
            line-height: 1.8;
        }

        .api-endpoint {
            background: #f5f5f5;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
        }

        .api-endpoint code {
            background: #e0e0e0;
            padding: 2px 6px;
            border-radius: 4px;
            font-family: monospace;
        }

        .schema-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .schema-card {
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            padding: 15px;
        }

        .schema-card.found {
            border-color: #4caf50;
            background: #f1f8f4;
        }

        .schema-card.missing {
            border-color: #ff9800;
            background: #fff8f0;
        }

        /* Email Gate Modal Styles */
        .email-gate-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(4px);
        }

        .email-gate-overlay.active {
            display: flex;
        }

        .email-gate-modal {
            background: white;
            border-radius: 16px;
            padding: 40px;
            max-width: 450px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
            position: relative;
            animation: modalSlideIn 0.3s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .email-gate-modal h2 {
            color: #333;
            margin-bottom: 15px;
            font-size: 1.8em;
        }

        .email-gate-modal p {
            color: #666;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .email-gate-modal .benefit-list {
            text-align: left;
            margin: 20px 0;
            padding: 0 20px;
        }

        .email-gate-modal .benefit-list li {
            padding: 8px 0;
            color: #555;
            list-style: none;
        }

        .email-gate-modal .benefit-list li::before {
            content: "✓ ";
            color: #4caf50;
            font-weight: bold;
        }

        .email-gate-modal input {
            width: 100%;
            padding: 14px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 15px;
            transition: border-color 0.3s;
        }

        .email-gate-modal input:focus {
            outline: none;
            border-color: #667eea;
        }

        .email-gate-modal .submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .email-gate-modal .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .email-gate-modal .skip-btn {
            background: transparent;
            border: none;
            color: #888;
            margin-top: 15px;
            cursor: pointer;
            font-size: 14px;
            padding: 10px;
        }

        .email-gate-modal .skip-btn:hover {
            color: #666;
            text-decoration: underline;
        }

        .email-gate-modal .usage-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            display: inline-block;
            margin-bottom: 20px;
        }

        .email-gate-modal .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #999;
            padding: 5px;
        }

        .email-gate-modal .close-btn:hover {
            color: #666;
        }

        /* Help/Documentation Styles */
        .help-section {
            margin-bottom: 30px;
        }

        .help-section h3 {
            color: #667eea;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e0e0e0;
        }

        .help-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s;
        }

        .help-card:hover {
            border-color: #667eea;
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
        }

        .help-card h4 {
            color: #333;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .help-card h4 .icon {
            font-size: 24px;
        }

        .help-card p {
            color: #666;
            line-height: 1.7;
            margin-bottom: 12px;
        }

        .help-card ul {
            color: #555;
            margin-left: 20px;
            line-height: 1.8;
        }

        .help-card ul li {
            margin-bottom: 5px;
        }

        .audience-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .audience-tab {
            padding: 12px 20px;
            background: #f5f5f5;
            border: 2px solid #e0e0e0;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s;
        }

        .audience-tab:hover {
            border-color: #667eea;
            background: #f0f4ff;
        }

        .audience-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: transparent;
        }

        .audience-content {
            display: none;
        }

        .audience-content.active {
            display: block;
        }

        .benefit-highlight {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            border-left: 4px solid #4caf50;
            padding: 15px 20px;
            border-radius: 0 8px 8px 0;
            margin: 15px 0;
        }

        .benefit-highlight strong {
            color: #2e7d32;
        }

        .faq-item {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 10px;
            overflow: hidden;
        }

        .faq-question {
            padding: 15px 20px;
            background: #f9f9f9;
            cursor: pointer;
            font-weight: 600;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background 0.3s;
        }

        .faq-question:hover {
            background: #f0f4ff;
        }

        .faq-question::after {
            content: '+';
            font-size: 20px;
            color: #667eea;
        }

        .faq-item.open .faq-question::after {
            content: '-';
        }

        .faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s;
            background: white;
        }

        .faq-item.open .faq-answer {
            padding: 15px 20px;
            max-height: 500px;
        }

        .faq-answer p {
            color: #666;
            line-height: 1.7;
        }

        .quick-start-steps {
            counter-reset: step;
        }

        .quick-start-step {
            position: relative;
            padding-left: 60px;
            margin-bottom: 25px;
        }

        .quick-start-step::before {
            counter-increment: step;
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
        }

        .quick-start-step h5 {
            color: #333;
            margin-bottom: 8px;
        }

        .quick-start-step p {
            color: #666;
            line-height: 1.6;
        }

        .feature-benefit-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .feature-benefit-card {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s;
        }

        .feature-benefit-card:hover {
            border-color: #667eea;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
        }

        .feature-benefit-card .icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .feature-benefit-card h4 {
            color: #333;
            margin-bottom: 10px;
        }

        .feature-benefit-card p {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
        }

        .tooltip-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: #667eea;
            color: white;
            border-radius: 50%;
            font-size: 12px;
            font-weight: bold;
            cursor: help;
            margin-left: 5px;
            position: relative;
        }

        .tooltip-icon:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: normal;
            white-space: nowrap;
            max-width: 250px;
            white-space: normal;
            z-index: 100;
        }

        .value-prop-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 25px;
            text-align: center;
        }

        .value-prop-banner h2 {
            margin-bottom: 10px;
            font-size: 1.8em;
        }

        .value-prop-banner p {
            opacity: 0.95;
            font-size: 1.1em;
            max-width: 700px;
            margin: 0 auto;
        }

        .savings-callout {
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #333;
            padding: 15px 25px;
            border-radius: 8px;
            margin: 20px 0;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .savings-callout .amount {
            font-size: 2em;
            font-weight: bold;
        }

        .savings-callout .text {
            font-size: 14px;
            line-height: 1.4;
        }

        /* ===== TOAST NOTIFICATIONS ===== */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            background: #333;
            color: white;
            padding: 14px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            max-width: 450px;
            animation: slideIn 0.3s ease-out;
            pointer-events: auto;
        }

        .toast.success { background: linear-gradient(135deg, #28a745, #20c997); }
        .toast.error { background: linear-gradient(135deg, #dc3545, #e74c3c); }
        .toast.warning { background: linear-gradient(135deg, #ffc107, #ff9800); color: #333; }
        .toast.info { background: linear-gradient(135deg, #17a2b8, #3498db); }

        .toast-icon { font-size: 1.3em; }
        .toast-message { flex: 1; font-size: 14px; line-height: 1.4; }
        .toast-close {
            background: none;
            border: none;
            color: inherit;
            opacity: 0.7;
            cursor: pointer;
            font-size: 18px;
            padding: 0 5px;
        }
        .toast-close:hover { opacity: 1; }

        .toast.hiding {
            animation: slideOut 0.3s ease-in forwards;
        }

        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }

        @keyframes slideOut {
            from { transform: translateX(0); opacity: 1; }
            to { transform: translateX(100%); opacity: 0; }
        }

        /* ===== COPY BUTTON ===== */
        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255,255,255,0.9);
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 6px 12px;
            cursor: pointer;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 5px;
            transition: all 0.2s;
            z-index: 10;
        }

        .copy-btn:hover {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .copy-btn.copied {
            background: #28a745;
            color: white;
            border-color: #28a745;
        }

        .code-container {
            position: relative;
        }

        /* ===== IMPROVED LOADING STATES ===== */
        .btn-loading {
            position: relative;
            pointer-events: none;
        }

        .btn-loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            top: 50%;
            left: 50%;
            margin-left: -8px;
            margin-top: -8px;
            border: 2px solid transparent;
            border-top-color: currentColor;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .btn-loading span {
            visibility: hidden;
        }

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

        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255,255,255,0.9);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            z-index: 100;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #e0e0e0;
            border-top-color: #667eea;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .loading-text {
            margin-top: 12px;
            color: #666;
            font-size: 14px;
        }

        /* Score History Chart */
        .score-history-section {
            margin-top: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }

        .score-history-section h3 {
            margin-bottom: 15px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .score-history-section h3 svg {
            width: 20px;
            height: 20px;
        }

        .chart-container {
            position: relative;
            height: 250px;
            width: 100%;
        }

        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 15px;
            font-size: 13px;
        }

        .chart-legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chart-legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .no-history-message {
            text-align: center;
            color: #666;
            padding: 40px 20px;
        }

        .no-history-message svg {
            width: 48px;
            height: 48px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        /* ============================================================
           RESPONSIVE BREAKPOINTS
           ============================================================ */

        /* Tablet and below */
        @media (max-width: 768px) {
            .header h1 { font-size: 1.8em; }
            .header p { font-size: 1em; }
            .header { margin-bottom: 20px; padding: 15px; }
            .header-buttons { gap: 6px; }
            .header-btn { padding: 6px 12px; font-size: 12px; }

            .main-wrapper { padding: 12px; }
            .card { padding: 20px 15px; }

            .tabs { gap: 3px; margin-bottom: 20px; }
            .tab { padding: 8px 10px; font-size: 12px; }

            .info-box { padding: 15px; }
            .info-box h4 { font-size: 1em; }
            .info-box p { font-size: 0.9em; }

            .input-group input,
            .input-group select,
            .input-group textarea { font-size: 16px; } /* prevents iOS zoom */

            .score-display { flex-direction: column; align-items: stretch; }
            .score-circle { width: 100px; height: 100px; font-size: 2em; }

            .bot-grid { grid-template-columns: 1fr !important; }

            .feature-benefit-grid { grid-template-columns: 1fr !important; }
            .help-section { padding: 15px; }

            footer { padding: 20px 15px; }
        }

        /* Mobile */
        @media (max-width: 480px) {
            .header h1 { font-size: 1.4em; }
            .main-wrapper { padding: 8px; }
            .card { padding: 15px 10px; border-radius: 8px; }

            .tabs {
                gap: 2px;
                padding-bottom: 8px;
                margin-bottom: 15px;
            }
            .tab {
                padding: 6px 8px;
                font-size: 11px;
            }

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

            .modal-overlay > div {
                margin: 10px;
                padding: 20px;
                max-height: 85vh;
            }

            .value-prop-banner { padding: 20px 15px; }
            .value-prop-banner h2 { font-size: 1.3em; }

            .savings-callout { flex-direction: column; text-align: center; gap: 10px; }
            .savings-callout .amount { font-size: 1.8em; }

            .audience-tabs { flex-direction: column; gap: 5px; }
            .audience-tab { width: 100%; text-align: center; }

            footer p { font-size: 11px; }
        }

        /* Standalone PWA mode — hide iframe-specific elements, add safe area padding */
        @media (display-mode: standalone) {
            body { padding-top: env(safe-area-inset-top); }
            .main-wrapper { padding-bottom: env(safe-area-inset-bottom); }
        }
