    /* ========== CHAT WIDGET - UNIFIED DESIGN ========== */
    .chat-widget {
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 9999;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    
    .chat-trigger {
        position: relative;
        background: linear-gradient(135deg, #10B981, #06B6D4);
        color: white;
        border: none;
        border-radius: 50px;
        padding: 14px 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
        transition: all 0.3s ease;
        font-size: 15px;
        font-weight: 600;
    }
    
    .chat-trigger:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
    }
    
    .chat-trigger.hidden {
        display: none !important;
    }
    
    .chat-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #10B981;
        position: relative;
        flex-shrink: 0;
        overflow: hidden; /* ✅ НОВОЕ */
    }
    .chat-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .status-indicator {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 12px;
        height: 12px;
        background: #10B981;
        border: 3px solid white;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    
    .status-indicator.offline {
        background: #94A3B8;
    }
    
    .chat-window {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 380px;
        height: 550px;
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        display: none;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .chat-window.active {
        display: flex;
        animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
    
    .chat-header {
        background: linear-gradient(135deg, #10B981, #06B6D4);
        color: white;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
    }
    
    .chat-header-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .chat-header-avatar {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 18px;
        position: relative;
        flex-shrink: 0;
        overflow: hidden; /* ✅ НОВОЕ */
    }
    chat-header-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .chat-header-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .chat-header-text h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: -0.3px;
    }
    
    .chat-header-text p {
        margin: 0;
        font-size: 13px;
        opacity: 0.9;
        font-weight: 500;
    }
    
    .chat-close {
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .chat-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }
    
    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        background: #F9FAFB;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .chat-messages::-webkit-scrollbar {
        width: 6px;
    }
    
    .chat-messages::-webkit-scrollbar-thumb {
        background: #D1D5DB;
        border-radius: 10px;
    }
    
    .chat-message {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .message-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: linear-gradient(135deg, #10B981, #06B6D4);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 12px;
        font-weight: 700;
        flex-shrink: 0;
        overflow: hidden; /* ✅ НОВОЕ */
    }
    .message-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .message-avatar.user {
        background: linear-gradient(135deg, #6366F1, #8B5CF6);
    }
    
    .message-avatar.user {
        background: linear-gradient(135deg, #6366F1, #8B5CF6);
    }
    
    .message-name {
        font-size: 13px;
        font-weight: 700;
        color: #111827;
    }
    
    .message-time {
        font-size: 11px;
        color: #9CA3AF;
        margin-left: auto;
    }
    
    .message-content {
        background: white;
        padding: 12px 16px;
        border-radius: 12px;
        border: 1px solid #E5E7EB;
        font-size: 14px;
        line-height: 1.5;
        color: #374151;
        margin-left: 36px;
        word-wrap: break-word;
    }
    
    .message-content.user {
        background: linear-gradient(135deg, #10B981, #059669);
        color: white;
        border: none;
        margin-left: 0;
        margin-right: 36px;
    }
    
    .chat-input-container {
        padding: 16px 20px;
        border-top: 1px solid #E5E7EB;
        background: white;
        flex-shrink: 0;
    }
    
    .chat-input-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        background: #F9FAFB;
        border: 2px solid #E5E7EB;
        border-radius: 12px;
        padding: 8px 12px;
        transition: all 0.2s ease;
    }
    
    .chat-input-wrapper:focus-within {
        border-color: #10B981;
        background: white;
    }
    
    .chat-input {
        flex: 1;
        border: none;
        background: none;
        outline: none;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
        color: #111827;
        resize: none;
        min-height: 20px;
        max-height: 100px;
        line-height: 1.4;
    }
    
    .chat-input::placeholder {
        color: #10B981;  /* Мятный цвет */
        opacity: 0.4;
    }
    
    [data-theme="dark"] .chat-input::placeholder {
        color: #10B981;
        opacity: 0.3;
    }
    .chat-send {
        background: linear-gradient(135deg, #10B981, #059669);
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 700;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }
    
    .chat-send:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .chat-send:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .chat-powered {
        text-align: center;
        padding: 10px;
        font-size: 11px;
        color: #9CA3AF;
        background: #F9FAFB;
        border-top: 1px solid #E5E7EB;
        font-weight: 500;
    }
    
    .chat-powered strong {
        color: #10B981;
        font-weight: 700;
    }
    
    .typing-indicator {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        background: white;
        border-radius: 12px;
        width: fit-content;
        margin-left: 36px;
    }
    
    .typing-dot {
        width: 8px;
        height: 8px;
        background: #9CA3AF;
        border-radius: 50%;
        animation: typing 1.4s infinite;
    }
    
    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }
    
    @keyframes typing {
        0%, 60%, 100% {
            transform: translateY(0);
            opacity: 0.7;
        }
        30% {
            transform: translateY(-10px);
            opacity: 1;
        }
    }
    
    @media (max-width: 480px) {
        .chat-window {
            position: fixed;
            bottom: 0;
            right: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            border-radius: 0;
        }
        
        .chat-trigger {
            bottom: 16px;
            right: 16px;
        }
    }
    @media (max-width: 480px) {
        .chat-window {
            position: fixed;
            bottom: 0;
            right: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            border-radius: 0;
        }
        
        .chat-trigger {
            bottom: 10px;
            right: 10px;
        }
    }
    
    .demo-container.platform-mywork {
        max-width: 1600px;
    }
    
    .demo-container.platform-linkedin {
        max-width: 1400px;
    }
    
    .demo-container.platform-twitter,
    .demo-container.platform-instagram {
        max-width: 1200px;
    }
    
    /* Preview Panel Header */
    .preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding: 12px 16px;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
        border-radius: 12px;
        border: 1px solid rgba(16, 185, 129, 0.2);
    }
    
    .preview-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 16px;
        color: var(--text-primary);
    }
    
    .preview-title .icon {
        font-size: 20px;
    }
    
    .preview-actions {
        display: flex;
        gap: 8px;
    }
    
    .preview-btn {
        padding: 8px 16px;
        border-radius: 10px;
        border: none;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .copy-btn {
        background: rgba(107, 114, 128, 0.1);
        color: var(--text-secondary);
        border: 1px solid rgba(107, 114, 128, 0.2);
    }
    
    .copy-btn:hover {
        background: rgba(107, 114, 128, 0.2);
        transform: translateY(-1px);
    }
    
    .apply-btn {
        background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
        color: white;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    
    .apply-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    
    .close-split-btn {
        background: rgba(239, 68, 68, 0.1);
        color: #EF4444;
        border: 1px solid rgba(239, 68, 68, 0.2);
    }
    
    .close-split-btn:hover {
        background: rgba(239, 68, 68, 0.2);
    }
    
    /* Preview Content */
    .preview-content-wrapper {
        position: relative;
    }
    
    .preview-content {
        width: 100%;
        padding: 20px 20px 20px 70px;
        border: 2px solid rgba(16, 185, 129, 0.3);
        border-radius: 16px;
        font-size: 18px;
        min-height: 180px;  /* было 140px */
        font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
        line-height: 1.4;
        background: linear-gradient(135deg, rgba(240, 253, 244, 0.3), rgba(236, 254, 255, 0.3));
        color: var(--text-primary);
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-y: auto;
        max-height: 500px;  /* было 400px */
    }
    .preview-avatar {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-blue), var(--primary-mint));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 18px;
        z-index: 10;
    }
    
    .preview-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 140px;
        color: var(--text-secondary);
    }
    
    .preview-loading .spinner {
        width: 32px;
        height: 32px;
        border: 3px solid rgba(16, 185, 129, 0.2);
        border-top-color: var(--primary-mint);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin-bottom: 12px;
    }
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Update popup position when split mode active */
    .demo-container.split-mode ~ .ai-suggestion-overlay {
        right: calc(50% + 30px);
    }
    /* AI Suggestion Overlay - справа */
    .ai-suggestion-overlay {
        position: fixed;
        top: 100px;
        right: -400px;
        width: 380px;
        z-index: 10000;
        transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: none;
    }
    /* When split view is open, move popup higher to avoid overlap */
    body.split-view-active .ai-suggestion-overlay {
        top: 50px;
    }
    
    .ai-suggestion-overlay.active {
        right: 20px; /* Выезжает справа */
        pointer-events: auto; /* Включаем клики на popup */
    }
    .ai-suggestion-box {
        position: relative;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 28px;
        width: 100%;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    }
    
    .ai-suggestion-box::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        background: linear-gradient(135deg, #10B981, #06B6D4, #F59E0B, #10B981);
        background-size: 300% 300%;
        border-radius: 28px;
        z-index: -1;
        opacity: 0.9;
        animation: gradientShift 4s ease infinite;
    }
    
    @keyframes gradientShift {
        0%, 100% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
    }
    
    .ai-suggestion-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .ai-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .ai-suggestion-title {
        font-size: 22px;
        font-weight: 800;
        color: var(--text-primary);
        flex: 1;
    }
    
    .ai-suggestion-content {
        background: linear-gradient(135deg, rgba(240, 253, 244, 0.6), rgba(236, 254, 255, 0.6));
        border: 2px solid rgba(16, 185, 129, 0.2);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 24px;
        font-size: 16px;
        line-height: 1.7;
        color: var(--text-primary);
        position: relative;
        overflow: hidden;
    }
    
    .ai-suggestion-content::before {
        content: '"';
        position: absolute;
        top: -10px;
        left: 10px;
        font-size: 80px;
        color: rgba(16, 185, 129, 0.1);
        font-family: Georgia, serif;
    }
    
    .ai-suggestion-actions {
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }
    
    .ai-btn {
        padding: 14px 28px;
        border-radius: 14px;
        border: none;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
        overflow: hidden;
    }
    
    .ai-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }
    
    .ai-btn:hover::before {
        width: 300px;
        height: 300px;
    }
    
    .ai-btn-apply {
        background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
        color: white;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }
    
    .ai-btn-apply:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    }
    
    .ai-btn-dismiss {
        background: rgba(107, 114, 128, 0.1);
        color: var(--text-secondary);
        border: 2px solid rgba(107, 114, 128, 0.2);
    }
    
    .ai-btn-dismiss:hover {
        background: rgba(107, 114, 128, 0.2);
        transform: translateY(-2px);
    }
    /* ========== REDESIGNED AI PANEL ========== */
    .ai-panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 2px solid rgba(16, 185, 129, 0.1);
    }
    
    .panel-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
    }
    
    .ai-sparkle {
        font-size: 24px;
        animation: sparkle 2s infinite;
    }
    
    @keyframes sparkle {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.2); }
    }
    
    .close-panel-btn {
        background: rgba(239, 68, 68, 0.1);
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        color: #EF4444;
        transition: all 0.3s ease;
    }
    
    .close-panel-btn:hover {
        background: rgba(239, 68, 68, 0.2);
        transform: rotate(90deg);
    }
    
    /* Style Reference Upload */
    .style-reference-section {
        padding: 20px;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
        border-radius: 12px;
        margin: 20px;
    }
    
    .style-ref-label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .info-tooltip {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--primary-mint);
        color: white;
        border: none;
        font-size: 12px;
        cursor: help;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .style-upload-area {
        border: 2px dashed var(--border-color);
        border-radius: 12px;
        padding: 30px 20px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .style-upload-area:hover {
        border-color: var(--primary-mint);
        background: rgba(16, 185, 129, 0.05);
    }
    
    .upload-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }
    
    .upload-text {
        font-size: 14px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 4px;
    }
    
    .upload-hint {
        font-size: 12px;
        color: var(--text-light);
    }
    
    .uploaded-style-preview {
        position: relative;
        margin-top: 12px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .uploaded-style-preview img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .remove-style-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.7);
        border: none;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .remove-style-btn:hover {
        background: #EF4444;
        transform: scale(1.1);
    }
    
    .style-status {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(16, 185, 129, 0.9);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
    }
    
    /* Simplified Stats */
    .analysis-stats {
        display: flex;
        gap: 12px;
        padding: 0 20px 20px;
    }
    
    .stat-chip {
        flex: 1;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 10px;
        text-align: center;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .stat-icon {
        font-size: 18px;
    }
    
    /* Enhanced Text */
    .enhanced-text-container {
        padding: 0 20px 20px;
    }
    
    .section-label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .enhanced-text-content {
        background: linear-gradient(135deg, rgba(240, 253, 244, 0.5), rgba(236, 254, 255, 0.5));
        border: 2px solid rgba(16, 185, 129, 0.2);
        border-radius: 12px;
        padding: 20px;
        min-height: 150px;
        font-size: 16px;
        line-height: 1.6;
        color: var(--text-primary);
    }
    
    /* Action Buttons */
    .panel-actions {
        display: flex;
        gap: 12px;
        padding: 0 20px 20px;
    }
    
    .action-btn {
        flex: 1;
        padding: 14px 20px;
        border-radius: 12px;
        border: none;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .primary-btn {
        background: linear-gradient(135deg, var(--primary-mint), var(--primary-blue));
        color: white;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .primary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    }
    
    .secondary-btn {
        background: white;
        color: var(--text-primary);
        border: 2px solid var(--border-color);
    }
    
    .secondary-btn:hover {
        border-color: var(--primary-mint);
        background: rgba(16, 185, 129, 0.05);
    }
    
    /* Keywords Compact */
    .keywords-compact {
        padding: 0 20px 20px;
    }
    
    .keywords-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }
    
    .keyword-tag {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-primary);
        border: 1px solid rgba(16, 185, 129, 0.3);
    }
    
    @media (max-width: 768px) {
        .ai-suggestion-overlay {
            top: auto;
            bottom: 0;
            right: 0;
            left: 0;
            width: 100%;
            transform: translateY(100%);
        }
        
        .ai-suggestion-overlay.active {
            transform: translateY(0);
            right: 0;
        }
        
        .ai-suggestion-box {
            padding: 24px;
            border-radius: 20px 20px 0 0;
        }
        
        .ai-suggestion-actions {
            flex-direction: column;
        }
        
        .ai-btn {
            width: 100%;
        }
    }
        /* ========== ENHANCED FAQ STYLES ========== */
    .faq-item {
        background: white;
        border-radius: 16px;
        margin-bottom: 16px;
        box-shadow: var(--shadow-sm);
        border: 2px solid transparent;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .faq-item:hover {
        border-color: var(--primary-mint);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    
    .faq-question {
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        padding: 24px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-primary);
        transition: all 0.3s ease;
    }
    
    .faq-question:hover {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    }
    
    .faq-icon {
        font-size: 14px;
        transition: transform 0.3s ease;
        color: var(--primary-mint);
    }
    
    .faq-item.active .faq-icon {
        transform: rotate(180deg);
    }
    
    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        color: var(--text-secondary);
        line-height: 1.7;
    }
    
    .faq-item.active .faq-answer {
        max-height: 300px;
        padding: 0 24px 24px;
    }
    
    .faq-answer p {
        margin: 0;
    }
    /* Profile Photo Hover Effect */
    [onclick*="photoUpload"]:hover .upload-overlay {
        opacity: 1 !important;
    }
    
    [onclick*="photoUpload"]:hover {
        transform: scale(1.05);
    }
    /* Social Connection Icons */
    .social-icon-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid var(--border-color);
        background: var(--bg-secondary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: #94A3B8;
    }
    
    .social-icon-btn:hover {
        border-color: var(--primary-mint);
        background: rgba(16, 185, 129, 0.05);
        transform: translateY(-2px) scale(1.05);
        color: var(--primary-mint);
    }
    
    .social-icon-btn.connected {
        border-color: var(--primary-mint);
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
        color: var(--primary-mint);
    }
    
    .social-icon-btn svg {
        fill: currentColor;
    }
   /* ========== DARK MODE - CHAT (FIXED) ========== */

[data-theme="dark"] .chat-window {
    background: #1E293B;
    border-color: #334155;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .chat-header {
    background: linear-gradient(135deg, #10B981, #06B6D4);
}

[data-theme="dark"] .chat-header-text h3 {
    color: white;
}

[data-theme="dark"] .chat-header-text p {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .chat-messages {
    background: #0F172A;
}

[data-theme="dark"] .message-content {
    background: #334155;
    color: #F1F5F9;
    border-color: #475569;
}

[data-theme="dark"] .message-content.user {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

[data-theme="dark"] .message-name {
    color: #F1F5F9;
}

[data-theme="dark"] .message-time {
    color: #94A3B8;
}

[data-theme="dark"] .chat-input-wrapper {
    background: #0F172A;
    border-color: #334155;
}

[data-theme="dark"] .chat-input-wrapper:focus-within {
    border-color: #10B981;
    background: #1E293B;
}

[data-theme="dark"] .chat-input {
    color: #F1F5F9;
}

[data-theme="dark"] .chat-input::placeholder {
    color: #64748B;
}

[data-theme="dark"] .chat-input-container {
    background: #1E293B;
    border-top-color: #334155;
}

[data-theme="dark"] .chat-powered {
    background: #0F172A;
    border-top-color: #334155;
    color: #64748B;
}

[data-theme="dark"] .chat-powered strong {
    color: #10B981;
}

[data-theme="dark"] .typing-indicator {
    background: #334155;
}

[data-theme="dark"] .typing-dot {
    background: #64748B;
}