/**
 * Whats Spy Admin Dashboard Styles
 * Extracted from admin.html for better performance and maintainability
 * Auto-generated - do not edit manually unless you also update the source
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --bg-primary: #050508;
            --bg-secondary: #0a0a0f;
            --bg-tertiary: #12121a;
            --bg-card: rgba(15, 15, 23, 0.8);
            --bg-hover: #1a1a25;
            --bg-glass: rgba(20, 20, 30, 0.6);
            --accent: #00d4aa;
            --accent-light: #00ffcc;
            --accent-dark: #00a080;
            --accent-glow: rgba(0, 212, 170, 0.12);
            --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #00a080 50%, #007a60 100%);
            --success: #00e676;
            --success-glow: rgba(0, 230, 118, 0.15);
            --warning: #ffab00;
            --warning-glow: rgba(255, 171, 0, 0.15);
            --danger: #ff5252;
            --danger-glow: rgba(255, 82, 82, 0.15);
            --info: #448aff;
            --info-glow: rgba(68, 138, 255, 0.15);
            --purple: #b388ff;
            --purple-glow: rgba(179, 136, 255, 0.15);
            --cyan: #18ffff;
            --text-primary: #ffffff;
            --text-secondary: #b0b0c0;
            --text-muted: #606075;
            --border: rgba(255, 255, 255, 0.06);
            --border-light: rgba(255, 255, 255, 0.03);
            --border-accent: rgba(0, 212, 170, 0.3);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 18px;
            --radius-xl: 28px;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
            --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.15);
        }
        
        /* Light Theme */
        [data-theme="light"] {
            --bg-primary: #f0f4f8;
            --bg-secondary: #ffffff;
            --bg-tertiary: #e8ecf0;
            --bg-card: #ffffff;
            --bg-hover: #dce0e5;
            --bg-glass: rgba(255, 255, 255, 0.95);
            --accent: #059669;
            --accent-light: #10b981;
            --accent-dark: #047857;
            --accent-glow: rgba(5, 150, 105, 0.12);
            --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
            --success: #059669;
            --success-glow: rgba(5, 150, 105, 0.12);
            --warning: #d97706;
            --warning-glow: rgba(217, 119, 6, 0.12);
            --danger: #dc2626;
            --danger-glow: rgba(220, 38, 38, 0.12);
            --info: #2563eb;
            --info-glow: rgba(37, 99, 235, 0.12);
            --purple: #7c3aed;
            --purple-glow: rgba(124, 58, 237, 0.12);
            --cyan: #0891b2;
            --text-primary: #111827;
            --text-secondary: #374151;
            --text-muted: #6b7280;
            --border: rgba(0, 0, 0, 0.12);
            --border-light: rgba(0, 0, 0, 0.06);
            --border-accent: rgba(5, 150, 105, 0.4);
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
            --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.15);
        }
        
        [data-theme="light"] body {
            background: var(--bg-primary);
            background-image: none;
        }
        
        [data-theme="light"] .sidebar {
            background: #ffffff;
            border-right: 1px solid var(--border);
            box-shadow: var(--shadow-md);
        }
        
        [data-theme="light"] .login-logo h1,
        [data-theme="light"] .sidebar-logo span {
            background: var(--text-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        [data-theme="light"] .nav-item { color: var(--text-secondary); }
        [data-theme="light"] .nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
        [data-theme="light"] .nav-item.active { background: var(--accent-glow); color: var(--accent); border: 1px solid var(--border-accent); }
        
        [data-theme="light"] .header { background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--border); }
        
        [data-theme="light"] .stat-card { background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
        [data-theme="light"] .stat-card:hover { box-shadow: var(--shadow-md); }
        [data-theme="light"] .stat-card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent); }
        
        [data-theme="light"] .stat-value { color: var(--text-primary); text-shadow: none; }
        [data-theme="light"] .stat-value.green { color: var(--success); }
        [data-theme="light"] .stat-value.blue { color: var(--info); }
        [data-theme="light"] .stat-value.yellow { color: var(--warning); }
        [data-theme="light"] .stat-value.purple { color: var(--purple); }
        [data-theme="light"] .stat-value.red { color: var(--danger); }
        
        [data-theme="light"] .chart-card,
        [data-theme="light"] .card,
        [data-theme="light"] .data-panel,
        [data-theme="light"] .config-box,
        [data-theme="light"] .funnel-card { background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
        [data-theme="light"] .card::before,
        [data-theme="light"] .chart-card::before,
        [data-theme="light"] .funnel-card::before { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.02), transparent); }
        
        [data-theme="light"] .card-header,
        [data-theme="light"] .panel-header { background: var(--bg-tertiary); border-bottom: 1px solid var(--border); }
        
        [data-theme="light"] .data-table th { background: var(--bg-tertiary); color: var(--text-secondary); }
        [data-theme="light"] .data-table td { color: var(--text-secondary); border-bottom: 1px solid var(--border-light); }
        [data-theme="light"] .data-table tr:hover td { background: var(--bg-tertiary); }
        
        [data-theme="light"] .protocol-code { background: var(--bg-tertiary); color: var(--accent); border: 1px solid var(--border); }
        
        [data-theme="light"] .btn-primary { color: #ffffff; }
        [data-theme="light"] .btn-secondary { background: #ffffff; border: 1px solid var(--border); color: var(--text-secondary); }
        [data-theme="light"] .btn-secondary:hover { background: var(--bg-tertiary); color: var(--text-primary); }
        
        [data-theme="light"] .form-input,
        [data-theme="light"] .filter-input { background: #ffffff; border: 1px solid var(--border); color: var(--text-primary); }
        [data-theme="light"] .form-input:focus,
        [data-theme="light"] .filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
        
        [data-theme="light"] .refund-info-box,
        [data-theme="light"] .refund-description-box { background: var(--bg-tertiary); border: 1px solid var(--border); }
        
        [data-theme="light"] .modal-content { background: #ffffff; border: 1px solid var(--border); }
        [data-theme="light"] .modal-header { background: var(--bg-tertiary); }
        [data-theme="light"] .modal-footer { background: var(--bg-tertiary); }
        
        [data-theme="light"] .toast { background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
        
        [data-theme="light"] .funnel-bar { box-shadow: var(--shadow-sm); }
        [data-theme="light"] .funnel-step-name,
        [data-theme="light"] .funnel-step-value { color: #ffffff; }
        
        [data-theme="light"] .recovery-card { background: linear-gradient(135deg, rgba(217, 119, 6, 0.12), rgba(220, 38, 38, 0.06)); border: 1px solid rgba(217, 119, 6, 0.3); }
        [data-theme="light"] .recovery-stat { background: rgba(255, 255, 255, 0.8); border: 1px solid var(--border); }
        [data-theme="light"] .recovery-stat-value { color: var(--warning); }
        
        [data-theme="light"] .quick-action { background: #ffffff; border: 1px solid var(--border); }
        [data-theme="light"] .quick-action:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
        
        [data-theme="light"] .period-btn { background: #ffffff; border: 1px solid var(--border); color: var(--text-muted); }
        [data-theme="light"] .period-btn:hover { background: var(--bg-tertiary); }
        [data-theme="light"] .period-btn.active { background: var(--accent-gradient); color: #ffffff; }
        
        [data-theme="light"] .theme-toggle { background: #ffffff; border: 1px solid var(--border); }
        [data-theme="light"] .theme-toggle-track { background: var(--bg-tertiary); }
        
        [data-theme="light"] .pagination { background: var(--bg-tertiary); }
        [data-theme="light"] .page-btn { background: #ffffff; }
        
        [data-theme="light"] .login-wrapper { background: var(--bg-primary); }
        [data-theme="light"] .login-card { background: #ffffff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
        [data-theme="light"] .login-card::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.3; }
        
        /* Light theme - Modal buttons */
        [data-theme="light"] .modal-btn { font-weight: 700; }
        [data-theme="light"] .modal-btn-handling { background: var(--purple); color: #ffffff; border: none; }
        [data-theme="light"] .modal-btn-handling:hover { background: #6d28d9; }
        [data-theme="light"] .modal-btn-processing { background: var(--info); color: #ffffff; border: none; }
        [data-theme="light"] .modal-btn-processing:hover { background: #1d4ed8; }
        [data-theme="light"] .modal-btn-reject { background: var(--danger); color: #ffffff; border: none; }
        [data-theme="light"] .modal-btn-reject:hover { background: #b91c1c; }
        [data-theme="light"] .modal-btn-approve { background: var(--success); color: #ffffff; border: none; }
        [data-theme="light"] .modal-btn-approve:hover { background: #047857; }
        
        /* Light theme - Action buttons in table */
        [data-theme="light"] .action-btn-view { background: var(--bg-tertiary); border: 1px solid var(--border); }
        [data-theme="light"] .action-btn-approve { background: var(--success); color: #ffffff; }
        [data-theme="light"] .action-btn-reject { background: var(--danger); color: #ffffff; }
        
        /* Light theme - Status badges with better contrast */
        [data-theme="light"] .status-pending { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
        [data-theme="light"] .status-handling { background: #ede9fe; color: #5b21b6; border: 1px solid #8b5cf6; }
        [data-theme="light"] .status-processing { background: #dbeafe; color: #1e40af; border: 1px solid #3b82f6; }
        [data-theme="light"] .status-approved { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
        [data-theme="light"] .status-rejected { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
        
        /* Light theme - Badges */
        [data-theme="light"] .badge-new { background: #dbeafe; color: #1e40af; border: 1px solid #3b82f6; }
        [data-theme="light"] .badge-contacted { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
        [data-theme="light"] .badge-converted { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
        [data-theme="light"] .badge-lost { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
        [data-theme="light"] .badge-approved { background: #d1fae5; color: #065f46; border: 1px solid #10b981; }
        [data-theme="light"] .badge-pending { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
        [data-theme="light"] .badge-cancelled { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
        
        /* Light theme - Tags */
        [data-theme="light"] .tag { background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); }
        [data-theme="light"] .tag.hot { background: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
        [data-theme="light"] .tag.warm { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
        [data-theme="light"] .tag.cold { background: #dbeafe; color: #1e40af; border: 1px solid #3b82f6; }
        [data-theme="light"] .tag.abandoned { background: #ede9fe; color: #5b21b6; border: 1px solid #8b5cf6; }
        
        /* Light theme - Links */
        [data-theme="light"] a { color: var(--accent); }
        [data-theme="light"] .data-table a { color: var(--accent); font-weight: 600; }
        [data-theme="light"] .data-table .mono { color: var(--accent); }
        
        /* Light theme - Nav badges */
        [data-theme="light"] .nav-item-badge { background: var(--accent); color: #ffffff; }
        [data-theme="light"] .nav-item-badge.warning { background: var(--warning); color: #ffffff; }
        [data-theme="light"] .nav-item-badge.danger { background: var(--danger); color: #ffffff; }
        
        /* Light theme - Stat icons */
        [data-theme="light"] .stat-icon { border: 1px solid var(--border); }
        [data-theme="light"] .stat-icon.green { background: #d1fae5; }
        [data-theme="light"] .stat-icon.blue { background: #dbeafe; }
        [data-theme="light"] .stat-icon.yellow { background: #fef3c7; }
        [data-theme="light"] .stat-icon.purple { background: #ede9fe; }
        [data-theme="light"] .stat-icon.red { background: #fee2e2; }
        [data-theme="light"] .stat-icon.orange { background: #ffedd5; }
        
        /* Light theme - Filter buttons */
        [data-theme="light"] .btn-filter-refresh { background: var(--accent); color: #ffffff; border: none; }
        [data-theme="light"] .btn-filter-refresh:hover { background: #047857; }
        
        /* Light theme - URL box */
        [data-theme="light"] .url-box { background: #fef3c7; border: 1px solid #f59e0b; }
        [data-theme="light"] .url-box code { color: #92400e; }
        
        /* Light theme - Template items */
        [data-theme="light"] .template-item { background: #ffffff; border: 1px solid var(--border); }
        [data-theme="light"] .template-item:hover { border-color: var(--accent); }
        [data-theme="light"] .template-item.active { background: #d1fae5; border-color: var(--accent); }
        
        /* Light theme - Journey tags */
        [data-theme="light"] .journey-tag { background: var(--bg-tertiary); color: var(--text-secondary); }
        [data-theme="light"] .journey-tag.completed { background: #d1fae5; color: #065f46; }
        [data-theme="light"] .journey-tag.checkout { background: #fef3c7; color: #92400e; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-primary);
            background-image: 
                radial-gradient(ellipse at 0% 0%, rgba(0, 212, 170, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 100%, rgba(68, 138, 255, 0.03) 0%, transparent 50%);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            letter-spacing: -0.01em;
        }
        
        /* Login */
        .login-wrapper {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: 
                radial-gradient(ellipse at 30% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 80%, rgba(68, 138, 255, 0.06) 0%, transparent 40%),
                var(--bg-primary);
        }
        
        .login-card {
            width: 100%;
            max-width: 440px;
            background: var(--bg-glass);
            backdrop-filter: blur(40px);
            -webkit-backdrop-filter: blur(40px);
            border: 1px solid var(--border);
            border-radius: var(--radius-xl);
            padding: 56px 48px;
            box-shadow: var(--shadow-lg), var(--shadow-glow);
            position: relative;
            overflow: hidden;
        }
        
        .login-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0.5;
        }
        
        .login-header { text-align: center; margin-bottom: 48px; }
        .login-logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
        .login-logo-icon { width: 56px; height: 56px; background: var(--accent-gradient); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3); }
        .login-logo h1 { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
        .login-header p { color: var(--text-muted); font-size: 15px; font-weight: 400; }
        
        .form-group { margin-bottom: 24px; }
        .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
        .form-input { width: 100%; padding: 16px 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 15px; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-glow); background: rgba(0, 0, 0, 0.4); }
        .form-input::placeholder { color: var(--text-muted); }
        
        .btn-primary { width: 100%; padding: 16px 28px; background: var(--accent-gradient); border: none; border-radius: var(--radius-md); color: #000; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.5px; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 212, 170, 0.4); }
        .btn-primary:active { transform: translateY(0); }
        
        .error-message { background: var(--danger-glow); border: 1px solid rgba(255, 82, 82, 0.3); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px; color: var(--danger); font-size: 14px; display: none; backdrop-filter: blur(10px); }
        .error-message.visible { display: block; }
        
        /* Dashboard Layout */
        .dashboard-wrapper { display: none; min-height: 100vh; }
        .dashboard-wrapper.active { display: block; }
        
        .sidebar {
            position: fixed;
            left: 0; top: 0; bottom: 0;
            width: 280px;
            background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            border-right: 1px solid var(--border);
            padding: 28px 20px;
            display: flex;
            flex-direction: column;
            z-index: 100;
            overflow-y: auto;
        }
        
        .sidebar::-webkit-scrollbar { width: 4px; }
        .sidebar::-webkit-scrollbar-track { background: transparent; }
        .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
        
        .sidebar-logo { display: flex; align-items: center; gap: 14px; padding: 0 14px; margin-bottom: 40px; }
        .sidebar-logo-icon { width: 44px; height: 44px; background: var(--accent-gradient); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 8px 24px rgba(0, 212, 170, 0.25); }
        .sidebar-logo span { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
        
        .nav-section { margin-bottom: 32px; }
        .nav-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); padding: 0 14px; margin-bottom: 12px; }
        
        .nav-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-md); color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); margin-bottom: 6px; position: relative; }
        .nav-item:hover { background: rgba(255, 255, 255, 0.03); color: var(--text-primary); }
        .nav-item.active { background: var(--accent-glow); color: var(--accent-light); box-shadow: inset 0 0 0 1px var(--border-accent); }
        .nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0; }
        .nav-item-icon { font-size: 20px; width: 26px; text-align: center; }
        .nav-item-badge { margin-left: auto; background: var(--accent-gradient); color: #000; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
        .nav-item-badge.warning { background: linear-gradient(135deg, var(--warning), #ff8800); }
        .nav-item-badge.danger { background: linear-gradient(135deg, var(--danger), #ff3333); color: #fff; }
        
        .sidebar-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 20px; }
        .user-menu { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
        .user-menu:hover { background: rgba(255, 255, 255, 0.03); }
        .user-avatar { width: 42px; height: 42px; background: linear-gradient(135deg, var(--purple), var(--info)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; box-shadow: 0 4px 16px rgba(179, 136, 255, 0.3); }
        .user-info { flex: 1; }
        .user-name { font-size: 14px; font-weight: 600; }
        .user-role { font-size: 12px; color: var(--text-muted); }
        
        .main-content {
            margin-left: 280px;
            min-height: 100vh;
            min-width: 0;
            overflow-x: hidden;
            max-width: calc(100vw - 280px);
        }
        
        .header {
            position: sticky;
            top: 0;
            background: rgba(5, 5, 8, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            padding: 20px 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            z-index: 50;
            min-width: 0;
        }
        
        .header-title { min-width: 0; flex-shrink: 0; }
        .header-title h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .header-title p { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            min-width: 0;
            justify-content: flex-end;
        }
        /* Filter row and any flex child in header must wrap to avoid overflow */
        .header-actions > div {
            flex-wrap: wrap;
            min-width: 0;
        }
        
        /* Theme Toggle */
        .theme-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 30px; cursor: pointer; transition: all 0.3s; }
        .theme-toggle:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--border-accent); }
        .theme-toggle-track { width: 44px; height: 24px; background: var(--bg-tertiary); border-radius: 12px; position: relative; transition: all 0.3s; border: 1px solid var(--border); }
        .theme-toggle-thumb { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: var(--accent-gradient); border-radius: 50%; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; font-size: 10px; }
        [data-theme="light"] .theme-toggle-thumb { left: 22px; background: linear-gradient(135deg, #ffb300, #ff8f00); }
        .theme-toggle-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
        .theme-toggle-label span { font-size: 16px; }
        
        .btn-secondary { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
        .btn-secondary:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: var(--text-primary); transform: translateY(-1px); }
        .btn-icon { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
        
        /* Reports Page - Clean Design */
        .export-center { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 40px 20px; }
        
        .export-main-card { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 40px; max-width: 520px; width: 100%; position: relative; overflow: hidden; }
        .export-main-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-gradient); }
        
        .export-header { text-align: center; margin-bottom: 32px; }
        .export-header .export-icon { font-size: 48px; margin-bottom: 16px; }
        .export-header h2 { font-size: 24px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
        .export-header p { font-size: 14px; color: var(--text-muted); }
        
        .export-form { display: flex; flex-direction: column; gap: 24px; }
        .export-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
        .export-form-group { display: flex; flex-direction: column; gap: 8px; }
        .export-form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
        
        .export-select, .export-input { width: 100%; padding: 14px 16px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; font-weight: 500; transition: all 0.2s; appearance: none; cursor: pointer; }
        .export-select:focus, .export-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
        .export-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
        
        .export-format-section { display: flex; flex-direction: column; gap: 12px; }
        .export-format-section > label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
        .export-format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
        
        .export-format-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; background: var(--bg-tertiary); border: 2px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; }
        .export-format-option:hover { border-color: var(--text-muted); transform: translateY(-2px); }
        .export-format-option.selected { border-color: var(--accent); background: var(--accent-glow); }
        .export-format-option .format-icon { font-size: 28px; }
        .export-format-option .format-info { text-align: center; }
        .export-format-option .format-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
        .export-format-option .format-info span { font-size: 11px; color: var(--text-muted); }
        .export-format-option.selected .format-info strong { color: var(--accent); }
        
        .export-main-btn { width: 100%; padding: 16px 24px; background: var(--accent-gradient); border: none; border-radius: var(--radius-md); color: #000; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.2s ease; margin-top: 8px; }
        .export-main-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
        .export-main-btn span { font-size: 18px; }
        
        .export-quick-stats { display: flex; gap: 32px; margin-top: 32px; padding: 20px 32px; background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); }
        .quick-stat { text-align: center; }
        .quick-stat-value { display: block; font-size: 24px; font-weight: 800; color: var(--accent); }
        .quick-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
        
        /* Light theme reports */
        [data-theme="light"] .export-main-card { background: #ffffff; box-shadow: var(--shadow-lg); }
        [data-theme="light"] .export-select, [data-theme="light"] .export-input { background: var(--bg-tertiary); }
        [data-theme="light"] .export-format-option { background: var(--bg-tertiary); }
        [data-theme="light"] .export-format-option.selected { background: rgba(5, 150, 105, 0.08); }
        [data-theme="light"] .export-quick-stats { background: #ffffff; }
        [data-theme="light"] .export-main-btn { color: #ffffff; }
        
        @media (max-width: 600px) {
            .export-main-card { padding: 28px 20px; }
            .export-form-row { grid-template-columns: 1fr; }
            .export-format-options { grid-template-columns: 1fr; }
            .export-quick-stats { flex-direction: column; gap: 16px; }
        }
        
        .btn-success { background: linear-gradient(135deg, var(--success), #00c853); border-color: transparent; color: #000; font-weight: 700; }
        .btn-success:hover { box-shadow: 0 8px 24px rgba(0, 230, 118, 0.3); }
        
        .btn-warning { background: linear-gradient(135deg, var(--warning), #ff8800); border-color: transparent; color: #000; font-weight: 700; }
        .btn-warning:hover { box-shadow: 0 8px 24px rgba(255, 171, 0, 0.3); }
        
        .page-content { padding: 36px; overflow-x: hidden; min-width: 0; }
        .tab-content { display: none; animation: fadeIn 0.3s ease; }
        .tab-content.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Stats Grid */
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px; margin-bottom: 36px; }
        .stats-grid.cols-5 { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
        .stats-grid.stats-grid-6 { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
        
        .stat-card {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 28px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        }
        
        .stat-card:hover { border-color: rgba(255, 255, 255, 0.1); transform: translateY(-4px); box-shadow: var(--shadow-md); }
        
        .stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
        .stat-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
        .stat-icon { width: 48px; height: 48px; background: var(--bg-tertiary); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .stat-icon.green { background: var(--accent-glow); box-shadow: 0 0 20px rgba(0, 212, 170, 0.2); }
        .stat-icon.blue { background: var(--info-glow); box-shadow: 0 0 20px rgba(68, 138, 255, 0.2); }
        .stat-icon.purple { background: var(--purple-glow); box-shadow: 0 0 20px rgba(179, 136, 255, 0.2); }
        .stat-icon.orange { background: var(--warning-glow); box-shadow: 0 0 20px rgba(255, 171, 0, 0.2); }
        .stat-icon.yellow { background: var(--warning-glow); box-shadow: 0 0 20px rgba(255, 171, 0, 0.2); }
        .stat-icon.red { background: var(--danger-glow); box-shadow: 0 0 20px rgba(255, 82, 82, 0.2); }
        
        .stat-value { font-size: 36px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
        .stat-value.green { color: var(--accent-light); text-shadow: 0 0 30px rgba(0, 212, 170, 0.3); }
        .stat-value.blue { color: var(--info); text-shadow: 0 0 30px rgba(68, 138, 255, 0.3); }
        .stat-value.yellow { color: var(--warning); text-shadow: 0 0 30px rgba(255, 171, 0, 0.3); }
        .stat-value.purple { color: var(--purple); text-shadow: 0 0 30px rgba(179, 136, 255, 0.3); }
        .stat-value.red { color: var(--danger); text-shadow: 0 0 30px rgba(255, 82, 82, 0.3); }
        
        .stat-change { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 12px; padding: 6px 12px; border-radius: 20px; }
        .stat-change.up { color: var(--success); background: var(--success-glow); }
        .stat-change.down { color: var(--danger); background: var(--danger-glow); }
        
        /* Charts */
        .charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; margin-bottom: 36px; }
        
        .chart-card {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 28px;
            position: relative;
        }
        
        .chart-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
        }
        
        .chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
        .chart-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
        .chart-period { display: flex; gap: 8px; }
        .period-btn { padding: 8px 16px; background: transparent; border: 1px solid var(--border); border-radius: 20px; color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .period-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-secondary); }
        .period-btn.active { background: var(--accent-gradient); border-color: transparent; color: #000; box-shadow: 0 4px 16px rgba(0, 212, 170, 0.3); }
        
        .chart-container { height: 300px; position: relative; }
        
        /* Data Panel */
        .data-panel {
            background: var(--bg-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            overflow: visible;
        }
        
        .panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 28px;
            border-bottom: 1px solid var(--border);
            background: rgba(0, 0, 0, 0.2);
        }
        
        .panel-title { display: flex; align-items: center; gap: 14px; }
        .panel-title h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
        .panel-count { background: var(--accent-glow); border: 1px solid var(--border-accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--accent-light); }
        
        .panel-actions { display: flex; align-items: center; gap: 14px; }
        
        .search-box { position: relative; }
        .search-box input { width: 300px; padding: 12px 18px 12px 44px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; outline: none; transition: all 0.2s; }
        .search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
        .search-box::before { content: '🔍'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; }
        
        .filter-select { padding: 12px 36px 12px 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: all 0.2s; }
        .filter-select:focus { border-color: var(--accent); outline: none; }
        
        .data-table { width: 100%; border-collapse: collapse; }
        .data-table th { padding: 16px 28px; text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); background: rgba(0, 0, 0, 0.3); border-bottom: 1px solid var(--border); }
        .data-table td { padding: 18px 28px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); transition: background 0.15s; }
        .data-table tr:last-child td { border-bottom: none; }
        .data-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
        .data-table .mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent-light); }
        .data-table .text-primary { color: var(--text-primary); font-weight: 600; }
        
        /* Table Scroll Container */
        .table-scroll-container {
            max-height: 600px;
            overflow-y: auto;
            overflow-x: auto;
        }
        
        .table-scroll-container::-webkit-scrollbar { width: 6px; height: 6px; }
        .table-scroll-container::-webkit-scrollbar-track { background: transparent; }
        .table-scroll-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
        .table-scroll-container::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
        
        /* Badges */
        .badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 24px; font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
        .badge-dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
        
        .badge-new { background: var(--info-glow); color: var(--info); border: 1px solid rgba(68, 138, 255, 0.2); }
        .badge-new .badge-dot { background: var(--info); }
        .badge-contacted { background: var(--warning-glow); color: var(--warning); border: 1px solid rgba(255, 171, 0, 0.2); }
        .badge-contacted .badge-dot { background: var(--warning); }
        .badge-converted { background: var(--success-glow); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.2); }
        .badge-converted .badge-dot { background: var(--success); }
        .badge-lost { background: var(--danger-glow); color: var(--danger); border: 1px solid rgba(255, 82, 82, 0.2); }
        .badge-lost .badge-dot { background: var(--danger); }
        .badge-hot { background: var(--danger-glow); color: #ff8a80; border: 1px solid rgba(255, 82, 82, 0.2); }
        .badge-warm { background: var(--warning-glow); color: #ffd740; border: 1px solid rgba(255, 171, 0, 0.2); }
        .badge-cold { background: var(--info-glow); color: #82b1ff; border: 1px solid rgba(68, 138, 255, 0.2); }
        .badge-approved { background: var(--success-glow); color: var(--success); border: 1px solid rgba(0, 230, 118, 0.2); }
        .badge-pending { background: var(--warning-glow); color: var(--warning); border: 1px solid rgba(255, 171, 0, 0.2); }
        .badge-cancelled, .badge-refunded { background: var(--danger-glow); color: var(--danger); border: 1px solid rgba(255, 82, 82, 0.2); }
        
        /* Lead Status */
        .lead-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
        
        /* Tags */
        .tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); margin-right: 6px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
        .tag:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border); }
        .tag.hot { background: var(--danger-glow); color: #ff8a80; border-color: rgba(255, 82, 82, 0.2); }
        .tag.warm { background: var(--warning-glow); color: #ffd740; border-color: rgba(255, 171, 0, 0.2); }
        .tag.cold { background: var(--info-glow); color: #82b1ff; border-color: rgba(68, 138, 255, 0.2); }
        .tag.abandoned { background: var(--purple-glow); color: #b388ff; border-color: rgba(179, 136, 255, 0.2); }
        
        /* Action Buttons */
        .action-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
        .action-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); transform: scale(1.05); }
        .action-btn.whatsapp:hover { color: #25d366; border-color: rgba(37, 211, 102, 0.3); background: rgba(37, 211, 102, 0.1); }
        .action-btn.danger:hover { color: var(--danger); border-color: rgba(255, 82, 82, 0.3); background: var(--danger-glow); }
        
        .btn-action { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }
        .btn-action:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
        
        /* Pagination - Unified Style matching filters */
        .pagination { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
        .pagination-info { font-size: 13px; color: var(--text-muted); font-weight: 500; }
        .pagination-buttons { display: flex; gap: 8px; }
        .page-btn { 
            padding: 10px 16px; 
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1)); 
            border: 1px solid var(--accent); 
            border-radius: var(--radius-md); 
            color: var(--text-primary); 
            font-size: 13px; 
            font-weight: 600; 
            cursor: pointer; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
        }
        .page-btn:hover:not(:disabled) { 
            border-color: var(--accent); 
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
        }
        .page-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
        .page-btn.active { 
            background: var(--accent-gradient); 
            border-color: var(--accent); 
            color: #000; 
            box-shadow: 0 4px 16px rgba(0, 212, 170, 0.35);
            font-weight: 700;
        }
        [data-theme="light"] .page-btn { 
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        [data-theme="light"] .page-btn.active { color: #000; }
        
        /* Empty State */
        .empty-state { text-align: center; padding: 80px 24px; }
        .empty-state-icon { width: 80px; height: 80px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 36px; }
        .empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
        .empty-state p { font-size: 14px; color: var(--text-muted); max-width: 360px; margin: 0 auto; line-height: 1.6; }
        
        /* Funnel Visualization */
        .funnel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 36px; }
        .funnel-card { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: relative; }
        .funnel-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
        .funnel-card h3 { font-size: 15px; font-weight: 700; color: var(--text-secondary); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
        
        .funnel-step { margin-bottom: 14px; position: relative; }
        .funnel-bar { height: 52px; background: var(--accent-gradient); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); min-width: 80px; box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2); }
        .funnel-bar:hover { transform: translateX(6px) scale(1.01); box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3); }
        .funnel-step-name { font-size: 13px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: 0.5px; }
        .funnel-step-value { font-size: 16px; font-weight: 800; color: #000; }
        .funnel-step { position: relative; padding-right: 60px; } /* Add padding to prevent overflow */
        .funnel-drop { 
            position: absolute; 
            right: 5px; 
            top: 50%; 
            transform: translateY(-50%); 
            background: rgba(239, 68, 68, 0.15); 
            color: #ef4444; 
            padding: 3px 10px; 
            border-radius: 6px; 
            font-size: 11px; 
            font-weight: 700; 
            white-space: nowrap;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }
        
        /* Journey Events */
        .journey-events { display: flex; flex-wrap: wrap; gap: 6px; }
        .journey-tag { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--bg-tertiary); color: var(--text-secondary); }
        .journey-tag.completed { background: rgba(16, 185, 129, 0.1); color: var(--accent-light); }
        .journey-tag.checkout { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
        .journey-tag.success { background: rgba(16, 185, 129, 0.2); color: #10b981; font-weight: 600; }
        
        /* Config Box */
        .config-box { background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 28px; position: relative; }
        .config-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
        .config-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
        .config-box p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
        .url-box { display: flex; align-items: center; gap: 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; }
        .url-box code { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent-light); word-break: break-all; }
        .config-steps { margin-top: 20px; font-size: 14px; color: var(--text-muted); line-height: 2; }
        .config-steps strong { color: var(--text-secondary); }
        
        /* ==================== RECOVERY FUNNEL CENTER ==================== */
        
        /* Header Section */
        .recovery-header-section { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 24px; flex-wrap: wrap; }
        .recovery-header-title h2 { font-size: 22px; font-weight: 800; color: var(--text-primary); margin: 0; letter-spacing: -0.3px; }
        .recovery-header-title p { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
        
        /* KPI Grid */
        .recovery-kpi-grid { display: flex; gap: 12px; flex-wrap: wrap; }
        .recovery-kpi-card {
            display: flex; align-items: center; gap: 12px; padding: 14px 18px;
            background: rgba(255,255,255,0.03); border: 1px solid var(--border);
            border-radius: 14px; min-width: 150px; transition: all 0.3s;
        }
        .recovery-kpi-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
        .recovery-kpi-card .kpi-icon-wrap { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; position: relative; }
        .recovery-kpi-card .kpi-data { display: flex; flex-direction: column; }
        .recovery-kpi-card .kpi-value { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
        .recovery-kpi-card .kpi-label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
        
        .kpi-leads .kpi-icon-wrap { background: rgba(16, 185, 129, 0.15); color: #10b981; }
        .kpi-leads .kpi-value { color: #10b981; }
        .kpi-value .kpi-icon-wrap { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .recovery-kpi-card.kpi-value .kpi-value { color: #3b82f6; }
        .kpi-rate .kpi-icon-wrap { background: rgba(139, 92, 246, 0.1); position: relative; width: 44px; height: 44px; }
        .kpi-rate .ring-value { position: absolute; font-size: 11px; font-weight: 800; color: #8b5cf6; }
        .kpi-contacts .kpi-icon-wrap { background: rgba(34, 211, 102, 0.12); color: #25D366; }
        .kpi-contacts .kpi-value { color: #25D366; }
        .kpi-best-hour .kpi-icon-wrap { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
        .kpi-best-hour .kpi-value { color: #fbbf24; }
        
        /* Segment Tabs */
        .recovery-segment-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
        .recovery-segment-tab {
            display: flex; align-items: center; gap: 10px; padding: 12px 16px;
            background: rgba(255,255,255,0.02); border: 1px solid var(--border);
            border-radius: 12px; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            flex: 1; min-width: 160px; position: relative; overflow: hidden;
        }
        .recovery-segment-tab .seg-color-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; opacity: 0; transition: opacity 0.3s; }
        .recovery-segment-tab:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }
        .recovery-segment-tab:hover .seg-color-bar { opacity: 0.5; }
        .recovery-segment-tab.active { background: rgba(255,255,255,0.05); border-color: var(--accent); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15); }
        .recovery-segment-tab.active .seg-color-bar { opacity: 1; }
        .recovery-segment-tab .segment-icon { font-size: 22px; flex-shrink: 0; }
        .recovery-segment-tab .segment-info { display: flex; flex-direction: column; }
        .recovery-segment-tab .segment-name { font-size: 12px; font-weight: 600; color: var(--text-muted); line-height: 1; }
        .recovery-segment-tab .segment-count { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
        .recovery-segment-tab.active .segment-count { color: var(--accent); }
        .recovery-segment-tab .segment-value { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        
        /* Filters Bar */
        .recovery-filters-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
        .recovery-filters-left { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        .recovery-filters-right { display: flex; gap: 8px; align-items: center; }
        .recovery-filter-select {
            padding: 8px 32px 8px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
            border-radius: 8px; color: var(--text-primary); font-size: 13px; font-weight: 500;
            appearance: none; cursor: pointer; min-width: 140px; transition: border-color 0.2s;
            background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat; background-position: right 10px center;
        }
        .recovery-filter-select:hover { border-color: var(--accent); }
        .recovery-filter-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15); }
        .recovery-filter-clear { padding: 8px 14px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s; }
        .recovery-filter-clear:hover { border-color: rgba(239, 68, 68, 0.5); color: #ef4444; }
        .recovery-bulk-btn {
            display: flex; align-items: center; gap: 6px; padding: 8px 16px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.1));
            border: 1px solid var(--accent); border-radius: 8px; color: var(--accent);
            font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
        }
        .recovery-bulk-btn:hover { background: rgba(16, 185, 129, 0.25); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
        
        /* Table Panel */
        .recovery-table-panel { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
        .recovery-table-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
        .recovery-table-title { display: flex; align-items: center; gap: 12px; }
        .recovery-table-title h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
        .recovery-table-count { font-size: 12px; background: rgba(16, 185, 129, 0.15); color: var(--accent); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
        .recovery-table-wrap { overflow-x: auto; }
        
        /* Data Table */
        .recovery-data-table { width: 100%; border-collapse: collapse; }
        .recovery-data-table thead th { padding: 10px 16px; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.15); white-space: nowrap; }
        .recovery-data-table tbody td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
        .recovery-data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
        .recovery-data-table tbody tr:last-child td { border-bottom: none; }
        
        /* Score Badge */
        .score-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 13px; font-weight: 700; cursor: help; }
        .score-badge.high { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 2px solid rgba(34, 197, 94, 0.4); }
        .score-badge.medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 2px solid rgba(245, 158, 11, 0.4); }
        .score-badge.low { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 2px solid rgba(239, 68, 68, 0.4); }
        
        /* Lead Cell */
        .recovery-lead-cell { display: flex; align-items: center; gap: 10px; }
        .recovery-lead-avatar { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
        .recovery-lead-avatar.lang-en { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .recovery-lead-avatar.lang-es { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
        .recovery-lead-info { display: flex; flex-direction: column; min-width: 0; }
        .recovery-lead-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
        .recovery-lead-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
        .recovery-lang-badge { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; flex-shrink: 0; }
        .recovery-lang-badge.lang-en { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .recovery-lang-badge.lang-es { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
        
        /* WhatsApp Link */
        .recovery-whatsapp-link { display: inline-flex; align-items: center; gap: 5px; color: #25D366; font-weight: 600; font-size: 13px; text-decoration: none; transition: opacity 0.2s; }
        .recovery-whatsapp-link:hover { opacity: 0.8; }
        .recovery-no-phone { color: var(--text-muted); font-size: 12px; }
        
        /* Product Cell */
        .recovery-product-cell { display: flex; flex-direction: column; }
        .recovery-product-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
        .recovery-product-event { font-size: 11px; color: var(--text-muted); }
        
        /* Value & Time */
        .recovery-value { color: #10b981; font-weight: 700; font-size: 13px; white-space: nowrap; }
        .recovery-time { font-size: 12px; font-weight: 500; }
        .recovery-time.time-fresh { color: #10b981; }
        .recovery-time.time-warning { color: #f59e0b; }
        .recovery-time.time-urgent { color: #ef4444; }
        
        /* Funnel Step Indicator */
        .recovery-funnel-step-indicator { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
        .funnel-step-dots { display: flex; gap: 3px; }
        .funnel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); transition: all 0.3s; }
        .funnel-dot.completed { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
        .funnel-dot.current { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.4); animation: pulseDot 1.5s ease infinite; }
        @keyframes pulseDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
        .funnel-step-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
        
        /* Action Buttons */
        .recovery-actions { display: flex; gap: 6px; align-items: center; }
        .recovery-action-advance {
            display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
            background: linear-gradient(135deg, #25D366, #128C7E); border: none; border-radius: 8px;
            color: white; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap;
        }
        .recovery-action-advance:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35); }
        .recovery-action-check {
            display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
            background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 8px; color: #10b981; cursor: pointer; transition: all 0.2s;
        }
        .recovery-action-check:hover { background: rgba(16, 185, 129, 0.25); transform: translateY(-1px); }
        .recovery-action-history {
            display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
            background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.25);
            border-radius: 8px; color: #8b5cf6; cursor: pointer; transition: all 0.2s;
        }
        .recovery-action-history:hover { background: rgba(139, 92, 246, 0.2); transform: translateY(-1px); }
        
        /* Pagination */
        .recovery-pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); }
        .recovery-pagination-info { font-size: 12px; color: var(--text-muted); }
        .recovery-pagination-controls { display: flex; align-items: center; gap: 10px; }
        .recovery-page-btns { display: flex; gap: 4px; }
        .recovery-page-btn { padding: 5px 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; color: var(--text-primary); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
        .recovery-page-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(16, 185, 129, 0.1); }
        .recovery-page-btn.active { background: var(--accent); color: #000; font-weight: 700; border-color: var(--accent); }
        .recovery-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
        .recovery-page-dots { color: var(--text-muted); font-size: 12px; padding: 0 4px; }
        
        /* Funnel Modal */
        .recovery-modal-lead-info { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
        .recovery-modal-avatar { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: var(--accent); }
        .recovery-modal-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
        .recovery-modal-email { font-size: 12px; color: var(--text-muted); }
        .recovery-modal-lang-badge { margin-left: auto; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
        .recovery-modal-lang-badge.lang-en { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .recovery-modal-lang-badge.lang-es { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
        
        /* Funnel Timeline */
        .recovery-funnel-timeline { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
        .funnel-timeline-step { display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; position: relative; }
        .funnel-timeline-step:hover { background: rgba(255,255,255,0.03); }
        .funnel-timeline-step.step-selected { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.3); }
        .funnel-timeline-step::before { content: ''; position: absolute; left: 28px; top: 40px; bottom: -12px; width: 2px; background: rgba(255,255,255,0.06); }
        .funnel-timeline-step:last-child::before { display: none; }
        
        .timeline-step-marker { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; border: 2px solid; z-index: 1; }
        .step-completed .timeline-step-marker { background: rgba(16, 185, 129, 0.2); border-color: #10b981; color: #10b981; }
        .step-current .timeline-step-marker { background: rgba(59, 130, 246, 0.2); border-color: #3b82f6; color: #3b82f6; animation: pulseDot 1.5s ease infinite; }
        .step-pending .timeline-step-marker { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: var(--text-muted); }
        
        .timeline-step-content { flex: 1; min-width: 0; }
        .timeline-step-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
        .timeline-step-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
        .timeline-step-delay { font-size: 11px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 1px 8px; border-radius: 10px; }
        .timeline-step-preview { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin: 0; }
        
        /* Message Preview */
        .recovery-message-preview-section label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }
        .recovery-message-textarea { width: 100%; height: 100px; resize: vertical; padding: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 13px; font-family: inherit; line-height: 1.5; }
        .recovery-message-textarea:focus { outline: none; border-color: var(--accent); }
        
        /* Send Button */
        .recovery-send-btn {
            display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
            background: linear-gradient(135deg, #25D366, #128C7E); border: none; border-radius: 10px;
            color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
        }
        .recovery-send-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35); }
        .recovery-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        
        /* History Modal */
        .history-section { margin-bottom: 20px; }
        .history-section h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
        .history-progress-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 6px; }
        .history-funnel-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; }
        .history-step-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .history-status-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: capitalize; }
        .history-status-badge.status-active { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
        .history-status-badge.status-converted { background: rgba(16, 185, 129, 0.15); color: #10b981; }
        .history-status-badge.status-sent { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
        .history-status-badge.status-completed { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
        .history-contact-item { padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); }
        .history-contact-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
        .history-template-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--text-muted); }
        .history-date { font-size: 11px; color: var(--text-muted); margin-left: auto; }
        .history-message { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin: 0; }
        
        /* Legacy Recovery Template Item */
        .recovery-template-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s; }
        .recovery-template-item:hover { border-color: var(--accent); background: var(--accent-glow); }
        .recovery-template-item.selected { border-color: var(--accent); background: rgba(16, 185, 129, 0.15); }
        .recovery-template-item .template-icon { font-size: 20px; }
        .recovery-template-item .template-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
        
        /* Dispatch Log Button */
        .recovery-dispatch-log-btn {
            display: flex; align-items: center; gap: 6px; padding: 8px 16px;
            background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 8px; color: #a78bfa; font-size: 13px; font-weight: 600;
            cursor: pointer; transition: all 0.2s;
        }
        .recovery-dispatch-log-btn:hover { background: rgba(139, 92, 246, 0.25); border-color: #a78bfa; }
        
        /* Dispatch Log Modal Styles */
        .dispatch-stats-bar {
            display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
            padding: 16px 20px; background: rgba(255,255,255,0.02);
            border-bottom: 1px solid var(--border);
        }
        .dispatch-stat-card {
            text-align: center; padding: 10px 6px;
            background: rgba(255,255,255,0.03); border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .dispatch-stat-value { display: block; font-size: 20px; font-weight: 700; color: var(--text-primary); }
        .dispatch-stat-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; margin-top: 2px; }
        .dispatch-stat-sent .dispatch-stat-value { color: #10b981; }
        .dispatch-stat-failed .dispatch-stat-value { color: #ef4444; }
        .dispatch-stat-converted .dispatch-stat-value { color: #8b5cf6; }
        
        .dispatch-filters {
            display: flex; gap: 8px; padding: 12px 20px;
            border-bottom: 1px solid var(--border); align-items: center;
        }
        .dispatch-search-input {
            flex: 1; padding: 8px 12px; background: rgba(255,255,255,0.04);
            border: 1px solid var(--border); border-radius: 6px;
            color: var(--text-primary); font-size: 13px; outline: none;
        }
        .dispatch-search-input:focus { border-color: var(--accent); }
        .dispatch-search-input::placeholder { color: var(--text-muted); }
        .dispatch-filter-select {
            padding: 8px 12px; background: rgba(255,255,255,0.04);
            border: 1px solid var(--border); border-radius: 6px;
            color: var(--text-primary); font-size: 13px; cursor: pointer; outline: none;
        }
        
        /* Custom scrollbar for dispatch table */
        .dispatch-table-wrap {
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
        }
        .dispatch-table-wrap::-webkit-scrollbar { width: 6px; }
        .dispatch-table-wrap::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 3px;
        }
        .dispatch-table-wrap::-webkit-scrollbar-thumb {
            background: rgba(139, 92, 246, 0.3);
            border-radius: 3px;
            transition: background 0.2s;
        }
        .dispatch-table-wrap::-webkit-scrollbar-thumb:hover {
            background: rgba(139, 92, 246, 0.55);
        }
        .dispatch-table-wrap::-webkit-scrollbar-thumb:active {
            background: rgba(139, 92, 246, 0.7);
        }

        /* Custom scrollbar for expanded message area */
        .dispatch-expand-message {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
        }
        .dispatch-expand-message::-webkit-scrollbar { width: 4px; }
        .dispatch-expand-message::-webkit-scrollbar-track { background: transparent; }
        .dispatch-expand-message::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 2px;
        }
        .dispatch-expand-message::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .dispatch-log-table { width: 100%; border-collapse: collapse; }
        .dispatch-log-table thead th {
            padding: 10px 12px; font-size: 11px; font-weight: 700;
            text-transform: uppercase; letter-spacing: 0.5px;
            color: var(--text-muted); text-align: left;
            background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border);
            position: sticky; top: 0; z-index: 1;
        }
        .dispatch-row td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
        .dispatch-row:hover { background: rgba(255,255,255,0.02); }
        
        .dispatch-status-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; }
        .dispatch-status-sent { background: rgba(16, 185, 129, 0.15); color: #10b981; }
        .dispatch-status-failed { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
        .dispatch-status-converted { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
        
        .dispatch-lead-cell { display: flex; align-items: center; gap: 10px; }
        .dispatch-lead-avatar {
            width: 32px; height: 32px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; font-weight: 700; flex-shrink: 0;
        }
        .dispatch-lead-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
        .dispatch-lead-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dispatch-lead-email { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .dispatch-lead-phone { font-size: 11px; color: #25D366; }
        
        .dispatch-segment-badge {
            display: inline-block; padding: 3px 8px; border-radius: 6px;
            font-size: 11px; font-weight: 600; white-space: nowrap;
        }
        .dispatch-step-badge {
            display: inline-block; padding: 3px 8px; border-radius: 4px;
            font-size: 11px; font-weight: 600; background: rgba(59, 130, 246, 0.12);
            color: #60a5fa;
        }
        .dispatch-message-preview {
            font-size: 12px; color: var(--text-muted); line-height: 1.4;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; max-width: 260px; cursor: help;
        }
        .dispatch-date { font-size: 12px; font-weight: 600; color: var(--text-primary); }
        .dispatch-time { font-size: 11px; color: var(--text-muted); }
        
        .dispatch-pagination {
            display: flex; align-items: center; justify-content: center; gap: 4px;
            padding: 12px 20px; border-top: 1px solid var(--border);
        }
        .dispatch-page-btn {
            padding: 6px 10px; border: 1px solid var(--border); background: transparent;
            color: var(--text-muted); border-radius: 4px; cursor: pointer; font-size: 12px;
            transition: all 0.15s;
        }
        .dispatch-page-btn:hover:not(:disabled) { background: rgba(255,255,255,0.05); color: var(--text-primary); }
        .dispatch-page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
        .dispatch-page-btn:disabled { opacity: 0.3; cursor: default; }
        .dispatch-page-dots { color: var(--text-muted); font-size: 12px; padding: 0 4px; }
        .dispatch-page-info { font-size: 11px; color: var(--text-muted); margin-left: 8px; }
        
        /* Dispatch Actions */
        .dispatch-actions { display: flex; align-items: center; gap: 4px; }
        .dispatch-act-btn {
            width: 30px; height: 30px; border-radius: 6px; border: none;
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; transition: all 0.15s; background: transparent;
        }
        .dispatch-act-next { color: #10b981; }
        .dispatch-act-next:hover { background: rgba(16, 185, 129, 0.15); }
        .dispatch-act-resend { color: #f59e0b; }
        .dispatch-act-resend:hover { background: rgba(245, 158, 11, 0.15); }
        .dispatch-act-convert { color: #8b5cf6; }
        .dispatch-act-convert:hover { background: rgba(139, 92, 246, 0.15); }
        .dispatch-converted-badge {
            font-size: 10px; font-weight: 700; color: #8b5cf6; padding: 3px 8px;
            background: rgba(139, 92, 246, 0.12); border-radius: 4px; white-space: nowrap;
        }
        
        /* Dispatch Row Active & Expand */
        .dispatch-row-active { background: rgba(255,255,255,0.04) !important; }
        .dispatch-row:hover .dispatch-act-btn { opacity: 1; }
        
        .dispatch-expand-row td { padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
        .dispatch-expand-content {
            display: flex; gap: 20px; padding: 14px 16px 14px 58px;
            background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.04);
            animation: dispatchExpandIn 0.2s ease;
        }
        @keyframes dispatchExpandIn {
            from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
            to { opacity: 1; max-height: 200px; }
        }
        .dispatch-expand-left { flex: 1; min-width: 0; }
        .dispatch-expand-right { width: 180px; flex-shrink: 0; }
        .dispatch-expand-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
        .dispatch-expand-message {
            font-size: 12px; color: var(--text-primary); line-height: 1.5;
            background: rgba(255,255,255,0.03); padding: 10px 12px; border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05); max-height: 120px; overflow-y: auto;
            white-space: pre-wrap; word-break: break-word;
        }
        
        /* Dispatch Funnel Dots */
        .dispatch-funnel-dots { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
        .dispatch-dot {
            width: 24px; height: 24px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 10px; font-weight: 700; transition: all 0.2s;
        }
        .dispatch-dot.dot-done { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 2px solid #10b981; }
        .dispatch-dot.dot-current { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 2px solid #3b82f6; animation: dotPulse 2s infinite; }
        .dispatch-dot.dot-pending { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 2px solid rgba(255,255,255,0.1); }
        @keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); } 50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); } }
        .dispatch-expand-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
        .dispatch-expand-meta span { display: flex; align-items: center; gap: 4px; }
        
        @media (max-width: 768px) {
            .dispatch-stats-bar { grid-template-columns: repeat(3, 1fr); }
            .dispatch-filters { flex-wrap: wrap; }
            .dispatch-message-preview { max-width: 120px; }
            .dispatch-expand-content { flex-direction: column; padding-left: 16px; }
            .dispatch-expand-right { width: 100%; }
        }
        
        /* Templates */
        .template-list { display: flex; flex-direction: column; gap: 12px; }
        .template-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: 0.15s; }
        .template-item:hover { border-color: var(--accent); }
        .template-item.active { border-color: var(--accent); background: var(--accent-glow); }
        .template-icon { font-size: 24px; }
        .template-content { flex: 1; }
        .template-name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
        .template-preview { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
        
        /* Modal */
        .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000; animation: fadeInOverlay 0.2s ease; }
        .modal-overlay.active { display: flex; }
        @keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
        
        .modal {
            background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-xl);
            padding: 36px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
            animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
        }
        .modal::-webkit-scrollbar { width: 6px; }
        .modal::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 3px; }
        .modal::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }
        .modal::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.55); }
        .modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5; }
        @keyframes slideUp { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
        
        .modal-content {
            background: var(--bg-glass); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
            border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 640px;
            max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
            scrollbar-width: thin;
            scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
        }
        .modal-content::-webkit-scrollbar { width: 6px; }
        .modal-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 3px; }
        .modal-content::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }
        .modal-content::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.55); }
        .modal-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5; }
        
        .modal-header { padding: 28px 32px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
        .modal-header h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
        .modal-header p { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
        .modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; font-size: 20px; transition: all 0.2s; }
        .modal-close:hover { background: var(--danger-glow); color: var(--danger); border-color: rgba(255, 82, 82, 0.3); }
        
        .modal-body { padding: 28px 32px; }
        .modal-footer { padding: 20px 32px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); }
        
        .modal-actions { display: flex; gap: 14px; margin-top: 28px; }
        .modal-actions .btn-primary, .modal-actions .btn-secondary { flex: 1; justify-content: center; }
        
        /* Notification Toast */
        .toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 14px; }
        .toast { display: flex; align-items: center; gap: 16px; padding: 18px 24px; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); min-width: 360px; }
        .toast.success { border-color: rgba(0, 230, 118, 0.3); background: linear-gradient(135deg, var(--bg-glass), rgba(0, 230, 118, 0.05)); }
        .toast.warning { border-color: rgba(255, 171, 0, 0.3); background: linear-gradient(135deg, var(--bg-glass), rgba(255, 171, 0, 0.05)); }
        .toast.error { border-color: rgba(255, 82, 82, 0.3); background: linear-gradient(135deg, var(--bg-glass), rgba(255, 82, 82, 0.05)); }
        .toast-icon { font-size: 24px; }
        .toast-content { flex: 1; }
        .toast-title { font-size: 14px; font-weight: 600; }
        .toast-message { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
        .toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 20px; transition: color 0.2s; }
        .toast-close:hover { color: var(--text-primary); }
        
        @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        
        /* Loading */
        .loading { text-align: center; padding: 40px; color: var(--text-muted); }
        .spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Card Component */
        .card { background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
        .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
        .card-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.2); }
        .card-header h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
        .card-body { padding: 24px 28px; }
        .table-container { overflow-x: auto; }
        .text-muted { color: var(--text-muted); font-size: 13px; }
        
        /* Refund Status Badges */
        .refund-status { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
        .status-pending { background: rgba(255, 171, 0, 0.15); color: #ffb740; border: 1px solid rgba(255, 171, 0, 0.3); }
        .status-handling { background: rgba(138, 43, 226, 0.15); color: #b388ff; border: 1px solid rgba(138, 43, 226, 0.3); }
        .status-processing { background: rgba(68, 138, 255, 0.15); color: #82b1ff; border: 1px solid rgba(68, 138, 255, 0.3); }
        .status-approved { background: rgba(0, 230, 118, 0.15); color: #69f0ae; border: 1px solid rgba(0, 230, 118, 0.3); }
        .status-rejected { background: rgba(255, 82, 82, 0.15); color: #ff8a80; border: 1px solid rgba(255, 82, 82, 0.3); }
        
        /* Refund Table Cells */
        .protocol-code { background: rgba(0, 0, 0, 0.4); padding: 6px 10px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; color: var(--accent-light); border: 1px solid var(--border); }
        .cell-name { font-weight: 600; color: var(--text-primary); font-size: 14px; }
        .cell-email { color: var(--text-secondary); font-size: 13px; }
        .cell-phone { color: var(--text-secondary); font-size: 13px; font-family: 'JetBrains Mono', monospace; }
        .cell-reason { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); font-size: 13px; }
        .cell-date { color: var(--text-muted); font-size: 13px; }
        
        /* Action Buttons */
        .action-buttons { display: flex; gap: 8px; }
        .action-btn-view, .action-btn-approve, .action-btn-reject { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
        .action-btn-view { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
        .action-btn-view:hover { background: rgba(255, 255, 255, 0.15); color: var(--text-primary); }
        .action-btn-approve { background: rgba(0, 230, 118, 0.2); color: #69f0ae; }
        .action-btn-approve:hover { background: rgba(0, 230, 118, 0.35); transform: scale(1.05); }
        .action-btn-reject { background: rgba(255, 82, 82, 0.2); color: #ff8a80; }
        .action-btn-reject:hover { background: rgba(255, 82, 82, 0.35); transform: scale(1.05); }
        
        /* Refund Action Buttons (table) */
        .refund-action-btn {
            border-radius: 6px; padding: 5px 8px; cursor: pointer; font-size: 11px;
            white-space: nowrap; transition: all 0.15s; font-weight: 500;
        }
        .refund-action-btn:hover { filter: brightness(1.3); transform: translateY(-1px); }

        /* Refund Language Selector Buttons */
        .refund-lang-btn {
            padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
            cursor: pointer; border: 1px solid var(--border); background: transparent;
            color: var(--text-secondary); transition: all 0.15s;
        }
        .refund-lang-btn:hover { border-color: var(--accent); color: var(--text-primary); }

        /* Refund Modal Content */
        .refund-modal-content { display: grid; gap: 20px; }
        .refund-modal-header-info { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
        .refund-section { margin-bottom: 4px; }
        .refund-section-title { color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 12px; }
        .refund-info-box { background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 18px; display: grid; gap: 12px; border: 1px solid var(--border); }
        .refund-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
        .refund-label { color: var(--text-muted); font-weight: 500; }
        .refund-value { color: var(--text-primary); font-weight: 600; }
        .refund-reason { color: var(--warning); }
        .refund-description-box { background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(20, 20, 30, 0.3)); border-radius: 12px; padding: 20px 22px; white-space: pre-wrap; line-height: 1.8; font-size: 14px; color: var(--text-primary); border: 1px solid var(--border); position: relative; font-style: italic; min-height: 60px; }
        .refund-description-box::before { content: '"'; position: absolute; top: 8px; left: 14px; font-size: 32px; color: var(--accent); opacity: 0.3; font-family: Georgia, serif; line-height: 1; }
        .refund-description-box::after { content: '"'; position: absolute; bottom: 4px; right: 14px; font-size: 32px; color: var(--accent); opacity: 0.3; font-family: Georgia, serif; line-height: 1; }
        .refund-timestamp { font-size: 12px; color: var(--text-muted); text-align: right; padding-top: 8px; }
        
        /* Refund Communication Buttons */
        .refund-comm-btn {
            padding: 10px; border-radius: 8px; cursor: pointer; font-size: 13px;
            font-weight: 500; border: 1px solid; transition: all 0.2s; text-align: center;
        }
        .refund-comm-btn:hover { transform: translateY(-1px); filter: brightness(1.2); }
        .refund-comm-info { border-color: rgba(37, 211, 102, 0.3); background: rgba(37, 211, 102, 0.1); color: #25d366; }
        .refund-comm-approve { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.1); color: #22c55e; }
        .refund-comm-reject { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.1); color: #ef4444; }
        .refund-comm-follow { border-color: rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
        .refund-comm-email { border-color: rgba(113, 113, 122, 0.3); background: rgba(113, 113, 122, 0.08); color: var(--text-secondary); }
        
        /* Refund Modal Action Buttons */
        .refund-modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
        .modal-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .modal-btn span { font-size: 14px; }
        .modal-btn-handling { background: rgba(138, 43, 226, 0.2); color: #b388ff; border: 1px solid rgba(138, 43, 226, 0.3); }
        .modal-btn-handling:hover { background: rgba(138, 43, 226, 0.35); }
        .modal-btn-processing { background: rgba(68, 138, 255, 0.2); color: #82b1ff; border: 1px solid rgba(68, 138, 255, 0.3); }
        .modal-btn-processing:hover { background: rgba(68, 138, 255, 0.35); }
        .modal-btn-reject { background: rgba(255, 82, 82, 0.2); color: #ff8a80; border: 1px solid rgba(255, 82, 82, 0.3); }
        .modal-btn-reject:hover { background: rgba(255, 82, 82, 0.35); }
        .modal-btn-approve { background: rgba(0, 230, 118, 0.25); color: #69f0ae; border: 1px solid rgba(0, 230, 118, 0.4); }
        .modal-btn-approve:hover { background: rgba(0, 230, 118, 0.4); box-shadow: 0 4px 20px rgba(0, 230, 118, 0.25); }
        
        /* Enhanced Filters */
        .filters-card .card-header { display: flex; align-items: center; justify-content: space-between; }
        .btn-sm { padding: 8px 14px; font-size: 12px; }
        .filters-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; align-items: end; }
        .filter-group { display: flex; flex-direction: column; gap: 8px; }
        .filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
        .filter-input { padding: 12px 16px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-size: 14px; outline: none; transition: all 0.2s; width: 100%; }
        .filter-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
        .filter-input option { background: var(--bg-secondary); color: var(--text-primary); padding: 8px; }
        
        /* Fix select dropdown options visibility */
        select option { background: #1a1a2e; color: #fff; padding: 10px; }
        select:focus option:checked { background: #2d2d44; }
        .filter-search { grid-column: span 2; }
        .search-input-wrapper { position: relative; }
        .search-input-wrapper .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; pointer-events: none; }
        .search-input-wrapper .search-input { padding-left: 42px; }
        .filter-actions { display: flex; align-items: flex-end; }
        .btn-filter-refresh { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--accent-glow); border: 1px solid var(--border-accent); border-radius: var(--radius-md); color: var(--accent-light); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; width: 100%; justify-content: center; }
        .btn-filter-refresh:hover { background: rgba(0, 212, 170, 0.2); box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2); }
        .btn-filter-refresh span { font-size: 14px; }
        
        @media (max-width: 768px) {
            .filters-grid { grid-template-columns: 1fr; }
            .filter-search { grid-column: span 1; }
        }
        
        /* Global Funnel Selector - Unified Filter Style */
        .funnel-selector {
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
            backdrop-filter: blur(10px);
            border: 1px solid var(--accent);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
        }
        /* Select elements get dropdown arrow and extra padding */
        select.funnel-selector {
            padding-right: 40px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
        }
        /* Input elements */
        input.funnel-selector {
            cursor: text;
        }
        input.funnel-selector::placeholder {
            color: var(--text-muted);
            font-weight: 500;
        }
        /* Textarea elements */
        textarea.funnel-selector {
            cursor: text;
            resize: vertical;
            font-family: inherit;
        }
        textarea.funnel-selector::placeholder {
            color: var(--text-muted);
            font-weight: 500;
        }
        .funnel-selector:hover { 
            border-color: var(--accent); 
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
        }
        .funnel-selector:focus { 
            border-color: var(--accent); 
            box-shadow: 0 0 0 3px var(--accent-glow), 0 4px 12px rgba(16, 185, 129, 0.25); 
            outline: none; 
            transform: translateY(0);
        }
        .funnel-selector option { 
            background: var(--bg-secondary); 
            color: var(--text-primary); 
            padding: 12px;
            font-weight: 600;
        }
        
        [data-theme="light"] .funnel-selector { 
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
            border: 1px solid var(--accent); 
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        [data-theme="light"] .funnel-selector option { background: #ffffff; }
        
        /* Funnel Page Header */
        .funnel-page-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        .funnel-page-header h2 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0;
        }
        
        /* Language Badges */
        .lang-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: var(--radius-md);
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
        }
        .lang-badge.all {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
            color: #a78bfa;
            border: 1px solid rgba(168, 85, 247, 0.3);
        }
        .lang-badge.en {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
            color: #60a5fa;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }
        .lang-badge.es {
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
            color: #fbbf24;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }
        [data-theme="light"] .lang-badge.all { background: #f3e8ff; color: #7c3aed; border-color: #c4b5fd; }
        [data-theme="light"] .lang-badge.en { background: #dbeafe; color: #2563eb; border-color: #93c5fd; }
        [data-theme="light"] .lang-badge.es { background: #fef3c7; color: #d97706; border-color: #fcd34d; }
        
        /* Funnel Comparison Cards */
        .funnel-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
        .funnel-compare-card { 
            background: var(--bg-glass); 
            backdrop-filter: blur(20px); 
            border: 1px solid var(--border); 
            border-radius: var(--radius-lg); 
            padding: 24px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        .funnel-compare-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
        .funnel-compare-card::before { 
            content: ''; 
            position: absolute; 
            top: 0; left: 0; right: 0; 
            height: 4px; 
        }
        .funnel-compare-card.en::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
        .funnel-compare-card.es::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
        .funnel-compare-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
        .funnel-compare-flag { font-size: 28px; }
        .funnel-compare-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
        .funnel-compare-subtitle { font-size: 12px; color: var(--text-muted); }
        .funnel-compare-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .funnel-compare-stat { text-align: center; padding: 12px; background: var(--bg-tertiary); border-radius: var(--radius-sm); }
        .funnel-compare-stat-value { font-size: 24px; font-weight: 800; }
        .funnel-compare-stat-value.blue { color: var(--info); }
        .funnel-compare-stat-value.yellow { color: var(--warning); }
        .funnel-compare-stat-value.green { color: var(--success); }
        .funnel-compare-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
        
        /* Enhanced Loading Animation */
        .loading { text-align: center; padding: 40px; color: var(--text-muted); }
        .spinner { 
            width: 40px; 
            height: 40px; 
            border: 3px solid var(--border); 
            border-top-color: var(--accent); 
            border-radius: 50%; 
            animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; 
            margin: 0 auto 16px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* Skeleton Loading */
        .skeleton { 
            background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
            border-radius: var(--radius-sm);
        }
        @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
        @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
        @keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
        @keyframes countUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Skeleton Loaders */
        .skeleton-loader { position: relative; overflow: hidden; background: var(--bg-tertiary); border-radius: 8px; }
        .skeleton-loader::after { 
            content: ''; 
            position: absolute; 
            top: 0; left: -100%; 
            width: 100%; height: 100%; 
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
            animation: shimmer 1.5s infinite;
        }
        .skeleton-text { height: 20px; width: 60%; margin-bottom: 8px; }
        .skeleton-text.short { width: 40%; }
        .skeleton-text.full { width: 100%; }
        .skeleton-card { height: 120px; width: 100%; }
        .skeleton-chart { height: 300px; width: 100%; }
        
        /* Smooth number transitions */
        .stat-value { transition: all 0.3s ease; }
        .stat-value.updating { animation: countUp 0.3s ease; }
        
        /* Hover effects for cards */
        .stat-card, .chart-card, .quick-action { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
        .stat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 212, 170, 0.1); }
        .chart-card:hover { border-color: rgba(255,255,255,0.12); }
        
        /* Micro-interactions for buttons */
        .btn-secondary, .btn-primary { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
        .btn-secondary:active, .btn-primary:active { transform: scale(0.95); }
        
        /* Pixel filter buttons */
        .pixel-filter { padding: 8px 14px !important; font-size: 12px !important; }
        .pixel-filter.active { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; }
        .pixel-filter:not(.active):hover { background: rgba(0, 212, 170, 0.1) !important; border-color: var(--accent) !important; }
        
        /* WhatsApp period filter buttons */
        .wa-period-btn.active { background: var(--accent) !important; color: #000 !important; border-color: var(--accent) !important; font-weight: 600 !important; }
        .wa-period-btn:not(.active):hover { background: rgba(0, 212, 170, 0.1) !important; border-color: var(--accent) !important; }
        
        /* Table row animations */
        .data-table tbody tr { animation: fadeInUp 0.3s ease backwards; transition: background 0.2s ease; }
        .data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
        .data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
        .data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
        .data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
        .data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
        
        /* Badge animations */
        .badge { transition: all 0.2s ease; }
        .badge:hover { transform: scale(1.05); }
        
        /* Progress ring for loading states */
        .progress-ring { transform: rotate(-90deg); }
        .progress-ring-circle { 
            fill: none; 
            stroke: var(--accent); 
            stroke-width: 4; 
            stroke-linecap: round;
            stroke-dasharray: 100;
            stroke-dashoffset: 100;
            transition: stroke-dashoffset 1s ease;
        }
        
        /* Sparkline container */
        .sparkline { display: inline-flex; align-items: flex-end; height: 30px; gap: 2px; }
        .sparkline-bar { width: 4px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius: 2px; transition: height 0.3s ease; }
        
        /* Notification badge pulse */
        .nav-item-badge { animation: pulse 2s infinite; }
        
        /* Smooth modal backdrop */
        .modal-overlay { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity 0.3s ease; }
        .modal-overlay.active .modal-content { animation: scaleIn 0.3s ease; }
        
        /* Card glow on hover */
        .stat-card::after { 
            content: ''; 
            position: absolute; 
            inset: 0; 
            border-radius: inherit; 
            opacity: 0; 
            transition: opacity 0.3s ease;
            background: radial-gradient(circle at center, var(--accent-glow), transparent);
        }
        .stat-card:hover::after { opacity: 1; }
        
        /* Tooltips */
        [data-tooltip] { position: relative; cursor: help; }
        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%) scale(0.95);
            background: var(--bg-secondary);
            color: var(--text-primary);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
        }
        [data-tooltip]::before {
            content: '';
            position: absolute;
            bottom: calc(100% + 2px);
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: var(--bg-secondary);
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 1000;
        }
        [data-tooltip]:hover::after, [data-tooltip]:hover::before { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }
        
        /* Mini Language Badge */
        .mini-lang-badge { 
            display: inline-flex; 
            align-items: center; 
            padding: 2px 8px; 
            border-radius: 12px; 
            font-size: 10px; 
            font-weight: 700; 
            margin-left: 8px;
        }
        .mini-lang-badge.en { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
        .mini-lang-badge.es { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
        
        /* Fade In Animation for Cards */
        .stat-card, .chart-card, .data-panel, .quick-action, .funnel-compare-card {
            animation: fadeInUp 0.4s ease backwards;
        }
        .stats-grid .stat-card:nth-child(1) { animation-delay: 0.05s; }
        .stats-grid .stat-card:nth-child(2) { animation-delay: 0.1s; }
        .stats-grid .stat-card:nth-child(3) { animation-delay: 0.15s; }
        .stats-grid .stat-card:nth-child(4) { animation-delay: 0.2s; }
        .stats-grid .stat-card:nth-child(5) { animation-delay: 0.25s; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        
        /* Improved Mobile Responsiveness */
        @media (max-width: 768px) {
            .funnel-comparison { grid-template-columns: 1fr; }
            .funnel-selector { min-width: 120px; font-size: 12px; padding: 8px 30px 8px 10px; }
            .header-actions { gap: 8px; }
            .funnel-compare-stats { grid-template-columns: 1fr; gap: 10px; }
        }
        
        @media (max-width: 480px) {
            .header { flex-direction: column; gap: 16px; align-items: flex-start; }
            .header-actions { width: 100%; justify-content: space-between; }
            .funnel-selector { flex: 1; }
        }
        
        /* Quick Actions */
        .quick-actions { display: flex; gap: 16px; margin-bottom: 28px; }
        .quick-action { flex: 1; display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--bg-glass); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
        .quick-action::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); }
        .quick-action:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-md), var(--shadow-glow); }
        .quick-action-icon { width: 48px; height: 48px; background: var(--accent-glow); border: 1px solid var(--border-accent); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .quick-action-text h4 { font-size: 15px; font-weight: 600; }
        .quick-action-text p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
        
        /* Responsive */
        @media (max-width: 1400px) {
            .stats-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
        }
        
        @media (max-width: 1200px) {
            .stats-grid, .stats-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
            .charts-grid, .funnel-grid { grid-template-columns: 1fr; }
            .main-content { margin-left: 280px; max-width: calc(100vw - 280px); }
        }
        
        @media (max-width: 1024px) {
            .sidebar { width: 80px; padding: 20px 10px; }
            .sidebar-logo span, .nav-section-title, .nav-item span:not(.nav-item-icon):not(.nav-item-badge), .user-info { display: none; }
            .sidebar-logo { justify-content: center; padding: 0; }
            .nav-item { justify-content: center; padding: 14px; }
            .nav-item-badge { position: absolute; top: 4px; right: 4px; padding: 2px 6px; font-size: 10px; }
            .main-content { margin-left: 80px; max-width: calc(100vw - 80px); }
            .user-menu { justify-content: center; }
        }
        
        @media (max-width: 768px) {
            .sidebar {
                display: flex;
                flex-direction: column;
                width: 280px;
                max-width: 85vw;
                transform: translateX(-100%);
                transition: transform 0.25s ease-out;
                box-shadow: none;
                z-index: 1001;
            }
            body.sidebar-open .sidebar { transform: translateX(0); box-shadow: 8px 0 24px rgba(0,0,0,0.4); }
            .sidebar-close-mobile {
                display: none;
                position: absolute;
                top: 16px;
                right: 16px;
                width: 40px;
                height: 40px;
                align-items: center;
                justify-content: center;
                background: rgba(255,255,255,0.08);
                border: 1px solid var(--border);
                border-radius: var(--radius-md);
                color: var(--text-primary);
                font-size: 18px;
                cursor: pointer;
                z-index: 2;
            }
            body.sidebar-open .sidebar-close-mobile { display: flex !important; }
            .sidebar-close-mobile:hover { background: rgba(255,255,255,0.12); }
            .sidebar-mobile-toggle {
                display: flex !important;
                flex-direction: column;
                justify-content: center;
                gap: 5px;
                width: 44px;
                height: 44px;
                padding: 10px;
                background: rgba(255,255,255,0.06);
                border: 1px solid var(--border);
                border-radius: var(--radius-md);
                cursor: pointer;
                margin-right: 8px;
            }
            .sidebar-mobile-toggle .hamburger-line {
                display: block;
                width: 20px;
                height: 2px;
                background: var(--text-secondary);
                border-radius: 1px;
                transition: all 0.2s;
            }
            .sidebar-overlay {
                display: block;
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.5);
                z-index: 1000;
                pointer-events: none;
                opacity: 0;
                transition: opacity 0.25s ease-out;
            }
            body.sidebar-open .sidebar-overlay {
                pointer-events: auto;
                opacity: 1;
            }
            body.sidebar-open { overflow: hidden; }
            .main-content { margin-left: 0; max-width: 100vw; }
            .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
            .header { padding: 16px 20px; }
            .page-content { padding: 20px; }
            .panel-header { flex-direction: column; gap: 16px; align-items: stretch; }
            .search-box input { width: 100%; }
            .recovery-stats { grid-template-columns: 1fr; }
            .quick-actions { flex-direction: column; }
            .modal-content { margin: 16px; max-width: calc(100% - 32px); }
        }
        
        /* Mobile sidebar overlay - hidden on desktop */
        .sidebar-overlay { display: none; }
        
        /* Focus Mode Styles - simplified sidebar */
        body.focus-mode .nav-item.focus-hidden {
            display: none !important;
        }
        
        /* Heatmap Filter Buttons */
        .heatmap-filter-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .heatmap-filter-btn:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-primary);
        }
        .heatmap-filter-btn.active {
            background: var(--accent);
            color: #fff;
        }
        
        /* Toast Animations */
        @keyframes toastSlideIn {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        @keyframes toastSlideOut {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(100%);
            }
        }
        
        /* ============================================
           RESPONSIVE FIX - Complete Overhaul
           Fixes zoom and resize issues
        ============================================ */
        
        /* Base: Ensure body doesn't overflow */
        html, body {
            overflow-x: hidden;
            min-width: 320px;
        }
        
        /* Dashboard wrapper - flex layout for proper sizing */
        .dashboard-wrapper {
            display: none;
            min-height: 100vh;
            width: 100%;
            overflow-x: hidden;
        }
        .dashboard-wrapper.active {
            display: flex;
        }
        
        /* Sidebar - Fixed but respects zoom */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            bottom: 0;
            width: 260px;
            min-width: 260px;
            max-width: 260px;
            flex-shrink: 0;
            background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
            border-right: 1px solid var(--border);
            padding: 24px 16px;
            display: flex;
            flex-direction: column;
            z-index: 100;
            overflow-y: auto;
            overflow-x: hidden;
        }
        
        /* Main content - Properly offset from sidebar */
        .main-content {
            margin-left: 260px;
            flex: 1;
            min-height: 100vh;
            width: calc(100% - 260px);
            max-width: calc(100% - 260px);
            overflow-x: hidden;
        }
        
        /* Header - Flexible and responsive */
        .header {
            position: sticky;
            top: 0;
            background: rgba(5, 5, 8, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            padding: 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            z-index: 50;
            flex-wrap: wrap;
        }
        
        .header-title {
            flex-shrink: 0;
            min-width: 150px;
        }
        
        .header-title h1 {
            font-size: clamp(18px, 2.5vw, 24px);
            margin: 0;
        }
        
        .header-title p {
            font-size: clamp(11px, 1.2vw, 13px);
            margin: 0;
            color: var(--text-muted);
        }
        
        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
            flex: 1;
            max-width: 100%;
        }
        
        .header-actions > div {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        /* Page content - no overflow */
        .page-content {
            padding: 24px;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        /* Stats Grid - Fluid responsive */
        .stats-grid {
            display: grid;
            gap: 16px;
            margin-bottom: 24px;
            width: 100%;
        }
        
        /* Default: auto-fit for flexible columns */
        .stats-grid {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        }
        
        /* Stat cards - Flexible sizing */
        .stat-card {
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        
        .stat-value {
            font-size: clamp(24px, 3vw, 36px);
            word-break: break-word;
        }
        
        .stat-label {
            font-size: clamp(10px, 1.1vw, 12px);
        }
        
        /* Charts grid - responsive */
        .charts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }
        
        /* Chart cards */
        .chart-card {
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        
        /* Funnel selector */
        .funnel-selector {
            min-width: 100px;
            max-width: 180px;
            font-size: 12px;
            padding: 8px 12px;
            flex-shrink: 1;
        }
        
        /* Data tables - scrollable */
        .data-table-wrapper,
        .table-container {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .data-table {
            min-width: 600px;
        }
        
        /* Modals - responsive */
        .modal-content {
            max-width: calc(100vw - 32px);
            max-height: calc(100vh - 32px);
            margin: 16px;
            overflow-y: auto;
        }
        
        /* ============================================
           BREAKPOINT: Large screens (1400px+)
        ============================================ */
        @media (min-width: 1400px) {
            .sidebar {
                width: 280px;
                min-width: 280px;
                max-width: 280px;
                padding: 28px 20px;
            }
            .main-content {
                margin-left: 280px;
                width: calc(100% - 280px);
                max-width: calc(100% - 280px);
            }
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
            }
        }
        
        /* ============================================
           BREAKPOINT: Medium-large (1200px - 1399px)
        ============================================ */
        @media (max-width: 1399px) and (min-width: 1200px) {
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
            }
        }
        
        /* ============================================
           BREAKPOINT: Medium screens (1024px - 1199px)
        ============================================ */
        @media (max-width: 1199px) and (min-width: 1024px) {
            .sidebar {
                width: 220px;
                min-width: 220px;
                max-width: 220px;
                padding: 20px 14px;
            }
            .main-content {
                margin-left: 220px;
                width: calc(100% - 220px);
                max-width: calc(100% - 220px);
            }
            .sidebar-logo span {
                font-size: 18px;
            }
            .nav-item {
                padding: 12px 14px;
                font-size: 13px;
            }
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
            }
        }
        
        /* ============================================
           BREAKPOINT: Tablet (768px - 1023px)
        ============================================ */
        @media (max-width: 1023px) and (min-width: 768px) {
            .sidebar {
                width: 70px;
                min-width: 70px;
                max-width: 70px;
                padding: 16px 8px;
            }
            .sidebar-logo span,
            .nav-section-title,
            .nav-item span:not(.nav-item-icon):not(.nav-item-badge),
            .user-info {
                display: none;
            }
            .sidebar-logo {
                justify-content: center;
                padding: 0;
            }
            .sidebar-logo-icon {
                width: 40px;
                height: 40px;
            }
            .nav-item {
                justify-content: center;
                padding: 12px;
            }
            .nav-item-icon {
                font-size: 18px;
            }
            .user-menu {
                justify-content: center;
            }
            .user-avatar {
                width: 36px;
                height: 36px;
            }
            .main-content {
                margin-left: 70px;
                width: calc(100% - 70px);
                max-width: calc(100% - 70px);
            }
            .header {
                padding: 14px 20px;
            }
            .page-content {
                padding: 20px;
            }
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
                gap: 12px;
            }
            .stat-card {
                padding: 16px;
            }
            .header-title h1 {
                font-size: 18px;
            }
            .funnel-selector {
                min-width: 80px;
                max-width: 140px;
                padding: 6px 10px;
                font-size: 11px;
            }
        }
        
        /* ============================================
           BREAKPOINT: Mobile (< 768px)
        ============================================ */
        @media (max-width: 767px) {
            /* FIX: Sidebar usa transform (nao display:none) para permitir toggle mobile */
            .sidebar {
                display: flex;
                flex-direction: column;
                width: 280px;
                max-width: 85vw;
                transform: translateX(-100%);
                transition: transform 0.25s ease-out;
                box-shadow: none;
                z-index: 1001;
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
            }
            body.sidebar-open .sidebar {
                transform: translateX(0);
                box-shadow: 8px 0 24px rgba(0,0,0,0.4);
            }
            .sidebar-logo span,
            .nav-section-title,
            .nav-item span:not(.nav-item-icon):not(.nav-item-badge),
            .user-info {
                display: initial !important;
            }
            .nav-item {
                justify-content: flex-start;
                padding: 14px 20px;
            }
            .sidebar-logo {
                justify-content: flex-start;
                padding: 0 8px;
            }
            .main-content {
                margin-left: 0;
                width: 100%;
                max-width: 100%;
            }
            .header {
                padding: 12px 16px;
                flex-direction: row;
                align-items: center;
                gap: 8px;
            }
            .header-title {
                flex: 1;
                min-width: 0;
            }
            .header-title h1 {
                font-size: 16px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .header-title p {
                display: none;
            }
            .header-actions {
                flex-wrap: wrap;
                justify-content: center;
                gap: 6px;
                width: 100%;
            }
            .header-actions > div {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }
            .header-actions .funnel-selector {
                flex: 1;
                min-width: 0 !important;
                max-width: 100% !important;
                font-size: 11px;
                padding: 6px 8px;
            }
            .page-content {
                padding: 16px;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px;
            }
            .stat-card {
                padding: 14px;
            }
            .stat-value {
                font-size: 20px;
            }
            .stat-label {
                font-size: 10px;
            }
            .stat-icon {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }
            .charts-grid {
                grid-template-columns: 1fr;
            }
            .chart-card {
                padding: 16px;
            }
            .funnel-selector {
                width: 100%;
                max-width: 100%;
            }
            .btn-secondary {
                padding: 8px 12px;
                font-size: 12px;
            }
            .quick-actions {
                flex-direction: column;
            }
            .recovery-stats {
                grid-template-columns: 1fr;
            }
            .modal-content {
                margin: 8px;
                max-width: calc(100vw - 16px);
                border-radius: 12px;
            }
            /* Tabelas mobile */
            .data-table {
                font-size: 11px;
            }
            .data-table th,
            .data-table td {
                padding: 8px 10px;
                white-space: nowrap;
            }
            .table-scroll-container {
                max-height: 400px;
            }
            /* Panel headers mobile */
            .panel-header {
                flex-direction: column;
                gap: 12px;
                align-items: stretch;
            }
            .panel-title h2 {
                font-size: 16px;
            }
        }
        
        /* ============================================
           BREAKPOINT: Small mobile (< 480px)
        ============================================ */
        @media (max-width: 479px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 8px;
            }
            .stat-card {
                padding: 10px;
            }
            .stat-value {
                font-size: 18px;
            }
            .stat-label {
                font-size: 9px;
            }
            .stat-icon {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
            .header-title h1 {
                font-size: 14px;
            }
            .page-content {
                padding: 10px;
            }
            .chart-card {
                padding: 12px;
            }
            .btn-secondary {
                padding: 6px 10px;
                font-size: 11px;
            }
        }
        
        /* ============================================
           Fix for zoom-related issues
           (Do NOT use * { max-width: 100% } - breaks flex/grid)
        ============================================ */
        
        /* Only contain overflow on layout wrappers */
        html {
            overflow-x: hidden;
            width: 100%;
        }
        body {
            overflow-x: hidden;
            width: 100%;
            min-width: 0;
        }
        .main-content {
            overflow-x: hidden;
            min-width: 0;
        }
        .page-content {
            min-width: 0;
        }
        
        /* Elements that may have fixed width - allow overflow for modals */
        .modal,
        .modal-content,
        .dropdown-menu,
        .tooltip,
        [style*="position: fixed"],
        [style*="position:fixed"] {
            max-width: none;
        }
        
        /* Tables: allow horizontal scroll in wrapper, no max-width on cells */
        table, th, td, tr {
            max-width: none;
        }
        
        /* Ensure smooth transitions on resize */
        .sidebar,
        .main-content,
        .header,
        .stats-grid,
        .stat-card {
            transition: all 0.2s ease-out;
        }
        
        /* Fix inline styles in HTML that use fixed grid columns */
        .page-content .stats-grid[style*="grid-template-columns: repeat(6"] {
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        }
        
        .page-content .stats-grid[style*="grid-template-columns: repeat(5"] {
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        }
        
        .page-content .stats-grid[style*="grid-template-columns: repeat(4"] {
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        }

        /* Fix inline grids on mobile - force responsive behavior */
        @media (max-width: 767px) {
            .page-content div[style*="grid-template-columns: 1fr 1fr"],
            .page-content div[style*="grid-template-columns: repeat(2"],
            .page-content div[style*="grid-template-columns: repeat(3"],
            .page-content div[style*="grid-template-columns: 1fr auto"],
            .page-content div[style*="grid-template-columns: 2fr 1fr"] {
                grid-template-columns: 1fr !important;
            }
            .page-content div[style*="grid-template-columns: 50px repeat(24"] {
                grid-template-columns: 30px repeat(24, 1fr) !important;
                font-size: 8px !important;
            }
            .modal div[style*="grid-template-columns: 1fr 1fr"],
            .modal div[style*="grid-template-columns: repeat(2"] {
                grid-template-columns: 1fr !important;
            }
        }
        @media (max-width: 479px) {
            .page-content div[style*="grid-template-columns: repeat(auto-fit, minmax(200px"],
            .page-content div[style*="grid-template-columns: repeat(auto-fit, minmax(220px"],
            .page-content div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"],
            .page-content div[style*="grid-template-columns: repeat(auto-fill, minmax(340px"] {
                grid-template-columns: 1fr !important;
            }
        }

/* ==================== CARD ENTRANCE ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Staggered card animations */
#tab-overview .stat-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

#tab-overview .stats-grid:first-of-type .stat-card:nth-child(1) { animation-delay: 0.05s; }
#tab-overview .stats-grid:first-of-type .stat-card:nth-child(2) { animation-delay: 0.10s; }
#tab-overview .stats-grid:first-of-type .stat-card:nth-child(3) { animation-delay: 0.15s; }
#tab-overview .stats-grid:first-of-type .stat-card:nth-child(4) { animation-delay: 0.20s; }
#tab-overview .stats-grid:first-of-type .stat-card:nth-child(5) { animation-delay: 0.25s; }
#tab-overview .stats-grid:first-of-type .stat-card:nth-child(6) { animation-delay: 0.30s; }

#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(1) { animation-delay: 0.35s; }
#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(2) { animation-delay: 0.40s; }
#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(3) { animation-delay: 0.45s; }
#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(4) { animation-delay: 0.50s; }
#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(5) { animation-delay: 0.55s; }
#tab-overview .stats-grid:nth-of-type(2) .stat-card:nth-child(6) { animation-delay: 0.60s; }

#tab-overview .chart-card {
    opacity: 0;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: 0.4s;
}

/* Stat card hover lift effect */
#tab-overview .stat-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#tab-overview .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Trend badge styles */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.trend-badge.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.trend-badge.down {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.trend-badge.neutral {
    background: rgba(161, 161, 170, 0.15);
    color: #a1a1aa;
}

/* Sparkline container */
.sparkline-container {
    position: absolute;
    bottom: 8px;
    right: 12px;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#tab-overview .stat-card:hover .sparkline-container {
    opacity: 0.65;
}

/* Enhanced stat card for sparkline support */
#tab-overview .stat-card {
    position: relative;
    overflow: hidden;
}

/* Chart tooltip custom styling */
.chart-tooltip {
    background: rgba(15, 15, 23, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* World map widget */
.country-map-card {
    position: relative;
    overflow: hidden;
}

.country-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* Countries table responsive */
@media (max-width: 768px) {
    #countriesListContainer tr td:nth-child(5),
    #countriesTotalsRow tr td:nth-child(5),
    #countriesListContainer tr td:nth-child(7),
    #countriesTotalsRow tr td:nth-child(7) {
        display: none;
    }
    thead tr th:nth-child(5),
    thead tr th:nth-child(7) {
        display: none;
    }
}

/* Countries pagination buttons hover */
#countriesPaginationButtons button:not(:disabled):hover {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    color: #818cf8 !important;
}

/* Countries search focus */
#countriesSearch:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Countries sort select */
#countriesSortBy option, #countriesPerPage option {
    background: #1a1a2e;
    color: #fff;
}

/* ==================== ACTIVE USERS WIDGET ==================== */
@keyframes activePulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes activeGlow {
    0% { transform: translateX(-10%) translateY(-10%); }
    100% { transform: translateX(10%) translateY(10%); }
}

@keyframes activeCountUp {
    0% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.active-page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.active-page-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.active-page-badge .page-count {
    color: #60a5fa;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ==================== LOADING SKELETONS ==================== */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    animation: skeletonShimmer 1.8s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-line {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }

.skeleton-bar {
    height: 32px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

/* ==================== FUNNEL VISUAL ==================== */
.funnel-stage {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.funnel-trapezoid {
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
    margin: 0 auto;
}

.funnel-trapezoid:hover {
    filter: brightness(1.15);
    transform: scaleX(1.02);
}

.funnel-dropoff {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

.funnel-dropoff-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #ef4444;
    opacity: 0.7;
}

/* ==================== CUSTOM TOOLTIP ==================== */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: help;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.info-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 23, 0.95);
    backdrop-filter: blur(12px);
    color: #e4e4e7;
    font-size: 11px;
    font-weight: 400;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.info-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== SIDEBAR BADGES ==================== */
.nav-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.nav-item {
    position: relative;
}

/* ==================== KEYBOARD SHORTCUTS MODAL ==================== */
.shortcuts-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.shortcuts-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.shortcuts-modal {
    background: var(--bg-card, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    width: 420px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.shortcut-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.shortcut-key kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #e4e4e7;
    min-width: 24px;
    text-align: center;
}

/* ==================== QUICK SEARCH ==================== */
.quick-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.quick-search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.quick-search-box {
    background: var(--bg-card, #12121a);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.quick-search-input {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    outline: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-search-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.quick-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--text-secondary, #a1a1aa);
    font-size: 14px;
}

.quick-search-item:hover,
.quick-search-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.quick-search-item .qs-icon {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

/* ==================== ActiveCampaign Email Automations ==================== */
.ac-dashboard { display: flex; flex-direction: column; gap: 20px; }
.ac-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ac-header h2 { margin: 0; font-size: 22px; font-weight: 700; }
.ac-header-right { display: flex; align-items: center; gap: 12px; }
.ac-connection-status { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.ac-status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ac-status-dot.connected { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }
.ac-status-dot.disconnected { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.ac-refresh-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.ac-refresh-btn:hover { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.ac-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1200px) { .ac-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ac-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.ac-kpi-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); transition: all 0.2s; }
.ac-kpi-card:hover { border-color: rgba(59, 130, 246, 0.2); transform: translateY(-1px); }
.ac-kpi-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.ac-kpi-data { display: flex; flex-direction: column; gap: 2px; }
.ac-kpi-value { font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.ac-kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.ac-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ac-section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ac-section-header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ac-add-contact-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ac-add-contact-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.ac-table-wrap { overflow-x: auto; }
.ac-data-table { width: 100%; border-collapse: collapse; }
.ac-data-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.ac-data-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-primary); }
.ac-data-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.ac-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ac-status-badge.active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ac-status-badge.inactive { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ac-status-badge .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ac-type-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.ac-type-badge.checkout_abandon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ac-type-badge.sale_cancelled { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.ac-type-badge.funnel_abandon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.ac-type-badge.other { background: rgba(107, 114, 128, 0.1); color: #6b7280; }
.ac-lang-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ac-lang-badge.en { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ac-lang-badge.es { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ac-action-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.ac-action-btn:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.ac-action-btn.activate { border-color: rgba(16, 185, 129, 0.3); color: #10b981; }
.ac-action-btn.activate:hover { background: rgba(16, 185, 129, 0.1); }
.ac-action-btn.deactivate { border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }
.ac-action-btn.deactivate:hover { background: rgba(239, 68, 68, 0.1); }
.ac-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .ac-two-columns { grid-template-columns: 1fr; } }
.ac-tags-list, .ac-lists-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
.ac-tag-item, .ac-list-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); transition: all 0.15s; }
.ac-tag-item:hover, .ac-list-item:hover { background: rgba(255,255,255,0.04); }
.ac-tag-name, .ac-list-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.ac-tag-count, .ac-list-count { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ac-search-wrap { display: flex; gap: 8px; }
.ac-search-wrap input { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); font-size: 13px; width: 220px; }
.ac-search-wrap button { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text-primary); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.ac-search-wrap button:hover { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }
.ac-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; }
.ac-pagination button { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s; }
.ac-pagination button:hover:not(:disabled) { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ac-pagination button:disabled { opacity: 0.3; cursor: not-allowed; }
.ac-pagination button.active { background: #3b82f6; color: white; border-color: #3b82f6; }
.ac-submit-btn { padding: 10px 20px; border-radius: 8px; border: none; background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.ac-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.ac-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ac-empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.ac-not-configured { text-align: center; padding: 60px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.ac-not-configured h3 { margin: 16px 0 8px; font-size: 18px; }
.ac-not-configured p { color: var(--text-muted); font-size: 14px; max-width: 400px; margin: 0 auto; }
.ac-not-configured code { display: inline-block; margin-top: 12px; padding: 8px 16px; background: rgba(255,255,255,0.04); border-radius: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #f59e0b; }
[data-theme="light"] .ac-kpi-card { background: #ffffff; }
[data-theme="light"] .ac-section { background: #ffffff; }
[data-theme="light"] .ac-data-table th { background: var(--bg-tertiary); }
[data-theme="light"] .ac-data-table td { color: var(--text-secondary); }
[data-theme="light"] .ac-tag-item, [data-theme="light"] .ac-list-item { background: var(--bg-tertiary); border-color: var(--border); }
[data-theme="light"] .ac-search-wrap input { background: #ffffff; }
[data-theme="light"] .ac-not-configured { background: #ffffff; }
