        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); color: #f1f5f9; min-height: 100vh; overflow-x: hidden; }
        
        /* Animated Background */
        .bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
        .bg-animation::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.08) 0%, transparent 50%), radial-gradient(circle at 70% 70%, rgba(255, 107, 157, 0.08) 0%, transparent 50%); animation: bgPulse 20s ease-in-out infinite; }
        @keyframes bgPulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(5deg); } }
        
        /* Tab Navigation */
        .tab-nav { position: fixed; top: 0; left: 0; right: 0; display: flex; background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 100; }
        .tab-btn { flex: 1; padding: 16px; background: none; border: none; color: #666; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s; position: relative; }
        .tab-btn:hover { color: #aaa; }
        .tab-btn.active { color: #22c55e; }
        .tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px; background: #22c55e; }
        .tab-btn .badge { position: absolute; top: 8px; right: 20%; background: #ef4444; color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; }
        
        /* Tab Content */
        .tab-content { display: none; padding-top: 60px; min-height: 100vh; position: relative; z-index: 1; }
        .tab-content.active { display: flex; flex-direction: column; align-items: center; }
        
        /* Call Tab - Enhanced */
        .call-container { display: flex; flex-direction: column; align-items: center; padding: 20px; width: 100%; max-width: 400px; }
        
        .avatar-ring { width: 180px; height: 180px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 30px 0; position: relative; border: 4px solid rgba(255,255,255,0.1); transition: all 0.3s; }
        .avatar-ring::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid transparent; border-top-color: #4ade80; border-right-color: #4ade80; animation: spin 8s linear infinite; opacity: 0; transition: opacity 0.3s; }
        .avatar-ring.active { border-color: #4ade80; box-shadow: 0 0 60px rgba(74,222,128,0.4); }
        .avatar-ring.active::before { opacity: 1; }
        .avatar-ring.waiting { border-color: #ff6b9d; box-shadow: 0 0 40px rgba(255,107,157,0.3); animation: pulseRing 2s infinite; }
        .avatar-ring.muted { border-color: #666; opacity: 0.5; }
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes pulseRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
        
        .avatar-img { width: 165px; height: 165px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(0,0,0,0.5); }
        
        .status-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; transition: color 0.3s; }
        .status-text.active { color: #4ade80; }
        .status-text.waiting { color: #ff6b9d; }
        .status-text.muted { color: #f59e0b; }
        
        .hint-text { font-size: 13px; color: #666; margin-bottom: 20px; }
        
        .timer-display { font-family: 'SF Mono', monospace; font-size: 14px; color: #888; background: rgba(255,255,255,0.05); padding: 6px 16px; border-radius: 20px; margin-bottom: 25px; min-width: 80px; text-align: center; }
        
        .call-controls { display: flex; gap: 20px; margin-bottom: 30px; }
        .control-btn { width: 60px; height: 60px; border-radius: 50%; border: none; font-size: 24px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; }
        .control-btn:hover { transform: scale(1.1); background: rgba(255,255,255,0.15); }
        .control-btn.call { background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 4px 20px rgba(74,222,128,0.3); }
        .control-btn.call.active { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 4px 20px rgba(239,68,68,0.3); }
        .control-btn.muted { background: #ef4444; }
        .control-btn.dnd.active { background: #f59e0b; }
        
        .voice-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; background: rgba(255,255,255,0.05); padding: 10px 20px; border-radius: 25px; }
        .voice-selector label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; }
        .voice-selector select { background: transparent; border: none; color: #fff; font-size: 14px; cursor: pointer; outline: none; }
        .voice-selector select option { background: #1a1a2e; }
        
        .transcript-box { width: 100%; max-height: 120px; overflow-y: auto; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 15px; margin-bottom: 20px; }
        .transcript-line { font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
        .transcript-line.user { color: #ff6b9d; }
        .transcript-line.assistant { color: #4ade80; }
        .transcript-line .name { font-weight: 600; margin-right: 6px; }
        
        /* Health Tab - NEW */
        .health-container { width: 100%; max-width: 98vw; padding: 20px; }
        
        .health-header { text-align: center; margin-bottom: 30px; }
        .health-header h1 { font-size: 28px; font-weight: 700; background: linear-gradient(90deg, #4ade80, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
        .health-header p { color: #666; font-size: 14px; }
        
        .health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; margin-bottom: 30px; }
        
        .health-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; transition: all 0.3s; }
        .health-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(74,222,128,0.2); transform: translateY(-2px); }
        .health-card.critical { border-left: 3px solid #ef4444; }
        .health-card.warning { border-left: 3px solid #f59e0b; }
        .health-card.good { border-left: 3px solid #4ade80; }
        
        .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
        .card-title { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
        .card-icon { font-size: 18px; }
        .card-value { font-size: 24px; font-weight: 700; }
        .card-value.positive { color: #4ade80; }
        .card-value.negative { color: #ef4444; }
        .card-value.neutral { color: #f59e0b; }
        
        .card-subtitle { font-size: 12px; color: #666; margin-top: 5px; }
        
        .progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 10px; overflow: hidden; }
        .progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
        .progress-fill.green { background: linear-gradient(90deg, #4ade80, #22c55e); }
        .progress-fill.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .progress-fill.red { background: linear-gradient(90deg, #ef4444, #f87171); }
        
        /* Cost Section */
        .cost-section { background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(34,197,94,0.05)); border: 1px solid rgba(74,222,128,0.2); border-radius: 16px; padding: 25px; margin-bottom: 20px; }
        .cost-section h2 { font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .cost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
        .cost-item { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; }
        .cost-label { font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 5px; }
        .cost-amount { font-size: 20px; font-weight: 700; }
        .cost-amount.primary { color: #4ade80; }
        
        /* Activity Timeline */
        .timeline { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .timeline h3 { font-size: 14px; margin-bottom: 15px; color: #888; }
        .timeline-item { display: flex; align-items: flex-start; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .timeline-item:last-child { border-bottom: none; }
        .timeline-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
        .timeline-dot.green { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
        .timeline-dot.yellow { background: #f59e0b; }
        .timeline-dot.red { background: #ef4444; }
        .timeline-content { flex: 1; }
        .timeline-time { font-size: 11px; color: #666; }
        .timeline-text { font-size: 13px; margin-top: 2px; }
        
        /* Settings */
        .settings { position: fixed; top: 70px; right: 15px; z-index: 90; }
        .settings-btn { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 18px; cursor: pointer; transition: all 0.3s; }
        .settings-btn:hover { background: rgba(255,255,255,0.2); transform: rotate(30deg); }
        
        .error-msg { color: #f87171; font-size: 12px; text-align: center; margin-top: 10px; }
        
        /* Sound Init Overlay */
        .sound-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(10px); }
        .sound-overlay.hidden { display: none; }
        .sound-btn { padding: 20px 40px; font-size: 16px; background: linear-gradient(135deg, #4ade80, #22c55e); border: none; border-radius: 12px; color: #000; font-weight: 600; cursor: pointer; transition: all 0.3s; box-shadow: 0 10px 40px rgba(74,222,128,0.3); }
        .sound-btn:hover { transform: scale(1.05); box-shadow: 0 15px 50px rgba(74,222,128,0.4); }
        
        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
        
        /* Dashboard Styles */
        .dashboard-container { width: 100%; max-width: 98vw; padding: 20px 32px; margin: 0 auto; }
        
        .dashboard-header { text-align: center; margin-bottom: 48px; padding: 32px; background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05)); border-radius: 20px; border: 1px solid rgba(34,197,94,0.2); }
        .dashboard-header h1 { font-size: 32px; font-weight: 700; background: linear-gradient(90deg, #22c55e, #22c55e); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
        .dashboard-header p { color: #666; font-size: 14px; margin-bottom: 20px; }
        
        .header-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
        .header-stat { text-align: center; background: rgba(255,255,255,0.03); border-radius: 16px; padding: 24px 32px; min-width: 140px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.3s; }
        .header-stat:hover { background: rgba(255,255,255,0.05); transform: translateY(-2px); }
        .header-stat .stat-num { display: block; font-size: 36px; font-weight: 700; color: #22c55e; margin-bottom: 4px; }
        .header-stat .stat-label { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
        .header-stat .stat-trend { display: block; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 20px; background: rgba(34,197,94,0.15); color: #22c55e; }
        .header-stat .stat-trend.down { background: rgba(239,68,68,0.15); color: #ef4444; }
        .header-stat .stat-trend.neutral { background: rgba(245,158,11,0.15); color: #f59e0b; }
        
        /* Dash Navigation */
        .dash-nav { display: flex; gap: 8px; margin-bottom: 32px; overflow-x: auto; padding-bottom: 8px; }
        .dash-btn { padding: 12px 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #64748b; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
        .dash-btn:hover { background: rgba(255,255,255,0.1); color: #94a3b8; }
        .dash-btn.active { background: #22c55e; color: #000; border-color: #22c55e; }
        
        .dash-content { display: none; }
        .dash-content.active { display: block; }
        
        /* Campaign Cards - Compact 3-Column Grid */
        .campaigns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
        @media (max-width: 1100px) { .campaigns-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 700px) { .campaigns-grid { grid-template-columns: 1fr; } }
        
        /* Mobile Responsive Campaign Cards */
        @media (max-width: 600px) {
            .campaigns-grid { 
                display: flex; 
                flex-direction: column; 
                gap: 12px; 
            }
            .campaign-card { 
                width: 100%; 
                min-height: 180px;
                padding: 20px;
            }
            .campaign-card .campaign-stats { 
                grid-template-columns: repeat(2, 1fr); 
                gap: 12px;
            }
            .campaign-card .c-stat {
                min-height: 44px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            .campaign-card .c-stat .c-num { font-size: 18px; }
            .campaign-card .c-stat .c-label { font-size: 10px; }
            .campaign-card .campaign-header h3 { font-size: 14px; }
            .campaign-card .campaign-status { 
                min-height: 24px;
                display: inline-flex;
                align-items: center;
                padding: 4px 12px;
            }
            .campaign-card .prog-bar { height: 8px; }
            .campaign-card .prog-text { font-size: 11px; margin-top: 8px; }
        }
        
        .campaign-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; transition: all 0.3s; }
        .campaign-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(34,197,94,0.2); transform: translateY(-2px); }
        .campaign-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .campaign-header h3 { font-size: 13px; font-weight: 600; }
        .campaign-status { font-size: 9px; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; }
        .campaign-status.active { background: rgba(34,197,94,0.2); color: #22c55e; }
        .campaign-status.paused { background: rgba(239,68,68,0.2); color: #ef4444; }
        
        .campaign-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
        .c-stat { text-align: center; padding: 10px 4px; background: rgba(0,0,0,0.2); border-radius: 8px; }
        .c-stat .c-num { display: block; font-size: 15px; font-weight: 700; color: #f1f5f9; }
        .c-stat .c-label { font-size: 9px; color: #64748b; text-transform: uppercase; }
        
        .campaign-progress { margin-top: 10px; }
        .prog-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
        .prog-fill { height: 100%; background: #22c55e; border-radius: 3px; transition: width 0.5s ease; }
        .prog-fill.gems { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
        .prog-fill.angel { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .prog-text { font-size: 10px; color: #64748b; margin-top: 6px; display: block; }
        
        /* Activity Section with Chart.js */
        .activity-section { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
        .activity-section h3 { font-size: 14px; color: #94a3b8; margin-bottom: 16px; }
        .activity-chart-wrapper { position: relative; height: 200px; width: 100%; }
        
        /* Sources Panel with Pie Chart */
        .sources-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; align-items: center; }
        .sources-panel h3 { font-size: 14px; color: #94a3b8; margin-bottom: 16px; text-align: center; }
        .pie-chart-container { position: relative; height: 160px; width: 160px; }
        .pie-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
        .pie-legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; }
        .pie-legend-dot { width: 10px; height: 10px; border-radius: 2px; }
        
        .senders-section { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 24px; margin-bottom: 32px; }
        .senders-section h3 { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }
        .activity-chart { position: relative; height: 200px; padding: 16px 0; }
        .activity-chart svg { width: 100%; height: 100%; }
        .activity-line { fill: none; stroke: #22c55e; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
        .activity-area { fill: rgba(34, 197, 94, 0.15); }
        .activity-point { fill: #22c55e; stroke: #0f172a; stroke-width: 2; }
        .activity-grid line { stroke: rgba(255,255,255,0.05); stroke-width: 1; }
        .activity-label { font-size: 10px; fill: #64748b; text-anchor: middle; }
        .activity-value { font-size: 11px; fill: #22c55e; font-weight: 600; text-anchor: middle; }
        
        .senders-list { display: flex; flex-wrap: wrap; gap: 10px; }
        .sender-tag { display: flex; align-items: center; gap: 8px; background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.2); padding: 8px 16px; border-radius: 20px; font-size: 13px; }
        .sender-tag .sender-count { background: #4ade80; color: #000; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
        
        /* Filters */
        .filters-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
        .filter-group { flex: 1; min-width: 150px; }
        .filter-group input, .filter-group select { width: 100%; padding: 12px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 13px; }
        .filter-group input::placeholder { color: #666; }
        .filter-group select option { background: #1a1a2e; }
        .filter-btn { padding: 12px 20px; background: linear-gradient(135deg, #4ade80, #22c55e); border: none; border-radius: 10px; color: #000; font-weight: 600; cursor: pointer; transition: all 0.3s; }
        .filter-btn:hover { transform: scale(1.05); }
        
        /* Date Range Filter - Dashboard Header */
        .date-range-filter { 
            display: flex; 
            align-items: center; 
            justify-content: center;
            gap: 10px; 
            margin-top: 16px;
            flex-wrap: wrap;
        }
        .date-range-filter label { 
            font-size: 13px; 
            color: #888; 
        }
        .date-range-filter select { 
            padding: 10px 16px; 
            background: rgba(255,255,255,0.08); 
            border: 1px solid rgba(255,255,255,0.15); 
            border-radius: 10px; 
            color: #fff; 
            font-size: 13px; 
            cursor: pointer;
            min-width: 140px;
            transition: all 0.2s;
        }
        .date-range-filter select:hover {
            background: rgba(255,255,255,0.12);
            border-color: rgba(34,197,94,0.3);
        }
        .date-range-filter select:focus {
            outline: none;
            border-color: #22c55e;
            box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
        }
        .date-range-filter select option { background: #1a1a2e; }
        
        /* Contacts Table */
        .contacts-table-container { background: rgba(255,255,255,0.03); border-radius: 16px; overflow: hidden; }
        .contacts-table { width: 100%; border-collapse: collapse; font-size: 13px; }
        .contacts-table th { background: rgba(255,255,255,0.05); padding: 15px; text-align: left; font-weight: 600; color: #888; cursor: pointer; user-select: none; }
        .contacts-table th:hover { color: #4ade80; }
        .contacts-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .contacts-table tr:hover { background: rgba(255,255,255,0.02); }
        .contacts-table tr:last-child td { border-bottom: none; }
        
        .status-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
        .status-badge.sent { background: rgba(74,222,128,0.2); color: #4ade80; }
        .status-badge.pending { background: rgba(245,158,11,0.2); color: #f59e0b; }
        .status-badge.skip { background: rgba(239,68,68,0.2); color: #ef4444; }
        
        .tier-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
        .tier-badge.VIP { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; }
        .tier-badge.High { background: #4ade80; color: #000; }
        .tier-badge.Medium { background: #3b82f6; color: #fff; }
        .tier-badge.Low { background: #666; color: #fff; }
        
        .score-bar { width: 60px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
        .score-fill { height: 100%; border-radius: 3px; }
        .score-fill.high { background: #4ade80; }
        .score-fill.medium { background: #f59e0b; }
        .score-fill.low { background: #ef4444; }
        
        .action-btns { display: flex; gap: 5px; }
        .action-btn { width: 30px; height: 30px; border-radius: 6px; border: none; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
        .action-btn:hover { background: #4ade80; color: #000; }
        
        .table-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding: 0 10px; }
        .table-pagination span { font-size: 13px; color: #666; }
        .page-btns { display: flex; align-items: center; gap: 10px; }
        .page-btns button { padding: 8px 16px; background: rgba(255,255,255,0.1); border: none; border-radius: 6px; color: #fff; cursor: pointer; transition: all 0.2s; }
        .page-btns button:hover { background: #4ade80; color: #000; }
        .page-btns button:disabled { opacity: 0.5; cursor: not-allowed; }
        
        /* Messages */
        .messages-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .messages-list, .conversation-view { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .messages-list h3, .conversation-view h3 { font-size: 14px; color: #888; margin-bottom: 15px; }
        
        .msg-filters { margin-bottom: 15px; }
        .msg-filters select { width: 100%; padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; }
        
        .message-items { max-height: 400px; overflow-y: auto; }
        .message-item { padding: 15px; border-radius: 10px; background: rgba(255,255,255,0.03); margin-bottom: 10px; cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; }
        .message-item:hover { background: rgba(255,255,255,0.05); border-left-color: #4ade80; }
        .message-item.selected { background: rgba(74,222,128,0.1); border-left-color: #4ade80; }
        .msg-contact { font-weight: 600; font-size: 13px; margin-bottom: 5px; }
        .msg-preview { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .msg-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #666; }
        .msg-status { padding: 2px 8px; border-radius: 10px; font-size: 10px; }
        .msg-status.replied { background: rgba(74,222,128,0.2); color: #4ade80; }
        .msg-status.sent { background: rgba(59,130,246,0.2); color: #3b82f6; }
        .msg-status.failed { background: rgba(239,68,68,0.2); color: #ef4444; }
        
        .conversation-thread { min-height: 300px; }
        .thread-placeholder { text-align: center; color: #666; padding: 60px 20px; }
        .thread-message { padding: 15px; border-radius: 12px; margin-bottom: 10px; max-width: 85%; }
        .thread-message.sent { background: rgba(74,222,128,0.1); margin-left: auto; border-bottom-right-radius: 4px; }
        .thread-message.received { background: rgba(255,255,255,0.08); margin-right: auto; border-bottom-left-radius: 4px; }
        .thread-message .msg-sender { font-size: 11px; color: #888; margin-bottom: 5px; }
        .thread-message .msg-text { font-size: 13px; line-height: 1.5; }
        .thread-message .msg-time { font-size: 10px; color: #666; margin-top: 5px; text-align: right; }
        
        /* Analytics */
        .analytics-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
        .analytics-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 24px; }
        .analytics-card.wide { grid-column: span 2; }
        .analytics-card h3 { font-size: 14px; color: #94a3b8; margin-bottom: 24px; }
        .analytics-side-panel { display: flex; flex-direction: column; gap: 24px; }

        #sourcePieChart { max-height: 220px; }
        #statusDonutChart { max-height: 180px; }
        
        .source-chart { display: flex; flex-direction: column; gap: 15px; }
        .source-bar-row { display: flex; align-items: center; gap: 10px; }
        .source-label { width: 100px; font-size: 12px; color: #aaa; }
        .source-bar-wrap { flex: 1; height: 24px; background: rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; }
        .source-bar { height: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 11px; font-weight: 600; transition: width 0.5s ease; }
        .source-bar.angels { background: #22c55e; }
        .source-bar.kol { background: #8b5cf6; }
        .source-bar.launchpads { background: #3b82f6; }
        .source-bar.syndicates { background: #ef4444; }
        
        .status-donut { width: 100px; height: 100px; margin: 0 auto 16px; position: relative; }
        .status-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
        .donut-center span { display: block; font-size: 20px; font-weight: 700; }
        .donut-center small { font-size: 10px; color: #64748b; }
        .donut-legend { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
        .legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; }
        .legend-item .dot { width: 8px; height: 8px; border-radius: 50%; }
        .legend-item .dot.sent { background: #22c55e; }
        .legend-item .dot.pending { background: #3b82f6; }
        .legend-item .dot.skipped { background: #ef4444; }
        
        .reply-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .r-stat { text-align: center; padding: 24px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 16px; transition: all 0.3s; }
        .r-stat:hover { background: rgba(34,197,94,0.12); transform: translateY(-2px); }
        .r-stat .r-num { display: block; font-size: 32px; font-weight: 700; color: #22c55e; margin-bottom: 4px; }
        .r-stat .r-label { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
        .r-stat .r-trend { display: block; font-size: 12px; font-weight: 500; color: #22c55e; }
        .r-stat .r-trend.down { color: #ef4444; }
        .r-stat .r-trend.neutral { color: #f59e0b; }
        
        .hourly-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 100px; gap: 4px; }
        .hour-bar { flex: 1; background: linear-gradient(180deg, #22c55e, rgba(34,197,94,0.3)); border-radius: 3px 3px 0 0; min-height: 5px; position: relative; }
        .hour-bar span { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%) rotate(-45deg); font-size: 8px; color: #64748b; transform-origin: left; }
        
        /* KOLs */
        .kol-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .kol-header h3 { font-size: 18px; }
        .kol-code { background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.3); padding: 8px 16px; border-radius: 8px; font-size: 13px; }
        .kol-code span { font-weight: 700; color: #a78bfa; }
        
        .kol-progress-bar { height: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; overflow: hidden; margin-bottom: 20px; }
        .kol-progress-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #a78bfa); border-radius: 5px; transition: width 0.5s ease; }
        
        .kol-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
        .kol-stat-card { text-align: center; padding: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
        .kol-stat-card .ks-num { display: block; font-size: 32px; font-weight: 700; color: #a78bfa; }
        .kol-stat-card .ks-label { font-size: 11px; color: #666; text-transform: uppercase; }
        
        .kol-list { display: flex; flex-direction: column; gap: 10px; }
        .kol-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 12px; border-left: 3px solid transparent; transition: all 0.2s; }
        .kol-item:hover { background: rgba(255,255,255,0.05); }
        .kol-item.active { border-left-color: #4ade80; }
        .kol-item.pending { border-left-color: #f59e0b; }
        .kol-item.not-tracked { border-left-color: #666; }
        .kol-item.tier-a { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.05); }
        .kol-item.tier-b { border-left-color: #4ade80; background: rgba(74, 222, 128, 0.03); }
        .kol-item.tier-c { border-left-color: #666; }
        .kol-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #a78bfa); display: flex; align-items: center; justify-content: center; font-weight: 700; }
        .kol-info { flex: 1; }
        .kol-name { font-weight: 600; font-size: 14px; }
        .kol-handle { font-size: 12px; color: #888; }
        .kol-wallet { font-size: 11px; color: #666; font-family: monospace; }
        .kol-meta { font-size: 11px; color: #666; margin-top: 4px; }
        .kol-status { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 500; }
        .kol-status.ACTIVE { background: rgba(74,222,128,0.2); color: #4ade80; }
        .kol-status.PENDING { background: rgba(245,158,11,0.2); color: #f59e0b; }
        .kol-status.NOT_TRACKED { background: rgba(102,102,102,0.2); color: #888; }
        .kol-status.tier-a { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
        .kol-status.tier-b { background: #4ade80; color: #000; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
        .kol-status.tier-c { background: #666; color: #fff; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
        
        /* Exhaustive Health Tab */
        .health-nav { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
        .health-btn { padding: 10px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #888; font-size: 13px; cursor: pointer; transition: all 0.2s; }
        .health-btn:hover { background: rgba(255,255,255,0.1); }
        .health-btn.active { background: linear-gradient(135deg, #4ade80, #22c55e); color: #000; border-color: #4ade80; }
        
        .health-subtab { display: none; }
        .health-subtab.active { display: block; }
        
        .critical-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
        .crit-card { background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(34,197,94,0.05)); border: 1px solid rgba(74,222,128,0.2); border-radius: 16px; padding: 20px; text-align: center; }
        .crit-icon { font-size: 32px; margin-bottom: 10px; }
        .crit-value { font-size: 28px; font-weight: 700; color: #4ade80; }
        .crit-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; }
        
        .health-grid.compact { grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; }
        
        .activity-stream { background: rgba(0,0,0,0.3); border-radius: 12px; padding: 20px; }
        .activity-stream h3 { font-size: 14px; color: #888; margin-bottom: 15px; }
        .stream-container { max-height: 200px; overflow-y: auto; }
        .stream-item { display: flex; gap: 15px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
        .stream-item:last-child { border-bottom: none; }
        .stream-time { color: #666; font-family: monospace; min-width: 50px; }
        .stream-text { color: #aaa; }
        
        /* System Section */
        .system-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .sys-section { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .sys-section.wide { grid-column: span 2; }
        .sys-section h3 { font-size: 14px; color: #888; margin-bottom: 15px; }
        .sys-stats { margin-bottom: 15px; }
        .sys-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
        .sys-row:last-child { border-bottom: none; }
        .sys-row span:first-child { color: #888; }
        .sys-row span:last-child { color: #4ade80; font-weight: 500; }
        
        .cpu-cores-viz { display: flex; gap: 4px; flex-wrap: wrap; }
        .core-bar { width: 30px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 4px; position: relative; overflow: hidden; }
        .core-fill { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, #4ade80, #22c55e); transition: height 0.3s; }
        .core-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 9px; color: #fff; font-weight: 600; }
        
        .mem-viz { margin-top: 15px; }
        .mem-bar { height: 30px; background: rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; display: flex; }
        .mem-seg { height: 100%; transition: width 0.3s; }
        .mem-seg.used { background: #ef4444; }
        .mem-seg.cached { background: #f59e0b; }
        .mem-seg.free { background: #4ade80; }
        .mem-legend { display: flex; gap: 20px; margin-top: 10px; font-size: 12px; }
        .mem-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
        
        /* Network Section */
        .network-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .net-card { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .net-card.wide { grid-column: span 2; }
        .net-card h3 { font-size: 14px; color: #888; margin-bottom: 15px; }
        .net-status { font-size: 24px; font-weight: 600; color: #4ade80; }
        .net-indicator { width: 12px; height: 12px; border-radius: 50%; background: #4ade80; margin-top: 10px; box-shadow: 0 0 10px #4ade80; animation: pulse 2s infinite; }
        .net-indicator.offline { background: #ef4444; box-shadow: 0 0 10px #ef4444; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        
        .latency-list { display: flex; flex-direction: column; gap: 10px; }
        .lat-row { display: flex; justify-content: space-between; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 13px; }
        .lat-row span:first-child { color: #888; }
        .lat-row span:last-child { color: #4ade80; font-weight: 600; }
        
        .net-io { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
        .io-stat { text-align: center; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 12px; }
        .io-label { display: block; font-size: 11px; color: #888; margin-bottom: 8px; }
        .io-value { display: block; font-size: 20px; font-weight: 700; color: #4ade80; }
        .io-sub { display: block; font-size: 10px; color: #666; margin-top: 4px; }
        
        /* Costs Section */
        .costs-breakdown { display: flex; flex-direction: column; gap: 20px; }
        .cost-total-card { background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(34,197,94,0.05)); border: 1px solid rgba(74,222,128,0.3); border-radius: 20px; padding: 30px; text-align: center; }
        .ct-label { font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 2px; }
        .ct-amount { font-size: 56px; font-weight: 700; color: #4ade80; margin: 15px 0; }
        .ct-breakdown { display: flex; justify-content: center; gap: 30px; font-size: 14px; color: #888; }
        .ct-breakdown b { color: #fff; }
        
        .cost-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .cost-section-card { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .cost-section-card h4 { font-size: 14px; color: #888; margin-bottom: 15px; }
        .cost-rows { display: flex; flex-direction: column; gap: 10px; }
        .c-row { display: flex; justify-content: space-between; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 13px; }
        .c-row span:first-child { color: #888; }
        .c-row span:last-child { color: #4ade80; font-weight: 600; }
        
        /* Agent Section */
        .agent-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
        .agent-card { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .agent-card h4 { font-size: 13px; color: #888; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
        .a-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; }
        .a-stat:last-child { border-bottom: none; }
        .a-stat span:first-child { color: #888; }
        .a-stat span:last-child { color: #4ade80; font-weight: 600; }
        
        .recent-actions { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .recent-actions h4 { font-size: 14px; color: #888; margin-bottom: 15px; }
        .actions-list { max-height: 300px; overflow-y: auto; }
        .action-item { display: flex; gap: 15px; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; margin-bottom: 8px; font-size: 12px; }
        .action-time { color: #666; font-family: monospace; min-width: 70px; }
        .action-type { color: #4ade80; min-width: 80px; }
        .action-detail { color: #aaa; flex: 1; }
        
        /* Logs Section */
        .logs-layout { display: grid; grid-template-columns: 350px 1fr; gap: 20px; }
        
        .errors-panel { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .errors-panel h3 { font-size: 14px; color: #888; margin-bottom: 20px; }
        
        .errors-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 25px; }
        .err-stat { text-align: center; padding: 15px; background: rgba(0,0,0,0.2); border-radius: 12px; border-left: 3px solid; }
        .err-stat.critical { border-color: #dc2626; }
        .err-stat.error { border-color: #ef4444; }
        .err-stat.warn { border-color: #f59e0b; }
        .err-stat.info { border-color: #3b82f6; }
        .err-stat .err-num { display: block; font-size: 28px; font-weight: 700; }
        .err-stat.critical .err-num { color: #dc2626; }
        .err-stat.error .err-num { color: #ef4444; }
        .err-stat.warn .err-num { color: #f59e0b; }
        .err-stat.info .err-num { color: #3b82f6; }
        .err-stat .err-label { font-size: 11px; color: #666; text-transform: uppercase; }
        
        .recent-errors h4, .error-explanations h4 { font-size: 12px; color: #888; margin: 20px 0 10px; }
        .error-list { max-height: 200px; overflow-y: auto; }
        .error-item { display: flex; gap: 10px; padding: 10px; background: rgba(239,68,68,0.1); border-radius: 8px; margin-bottom: 8px; font-size: 11px; }
        .error-item .err-time { color: #666; font-family: monospace; }
        .error-item .err-code { color: #ef4444; font-weight: 600; }
        .error-item .err-msg { color: #aaa; flex: 1; }
        .no-errors { text-align: center; color: #4ade80; padding: 20px; font-size: 12px; }
        
        .error-guide { display: flex; flex-direction: column; gap: 8px; }
        .guide-item { display: flex; flex-direction: column; gap: 3px; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
        .guide-code { font-family: monospace; font-size: 11px; color: #f59e0b; font-weight: 600; }
        .guide-desc { font-size: 11px; color: #888; line-height: 1.4; }
        
        .logs-panel { background: rgba(0,0,0,0.3); border-radius: 16px; overflow: hidden; }
        .logs-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
        .logs-header h3 { font-size: 14px; color: #888; }
        .logs-controls { display: flex; gap: 10px; }
        .logs-controls button, .logs-controls select { padding: 8px 12px; background: rgba(255,255,255,0.1); border: none; border-radius: 6px; color: #fff; font-size: 12px; cursor: pointer; }
        .logs-controls button:hover { background: rgba(74,222,128,0.2); }
        
        .logs-terminal { height: 350px; overflow-y: auto; padding: 15px; font-family: 'SF Mono', monospace; font-size: 12px; line-height: 1.6; }
        .log-line { padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
        .log-time { color: #666; margin-right: 10px; }
        .log-level { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 10px; margin-right: 8px; text-transform: uppercase; }
        .log-level.info { background: rgba(59,130,246,0.2); color: #3b82f6; }
        .log-level.warn { background: rgba(245,158,11,0.2); color: #f59e0b; }
        .log-level.error { background: rgba(239,68,68,0.2); color: #ef4444; }
        .log-level.critical { background: rgba(220,38,38,0.2); color: #dc2626; }
        .log-msg { color: #aaa; }
        
        .logs-footer { display: flex; justify-content: space-between; padding: 10px 20px; background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.1); font-size: 11px; color: #666; }
        
        /* Disk Visualization */
        .disk-visual { display: flex; align-items: center; gap: 20px; margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); }
        .disk-pie { width: 100px; height: 100px; position: relative; flex-shrink: 0; }
        .disk-pie svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .disk-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
        .disk-center span { display: block; font-size: 20px; font-weight: 700; }
        .disk-center small { font-size: 10px; color: #666; }
        .disk-legend { flex: 1; }
        .disk-legend > div { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: #888; }
        .disk-legend .dot { width: 12px; height: 12px; border-radius: 50%; }
        .disk-legend .dot.used { background: #ef4444; }
        .disk-legend .dot.free { background: #4ade80; }
        
        /* Memory Breakdown */
        .proc-mem-list { display: flex; flex-direction: column; gap: 8px; }
        .proc-mem-item { display: flex; justify-content: space-between; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; font-size: 12px; }
        .proc-mem-item span:first-child { color: #888; }
        .proc-mem-item span:last-child { color: #4ade80; font-weight: 600; }
        
        /* File Browser */
        .file-browser { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 20px; }
        .file-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
        .file-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; background: rgba(0,0,0,0.2); border-radius: 10px; cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; }
        .file-item:hover { background: rgba(255,255,255,0.05); border-left-color: #4ade80; }
        .file-item.active { background: rgba(74,222,128,0.1); border-left-color: #4ade80; }
        .file-icon { font-size: 24px; }
        .file-info { flex: 1; }
        .file-name { font-size: 13px; font-weight: 500; }
        .file-meta { font-size: 11px; color: #666; }
        .file-actions { display: flex; gap: 5px; }
        .file-btn { padding: 6px 12px; background: rgba(255,255,255,0.1); border: none; border-radius: 6px; color: #fff; font-size: 11px; cursor: pointer; }
        .file-btn:hover { background: #4ade80; color: #000; }
        
        .file-content-viewer { background: rgba(0,0,0,0.3); border-radius: 12px; overflow: hidden; }
        .file-content-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
        .file-content-header h4 { font-size: 14px; }
        .file-content-stats { display: flex; gap: 20px; font-size: 12px; color: #888; }
        .file-content-body { max-height: 400px; overflow: auto; }
        .csv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .csv-table th { background: rgba(255,255,255,0.1); padding: 12px; text-align: left; font-weight: 600; position: sticky; top: 0; }
        .csv-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.05); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .csv-table tr:hover { background: rgba(255,255,255,0.02); }
        
        /* Angels */
        .angels-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 15px; }
        .angels-header h3 { font-size: 18px; }
        .angel-filters { display: flex; gap: 10px; }
        .angel-filter { padding: 8px 16px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; color: #888; font-size: 12px; cursor: pointer; transition: all 0.2s; }
        .angel-filter:hover { background: rgba(255,255,255,0.1); }
        .angel-filter.active { background: #f59e0b; color: #000; border-color: #f59e0b; }
        
        .angels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
        .angel-card { padding: 20px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); transition: all 0.2s; }
        .angel-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(245,158,11,0.3); }
        .angel-card h4 { font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
        .angel-card p { font-size: 12px; color: #888; margin-bottom: 5px; }
        .angel-card .angel-meta { display: flex; gap: 10px; margin-top: 12px; }
        .angel-card .angel-meta span { font-size: 11px; padding: 4px 10px; background: rgba(255,255,255,0.05); border-radius: 10px; }
        
        /* CRM Pipeline Styles */
        .crm-container { width: 100%; max-width: 98vw; padding: 20px; margin: 0 auto; }
        .crm-header { text-align: center; margin-bottom: 30px; padding: 30px; background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05)); border-radius: 20px; border: 1px solid rgba(34,197,94,0.2); }
        .crm-header h1 { font-size: 32px; font-weight: 700; background: linear-gradient(90deg, #22c55e, #16a34a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
        .crm-header p { color: #64748b; font-size: 14px; margin-bottom: 20px; }
        
        .round-tracker { max-width: 600px; margin: 0 auto; padding: 20px; background: rgba(0,0,0,0.3); border-radius: 12px; }
        .round-progress { text-align: center; }
        .round-bar { height: 20px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
        .round-fill { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 10px; transition: width 0.5s ease; }
        .round-stats { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
        .round-amount { font-size: 28px; font-weight: 700; color: #22c55e; }
        .round-target { font-size: 14px; color: #64748b; }
        
        .pipeline-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; min-height: 500px; }
        .pipeline-column { flex: 1; min-width: 200px; background: rgba(255,255,255,0.03); border-radius: 12px; padding: 16px; border: 1px solid rgba(255,255,255,0.08); }
        .pipeline-column:hover { border-color: rgba(34,197,94,0.2); }
        .column-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); }
        .column-dot { width: 10px; height: 10px; border-radius: 50%; }
        .column-title { font-weight: 600; font-size: 14px; flex: 1; }
        .column-count { background: rgba(255,255,255,0.1); padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
        .column-cards { display: flex; flex-direction: column; gap: 12px; }
        
        .investor-card { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 16px; border: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: all 0.2s; }
        .investor-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); border-color: rgba(34,197,94,0.3); }
        .investor-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
        .investor-company { font-size: 12px; color: #64748b; margin-bottom: 8px; }
        .investor-check { font-size: 11px; color: #22c55e; margin-bottom: 8px; }
        .investor-tasks { display: flex; gap: 6px; flex-wrap: wrap; }
        .task-badge { font-size: 10px; padding: 3px 8px; border-radius: 10px; background: rgba(245,158,11,0.2); color: #f59e0b; }
        .task-badge.overdue { background: rgba(239,68,68,0.2); color: #ef4444; }
        
        .crm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; }
        .crm-btn { padding: 12px 24px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; color: #fff; font-weight: 500; cursor: pointer; transition: all 0.2s; }
        .crm-btn:hover { background: rgba(255,255,255,0.15); }
        .crm-btn.primary { background: linear-gradient(135deg, #22c55e, #16a34a); border-color: #22c55e; }
        .crm-btn.primary:hover { background: linear-gradient(135deg, #16a34a, #22c55e); transform: scale(1.02); }
        
        /* Responsive */
        @media (max-width: 900px) {
            .messages-layout { grid-template-columns: 1fr; }
            .analytics-grid { grid-template-columns: 1fr; }
            .analytics-card.wide { grid-column: span 1; }
            .reply-stats { grid-template-columns: repeat(2, 1fr); }
            .campaign-stats { grid-template-columns: repeat(2, 1fr); }
            .kol-stats-row { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 600px) {
            .health-grid { grid-template-columns: 1fr; }
            .cost-grid { grid-template-columns: 1fr; }
            .header-stats { gap: 20px; }
            .dash-nav { gap: 5px; }
            .dash-btn { padding: 10px 14px; font-size: 12px; }
            .campaigns-grid { grid-template-columns: 1fr; }
            .contacts-table th, .contacts-table td { padding: 10px 8px; font-size: 11px; }
        }

        /* Service Cards */
        .service-card { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 15px; border-left: 3px solid #666; transition: all 0.3s; }
        .service-card.healthy { border-left-color: #4ade80; }
        .service-card.unhealthy { border-left-color: #ef4444; }
        .service-card.warning { border-left-color: #f59e0b; }
        .service-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .service-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
        .service-status { font-size: 10px; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
        .service-status.running { background: rgba(74,222,128,0.2); color: #4ade80; }
        .service-status.stopped { background: rgba(239,68,68,0.2); color: #ef4444; }
        .service-status.connected { background: rgba(74,222,128,0.2); color: #4ade80; }
        .service-status.error { background: rgba(239,68,68,0.2); color: #ef4444; }
        .service-status.checking { background: rgba(102,102,102,0.2); color: #888; }
        .service-meta { font-size: 11px; color: #666; margin-bottom: 8px; }
        .service-actions { display: flex; gap: 8px; }
        .fix-btn { padding: 6px 12px; background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.3); border-radius: 6px; color: #ef4444; font-size: 11px; cursor: pointer; transition: all 0.2s; }
        .fix-btn:hover { background: rgba(239,68,68,0.3); }
        .fix-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .fix-btn.success { background: rgba(74,222,128,0.2); border-color: rgba(74,222,128,0.3); color: #4ade80; }

        /* Reply Cards */
        .reply-card { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 15px; margin-bottom: 12px; border-left: 3px solid #4ade80; }
        .reply-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
        .reply-contact { font-size: 14px; font-weight: 600; color: #f1f5f9; }
        .reply-contact .handle { font-size: 12px; color: #888; font-weight: 400; margin-left: 8px; }
        .reply-time { font-size: 11px; color: #666; }
        .reply-message { font-size: 13px; color: #aaa; line-height: 1.5; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; margin-bottom: 10px; }
        .reply-meta { display: flex; gap: 12px; font-size: 11px; color: #666; margin-bottom: 10px; }
        .reply-meta span { display: flex; align-items: center; gap: 4px; }
        .reply-actions { display: flex; gap: 8px; }
        .reply-btn { padding: 8px 16px; background: linear-gradient(135deg, #4ade80, #22c55e); border: none; border-radius: 8px; color: #000; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .reply-btn:hover { transform: scale(1.02); box-shadow: 0 4px 15px rgba(74,222,128,0.3); }
        .reply-btn.secondary { background: rgba(255,255,255,0.1); color: #fff; }
        .reply-input { width: 100%; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; margin-bottom: 10px; resize: vertical; min-height: 60px; }
        .reply-input:focus { outline: none; border-color: rgba(74,222,128,0.5); }
        .reply-form { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
        .reply-form.active { display: block; }

        /* ===== INTEL DASHBOARD ===== */
        .intel-container { width: 100%; max-width: 98vw; padding: 20px; }
        .intel-header { text-align: center; margin-bottom: 24px; }
        .intel-header h1 { font-size: 30px; font-weight: 800; background: linear-gradient(135deg, #8b5cf6, #c084fc, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 6px; letter-spacing: -0.5px; }
        .intel-header p { color: #666; font-size: 13px; }

        .intel-stats-row { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; justify-content: center; }
        .intel-stat-card { background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.12); border-radius: 14px; padding: 16px 22px; text-align: center; min-width: 120px; flex: 1; max-width: 185px; transition: all 0.25s; position: relative; }
        .intel-stat-card:hover { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.25); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.1); }
        .intel-stat-num { font-size: 24px; font-weight: 800; color: #a78bfa; display: block; line-height: 1.2; }
        .intel-stat-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

        .intel-nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
        .intel-nav-btn { padding: 9px 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 22px; color: #888; font-size: 13px; cursor: pointer; transition: all 0.25s; font-weight: 500; }
        .intel-nav-btn:hover { background: rgba(139,92,246,0.12); color: #c4b5fd; border-color: rgba(139,92,246,0.25); }
        .intel-nav-btn.active { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(167,139,250,0.15)); color: #c4b5fd; border-color: rgba(139,92,246,0.4); font-weight: 600; box-shadow: 0 0 12px rgba(139,92,246,0.15); }

        .intel-subtab { display: none; animation: fadeInUp 0.3s ease; }
        .intel-subtab.active { display: block; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        /* Tooltip system */
        .itip { position: relative; }
        .itip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1e1b4b; color: #c4b5fd; padding: 6px 12px; border-radius: 8px; font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 50; border: 1px solid rgba(139,92,246,0.25); box-shadow: 0 6px 20px rgba(0,0,0,0.4); transform: translateX(-50%) translateY(4px); line-height: 1.4; max-width: 280px; white-space: normal; text-align: center; font-weight: 400; }
        .itip::before { content: ''; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1e1b4b; opacity: 0; transition: opacity 0.2s; z-index: 50; pointer-events: none; }
        .itip:hover::after, .itip:hover::before { opacity: 1; }
        .itip:hover::after { transform: translateX(-50%) translateY(0); }

        /* Filters */
        .intel-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; padding: 14px 16px; background: linear-gradient(135deg, rgba(139,92,246,0.03), rgba(255,255,255,0.01)); border: 1px solid rgba(139,92,246,0.08); border-radius: 14px; }
        .intel-filters input, .intel-filters select { padding: 7px 10px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 12px; transition: all 0.2s; }
        .intel-filters input:focus, .intel-filters select:focus { outline: none; border-color: rgba(139,92,246,0.5); box-shadow: 0 0 0 2px rgba(139,92,246,0.1); }
        .intel-filters select option { background: #1a1a2e; }
        .intel-filters label { color: #94a3b8; font-size: 11px; display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; padding: 4px 8px; border-radius: 6px; transition: all 0.2s; }
        .intel-filters label:hover { background: rgba(139,92,246,0.08); color: #c4b5fd; }
        .intel-filter-label { color: #7c3aed; font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; }
        .intel-filter-sep { width: 1px; height: 24px; background: rgba(139,92,246,0.12); margin: 0 4px; }

        .intel-actions { display: flex; gap: 8px; margin-left: auto; }
        .intel-action-btn { padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; transition: all 0.25s; letter-spacing: 0.2px; }
        .intel-action-btn.primary { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.25); color: #c4b5fd; }
        .intel-action-btn.primary:hover { background: rgba(139,92,246,0.25); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,0.15); }
        .intel-action-btn.success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.25); color: #86efac; }
        .intel-action-btn.success:hover { background: rgba(34,197,94,0.25); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,197,94,0.15); }
        .intel-action-btn.warn { background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.25); color: #fcd34d; }
        .intel-action-btn.warn:hover { background: rgba(245,158,11,0.25); }
        .intel-action-btn.danger { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.2); color: #fca5a5; }
        .intel-action-btn.danger:hover { background: rgba(239,68,68,0.2); }

        .intel-active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; min-height: 0; }
        .intel-active-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 14px; font-size: 10px; font-weight: 600; background: rgba(139,92,246,0.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.2); cursor: default; animation: fadeInUp 0.2s ease; }
        .intel-active-chip .chip-x { cursor: pointer; opacity: 0.6; font-size: 12px; margin-left: 2px; }
        .intel-active-chip .chip-x:hover { opacity: 1; }

        /* Table */
        .intel-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(139,92,246,0.08); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
        .intel-table { width: 100%; border-collapse: collapse; font-size: 12px; }
        .intel-table thead { background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(88,28,135,0.08)); position: sticky; top: 0; z-index: 2; }
        .intel-table th { padding: 11px 12px; text-align: left; color: #c4b5fd; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; cursor: pointer; white-space: nowrap; user-select: none; border-bottom: 2px solid rgba(139,92,246,0.15); transition: all 0.2s; position: relative; }
        .intel-table th:hover { background: rgba(139,92,246,0.15); }
        .intel-table th.sorted-asc::after { content: ' ▲'; font-size: 9px; }
        .intel-table th.sorted-desc::after { content: ' ▼'; font-size: 9px; }
        .intel-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; transition: background 0.15s; }
        .intel-table tr { transition: all 0.15s; }
        .intel-table tr:hover { background: rgba(139,92,246,0.06); }
        .intel-table tr.selected { background: rgba(139,92,246,0.1); box-shadow: inset 3px 0 0 #8b5cf6; }
        .intel-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.01); }
        .intel-table tbody tr:nth-child(even):hover { background: rgba(139,92,246,0.06); }

        .intel-tier { display: inline-flex; align-items: center; justify-content: center; padding: 3px 10px; border-radius: 10px; font-size: 10px; font-weight: 800; letter-spacing: 0.5px; min-width: 32px; }
        .intel-tier.A { background: linear-gradient(135deg, rgba(234,179,8,0.2), rgba(251,191,36,0.15)); color: #fde047; border: 1px solid rgba(234,179,8,0.2); }
        .intel-tier.B { background: linear-gradient(135deg, rgba(168,162,158,0.15), rgba(214,211,209,0.1)); color: #d6d3d1; border: 1px solid rgba(168,162,158,0.15); }
        .intel-tier.C { background: rgba(120,113,108,0.1); color: #a8a29e; border: 1px solid rgba(120,113,108,0.1); }

        .intel-role { padding: 3px 9px; border-radius: 10px; font-size: 10px; display: inline-block; font-weight: 600; letter-spacing: 0.3px; }
        .intel-role.Angel { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(167,139,250,0.15)); color: #c4b5fd; }
        .intel-role.Founder { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(96,165,250,0.15)); color: #93c5fd; }
        .intel-role.Trader { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(251,191,36,0.15)); color: #fde68a; }
        .intel-role.Community { background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(74,222,128,0.15)); color: #86efac; }
        .intel-role.VC { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(244,114,182,0.15)); color: #f9a8d4; }
        .intel-role.Other, .intel-role.Unknown, .intel-role.unknown { background: rgba(255,255,255,0.04); color: #94a3b8; }

        .intel-score-bar { display: flex; align-items: center; gap: 6px; }
        .intel-score-fill { height: 6px; border-radius: 3px; min-width: 2px; transition: width 0.3s; }
        .intel-score-num { font-weight: 700; font-size: 12px; min-width: 28px; }

        .intel-link { color: #60a5fa; text-decoration: none; font-size: 11px; transition: all 0.15s; }
        .intel-link:hover { text-decoration: underline; color: #93bbfc; }
        .intel-tw-link { color: #1d9bf0; }
        .intel-tw-link:hover { color: #63c0f7; }
        .intel-tg-link { color: #26a5e4; }
        .intel-tg-link:hover { color: #5ec2f0; }

        .intel-tag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10px; margin: 1px 2px; font-weight: 600; letter-spacing: 0.3px; }
        .intel-tag.inv { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.15); }
        .intel-tag.kol { background: rgba(245,158,11,0.12); color: #fde68a; border: 1px solid rgba(245,158,11,0.15); }

        .intel-groups-cell { max-width: 200px; }
        .intel-group-chip { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 9px; margin: 1px; background: rgba(139,92,246,0.08); color: #c4b5fd; white-space: nowrap; border: 1px solid rgba(139,92,246,0.08); transition: all 0.2s; cursor: pointer; }
        .intel-group-chip:hover { background: rgba(139,92,246,0.25); border-color: rgba(139,92,246,0.3); color: #ddd6fe; }

        .intel-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 12px 0; }
        .intel-pagination span { color: #94a3b8; font-size: 12px; }
        .intel-page-btns { display: flex; gap: 6px; align-items: center; }
        .intel-page-btn { padding: 7px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: #94a3b8; font-size: 12px; cursor: pointer; transition: all 0.2s; font-weight: 500; }
        .intel-page-btn:hover { background: rgba(139,92,246,0.12); color: #c4b5fd; border-color: rgba(139,92,246,0.2); }
        .intel-page-btn:disabled { opacity: 0.25; cursor: not-allowed; }
        .intel-per-page { padding: 5px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; font-size: 11px; }

        /* Detail Modal */
        .intel-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 20px; backdrop-filter: blur(4px); }
        .intel-modal { background: linear-gradient(135deg, #1e293b, #1a1f35); border-radius: 16px; width: 900px; max-width: 95vw; border: 1px solid rgba(139,92,246,0.2); box-shadow: 0 25px 60px rgba(0,0,0,0.5); }
        .intel-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
        .intel-modal-header h2 { font-size: 18px; color: #e2e8f0; }
        .intel-modal-close { background: none; border: none; color: #888; font-size: 24px; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
        .intel-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
        .intel-modal-body { padding: 24px; max-height: 75vh; overflow-y: auto; }
        .intel-modal-section { margin-bottom: 20px; }
        .intel-modal-section h3 { font-size: 13px; color: #a78bfa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(139,92,246,0.15); }
        .intel-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
        .intel-detail-item { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px; }
        .intel-detail-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
        .intel-detail-value { font-size: 13px; color: #e2e8f0; }
        .intel-msg-bubble { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 12px; color: #ccc; border-left: 3px solid rgba(139,92,246,0.3); }
        .intel-msg-meta { font-size: 10px; color: #666; margin-top: 4px; }
        .intel-hook-tag { display: inline-block; padding: 3px 10px; border-radius: 14px; font-size: 11px; margin: 2px; background: rgba(139,92,246,0.1); color: #a78bfa; border: 1px solid rgba(139,92,246,0.15); }
        .intel-avoid-tag { display: inline-block; padding: 3px 10px; border-radius: 14px; font-size: 11px; margin: 2px; background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.15); }
        .intel-signal-tag { display: inline-block; padding: 3px 10px; border-radius: 14px; font-size: 11px; margin: 2px; background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.15); }

        /* Collapsible modal sections */
        .intel-section-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; padding: 8px 0; }
        .intel-section-toggle h3 { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
        .intel-section-toggle .toggle-arrow { color: #666; font-size: 14px; transition: transform 0.2s; }
        .intel-section-toggle .toggle-arrow.open { transform: rotate(90deg); }
        .intel-section-content { overflow: hidden; transition: max-height 0.3s ease, opacity 0.2s ease; }
        .intel-section-content.collapsed { max-height: 0; opacity: 0; pointer-events: none; }
        .intel-section-content.expanded { max-height: 5000px; opacity: 1; }
        .intel-modal-section { margin-bottom: 16px; border-bottom: 1px solid rgba(139,92,246,0.08); padding-bottom: 8px; }
        .intel-modal-section:last-child { border-bottom: none; }

        /* Contact channel badges */
        .channel-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; }
        .channel-badge.dm { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
        .channel-badge.enreach { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
        .channel-badge.bot { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
        .channel-badge.campaign { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
        .channel-badge.pending { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.2); }
        .channel-badge.not-contacted { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.25); }

        /* Twitter confidence meter */
        .tw-confidence { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
        .tw-conf-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; max-width: 120px; }
        .tw-conf-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
        .tw-conf-fill.high { background: linear-gradient(90deg, #22c55e, #4ade80); }
        .tw-conf-fill.medium { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .tw-conf-fill.low { background: linear-gradient(90deg, #ef4444, #f87171); }
        .tw-conf-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
        .tw-conf-label.high { color: #4ade80; }
        .tw-conf-label.medium { color: #fbbf24; }
        .tw-conf-label.low { color: #f87171; }
        .tw-conf-label.none { color: #555; }

        /* Column toggle bar */
        .col-toggle { font-size:10px; color:#94a3b8; cursor:pointer; display:inline-flex; align-items:center; gap:3px; padding:2px 6px; border-radius:6px; transition:all 0.15s; white-space:nowrap; }
        .col-toggle:hover { background:rgba(255,255,255,0.06); color:#e2e8f0; }
        .col-toggle input { width:12px; height:12px; accent-color:#a78bfa; }

        /* Draggable column headers */
        #intelTableHead th[draggable="true"] { cursor:grab; user-select:none; position:relative; }
        #intelTableHead th[draggable="true"]:active { cursor:grabbing; }
        #intelTableHead th.drag-over-left { box-shadow:inset 3px 0 0 #a78bfa; }
        #intelTableHead th.drag-over-right { box-shadow:inset -3px 0 0 #a78bfa; }
        #intelTableHead th.dragging { opacity:0.35; background:rgba(139,92,246,0.1); }

        /* Rich text columns */
        .intel-cell-text { font-size:11px; color:#cbd5e1; line-height:1.4; max-height:60px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; cursor:pointer; transition:max-height 0.3s; }
        .intel-cell-text:hover { max-height:300px; -webkit-line-clamp:unset; overflow:auto; background:rgba(0,0,0,0.3); padding:4px 6px; border-radius:6px; position:relative; z-index:10; }
        .intel-cell-text.empty { color:#444; font-style:italic; }
        .intel-cell-deals { display:flex; flex-direction:column; gap:2px; }
        .intel-mini-deal { font-size:10px; padding:2px 6px; border-radius:4px; background:rgba(34,197,94,0.08); border-left:2px solid rgba(34,197,94,0.3); color:#86efac; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px; }
        .expandable-cell { cursor:pointer; transition:max-height 0.3s ease; }
        .expandable-cell.expanded { max-height:none!important; white-space:normal!important; overflow:visible!important; }
        .expandable-cell.expanded .intel-mini-msg, .expandable-cell.expanded .intel-mini-deal { white-space:normal; max-width:none; overflow:visible; }
        .expandable-cell:not(.expanded):hover { outline:1px dashed rgba(139,92,246,0.3); }
        .intel-mini-msg { font-size:10px; color:#94a3b8; padding:2px 0; border-bottom:1px solid rgba(255,255,255,0.03); line-height:1.3; max-height:40px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
        .intel-mini-msg:hover { max-height:none; -webkit-line-clamp:unset; }
        .tw-warning { font-size:8px; color:#f87171; display:block; margin-top:1px; }

        /* Deal signal cards */
        .deal-signal-card { background: rgba(34,197,94,0.04); border: 1px solid rgba(34,197,94,0.1); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
        .deal-signal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
        .deal-signal-type { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 10px; }
        .deal-signal-type.seeking_alpha { background: rgba(168,85,247,0.15); color: #c084fc; }
        .deal-signal-type.bullish_on_sector { background: rgba(34,197,94,0.15); color: #4ade80; }
        .deal-signal-type.deploying_capital { background: rgba(59,130,246,0.15); color: #60a5fa; }
        .deal-signal-type.portfolio_expansion { background: rgba(245,158,11,0.15); color: #fbbf24; }
        .deal-signal-type.default { background: rgba(100,116,139,0.15); color: #94a3b8; }
        .deal-signal-conf { font-size: 10px; font-weight: 600; }
        .deal-signal-conf.high { color: #4ade80; }
        .deal-signal-conf.medium { color: #fbbf24; }
        .deal-signal-conf.low { color: #f87171; }
        .deal-signal-quote { font-size: 12px; color: #ccc; font-style: italic; line-height: 1.5; }
        .deal-signal-date { font-size: 10px; color: #666; margin-top: 4px; }

        /* Message category tabs */
        .msg-cat-tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
        .msg-cat-tab { padding: 4px 12px; border-radius: 14px; font-size: 10px; font-weight: 600; cursor: pointer; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #888; transition: all 0.2s; }
        .msg-cat-tab:hover { background: rgba(139,92,246,0.1); color: #c4b5fd; }
        .msg-cat-tab.active { background: rgba(139,92,246,0.15); color: #c4b5fd; border-color: rgba(139,92,246,0.3); }
        .msg-cat-count { font-size: 9px; opacity: 0.7; margin-left: 3px; }

        /* Raw data viewer */
        .raw-data-viewer { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px; font-family: 'SF Mono', 'Consolas', monospace; font-size: 11px; color: #94a3b8; max-height: 400px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.5; }

        /* Score bar inline */
        .score-bar-inline { display: inline-flex; align-items: center; gap: 6px; }
        .score-bar-track { width: 80px; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
        .score-bar-fill { height: 100%; border-radius: 4px; }

        /* CSV Export Modal */
        .intel-export-modal { background: #1e293b; border-radius: 16px; padding: 24px; width: 500px; max-width: 95vw; border: 1px solid rgba(139,92,246,0.2); }
        .intel-export-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 300px; overflow-y: auto; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; margin: 12px 0; }
        .intel-export-cols label { font-size: 12px; color: #ccc; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 4px; cursor: pointer; }
        .intel-export-cols label:hover { background: rgba(139,92,246,0.1); }

        /* Campaign Assignment Modal */
        .campaign-assign-modal { background: #1e293b; border-radius: 16px; padding: 24px; width: 480px; max-width: 95vw; border: 1px solid rgba(139,92,246,0.2); }
        .campaign-assign-modal h3 { color: #a78bfa; font-size: 16px; margin: 0; }
        .campaign-assign-modal .cam-field { margin-bottom: 14px; }
        .campaign-assign-modal .cam-label { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
        .campaign-assign-modal .cam-input { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(139,92,246,0.2); border-radius: 8px; color: #e2e8f0; font-size: 13px; outline: none; transition: border-color 0.2s; }
        .campaign-assign-modal .cam-input:focus { border-color: rgba(139,92,246,0.5); }
        .campaign-assign-modal .cam-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(139,92,246,0.2); border-radius: 8px; color: #e2e8f0; font-size: 13px; outline: none; cursor: pointer; }
        .campaign-assign-modal .cam-select option { background: #1a1a2e; }
        .campaign-assign-modal .cam-or-divider { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: #64748b; font-size: 11px; }
        .campaign-assign-modal .cam-or-divider::before, .campaign-assign-modal .cam-or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
        .campaign-assign-modal .cam-checkbox-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15); border-radius: 10px; margin-bottom: 14px; }
        .campaign-assign-modal .cam-checkbox-row label { font-size: 12px; color: #cbd5e1; cursor: pointer; display: flex; align-items: center; gap: 6px; }
        .campaign-assign-modal .cam-checkbox-row .cam-hint { font-size: 10px; color: #64748b; margin-left: auto; }
        .campaign-assign-modal .cam-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
        .campaign-assign-modal .cam-btn-cancel { padding: 10px 20px; background: rgba(255,255,255,0.1); border: none; border-radius: 8px; color: #fff; cursor: pointer; font-size: 13px; }
        .campaign-assign-modal .cam-btn-cancel:hover { background: rgba(255,255,255,0.15); }
        .campaign-assign-modal .cam-btn-assign { padding: 10px 24px; background: #8b5cf6; border: none; border-radius: 8px; color: #fff; cursor: pointer; font-weight: 600; font-size: 13px; transition: all 0.2s; }
        .campaign-assign-modal .cam-btn-assign:hover { background: #7c3aed; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
        .campaign-assign-modal .cam-btn-assign:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

        /* Contacted sub-tab */
        .contacted-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 14px; margin-bottom: 10px; transition: all 0.2s; }
        .contacted-card:hover { border-color: rgba(139,92,246,0.2); background: rgba(255,255,255,0.04); }
        .contacted-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .contacted-status { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
        .contacted-status.sent { background: rgba(59,130,246,0.2); color: #60a5fa; }
        .contacted-status.pending { background: rgba(245,158,11,0.2); color: #fbbf24; }
        .contacted-status.replied { background: rgba(34,197,94,0.2); color: #4ade80; }
        .contacted-msg-preview { font-size: 11px; color: #888; margin-top: 6px; padding: 6px 10px; background: rgba(0,0,0,0.2); border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

        /* Analytics charts */
        .intel-chart-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 18px; }
        .intel-chart-title { font-size: 13px; color: #a78bfa; margin-bottom: 12px; font-weight: 600; }
        .intel-bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-bottom: 20px; position: relative; }
        .intel-bar { background: linear-gradient(to top, rgba(139,92,246,0.3), rgba(139,92,246,0.6)); border-radius: 4px 4px 0 0; min-width: 24px; flex: 1; position: relative; transition: all 0.3s; cursor: pointer; }
        .intel-bar:hover { background: linear-gradient(to top, rgba(139,92,246,0.4), rgba(139,92,246,0.8)); }
        .intel-bar-label { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: #888; white-space: nowrap; }
        .intel-bar-val { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; color: #a78bfa; font-weight: 600; }
        .intel-donut-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .intel-donut-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #ccc; }
        .intel-donut-dot { width: 10px; height: 10px; border-radius: 50%; }

        /* Unified checkbox styling */
        .intel-select-all, .intel-row-check,
        input[type="checkbox"] {
            accent-color: #8b5cf6;
            cursor: pointer;
        }
        .intel-select-all { width: 16px; height: 16px; }
        .intel-row-check { width: 14px; height: 14px; }

        /* ===== Phase 5: Column Resize Handles ===== */
        .intel-table th,
        .outreach-inbox-table th,
        .outreach-queue-table th,
        .errors-table th,
        .process-table th {
            position: relative;
        }
        .col-resize-handle {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 5px;
            cursor: col-resize;
            background: transparent;
            z-index: 10;
            transition: background 0.15s;
        }
        .col-resize-handle:hover,
        .col-resize-handle.active {
            background: rgba(139,92,246,0.4);
        }

/* ===== Activity Calendar Grid ===== */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.cal-cell {
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    min-height: 50px;
    transition: all 0.2s;
    cursor: default;
}
.cal-cell:hover { transform: scale(1.05); }
.cal-cell.today { border: 1px solid rgba(139,92,246,0.5); }
.cal-day { font-size: 9px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
.cal-date { font-size: 14px; font-weight: 600; color: #e2e8f0; margin: 2px 0; }
.cal-count { font-size: 10px; color: #22c55e; font-weight: 700; }

/* ===== Inline Header Filter Dropdowns ===== */
.th-filter-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 8px;
    color: #64748b;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.2s;
}
.th-filter-icon:hover { color: #a78bfa; }
.th-filter-icon.active { color: #a78bfa; }
.th-filter-dropdown {
    background: #1e1b2e;
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    font-size: 12px;
}
.thf-item {
    padding: 6px 12px;
    cursor: pointer;
    color: #cbd5e1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.thf-item:hover { background: rgba(139,92,246,0.15); }
.thf-check { width: 14px; font-size: 10px; color: #a78bfa; }

/* ============================================= */
/* OUTREACH TAB - NEW STRUCTURE (auto-generated) */
/* ============================================= */
/* ===== OUTREACH TAB - NEW STRUCTURE ===== */

/* Sub-tab nav (inherits .dash-nav, .dash-btn from existing) */

/* ---- Campaigns Sub-tab ---- */
.outreach-group-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.outreach-group-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.outreach-group-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(139,92,246,0.3);
    transform: translateY(-1px);
}
.outreach-group-card.active {
    border-color: rgba(139,92,246,0.6);
    background: rgba(139,92,246,0.08);
}
.outreach-group-card .ogc-name {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 10px;
}
.outreach-group-card .ogc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.outreach-group-card .ogc-stat {
    text-align: center;
}
.outreach-group-card .ogc-stat-num {
    font-size: 16px;
    font-weight: 700;
    display: block;
}
.outreach-group-card .ogc-stat-label {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.outreach-group-card .ogc-bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.outreach-group-card .ogc-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    transition: width 0.4s;
}
.outreach-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.outreach-campaign-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.outreach-campaign-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(34,197,94,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.outreach-campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.outreach-campaign-card.template-dewhales::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.outreach-campaign-card.template-crypto_squad::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.outreach-campaign-card.template-fundraiser::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.outreach-campaign-card.template-vip::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.occ-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.occ-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.occ-template-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.occ-template-badge.dewhales { background: rgba(139,92,246,0.2); color: #a78bfa; }
.occ-template-badge.crypto_squad { background: rgba(59,130,246,0.2); color: #60a5fa; }
.occ-template-badge.fundraiser { background: rgba(34,197,94,0.2); color: #4ade80; }
.occ-template-badge.vip { background: rgba(245,158,11,0.2); color: #fbbf24; }

.occ-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.occ-stat {
    text-align: center;
    padding: 10px 4px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
}
.occ-stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
}
.occ-stat-label {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.occ-reply-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.occ-reply-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.occ-reply-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 0.5s ease;
}
.occ-reply-pct {
    font-size: 13px;
    font-weight: 700;
    color: #22c55e;
    min-width: 40px;
    text-align: right;
}

/* Queue Table */
.outreach-queue-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}
.outreach-queue-section h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.outreach-queue-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.outreach-queue-table thead {
    background: rgba(255,255,255,0.04);
    position: sticky;
    top: 0;
    z-index: 2;
}
.outreach-queue-table th {
    padding: 10px 12px;
    text-align: left;
    color: #94a3b8;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.outreach-queue-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: #cbd5e1;
}
.outreach-queue-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.outreach-queue-empty {
    text-align: center;
    padding: 40px 20px;
    color: #4b5563;
}
.outreach-queue-empty .empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Download CSV Dropdown */
.outreach-csv-dropdown {
    position: relative;
    display: inline-block;
}
.outreach-csv-btn {
    padding: 10px 20px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 10px;
    color: #86efac;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.outreach-csv-btn:hover {
    background: rgba(34,197,94,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.15);
}
.outreach-csv-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 6px;
    min-width: 220px;
    z-index: 50;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.outreach-csv-menu.show { display: block; }
.outreach-csv-menu a {
    display: block;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.outreach-csv-menu a:hover {
    background: rgba(34,197,94,0.12);
    color: #86efac;
}
.outreach-csv-menu a small {
    display: block;
    color: #4b5563;
    font-size: 10px;
    margin-top: 2px;
}

/* ---- Bot Health Sub-tab ---- */
.bot-fleet-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.03));
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.bot-fleet-summary .fleet-stat {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
}
.bot-fleet-summary .fleet-stat .fleet-num {
    color: #22c55e;
    font-size: 18px;
    font-weight: 800;
}
.bot-fleet-summary .fleet-stat .fleet-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
.bot-fleet-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.08);
}

.bot-health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.bot-health-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}
.bot-health-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.bot-health-card.status-ok {
    border-left: 3px solid #22c55e;
}
.bot-health-card.status-rate_limited {
    border-left: 3px solid #f59e0b;
}
.bot-health-card.status-flood {
    border-left: 3px solid #ef4444;
}
.bot-health-card.status-offline {
    border-left: 3px solid #6b7280;
}

.bhc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.bhc-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
}
.bhc-username {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.bhc-status-badge {
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bhc-status-badge.ok { background: rgba(34,197,94,0.2); color: #22c55e; }
.bhc-status-badge.rate_limited { background: rgba(245,158,11,0.2); color: #f59e0b; }
.bhc-status-badge.flood { background: rgba(239,68,68,0.2); color: #ef4444; }
.bhc-status-badge.offline { background: rgba(107,114,128,0.2); color: #9ca3af; }

.bhc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.bhc-stat {
    text-align: center;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}
.bhc-stat-num {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}
.bhc-stat-label {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
}

.bhc-meta {
    font-size: 11px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bhc-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bhc-meta-value {
    color: #94a3b8;
}
.bhc-error {
    color: #f87171;
    font-size: 11px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(239,68,68,0.08);
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Message History Sub-tab ---- */
.outreach-inbox-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.outreach-inbox-filters select,
.outreach-inbox-filters input {
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    transition: all 0.2s;
}
.outreach-inbox-filters select:focus,
.outreach-inbox-filters input:focus {
    outline: none;
    border-color: rgba(34,197,94,0.4);
    box-shadow: 0 0 0 2px rgba(34,197,94,0.1);
}
.outreach-inbox-filters select option { background: #1a1a2e; }
.outreach-inbox-filters label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.outreach-inbox-table-wrap {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}
.outreach-inbox-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.outreach-inbox-table thead {
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.02));
    position: sticky;
    top: 0;
    z-index: 2;
}
.outreach-inbox-table th {
    padding: 11px 12px;
    text-align: left;
    color: #94a3b8;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 2px solid rgba(34,197,94,0.1);
    cursor: default;
    white-space: nowrap;
}
.outreach-inbox-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    vertical-align: middle;
    color: #cbd5e1;
}
.outreach-inbox-table tr {
    transition: all 0.15s;
    cursor: pointer;
}
.outreach-inbox-table tbody tr:hover {
    background: rgba(34,197,94,0.04);
}
.outreach-inbox-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.01);
}
.outreach-inbox-table tbody tr:nth-child(even):hover {
    background: rgba(34,197,94,0.04);
}
.outreach-inbox-table tbody tr.expanded {
    background: rgba(34,197,94,0.06);
}
.outreach-inbox-table .msg-expand-row td {
    padding: 0;
    border-bottom: 1px solid rgba(34,197,94,0.08);
}
.outreach-msg-expanded {
    padding: 16px 20px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.outreach-msg-expanded .msg-full-text {
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}
.outreach-msg-expanded .msg-reply-text {
    font-size: 13px;
    line-height: 1.6;
    color: #86efac;
    padding: 12px;
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.12);
    border-radius: 8px;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}
.outreach-msg-expanded .msg-reply-label {
    font-size: 10px;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 10px;
}

.outreach-inbox-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}
.outreach-inbox-status.sent { background: rgba(59,130,246,0.2); color: #60a5fa; }
.outreach-inbox-status.replied { background: rgba(34,197,94,0.2); color: #22c55e; }

.outreach-inbox-sender {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    color: #94a3b8;
}

.outreach-inbox-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}
.outreach-inbox-pagination .page-info {
    font-size: 12px;
    color: #64748b;
}
.outreach-inbox-pagination .page-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}
.outreach-inbox-pagination .page-btns button {
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.outreach-inbox-pagination .page-btns button:hover:not(:disabled) {
    background: rgba(34,197,94,0.15);
    color: #86efac;
    border-color: rgba(34,197,94,0.2);
}
.outreach-inbox-pagination .page-btns button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.outreach-inbox-pagination .page-btns .page-current {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Enreach Replies Section */
.enreach-replies-section {
    margin-top: 24px;
    padding: 20px;
    background: rgba(139,92,246,0.04);
    border: 1px solid rgba(139,92,246,0.1);
    border-radius: 14px;
}
.enreach-replies-section h3 {
    font-size: 14px;
    color: #a78bfa;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.enreach-reply-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.15s;
}
.enreach-reply-item:hover {
    background: rgba(139,92,246,0.06);
}
.enreach-reply-user {
    font-weight: 600;
    font-size: 13px;
    color: #c4b5fd;
    min-width: 120px;
}
.enreach-reply-campaign {
    font-size: 11px;
    color: #64748b;
    flex: 1;
}
.enreach-reply-time {
    font-size: 11px;
    color: #4b5563;
}

/* ---- Analytics Sub-tab ---- */
.outreach-analytics-time-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}
.outreach-analytics-time-selector label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.outreach-analytics-time-selector select {
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.outreach-analytics-time-selector select option { background: #1a1a2e; }

.outreach-analytics-top-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .outreach-analytics-top-stats { grid-template-columns: repeat(2, 1fr); }
}
.oa-stat-card {
    text-align: center;
    padding: 24px 16px;
    background: rgba(34,197,94,0.06);
    border: 1px solid rgba(34,197,94,0.12);
    border-radius: 14px;
    transition: all 0.3s;
}
.oa-stat-card:hover {
    background: rgba(34,197,94,0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34,197,94,0.1);
}
.oa-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 4px;
}
.oa-stat-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.outreach-analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .outreach-analytics-grid { grid-template-columns: 1fr; }
}

.oa-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
}
.oa-card.full-width {
    grid-column: 1 / -1;
}
.oa-card h3 {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rate by campaign / bot tables */
.oa-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.oa-rate-table th {
    padding: 10px 12px;
    text-align: left;
    color: #64748b;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.oa-rate-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: #cbd5e1;
}
.oa-rate-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.oa-rate-bar-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.oa-rate-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.oa-rate-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.oa-rate-bar-fill.green { background: linear-gradient(90deg, #22c55e, #4ade80); }
.oa-rate-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.oa-rate-bar-fill.purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.oa-rate-bar-fill.yellow { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.oa-rate-pct {
    font-size: 12px;
    font-weight: 700;
    min-width: 36px;
    text-align: right;
}

/* Daily volume chart */
.oa-daily-chart-wrap {
    position: relative;
    height: 220px;
    width: 100%;
}
.oa-daily-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Loading / empty states */
.outreach-loading {
    text-align: center;
    padding: 60px 20px;
    color: #4b5563;
}
.outreach-loading .loading-spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(34,197,94,0.15);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: outreachSpin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes outreachSpin {
    to { transform: rotate(360deg); }
}
.outreach-error {
    text-align: center;
    padding: 40px 20px;
    color: #f87171;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 700px) {
    .outreach-campaigns-grid { grid-template-columns: 1fr; }
    .bot-health-grid { grid-template-columns: 1fr; }
    .occ-stats { grid-template-columns: repeat(2, 1fr); }
    .bhc-stats { grid-template-columns: repeat(2, 1fr); }
    .outreach-analytics-top-stats { grid-template-columns: 1fr 1fr; }
    .outreach-analytics-grid { grid-template-columns: 1fr; }
    .bot-fleet-summary { flex-direction: column; gap: 8px; }
    .bot-fleet-divider { display: none; }
}

/* ============================================= */
/* HEALTH TAB - ENHANCED (auto-generated)        */
/* ============================================= */
/* ======================== */
/* HEALTH ERRORS TAB        */
/* ======================== */

.errors-tab-container {
    width: 100%;
}

.errors-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.errors-filter-bar select,
.errors-filter-bar input {
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    min-width: 140px;
}

.errors-filter-bar select option {
    background: #1a1a2e;
}

.errors-filter-bar input::placeholder {
    color: #666;
}

.errors-filter-bar .errors-search {
    flex: 1;
    min-width: 200px;
}

.errors-filter-bar .errors-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.errors-filter-bar .errors-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.errors-filter-bar .errors-toggle.active {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.3);
    color: #4ade80;
}

.errors-table-wrap {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.errors-table-scroll {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.errors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.errors-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.errors-table th {
    background: rgba(15, 23, 42, 0.95);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.errors-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}

.errors-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.errors-table .err-time-cell {
    color: #64748b;
    font-family: 'SF Mono', 'JetBrains Mono', monospace;
    font-size: 11px;
    white-space: nowrap;
}

.err-level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.err-level-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.err-level-badge.warn {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.err-level-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.err-level-badge.critical {
    background: rgba(220, 38, 38, 0.25);
    color: #dc2626;
}

.err-level-badge.debug {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.err-category-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.err-category-badge.network {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.err-category-badge.auth {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.err-category-badge.rate_limit {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.err-category-badge.resource {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.err-category-badge.application {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.err-category-badge.unknown {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

.errors-table .err-service-cell {
    color: #94a3b8;
    font-size: 12px;
}

.errors-table .err-process-cell {
    color: #64748b;
    font-size: 12px;
    font-family: 'SF Mono', monospace;
}

.errors-table .err-location-cell {
    color: #64748b;
    font-size: 11px;
    font-family: 'SF Mono', monospace;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.errors-table .err-message-cell {
    color: #cbd5e1;
    font-size: 12px;
    max-width: 400px;
    word-break: break-word;
    line-height: 1.5;
}

.err-occurrence-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-weight: 600;
}

.errors-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: #64748b;
    border-radius: 0 0 12px 12px;
}

.errors-status-bar .errors-counts {
    display: flex;
    gap: 16px;
}

.errors-status-bar .err-count-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.errors-status-bar .err-count-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.errors-status-bar .err-count-dot.error { background: #ef4444; }
.errors-status-bar .err-count-dot.warn { background: #f59e0b; }
.errors-status-bar .err-count-dot.info { background: #3b82f6; }


/* ======================== */
/* HEALTH LOGS TAB          */
/* ======================== */

.logs-tab-container {
    width: 100%;
}

.logs-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.logs-source-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.logs-source-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
}

.logs-source-btn.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.logs-controls-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.logs-severity-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.logs-severity-cb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.logs-severity-cb:hover {
    background: rgba(255,255,255,0.05);
}

.logs-severity-cb input[type="checkbox"] {
    accent-color: #4ade80;
}

.logs-severity-cb.debug { color: #94a3b8; }
.logs-severity-cb.info { color: #3b82f6; }
.logs-severity-cb.warn { color: #f59e0b; }
.logs-severity-cb.error { color: #ef4444; }

.logs-auto-scroll-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.logs-auto-scroll-btn.active {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.logs-viewer {
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.logs-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logs-viewer-header .logs-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.logs-viewer-header .logs-actions {
    display: flex;
    gap: 8px;
}

.logs-viewer-header .logs-actions button {
    padding: 6px 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.logs-viewer-header .logs-actions button:hover {
    background: rgba(74,222,128,0.2);
    color: #4ade80;
}

.logs-viewer-body {
    height: calc(100vh - 340px);
    min-height: 400px;
    overflow-y: auto;
    padding: 12px 16px;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.7;
}

.logs-viewer-body .log-entry {
    padding: 2px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.logs-viewer-body .log-entry.debug {
    color: #64748b;
}

.logs-viewer-body .log-entry.info {
    color: #e2e8f0;
}

.logs-viewer-body .log-entry.warn {
    color: #fbbf24;
}

.logs-viewer-body .log-entry.error {
    color: #f87171;
}

.logs-viewer-body .log-entry .log-ts {
    color: #475569;
    margin-right: 8px;
}

.logs-viewer-body .log-entry .log-lvl {
    font-weight: 600;
    margin-right: 8px;
}

.logs-viewer-body .log-entry.debug .log-lvl { color: #64748b; }
.logs-viewer-body .log-entry.info .log-lvl { color: #3b82f6; }
.logs-viewer-body .log-entry.warn .log-lvl { color: #f59e0b; }
.logs-viewer-body .log-entry.error .log-lvl { color: #ef4444; }

.logs-viewer-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: #475569;
}

.logs-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

.logs-live-dot.paused {
    background: #f59e0b;
    animation: none;
}


/* ======================== */
/* HEALTH SYSTEM ENHANCEMENTS */
/* ======================== */

.process-table-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.process-table-section h4 {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.process-table-section h4 button {
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.process-table-section h4 button:hover {
    background: rgba(74,222,128,0.2);
    color: #4ade80;
}

.process-table-wrap {
    max-height: 50vh;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.process-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.process-table thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.process-table th {
    background: rgba(15, 23, 42, 0.9);
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.process-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #94a3b8;
}

.process-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.process-table .proc-pid {
    font-family: 'SF Mono', monospace;
    color: #64748b;
    font-size: 11px;
}

.process-table .proc-cmd {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.proc-cpu-high { color: #ef4444 !important; font-weight: 600; }
.proc-cpu-med { color: #f59e0b !important; font-weight: 600; }
.proc-cpu-low { color: #4ade80 !important; }

.proc-kill-btn {
    padding: 3px 8px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
    color: #ef4444;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.proc-kill-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Memory collapsible process list */
.mem-proc-collapsible {
    margin-top: 10px;
}

.mem-proc-item {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    margin-bottom: 4px;
    overflow: hidden;
}

.mem-proc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}

.mem-proc-header:hover {
    background: rgba(255,255,255,0.03);
}

.mem-proc-header .mem-proc-name {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mem-proc-header .mem-proc-rss {
    color: #4ade80;
    font-weight: 600;
    font-size: 12px;
}

.mem-proc-header .mem-proc-expand {
    color: #64748b;
    font-size: 10px;
    transition: transform 0.2s;
}

.mem-proc-children {
    display: none;
    padding: 4px 12px 8px 28px;
    font-size: 11px;
}

.mem-proc-children.expanded {
    display: block;
}

.mem-proc-child {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #64748b;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.mem-proc-child:last-child {
    border-bottom: none;
}

/* Storage file detail modal */
.file-detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.file-detail-modal {
    background: linear-gradient(135deg, #1e293b, #1a1f35);
    border-radius: 12px;
    width: 500px;
    max-width: 90vw;
    border: 1px solid rgba(74,222,128,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.file-detail-modal .fdm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.file-detail-modal .fdm-header h3 {
    font-size: 15px;
    color: #e2e8f0;
}

.file-detail-modal .fdm-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.file-detail-modal .fdm-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.file-detail-modal .fdm-body {
    padding: 20px;
}

.file-detail-modal .fdm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}

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

.file-detail-modal .fdm-row .fdm-label {
    color: #64748b;
}

.file-detail-modal .fdm-row .fdm-value {
    color: #4ade80;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    text-align: right;
    max-width: 300px;
    word-break: break-all;
}


/* ======================== */
/* HEALTH AGENT ENHANCEMENTS */
/* ======================== */

.memory-files-section {
    margin-top: 20px;
}

.memory-files-section h4 {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.memory-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.memory-file-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.memory-file-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(74,222,128,0.25);
    transform: translateY(-1px);
}

.memory-file-card .mfc-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.memory-file-card .mfc-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
}

.memory-file-card .mfc-preview {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
    max-height: 54px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 6px;
    font-family: 'SF Mono', monospace;
    word-break: break-word;
}

/* Memory editor modal */
.memory-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.memory-editor-modal {
    background: linear-gradient(135deg, #1e293b, #1a1f35);
    border-radius: 16px;
    width: 800px;
    max-width: 95vw;
    max-height: 85vh;
    border: 1px solid rgba(74,222,128,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.memory-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.memory-editor-header h3 {
    font-size: 15px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-editor-header .mem-editor-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.memory-editor-header .mem-editor-close:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.memory-editor-body {
    flex: 1;
    padding: 16px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.memory-editor-body .mem-editor-info {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.memory-editor-textarea {
    flex: 1;
    width: 100%;
    min-height: 350px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 16px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.memory-editor-textarea:focus {
    border-color: rgba(74, 222, 128, 0.4);
}

.memory-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.memory-editor-footer button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mem-editor-cancel {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
}

.mem-editor-cancel:hover {
    background: rgba(255,255,255,0.15);
}

.mem-editor-save {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: none;
    color: #000;
    font-weight: 600;
}

.mem-editor-save:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(74,222,128,0.3);
}

/* Schedule / calendar placeholder */
.schedule-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 20px;
}

.schedule-card h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 8px;
}

.schedule-card .schedule-placeholder {
    color: #475569;
    font-size: 13px;
    padding: 20px;
}


/* ======================== */
/* NETWORK ENHANCEMENTS     */
/* ======================== */

.latency-flow {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.latency-flow h4 {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 80px;
}

.flow-node .flow-icon {
    font-size: 20px;
}

.flow-node .flow-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-node .flow-latency {
    font-size: 12px;
    color: #4ade80;
    font-weight: 600;
}

.flow-arrow {
    color: #475569;
    font-size: 18px;
    padding: 0 8px;
}

.ai-model-indicator {
    margin-top: 15px;
    padding: 12px 16px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-model-indicator .model-icon {
    font-size: 18px;
}

.ai-model-indicator .model-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-model-indicator .model-name {
    font-size: 14px;
    color: #c084fc;
    font-weight: 600;
}


/* ======================== */
/* COSTS ENHANCEMENTS       */
/* ======================== */

.cost-service-model {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    font-style: italic;
}

.cost-note {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid #3b82f6;
    border-radius: 0 8px 8px 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}


/* Responsive for new elements */
@media (max-width: 900px) {
    .errors-filter-bar {
        flex-direction: column;
    }
    .errors-filter-bar select,
    .errors-filter-bar input {
        width: 100%;
    }
    .logs-source-tabs {
        flex-wrap: wrap;
    }
    .memory-files-grid {
        grid-template-columns: 1fr;
    }
    .memory-editor-modal {
        width: 98vw;
    }
    .flow-diagram {
        flex-direction: column;
        gap: 8px;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* =============================== */
/* INSTAGRAM SCRAPER TAB            */
/* =============================== */

.ig-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

.ig-header h1 {
    font-size: 22px;
    color: #e2e8f0;
    margin: 0;
}

.ig-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ig-status-badge.connected {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.ig-status-badge.disconnected {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

.ig-status-badge.checking {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.3);
}

/* Form Card */
.ig-form-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.ig-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ig-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ig-form-group label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ig-form-group select,
.ig-form-group input,
.ig-form-group textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
}

.ig-form-group textarea {
    resize: vertical;
    min-height: 40px;
}

.ig-form-group select:focus,
.ig-form-group input:focus,
.ig-form-group textarea:focus {
    outline: none;
    border-color: rgba(139,92,246,0.5);
}

.ig-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ig-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.ig-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ig-btn-sm {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

.ig-btn-sm:hover {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.ig-btn-sm.outline {
    background: transparent;
    border-color: rgba(255,255,255,0.15);
}

.ig-btn-sm.danger {
    color: #ef4444;
    border-color: rgba(239,68,68,0.3);
}

.ig-btn-sm.danger:hover {
    background: rgba(239,68,68,0.1);
}

/* Section */
.ig-section {
    margin-bottom: 20px;
}

.ig-section h3 {
    font-size: 15px;
    color: #e2e8f0;
    margin: 0;
}

/* Runs List */
.ig-runs-list {
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.ig-run-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}

.ig-run-row:hover {
    background: rgba(255,255,255,0.03);
}

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

.ig-run-status {
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    min-width: 72px;
    text-align: center;
}

.ig-run-status.succeeded {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
}

.ig-run-status.failed {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.ig-run-status.running, .ig-run-status.ready {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    animation: igPulse 1.5s infinite;
}

.ig-run-status.aborted {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
}

@keyframes igPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ig-run-meta {
    display: flex;
    gap: 16px;
    flex: 1;
    font-size: 12px;
    color: #64748b;
}

.ig-run-actions {
    display: flex;
    gap: 6px;
}

/* Results Panel */
.ig-results-panel {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-top: 16px;
    overflow: hidden;
}

.ig-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ig-results-header h3 {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;
}

.ig-results-content {
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
}

/* Results Table */
.ig-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ig-results-table th {
    background: rgba(0,0,0,0.3);
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ig-results-table td {
    padding: 6px 10px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.ig-results-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.ig-results-table a {
    color: #8b5cf6;
    text-decoration: none;
}

.ig-results-table a:hover {
    text-decoration: underline;
}

.ig-caption {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Card */
.ig-profile-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.ig-profile-pic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.ig-profile-header strong {
    color: #e2e8f0;
    font-size: 14px;
}

.ig-profile-header span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.ig-verified {
    display: inline-block !important;
    background: rgba(59,130,246,0.2);
    color: #3b82f6;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 10px;
    margin-left: 6px;
}

.ig-profile-bio {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.ig-profile-stats {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #64748b;
}

.ig-profile-stats strong {
    color: #e2e8f0;
}

.ig-profile-card a {
    color: #8b5cf6;
    font-size: 12px;
}

/* JSON view */
.ig-json-view {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 16px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.5;
    overflow-x: auto;
    max-height: 500px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Empty state */
.ig-empty {
    text-align: center;
    color: #475569;
    padding: 24px;
    font-size: 13px;
}

.ig-loading {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
}

.ig-error {
    text-align: center;
    color: #ef4444;
    padding: 24px;
}

/* Toast */
.ig-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    z-index: 10000;
    animation: igSlideIn 0.3s ease-out;
}

.ig-toast.success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.ig-toast.error {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}

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

/* Responsive */
@media (max-width: 768px) {
    .ig-form-row {
        flex-direction: column;
    }
    .ig-form-group {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
    .ig-run-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .ig-run-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
}

