        :root {
            --ai-primary: #6366f1;
            --ai-primary-dark: #4f46e5;
            --ai-secondary: #10b981;
            --ai-accent: #8b5cf6;
            --ai-gray-50: #f9fafb;
            --ai-gray-100: #f3f4f6;
            --ai-gray-200: #e5e7eb;
            --ai-gray-300: #d1d5db;
            --ai-gray-400: #9ca3af;
            --ai-gray-500: #6b7280;
            --ai-gray-600: #4b5563;
            --ai-gray-700: #374151;
            --ai-gray-800: #1f2937;
            --ai-gray-900: #111827;
            --ai-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --ai-sidebar-width: 320px;
            --ai-radius: 12px;
            --ai-transition: all 0.3s ease;
            --ai-spacing-sm: 8px;
            --ai-spacing-md: 16px;
            --ai-spacing-lg: 24px;
        }

        /* Modern reset and base styles */
        .ai-store-reset {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        #ai-store-app {
            display: flex;
            min-height: 100vh;
            width: 100%;
            margin: 0;
            border-radius: 0;
            max-width: none;
            background: white;
            box-shadow: none;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
            position: relative;
        }

        /* Sidebar styles */
        .ai-store-sidebar {
            width: var(--ai-sidebar-width);
            background: linear-gradient(135deg, var(--ai-gray-900) 0%, var(--ai-gray-800) 100%);
            color: white;
            display: flex;
            flex-direction: column;
            border-right: 1px solid var(--ai-gray-700);
        }

        .ai-store-header {
            padding: var(--ai-spacing-lg);
            background: rgba(0, 0, 0, 0.2);
            border-bottom: 1px solid var(--ai-gray-700);
            position: relative;
        }

        .ai-store-header h2 {
            margin: 0 0 var(--ai-spacing-sm);
            font-size: 24px;
            font-weight: 700;
            background: linear-gradient(90deg, #fff 0%, var(--ai-primary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        #ai-store-balance {
            display: flex;
            align-items: center;
            gap: var(--ai-spacing-sm);
            font-size: 14px;
            color: var(--ai-gray-300);
            margin-bottom: var(--ai-spacing-md);
        }

        #ai-store-balance::before {
            content: "";
            width: 16px;
            height: 16px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2310b981"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14.5v-9l6 4.5-6 4.5z"/></svg>');
            background-size: contain;
        }

        .ai-refill-button {
            background: var(--ai-secondary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: var(--ai-spacing-sm) var(--ai-spacing-md);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--ai-transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .ai-refill-button:hover {
            background: #0d9669;
            transform: translateY(-1px);
        }

        .ai-refill-button svg {
            width: 16px;
            height: 16px;
        }

        #ai-store-tools-list {
            flex: 1;
            overflow-y: auto;
            padding: var(--ai-spacing-md) 0;
        }

        .ai-tool-item {
            display: flex;
            align-items: center;
            gap: var(--ai-spacing-md);
            padding: 14px var(--ai-spacing-lg);
            cursor: pointer;
            transition: var(--ai-transition);
            border-left: 3px solid transparent;
        }

        .ai-tool-item:hover {
            background: rgba(255, 255, 255, 0.05);
        }

        .ai-tool-item.active {
            background: rgba(99, 102, 241, 0.15);
            border-left-color: var(--ai-primary);
        }

        .ai-tool-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-accent) 100%);
            flex-shrink: 0;
        }

        .ai-tool-icon svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .ai-tool-info {
            flex: 1;
            min-width: 0;
        }

        .ai-tool-name {
            font-weight: 600;
            margin: 0 0 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ai-tool-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ai-tool-price {
            font-size: 12px;
            color: var(--ai-secondary);
            font-weight: 500;
        }

        .ai-tool-description {
            font-size: 12px;
            color: var(--ai-gray-400);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Main content area */
        .ai-store-main {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: var(--ai-gray-50);
            position: relative;
        }

        #ai-store-tool-container {
            flex: 1;
            padding: var(--ai-spacing-lg);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .ai-store-welcome {
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: var(--ai-gray-500);
        }

        .ai-store-welcome svg {
            width: 80px;
            height: 80px;
            margin-bottom: var(--ai-spacing-md);
            opacity: 0.7;
        }

        .ai-store-welcome h3 {
            font-size: 24px;
            font-weight: 600;
            margin: 0 0 var(--ai-spacing-sm);
            color: var(--ai-gray-700);
        }

        .ai-store-welcome p {
            font-size: 16px;
            margin: 0;
            max-width: 400px;
            line-height: 1.5;
        }

        /* Tool content styles */
        .ai-tool-content {
            animation: fadeIn 0.3s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

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

        .ai-tool-title {
            display: flex;
            align-items: center;
            gap: var(--ai-spacing-md);
            margin-bottom: var(--ai-spacing-lg);
        }

        .ai-tool-title h3 {
            font-size: 24px;
            font-weight: 700;
            margin: 0;
            color: var(--ai-gray-800);
        }

        .ai-content-card {
            background: white;
            border-radius: var(--ai-radius);
            padding: var(--ai-spacing-lg);
            box-shadow: var(--ai-card-shadow);
            margin-bottom: var(--ai-spacing-md);
        }

        .ai-tool-controls {
            display: flex;
            flex-direction: column;
            gap: var(--ai-spacing-md);
        }

        .ai-tool-controls textarea {
            width: 100%;
            min-height: 100px;
            max-height: 150px;
            padding: var(--ai-spacing-md);
            border: 1px solid var(--ai-gray-300);
            border-radius: 8px;
            font-family: inherit;
            resize: vertical;
            transition: var(--ai-transition);
            font-size: 15px;
            line-height: 1.5;
        }

        .ai-tool-controls textarea:focus {
            outline: none;
            border-color: var(--ai-primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        .ai-tool-actions {
            display: flex;
            gap: var(--ai-spacing-md);
        }

        .ai-tool-actions button {
            padding: var(--ai-spacing-md) 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--ai-transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--ai-spacing-sm);
        }

        .ai-tool-actions button svg {
            width: 16px;
            height: 16px;
        }

        button.ai-tool-run {
            background: var(--ai-primary);
            color: white;
            flex: 1;
        }

        button.ai-tool-run:hover {
            background: var(--ai-primary-dark);
            transform: translateY(-1px);
        }

        #ai-store-result {
            background: white;
            border-radius: var(--ai-radius);
            margin-top: 8px !important;
            animation: fadeIn 0.3s ease;
            flex-shrink: 0;
        }
        
        #ai-store-result h4 {
            margin: 0 0 var(--ai-spacing-md);
            font-size: 18px;
            font-weight: 600;
            color: var(--ai-gray-800);
            display: flex;
            align-items: center;
            gap: var(--ai-spacing-sm);
        }

        #ai-store-result pre {
            background: var(--ai-gray-100);
            padding: var(--ai-spacing-md);
            border-radius: 8px;
            overflow: auto;
            white-space: pre-wrap;
            font-size: 14px;
            line-height: 1.5;
            margin: 0;
            max-height: 300px;
        }

        /* Loading states */
        .ai-store-loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px;
            color: var(--ai-gray-500);
        }

        .ai-store-loading::after {
            content: "";
            width: 24px;
            height: 24px;
            border: 3px solid var(--ai-gray-200);
            border-top: 3px solid var(--ai-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .ai-store-error {
            background: #fef2f2;
            color: #dc2626;
            padding: var(--ai-spacing-md);
            border-radius: 8px;
            margin: var(--ai-spacing-md) 0;
            border-left: 4px solid #dc2626;
        }

        /* Credit Packages */
        .ai-store-package {
            background: white;
            border-radius: var(--ai-radius);
            padding: 20px;
            margin-bottom: var(--ai-spacing-md);
            box-shadow: var(--ai-card-shadow);
            transition: var(--ai-transition);
        }

        .ai-store-package:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .ai-store-package h4 {
            margin: 0 0 var(--ai-spacing-sm);
            font-size: 18px;
            color: var(--ai-gray-800);
        }

        .ai-store-package p {
            margin: 0 0 var(--ai-spacing-md);
            color: var(--ai-gray-600);
        }

        .ai-store-package .ai-package-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--ai-secondary);
            margin-bottom: var(--ai-spacing-md);
        }

        .ai-store-package .ai-purchase-button {
            background: var(--ai-primary);
            color: white;
            border: none;
            border-radius: 6px;
            padding: 10px 20px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--ai-transition);
            display: block;
            width: 100%;
            text-align: center;
        }

        .ai-store-package .ai-purchase-button:hover {
            background: var(--ai-primary-dark);
        }

        /* Modal styles */
        .ai-store-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            animation: fadeIn 0.3s ease;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .ai-store-modal-content {
            background-color: var(--ai-gray-50);
            margin: 5% auto;
            padding: var(--ai-spacing-lg);
            border-radius: var(--ai-radius);
            width: 90%;
            max-width: 500px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            position: relative;
            animation: slideIn 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

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

        .ai-store-close {
            color: var(--ai-gray-500);
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: var(--ai-transition);
        }

        .ai-store-close:hover {
            color: var(--ai-gray-700);
        }

        /* Exampazz-specific fixes */
        .exampazz-subject-selector-container {
            position: relative;
            width: 100%;
            margin-bottom: var(--ai-spacing-md);
            z-index: 10; /* Ensure proper stacking context */
        }

        .exampazz-subject-selector {
            width: 100%;
            padding: var(--ai-spacing-md);
            border: 1px solid var(--ai-gray-300);
            border-radius: 8px;
            font-size: 16px;
            background: white;
            appearance: none;
            -webkit-appearance: none;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 16px;
            position: relative;
            z-index: 5;
        }

        .exampazz-subject-selector:focus {
            outline: none;
            border-color: var(--ai-primary);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        /* Fix for dropdown positioning on desktop */
        @media (min-width: 769px) {
            .exampazz-subject-selector-container {
                position: relative;
            }
            
            .exampazz-subject-selector {
                position: relative;
            }
            
            /* Ensure the dropdown appears correctly */
            .ai-content-card {
                overflow: visible;
            }
            
            .ai-tool-controls {
                overflow: visible;
            }
        }

        /* FIXED MOBILE RESPONSIVE DESIGN */
        @media (max-width: 768px) {
            #ai-store-app {
                flex-direction: column;
                margin: 0;
                min-height: 100vh;
                width: 100vw;
                max-width: 100vw;
                border-radius: 0;
            }
            
            .ai-store-sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid var(--ai-gray-700);
            }
            
            .ai-store-header {
                padding: var(--ai-spacing-md);
            }
            
            #ai-store-tools-list {
                display: flex;
                overflow-x: auto;
                padding: var(--ai-spacing-md) 0;
            }
            
            .ai-tool-item {
                flex-direction: column;
                text-align: center;
                padding: var(--ai-spacing-md);
                min-width: 120px;
                border-left: none;
                border-bottom: 3px solid transparent;
            }
            
            .ai-tool-item.active {
                border-left-color: transparent;
                border-bottom-color: var(--ai-primary);
            }
            
            .ai-tool-info {
                text-align: center;
            }
            
            .ai-tool-meta {
                flex-direction: column;
                gap: 4px;
            }
            
            .ai-store-main {
                width: 100%;
                overflow-x: hidden;
            }
            
            #ai-store-tool-container {
                padding: var(--ai-spacing-sm);
                width: 100%;
                max-width: 100vw;
                box-sizing: border-box;
            }
            
            .ai-content-card {
                width: calc(100vw - 2 * var(--ai-spacing-sm));
                max-width: calc(100vw - 2 * var(--ai-spacing-sm));
                box-sizing: border-box;
                margin-left: 0;
                margin-right: 0;
                padding: var(--ai-spacing-md);
            }
            
            .ai-tool-controls {
                width: 100%;
                padding: 0;
                margin: 0;
            }
            
            .ai-tool-controls textarea {
                width: 100%;
                margin: 0;
                box-sizing: border-box;
            }
            
            .ai-tool-actions {
                flex-direction: column;
                width: 100%;
                margin: 0;
            }
            
            .ai-tool-actions button {
                width: 100%;
                margin: 0;
            }
            
            .ai-tool-actions {
                flex-direction: column;
            }
            
            .ai-store-modal-content {
                margin: 10% auto;
                width: 95%;
                padding: var(--ai-spacing-md);
            }
            
            /* Mobile-specific dropdown fixes */
            .exampazz-subject-selector {
                font-size: 16px; /* Prevent zoom on iOS */
            }
            
            .exampazz-subject-selector-container {
                position: static;
            }
        }

        /* Demo content styling */
        .demo-content {
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .demo-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .demo-header h1 {
            color: var(--ai-gray-800);
            margin-bottom: 10px;
        }
        
        .demo-header p {
            color: var(--ai-gray-600);
            font-size: 18px;
        }
        
        .instructions {
            background: var(--ai-gray-100);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }
        
        .instructions h3 {
            margin-top: 0;
            color: var(--ai-primary);
        }
        ul {
        list-style-position: inside; /* puts the bullet inside the content box */
        padding-inline-start: 0;
        }
.ai-newsdive-categories {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.ai-newsdive-categories h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #2c3e50;
}

.ai-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-category-btn {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.ai-category-btn:hover {
  background: #e9ecef;
  border-color: #007bff;
}

.ai-category-btn:active {
  background: #dee2e6;
}

/* Cheap2Find category buttons styling */
.ai-cheap2find-categories .ai-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ai-cheap2find-categories .ai-cheap2find-category-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #333;
}

.ai-cheap2find-categories .ai-cheap2find-category-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-cheap2find-categories .ai-cheap2find-category-btn:active {
    transform: translateY(0);
}

.ai-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.ai-news-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.ai-news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ai-news-source-badge {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ai-news-time {
    font-size: 12px;
    color: #666;
}

.ai-news-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.4;
}

.ai-news-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ai-news-title a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.ai-news-description {
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.ai-news-actions {
    display: flex;
    justify-content: flex-end;
}

.ai-news-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.ai-news-read-more:hover {
    text-decoration: underline;
}

.ai-summary-section {
    margin-bottom: 24px;
    border-radius: 8px;
}

.ai-summary-content {
    line-height: 1.6;
}

.ai-newsdive-meta {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 14px;
}
/* Legal Resource Buttons */
.ai-legal-resources {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3b5998;
}

.ai-resource-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ai-resource-btn {
    display: block;
    padding: 10px 15px;
    background: #fff;
    color: #3b5998;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-resource-btn:hover {
    background: #3b5998;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.exampazz-welcome {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.exampazz-features {
    margin-top: 15px;
}

.exampazz-feature {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 5px;
    font-size: 14px;
}

.exampazz-feature a {
    color: #2196F3;
    text-decoration: underline;
}

.exampazz-feature strong {
    color: #2c3e50;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--ai-spacing-md);
    color: var(--ai-gray-800);
    line-height: 1.2;
}
/* Enhanced Run Button Styles */

/* Base run button with improved styling */
button.ai-tool-run {
    background: linear-gradient(135deg, var(--ai-primary) 0%, var(--ai-primary-dark) 100%);
    color: white;
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    text-transform: none;
    letter-spacing: 0.5px;
    min-height: 52px;
}

/* Animated gradient overlay */
button.ai-tool-run::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button.ai-tool-run:hover::before {
    left: 100%;
}

button.ai-tool-run:hover {
    background: linear-gradient(135deg, var(--ai-primary-dark) 0%, #3730a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(99, 102, 241, 0.4);
}

button.ai-tool-run:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

/* Icon styling within button */
button.ai-tool-run svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

button.ai-tool-run:hover svg {
    transform: scale(1.1);
}

/* Tool-specific button variations */

/* NewsDive button */
.ai-newsdive-response button.ai-tool-run,
[data-tool-id="newsdive"] button.ai-tool-run {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

[data-tool-id="newsdive"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px 0 rgba(239, 68, 68, 0.4);
}

[data-tool-id="newsdive"] button.ai-tool-run::after {
    content: '📰';
    margin-left: 8px;
    font-size: 16px;
}

/* Cheap2Find button */
[data-tool-id="cheap2find"] button.ai-tool-run {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

[data-tool-id="cheap2find"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 8px 25px 0 rgba(16, 185, 129, 0.4);
}

[data-tool-id="cheap2find"] button.ai-tool-run::after {
    content: '💰';
    margin-left: 8px;
    font-size: 16px;
}

/* LankaLaw button */
[data-tool-id="lankalaw"] button.ai-tool-run {
    background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%);
    box-shadow: 0 4px 14px 0 rgba(59, 89, 152, 0.3);
}

[data-tool-id="lankalaw"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #2d4373 0%, #1e2a4a 100%);
    box-shadow: 0 8px 25px 0 rgba(59, 89, 152, 0.4);
}

[data-tool-id="lankalaw"] button.ai-tool-run::after {
    content: '⚖️';
    margin-left: 8px;
    font-size: 16px;
}

/* LankaBizz button */
[data-tool-id="lankabizz"] button.ai-tool-run {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

[data-tool-id="lankabizz"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px 0 rgba(245, 158, 11, 0.4);
}

[data-tool-id="lankabizz"] button.ai-tool-run::after {
    content: '📊';
    margin-left: 8px;
    font-size: 16px;
}

/* LankaTax button */
[data-tool-id="lankatax"] button.ai-tool-run {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.3);
}

[data-tool-id="lankatax"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 25px 0 rgba(139, 92, 246, 0.4);
}

[data-tool-id="lankatax"] button.ai-tool-run::after {
    content: '💼';
    margin-left: 8px;
    font-size: 16px;
}

/* Exampazz button */
[data-tool-id="exampazz"] button.ai-tool-run {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.3);
}

[data-tool-id="exampazz"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 8px 25px 0 rgba(6, 182, 212, 0.4);
}

[data-tool-id="exampazz"] button.ai-tool-run::after {
    content: '🎓';
    margin-left: 8px;
    font-size: 16px;
}

/* OpenAI/GPT button */
[data-tool-id*="openai"] button.ai-tool-run,
[data-tool-id*="gpt"] button.ai-tool-run {
    background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
}

[data-tool-id*="openai"] button.ai-tool-run:hover,
[data-tool-id*="gpt"] button.ai-tool-run:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.4);
}

[data-tool-id*="openai"] button.ai-tool-run::after,
[data-tool-id*="gpt"] button.ai-tool-run::after {
    content: '🤖';
    margin-left: 8px;
    font-size: 16px;
}

/* Loading state for run button */
button.ai-tool-run.loading {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

button.ai-tool-run.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

button.ai-tool-run.loading span {
    opacity: 0;
}

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

/* Pulse effect for emphasis */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
    }
}

/* Success state animation */
button.ai-tool-run.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: pulse 2s ease-in-out;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    button.ai-tool-run {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 10px;
    }
    
    button.ai-tool-run svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide emoji on mobile for cleaner look */
    button.ai-tool-run::after {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    button.ai-tool-run {
        border: 2px solid white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    button.ai-tool-run,
    button.ai-tool-run::before,
    button.ai-tool-run svg {
        transition: none;
        animation: none;
    }
    
    button.ai-tool-run:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
button.ai-tool-run:focus {
    outline: none;
    ring: 3px;
    ring-color: rgba(99, 102, 241, 0.5);
    ring-offset: 2px;
    ring-offset-color: white;
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    button.ai-tool-run {
        box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
    }
    
    button.ai-tool-run:focus {
        ring-offset-color: #1f2937;
    }
}


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

.exampazz-feature-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.exampazz-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.exampazz-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #06b6d4;
}

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

.exampazz-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.exampazz-feature-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.exampazz-feature-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.exampazz-feature-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.exampazz-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

.exampazz-feature-btn:hover {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
    transform: translateY(-1px);
    text-decoration: none;
}

.exampazz-feature-btn svg {
    width: 16px;
    height: 16px;
}

.exampazz-feature-btn.primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: #06b6d4;
}

.exampazz-feature-btn.primary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Specific styling for each feature type */
.exampazz-feature-card.syllabus {
    border-left: 4px solid #3b82f6;
}

.exampazz-feature-card.syllabus .exampazz-feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.exampazz-feature-card.papers {
    border-left: 4px solid #10b981;
}

.exampazz-feature-card.papers .exampazz-feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.exampazz-feature-card.download {
    border-left: 4px solid #f59e0b;
}

.exampazz-feature-card.download .exampazz-feature-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .exampazz-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .exampazz-feature-card {
        padding: 20px;
    }
    
    .exampazz-feature-actions {
        flex-direction: column;
    }
    
    .exampazz-feature-btn {
        justify-content: center;
    }
}

/* Animation for cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exampazz-feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.exampazz-feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.exampazz-feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.exampazz-feature-card:nth-child(3) {
    animation-delay: 0.3s;
}