/* AI Features Styling */

.ai-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.ai-result h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.ai-result pre {
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    padding: 20px;
    border-radius: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ai-result pre::-webkit-scrollbar {
    width: 8px;
}

.ai-result pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ai-result pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.ai-result pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ai-loading {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.ai-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
}

.ai-error h3 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-timestamp {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
}

.ai-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-actions button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.ai-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ai-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-status.ready {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.ai-status.not_configured {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.ai-status.error {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    color: #333;
}

/* AI Form Styling - Enhanced with Better Contrast */
.ai-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 28px;
    border-radius: 16px;
    margin: 24px 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.ai-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-form h3 {
    color: #1a202c;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-form h4 {
    color: #2d3748;
    margin: 24px 0 16px 0;
    font-size: 1.1em;
    font-weight: 600;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ai-form-group {
    margin-bottom: 20px;
}

.ai-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.ai-form-group input,
.ai-form-group textarea,
.ai-form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95em;
    box-sizing: border-box;
    background: white;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.ai-form-group input:focus,
.ai-form-group textarea:focus,
.ai-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.ai-form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.ai-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.ai-submit-btn::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;
}

.ai-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.ai-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.ai-submit-btn:active {
    transform: translateY(-1px);
}

.ai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* AI Feature Cards - Enhanced with Better Layout */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 20px 0;
    padding: 0 10px;
}

.ai-feature-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f3f4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.ai-feature-card:hover::before {
    opacity: 1;
}

.ai-feature-card h4 {
    color: #1a202c;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-feature-card p {
    color: #4a5568;
    margin: 0 0 20px 0;
    line-height: 1.6;
    font-size: 0.95em;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ai-feature-card button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ai-feature-card button::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;
}

.ai-feature-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ai-feature-card button:hover::before {
    left: 100%;
}

.ai-feature-card button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .ai-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 10px 0;
        display: inline-block;
    }

    .ai-actions {
        flex-direction: column;
    }

    .ai-actions button {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* 
Integrated AI Features Styling */

.ai-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.9em !important;
    transition: all 0.3s ease !important;
}

.ai-action:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.ai-enhancement-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
}

.ai-analysis-section,
.ai-outreach-section {
    margin: 15px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.ai-analysis-result,
.ai-outreach-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
}

.ai-analysis-result h6,
.ai-outreach-result h6 {
    margin: 0 0 10px 0;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-text,
.outreach-messages {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.analysis-text pre,
.outreach-messages pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    line-height: 1.4;
}

.analysis-actions,
.outreach-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.analysis-actions button,
.outreach-actions button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.analysis-actions button:hover,
.outreach-actions button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.analysis-actions button.primary,
.outreach-actions button.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: bold;
}

.ai-insights {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
}

.ai-insights h6 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-insight-content {
    font-size: 0.85em;
    line-height: 1.4;
}

.ai-recommendation {
    margin: 0 0 8px 0;
    font-style: italic;
}

.ai-score-boost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8em;
}

.score-change {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
    color: #90EE90;
}

.influencer-card {
    transition: all 0.3s ease;
}

.influencer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.influencer-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.influencer-actions button {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.influencer-actions button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.influencer-actions button.primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: transparent;
}

.influencer-actions button.primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
}

.influencer-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
    margin: 20px 0;
}

.error-state button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .influencer-actions {
        flex-direction: column;
    }

    .influencer-actions button {
        min-width: auto;
        width: 100%;
    }

    .analysis-actions,
    .outreach-actions {
        flex-direction: column;
    }

    .analysis-actions button,
    .outreach-actions button {
        width: 100%;
    }

    .ai-score-boost {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

/* Un
ified Dashboard Styles */

.unified-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.dashboard-header p {
    color: #666;
    margin: 0;
    font-size: 1.1em;
}

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

.profile-status {
    margin-bottom: 15px;
}

.status-ready {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-missing {
    background: rgba(255, 107, 107, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.brand-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-info strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.brand-details {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.9;
}

.discovery-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.discovery-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
}

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

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.search-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.advanced-btn,
.ai-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ai-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border-color: transparent;
}

.advanced-btn:hover,
.ai-btn:hover {
    transform: translateY(-2px);
}

.advanced-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

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

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9em;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.apply-btn,
.clear-btn {
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-btn {
    background: #28a745;
    color: white;
    border: none;
}

.clear-btn {
    background: #6c757d;
    color: white;
    border: none;
}

.results-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.results-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 0.9em;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.bulk-btn {
    padding: 8px 16px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

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

.bulk-btn:not(:disabled):hover {
    background: #138496;
    transform: translateY(-1px);
}

.influencer-results {
    padding: 20px;
}

.influencer-results.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.influencer-results.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.results-header-text {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    grid-column: 1 / -1;
}

.unified-influencer-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.unified-influencer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.unified-influencer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.unified-influencer-card:hover::before {
    transform: scaleX(1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.selection-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.selection-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
    border-radius: 4px;
}

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

.influencer-info h5 {
    margin: 0 0 6px 0;
    color: #1a202c;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.influencer-info p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95em;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;
}

.alignment-badge {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    flex-shrink: 0;
}

.ai-recommended-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat .value {
    display: block;
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat .label {
    display: block;
    color: #4a5568;
    font-size: 0.75em;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-stat .value {
    font-size: 1.4em;
}

.card-bio {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.card-bio p {
    color: #2d3748;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ai-insight {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(78, 205, 196, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: 2px;
}

.insight-text {
    flex: 1;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    word-wrap: break-word;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn.analysis {
    border-color: #3182ce;
    color: #3182ce;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

.action-btn.analysis:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.action-btn.outreach {
    border-color: #38a169;
    color: #38a169;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.action-btn.outreach:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

.action-btn.details {
    border-color: #718096;
    color: #718096;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.action-btn.details:hover {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(113, 128, 150, 0.4);
}

.card-results {
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.analysis-result,
.outreach-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.analysis-result h6,
.outreach-result h6 {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.analysis-content,
.outreach-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.analysis-content pre,
.outreach-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9em;
    line-height: 1.4;
}

.outreach-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.outreach-actions button,
.hide-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.outreach-actions button:hover,
.hide-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.error-result {
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.error-result button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h4 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .unified-dashboard {
        padding: 12px;
    }

    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 5px;
    }

    .ai-feature-card {
        padding: 20px;
        min-height: auto;
    }

    .ai-feature-card h4 {
        font-size: 1.1em;
    }

    .ai-feature-card p {
        font-size: 0.9em;
        padding: 10px;
    }

    .ai-feature-card button {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .search-options {
        justify-content: center;
        gap: 8px;
    }

    .advanced-btn,
    .ai-btn {
        padding: 10px 16px;
        font-size: 0.9em;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }

    .results-info {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .bulk-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .bulk-btn {
        flex: 1;
        min-width: 120px;
    }

    .influencer-results.grid-view {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .unified-influencer-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .selection-checkbox {
        align-self: flex-start;
    }

    .influencer-info h5 {
        font-size: 1.1em;
    }

    .influencer-info p {
        font-size: 0.9em;
        padding: 8px 10px;
    }

    .alignment-badge {
        align-self: flex-start;
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .stat {
        padding: 6px;
    }

    .stat .value {
        font-size: 1em;
    }

    .stat .label {
        font-size: 0.7em;
    }

    .card-bio {
        padding: 12px;
        margin-bottom: 16px;
    }

    .card-bio p {
        padding: 10px;
        font-size: 0.85em;
    }

    .ai-insight {
        padding: 12px;
        margin-bottom: 16px;
        font-size: 0.85em;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .insight-text {
        padding: 6px 10px;
    }

    .card-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .action-btn {
        padding: 12px 16px;
        font-size: 0.9em;
    }

    .outreach-actions {
        flex-direction: column;
        gap: 8px;
    }

    .outreach-actions button {
        width: 100%;
        padding: 10px 16px;
    }

    .brand-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .brand-details {
        flex-direction: column;
        gap: 6px;
    }

    .ai-form {
        padding: 20px;
        margin: 16px 0;
    }

    .ai-form h3 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .ai-form h4 {
        font-size: 1em;
        margin: 20px 0 12px 0;
        padding: 10px 12px;
    }

    .ai-form-group {
        margin-bottom: 16px;
    }

    .ai-form-group label {
        font-size: 0.9em;
        padding: 3px 6px;
    }

    .ai-form-group input,
    .ai-form-group textarea,
    .ai-form-group select {
        padding: 12px 14px;
        font-size: 0.9em;
    }

    .ai-submit-btn {
        padding: 14px 24px;
        font-size: 1em;
    }

    .ai-result {
        padding: 20px;
        margin: 16px 0;
    }

    .ai-result h3 {
        font-size: 1.2em;
        margin-bottom: 16px;
    }

    .ai-result pre {
        padding: 16px;
        font-size: 0.9em;
        max-height: 300px;
    }

    .ai-actions {
        flex-direction: column;
        gap: 8px;
        margin: 12px 0;
    }

    .ai-actions button {
        width: 100%;
        padding: 10px 16px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .unified-dashboard {
        padding: 8px;
    }

    .ai-feature-card {
        padding: 16px;
    }

    .ai-feature-card h4 {
        font-size: 1em;
    }

    .ai-feature-card p {
        font-size: 0.85em;
        padding: 8px;
    }

    .unified-influencer-card {
        padding: 16px;
    }

    .card-header {
        padding: 10px;
    }

    .card-stats {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .ai-form {
        padding: 16px;
    }

    .ai-result {
        padding: 16px;
    }
}

/* Featured AI Feature Card - Enhanced */
.ai-feature-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-feature-card.featured::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.ai-feature-card.featured h4 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: none;
    -webkit-text-fill-color: white;
}

.ai-feature-card.featured p {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.featured-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #667eea !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    text-shadow: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.featured-btn:hover {
    background: white !important;
    color: #5a67d8 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced Text Contrast Utilities */
.text-contrast-high {
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-contrast-medium {
    background: rgba(255, 255, 255, 0.8);
    color: #2d3748;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.text-contrast-light {
    background: rgba(255, 255, 255, 0.6);
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 3px;
}

/* Improved Readability for Dark Backgrounds */
.dark-bg-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.dark-bg-text-strong {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* Better Button Contrast */
.btn-contrast-high {
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-contrast-high:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {

    .ai-feature-card,
    .unified-influencer-card,
    .ai-form,
    .ai-result {
        border-width: 3px;
        border-color: #000;
    }

    .ai-feature-card h4,
    .unified-influencer-card h5,
    .ai-form h3,
    .ai-result h3 {
        font-weight: 800;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .action-btn,
    .ai-submit-btn,
    .featured-btn {
        border-width: 3px;
        font-weight: 800;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ai-feature-card,
    .unified-influencer-card,
    .action-btn,
    .ai-submit-btn,
    .featured-btn {
        transition: none;
        transform: none;
    }

    .ai-feature-card:hover,
    .unified-influencer-card:hover,
    .action-btn:hover,
    .ai-submit-btn:hover,
    .featured-btn:hover {
        transform: none;
    }

    .ai-feature-card button::before,
    .action-btn::before,
    .ai-submit-btn::before {
        display: none;
    }
}