    :root {
        --primary-50: #e6f3ff;
        --primary-100: #b3d9ff;
        --primary-200: #80bfff;
        --primary-300: #4da6ff;
        --primary-400: #1a8cff;
        --primary-500: #0066cc;
        --primary-600: #0052a3;
        --primary-700: #003d7a;
        --primary-800: #002952;
        --primary-900: #001429;
        
        --success-50: #e6fff2;
        --success-100: #b3ffd9;
        --success-200: #80ffbf;
        --success-300: #4dffa6;
        --success-400: #1aff8c;
        --success-500: #00b074;
        --success-600: #008d5c;
        --success-700: #006a45;
        --success-800: #00472e;
        --success-900: #002417;
        
        --warning-50: #fff9e6;
        --warning-100: #ffecb3;
        --warning-200: #ffdf80;
        --warning-300: #ffd24d;
        --warning-400: #ffc51a;
        --warning-500: #ffc107;
        --warning-600: #cc9a06;
        --warning-700: #997304;
        --warning-800: #664d03;
        --warning-900: #332601;
        
        --error-50: #ffe6e6;
        --error-100: #ffb3b3;
        --error-200: #ff8080;
        --error-300: #ff4d4d;
        --error-400: #ff1a1a;
        --error-500: #dc2626;
        --error-600: #b01e1e;
        --error-700: #831616;
        --error-800: #570f0f;
        --error-900: #2a0707;
        
        --neutral-50: #f8f9fa;
        --neutral-100: #e9ecef;
        --neutral-200: #dee2e6;
        --neutral-300: #ced4da;
        --neutral-400: #adb5bd;
        --neutral-500: #6c757d;
        --neutral-600: #495057;
        --neutral-700: #343a40;
        --neutral-800: #212529;
        --neutral-900: #000000;
        
        --gradient-primary: linear-gradient(145deg, var(--primary-400) 0%, var(--primary-600) 100%);
        --gradient-success: linear-gradient(145deg, var(--success-400) 0%, var(--success-600) 100%);
        --gradient-warning: linear-gradient(145deg, var(--warning-400) 0%, var(--warning-600) 100%);
        --gradient-error: linear-gradient(145deg, var(--error-400) 0%, var(--error-600) 100%);
        --gradient-rainbow: linear-gradient(145deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
        
        --bg-primary: linear-gradient(145deg, #0a0a0f 0%, #111118 50%, #0f0f1a 100%);
        --bg-secondary: linear-gradient(145deg, #1a1a2e 0%, #2a2a5a 100%);
        --bg-mesh: radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 80% 20%, rgba(0, 176, 116, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 40% 40%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
        
        --shadow-3d-xs: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        --shadow-3d-sm: 
            0 4px 8px rgba(0, 0, 0, 0.3),
            0 8px 16px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        --shadow-3d-md: 
            0 8px 16px rgba(0, 0, 0, 0.4),
            0 16px 32px rgba(0, 0, 0, 0.25),
            inset 0 2px 0 rgba(255, 255, 255, 0.15);
        --shadow-3d-lg: 
            0 16px 32px rgba(0, 0, 0, 0.5),
            0 32px 64px rgba(0, 0, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
        --shadow-3d-xl: 
            0 24px 48px rgba(0, 0, 0, 0.6),
            0 48px 96px rgba(0, 0, 0, 0.35),
            inset 0 3px 0 rgba(255, 255, 255, 0.25);
        
        --border-radius-xs: 6px;
        --border-radius-sm: 8px;
        --border-radius-md: 12px;
        --border-radius-lg: 16px;
        --border-radius-xl: 20px;
        --border-radius-2xl: 24px;
        --border-radius-full: 9999px;
        
        --space-1: 4px;
        --space-2: 8px;
        --space-3: 12px;
        --space-4: 16px;
        --space-5: 20px;
        --space-6: 24px;
        --space-8: 32px;
        --space-10: 40px;
        --space-12: 48px;
        --space-16: 64px;
        --space-20: 80px;
        
        --font-size-xs: 12px;
        --font-size-sm: 14px;
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-xl: 20px;
        --font-size-2xl: 24px;
        --font-size-3xl: 30px;
        --font-size-4xl: 36px;
        --font-size-5xl: 48px;
        
        --font-weight-normal: 400;
        --font-weight-medium: 500;
        --font-weight-semibold: 600;
        --font-weight-bold: 700;
        --font-weight-black: 900;
        
        --line-height-tight: 1.2;
        --line-height-normal: 1.5;
        --line-height-relaxed: 1.7;
        
        --transition-fast: 0.15s ease;
        --transition-normal: 0.3s ease;
        --transition-slow: 0.5s ease;
        --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        
        --z-dropdown: 1000;
        --z-sticky: 1020;
        --z-fixed: 1030;
        --z-modal-backdrop: 1040;
        --z-modal: 1050;
        --z-popover: 1060;
        --z-tooltip: 1070;
        --z-toast: 1080;
    }

    [data-theme="dark"] {
        --bg-primary: linear-gradient(145deg, #0a0a0f 0%, #111118 50%, #0f0f1a 100%);
        --bg-secondary: linear-gradient(145deg, #1a1a2e 0%, #2a2a5a 100%);
        --bg-solid: #1e1e2e;
        --bg-card: linear-gradient(145deg, #2d2d44 0%, #3c3c5a 100%);
        --text-primary: #ffffff;
        --text-secondary: #e2e8f0;
        --text-muted: #94a3b8;
        --border-color: rgba(139, 92, 246, 0.4);
        --surface-100: #1e1e2e;
        --surface-200: #2d2d44;
        --surface-300: #3c3c5a;
    }

    [data-theme="light"] {
        --bg-primary: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
        --bg-secondary: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
        --bg-solid: #ffffff;
        --bg-card: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
        --text-primary: #1f2937;
        --text-secondary: #374151;
        --text-muted: #6b7280;
        --border-color: rgba(139, 92, 246, 0.4);
        --surface-100: #f9fafb;
        --surface-200: #f3f4f6;
        --surface-300: #e5e7eb;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        font-size: 16px;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
        background: var(--bg-primary);
        color: var(--text-primary);
        line-height: var(--line-height-normal);
        font-size: var(--font-size-base);
        overflow-x: hidden;
        position: relative;
        min-height: 100vh;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-mesh);
        pointer-events: none;
        z-index: -1;
    }

    .dashboard-container {
        display: flex;
        min-height: 100vh;
        position: relative;
    }

    /* ENHANCED: SVG Icon System */
    .svg-icon {
        width: 1em;
        height: 1em;
        display: inline-block;
        fill: currentColor;
        vertical-align: middle;
        transition: all var(--transition-fast);
        flex-shrink: 0;
    }

    .svg-icon:hover {
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }

    /* ENHANCED: Real-time Connection Indicator */
    .realtime-connection-indicator {
        position: fixed;
        top: 80px;
        right: var(--space-4);
        background: var(--gradient-success);
        color: white;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--border-radius-full);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        z-index: var(--z-toast);
        box-shadow: var(--shadow-3d-sm);
        border: 2px solid rgba(255, 255, 255, 0.2);
        opacity: 0;
        transform: translateX(100%);
        transition: all var(--transition-normal);
    }

    .realtime-connection-indicator.show {
        opacity: 1;
        transform: translateX(0);
    }

    .realtime-connection-indicator.connecting {
        background: var(--gradient-warning);
        animation: pulse 2s infinite;
    }

    .realtime-connection-indicator.disconnected {
        background: var(--gradient-error);
    }

    .realtime-connection-indicator.connected {
        background: var(--gradient-success);
    }

    /* ENHANCED: Live Update Animation */
    .live-update-flash {
        animation: liveUpdateFlash 0.6s ease-out;
    }

    @keyframes liveUpdateFlash {
        0% { 
            background: rgba(16, 185, 129, 0.3);
            transform: scale(1);
        }
        50% { 
            background: rgba(16, 185, 129, 0.6);
            transform: scale(1.02);
        }
        100% { 
            background: transparent;
            transform: scale(1);
        }
    }

    /* OPTIMIZED: Header with better performance */
    .dashboard-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: var(--bg-solid);
        border-bottom: 3px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 var(--space-4);
        z-index: var(--z-fixed);
        box-shadow: var(--shadow-3d-lg);
        transition: all var(--transition-normal);
        transform: translateZ(0);
        will-change: transform;
    }

    .dashboard-header__left {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        flex-shrink: 0;
    }

    .dashboard-header__right {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        flex-shrink: 0;
        position: relative;
    }

    .dashboard-header__icon {
        width: 40px;
        height: 40px;
        border-radius: var(--border-radius-md);
        background: var(--gradient-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-3d-sm);
        font-size: var(--font-size-base);
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
        will-change: transform;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .dashboard-header__icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left var(--transition-normal);
    }

    .dashboard-header__icon:hover {
        transform: translateY(-2px) scale(1.05) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
    }

    .dashboard-header__icon:hover::before {
        left: 100%;
    }

    .dashboard-header__icon:active {
        transform: translateY(-1px) scale(0.98) translateZ(0);
    }

    .dashboard-header__logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: height 0.3s ease;
}

@media (min-width: 1024px) {
    .dashboard-header__logo {
        height: 100px;
    }
}


    /* OPTIMIZED: Sidebar with memory-efficient rendering */
    .dashboard-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        bottom: 0;
        width: 280px;
        background: var(--bg-solid);
        border-right: 3px solid var(--border-color);
        padding: var(--space-4);
        overflow-y: auto;
        z-index: var(--z-sticky);
        transition: all var(--transition-normal);
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
        box-shadow: var(--shadow-3d-md);
        transform: translateZ(0);
        will-change: transform;
    }

    .dashboard-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .dashboard-sidebar::-webkit-scrollbar-thumb {
        background: var(--gradient-primary);
        border-radius: var(--border-radius-full);
    }

    .sidebar-user-card {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        padding: var(--space-4);
        margin-bottom: var(--space-4);
        box-shadow: var(--shadow-3d-md);
        transition: all var(--transition-normal);
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
    }

    .sidebar-user-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-rainbow);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .sidebar-user-card:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
    }
    

    .sidebar-user-card:hover::before {
        opacity: 1;
    }

    .sidebar-user-info {
        display: flex;
        align-items: center;
        margin-bottom: var(--space-3);
    }

    .sidebar-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: var(--border-radius-md);
        margin-right: var(--space-3);
        object-fit: cover;
        border: 3px solid var(--border-color);
        box-shadow: var(--shadow-3d-sm);
        transform: translateZ(0);
    }

    .sidebar-user-name {
        color: var(--text-primary);
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-1);
        
    }

    .sidebar-user-level {
        color: var(--text-muted);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
    }

    .sidebar-progress {
        background: rgba(0, 0, 0, 0.3);
        border-radius: var(--border-radius-full);
        height: 8px;
        overflow: hidden;
        margin-bottom: var(--space-1);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .sidebar-progress-bar {
        height: 100%;
        background: var(--gradient-success);
        border-radius: var(--border-radius-full);
        transition: width var(--transition-slow);
        position: relative;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    .sidebar-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
    }

    .sidebar-progress-text {
        color: var(--text-muted);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
    }

    .sidebar-nav {
        list-style: none;
    }

    .sidebar-nav-item {
        display: flex;
        align-items: center;
        padding: var(--space-3);
        margin: var(--space-1) 0;
        border-radius: var(--border-radius-md);
        cursor: pointer;
        transition: all var(--transition-normal);
        background: var(--bg-card);
        border: 2px solid transparent;
        position: relative;
        overflow: hidden;
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        box-shadow: var(--shadow-3d-xs);
        transform: translateZ(0);
    }

    .sidebar-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
        transition: left var(--transition-normal);
    }

    .sidebar-nav-item:hover {
        background: var(--gradient-primary);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateX(4px) translateY(-1px) translateZ(0);
        box-shadow: var(--shadow-3d-md);
        color: white;
    }

    .sidebar-nav-item:hover::before {
        left: 100%;
    }

    .sidebar-nav-item--active {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-3d-md);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .sidebar-nav-icon {
        width: 18px;
        height: 18px;
        margin-right: var(--space-3);
        text-align: center;
        font-size: var(--font-size-sm);
        flex-shrink: 0;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

    .sidebar-nav-text {
        font-weight: var(--font-weight-semibold);
        font-size: var(--font-size-sm);
        flex: 1;
        
    }

    .sidebar-nav-badge {
        margin-left: auto;
        background: var(--gradient-error);
        color: white;
        padding: 2px 6px;
        border-radius: var(--border-radius-full);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        min-width: 18px;
        text-align: center;
        animation: pulse 2s infinite;
        box-shadow: var(--shadow-3d-xs);
        
    }

    .sidebar-footer-card {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        margin-top: var(--space-4);
        text-align: center;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-3d-sm);
        transform: translateZ(0);
    }

    .sidebar-footer-card:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: var(--shadow-3d-md);
    }

    .sidebar-footer-icon {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-2);
        background: var(--gradient-rainbow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }

    .sidebar-footer-title {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
        color: var(--text-primary);
        margin-bottom: var(--space-1);
        
    }

    .sidebar-footer-text {
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        line-height: var(--line-height-tight);
    }

    /* OPTIMIZED: Main content with better memory management */
    .dashboard-main {
        margin-left: 280px;
        margin-top: 70px;
        padding: var(--space-6);
        min-height: calc(100vh - 70px);
        width: calc(100vw - 280px);
        transition: all var(--transition-normal);
    }

    .dashboard-welcome {
        text-align: center;
        margin-bottom: var(--space-6);
    }

    .dashboard-welcome-title {
        font-size: var(--font-size-3xl);
        font-weight: var(--font-weight-black);
        margin-bottom: var(--space-3);
        background: var(--gradient-rainbow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: var(--line-height-tight);
        
        transform: translateZ(0);
    }

    .dashboard-welcome-subtitle {
        font-size: var(--font-size-base);
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto;
        
    }

    .live-activity-section {
        margin-bottom: var(--space-6);
    }

    .section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--space-4);
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .section-title {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        font-size: var(--font-size-xl);
        font-weight: var(--font-weight-black);
        background: var(--gradient-rainbow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
    }

    .section-icon {
        width: 40px;
        height: 40px;
        background: var(--gradient-success);
        border-radius: var(--border-radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: var(--font-size-lg);
        box-shadow: var(--shadow-3d-sm);
        transform: translateZ(0);
        border: 2px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    /* OPTIMIZED: Live Activity Container with better performance */
    .live-activity-container {
        position: relative;
        overflow: hidden;
        border-radius: var(--border-radius-lg);
        border: 3px solid var(--border-color);
        background: var(--bg-solid);
        box-shadow: var(--shadow-3d-md);
        transform: translateZ(0);
        will-change: transform;
    }

    .live-activity-scroll {
        display: flex;
        gap: var(--space-3);
        padding: var(--space-4);
        overflow-x: auto;
        min-height: 100px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .live-activity-scroll::-webkit-scrollbar {
        display: none;
    }

    .live-lead-card {
        min-width: 200px;
        max-width: 200px;
        height: 90px;
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        cursor: pointer;
        transition: all var(--transition-normal);
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        box-shadow: var(--shadow-3d-sm);
        transform: translateZ(0);
        opacity: 1;
        will-change: transform;
    }

    .live-lead-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.12), transparent);
        transition: left var(--transition-normal);
        pointer-events: none;
    }

    .live-lead-card:hover {
        transform: translateY(-2px) scale(1.02) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
        border-color: rgba(139, 92, 246, 0.8);
    }

    .live-lead-card:hover::before {
        left: 100%;
    }

    .live-lead-content {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        height: 100%;
    }

    .live-lead-avatar {
        position: relative;
        flex-shrink: 0;
    }

    .live-lead-avatar-img {
        width: 32px;
        height: 32px;
        border-radius: var(--border-radius-sm);
        object-fit: cover;
        border: 2px solid var(--border-color);
        box-shadow: var(--shadow-3d-xs);
    }

    .live-lead-status {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: 2px solid var(--bg-solid);
        background: var(--success-500);
        animation: pulse 2s infinite;
        box-shadow: var(--shadow-3d-xs);
    }

    .live-lead-info {
        flex: 1;
        min-width: 0;
    }

    .live-lead-username {
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-1);
        
        background: linear-gradient(145deg, #4f46e5, #9333ea);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    @media (prefers-color-scheme: dark) {
        .live-lead-username {
            background: linear-gradient(145deg, #a78bfa, #ccc9ff);
            
        }
    }

    .live-lead-offer {
        font-size: var(--font-size-xs);
        color: var(--text-secondary);
        margin-bottom: var(--space-1);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        
    }

    .live-lead-time {
        display: flex;
        align-items: center;
        gap: var(--space-1);
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        font-weight: var(--font-weight-medium);
    }

    .live-lead-reward {
        text-align: center;
        flex-shrink: 0;
    }

    .live-lead-amount {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-black);
        margin-bottom: var(--space-1);
        animation: pulse 2s infinite;
        background: linear-gradient(145deg, #22c55e, #16a34a);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
    }

    @media (prefers-color-scheme: dark) {
        .live-lead-amount {
            background: linear-gradient(145deg, #86efac, #4ade80);
            
        }
    }
    .live-activity-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.live-activity-scroll::-webkit-scrollbar {
  display: none;
}

.live-lead-card {
  flex: 0 0 auto;
  width: 180px;
  max-width: 90vw;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.75rem;
  box-shadow: var(--shadow-3d-sm);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.live-lead-card:hover {
  transform: scale(1.03);
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: var(--shadow-3d-lg);
}

.live-lead-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-lead-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  object-fit: cover;
}

.live-lead-info {
  flex: 1;
  min-width: 0;
}

.live-lead-username {
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(145deg, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.live-lead-offer {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-lead-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.25rem;
}

.live-lead-reward {
  text-align: right;
}

.live-lead-amount {
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(145deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ✅ responsiveness */
@media (max-width: 480px) {
  .live-lead-card {
    width: 150px;
    padding: 0.5rem;
  }

  .live-lead-avatar-img {
    width: 28px;
    height: 28px;
  }

  .live-lead-username,
  .live-lead-offer,
  .live-lead-time,
  .live-lead-amount {
    font-size: 0.65rem;
  }
}

@media (min-width: 1440px) {
  .live-lead-card {
    width: 200px;
  }

  .live-lead-avatar-img {
    width: 40px;
    height: 40px;
  }

  .live-lead-username,
  .live-lead-offer,
  .live-lead-time,
  .live-lead-amount {
  
  }
}

@media (min-width: 2560px) {
  .live-lead-card {
    width: 240px;
    padding: 1rem;
  }

  .live-lead-username,
  .live-lead-offer,
  .live-lead-time,
  .live-lead-amount {
    font-size: 1rem;
  }
}


    .cards-section {
        margin-bottom: var(--space-6);
    }

    .cards-container {
        position: relative;
        overflow: hidden;
        margin-bottom: var(--space-4);
    }

    .cards-wrapper {
        display: flex;
        gap: var(--space-4);
        transition: transform var(--transition-normal);
        width: max-content;
    }

    .cards-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%) translateZ(0);
        width: 40px;
        height: 40px;
        background: var(--gradient-primary);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        transition: all var(--transition-normal);
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--font-size-base);
        box-shadow: var(--shadow-3d-md);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .cards-arrow:hover {
        transform: translateY(-50%) scale(1.1) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
    }

    .cards-arrow:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: translateY(-50%) scale(0.9) translateZ(0);
    }

    .cards-arrow--left {
        left: var(--space-3);
    }

    .cards-arrow--right {
        right: var(--space-3);
    }

    /* OPTIMIZED: Offer cards with better memory usage */
    .offer-card {
        width: 260px;
        height: 340px;
        background: var(--bg-card);
        border: 3px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        padding: var(--space-3);
        cursor: pointer;
        transition: all var(--transition-normal);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-3d-md);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        transform: translateZ(0);
        will-change: transform;
    }

    .offer-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-rainbow);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .offer-card:hover {
        transform: translateY(-4px) scale(1.02) translateZ(0);
        box-shadow: var(--shadow-3d-xl);
        border-color: rgba(139, 92, 246, 0.8);
    }

    .offer-card:hover::before {
        opacity: 1;
    }

    .offer-card-image-container {
        position: relative;
        margin-bottom: var(--space-3);
        border-radius: var(--border-radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-3d-sm);
    }

    .offer-card-image {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: var(--border-radius-md);
        transform: translateZ(0);
    }

    .offer-card-badge {
        position: absolute;
        top: var(--space-2);
        right: var(--space-2);
        background: var(--gradient-success);
        color: white;
        padding: var(--space-1) var(--space-2);
        border-radius: var(--border-radius-sm);
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-xs);
        box-shadow: var(--shadow-3d-sm);
        
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .offer-card-category {
        position: absolute;
        bottom: var(--space-2);
        left: var(--space-2);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: var(--space-1) var(--space-2);
        border-radius: var(--border-radius-sm);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-semibold);
        backdrop-filter: blur(4px);
        box-shadow: var(--shadow-3d-xs);
        
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .offer-card-title {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-bold);
        margin-bottom: var(--space-2);
        color: var(--text-primary);
        line-height: var(--line-height-tight);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        
    }

    .offer-card-description {
        color: var(--text-muted);
        font-size: var(--font-size-xs);
        margin-bottom: var(--space-3);
        line-height: var(--line-height-normal);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex: 1;
    }

    .offer-card-footer {
        margin-top: auto;
    }
    .rainbow-icon {
    font-size: var(--font-size-xl);
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}


    .offer-card-reward {
        font-size: var(--font-size-lg);
        font-weight: var(--font-weight-black);
        background: #23cb77;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: var(--space-3);
     
    }

    .section-cards-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-4);
        margin-bottom: var(--space-6);
    }

    .section-card {
        background: var(--bg-card);
        border: 3px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        padding: var(--space-4);
        cursor: pointer;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-3d-md);
        text-align: center;
        position: relative;
        overflow: hidden;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateZ(0);
    }

    .section-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-rainbow);
        opacity: 0;
        transition: opacity var(--transition-normal);
    }

    .section-card:hover {
        transform: translateY(-4px) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
        border-color: rgba(139, 92, 246, 0.8);
    }

    .section-card:hover::before {
        opacity: 1;
    }

    .section-card-icon {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-3);
        animation: float 3s ease-in-out infinite;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transform: translateZ(0);
    }

    .section-card-title {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
        margin-bottom: var(--space-2);
        background: var(--gradient-rainbow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
    }

    .section-card-description {
        color: var(--text-muted);
        margin-bottom: var(--space-3);
        font-size: var(--font-size-xs);
    }

    .section-card-value {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
        background: var(--gradient-success);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
         
    }

    /* OPTIMIZED: Button styles with better performance */
    .dashboard-button {
        background: var(--gradient-primary);
        border: none;
        border-radius: var(--border-radius-md);
        color: white;
        font-weight: var(--font-weight-semibold);
        padding: var(--space-2) var(--space-4);
        cursor: pointer;
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-3d-sm);
        position: relative;
        overflow: hidden;
        font-size: var(--font-size-sm);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        text-decoration: none;
        will-change: transform;
        border: 2px solid rgba(255, 255, 255, 0.1);
        
        transform: translateZ(0);
        min-height: 36px;
    }

    .dashboard-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left var(--transition-normal);
    }

    .dashboard-button:hover {
        transform: translateY(-2px) scale(1.02) translateZ(0);
        box-shadow: var(--shadow-3d-lg);
    }

    .dashboard-button:hover::before {
        left: 100%;
    }

    .dashboard-button:active {
        transform: translateY(-1px) scale(0.98) translateZ(0);
    }

    .dashboard-button--full {
        width: 100%;
    }

    .dashboard-button--small {
        padding: var(--space-1) var(--space-3);
        font-size: var(--font-size-xs);
        min-height: 28px;
    }

    /* OPTIMIZED: Chat with better memory management */
    .dashboard-chat {
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        width: 320px;
        background: var(--bg-solid);
        border-left: 3px solid var(--border-color);
        z-index: var(--z-fixed);
        transition: width var(--transition-normal);
        box-shadow: var(--shadow-3d-lg);
        display: flex;
        flex-direction: column;
        transform: translateZ(0);
        will-change: transform;
    }

    .dashboard-chat:not(.dashboard-chat--open) {
        width: 0;
        overflow: hidden;
        border-left: none;
    }

    .dashboard-chat--open {
        width: 320px;
    }

    .dashboard-chat-header {
        padding: var(--space-3);
        border-bottom: 2px solid var(--border-color);
        background: var(--bg-card);
        flex-shrink: 0;
        box-shadow: var(--shadow-3d-sm);
    }

    .dashboard-chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: var(--space-3);
        max-height: calc(100vh - 240px);
        font-size: var(--font-size-sm);
        background: var(--bg-solid);
        border: 2px solid var(--border-color);
        margin: var(--space-2);
        border-radius: var(--border-radius-md);
        scrollbar-width: thin;
        scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .dashboard-chat-messages::-webkit-scrollbar {
        width: 6px;
    }

    .dashboard-chat-messages::-webkit-scrollbar-track {
        background: transparent;
    }

    .dashboard-chat-messages::-webkit-scrollbar-thumb {
        background: var(--gradient-primary);
        border-radius: var(--border-radius-full);
    }

    .dashboard-chat-input-container {
        padding: var(--space-3);
        border-top: 2px solid var(--border-color);
        background: var(--bg-solid);
        flex-shrink: 0;
        box-shadow: var(--shadow-3d-sm);
    }

    .dashboard-chat-input {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-2) var(--space-3);
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        transition: all var(--transition-normal);
        width: 100%;
        resize: none;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .dashboard-chat-input:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
        outline: none;
    }

    .chat-message {
        margin-bottom: var(--space-3);
        padding: var(--space-2);
        border-radius: var(--border-radius-sm);
        background: var(--bg-card);
        animation: slideIn 0.3s ease-out;
        box-shadow: var(--shadow-3d-xs);
        border: 1px solid var(--border-color);
        font-size: var(--font-size-sm);
    }

    /* OPTIMIZED: Modal styles with better performance */
    .dashboard-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(8px);
        z-index: var(--z-modal);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        padding: var(--space-4);
    }

    .dashboard-modal--show {
        opacity: 1;
        visibility: visible;
    }

    .dashboard-modal-content {
        background: var(--bg-solid);
        border: 3px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-3d-xl);
        color: var(--text-primary);
        transform: scale(0.95) translateZ(0);
        transition: transform var(--transition-normal);
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        width: 100%;
        max-width: 500px;
    }

    .dashboard-modal--show .dashboard-modal-content {
        transform: scale(1) translateZ(0);
    }

    .modal-small .dashboard-modal-content {
        max-width: 400px;
    }

    .modal-medium .dashboard-modal-content {
        max-width: 600px;
    }

    .modal-large .dashboard-modal-content {
        max-width: 800px;
    }

    .modal-xl .dashboard-modal-content {
        max-width: 1000px;
        max-height: 95vh;
    }

    .dashboard-notification {
        position: fixed;
        top: 80px;
        right: var(--space-4);
        z-index: var(--z-toast);
        padding: var(--space-3) var(--space-4);
        border-radius: var(--border-radius-md);
        background: var(--gradient-success);
        color: white;
        box-shadow: var(--shadow-3d-lg);
        transform: translateX(100%) translateZ(0);
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        opacity: 0;
        max-width: 300px;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        border: 2px solid rgba(255, 255, 255, 0.2);
        
    }

    .dashboard-notification--show {
        transform: translateX(0) translateZ(0);
        opacity: 1;
    }

    .dashboard-notification--error {
        background: var(--gradient-error);
    }

    .dashboard-notification--warning {
        background: var(--gradient-warning);
    }

    /* OPTIMIZED: Footer with better performance */
    .dashboard-footer {
        background: var(--bg-solid);
        border-top: 3px solid var(--border-color);
        margin-left: 280px;
        padding: var(--space-6) var(--space-4);
        transition: all var(--transition-normal);
        color: var(--text-primary);
        box-shadow: var(--shadow-3d-md);
    }

    .dashboard-footer-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-4);
    }

    .dashboard-footer-section {
        margin-bottom: var(--space-4);
    }

    .dashboard-footer-title {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-bold);
        margin-bottom: var(--space-3);
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
    }

    .dashboard-footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .dashboard-footer-link {
        color: var(--text-muted);
        text-decoration: none;
        transition: color var(--transition-normal);
        font-size: var(--font-size-sm);
    }

    .dashboard-footer-link:hover {
        color: var(--primary-500);
    }

    /* OPTIMIZED: Dropdown styles with better positioning */
    .dashboard-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg-solid);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-2) 0;
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px) translateZ(0);
        transition: all var(--transition-normal);
        z-index: var(--z-dropdown);
        box-shadow: var(--shadow-3d-lg);
    }

    .dashboard-dropdown--show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateZ(0);
    }

    .dashboard-dropdown-item {
        display: flex;
        align-items: center;
        padding: var(--space-2) var(--space-3);
        color: var(--text-primary);
        text-decoration: none;
        transition: background var(--transition-normal);
        cursor: pointer;
        font-size: var(--font-size-sm);
    }

    .dashboard-dropdown-item:hover {
        background: var(--bg-card);
    }

    .dashboard-dropdown-item i {
        margin-right: var(--space-2);
        width: 16px;
        text-align: center;
    }

    .dashboard-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        width: 100%;
        padding: var(--space-4);
    }

    .dashboard-loading-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid rgba(139, 92, 246, 0.2);
        border-top: 3px solid var(--primary-500);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto var(--space-3);
        box-shadow: var(--shadow-3d-sm);
    }

    .dashboard-loading-text {
        text-align: center;
        color: var(--text-primary);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
    }

    .iframe-container {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: var(--border-radius-md);
        overflow: hidden;
        background: var(--bg-solid);
        position: relative;
    }

    .iframe-loading {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-solid);
        z-index: 10;
    }

    .iframe-error {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: var(--space-4);
        text-align: center;
        background: var(--bg-card);
        border-radius: var(--border-radius-md);
    }

    /* OPTIMIZED: Notification badge */
    .notification-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: var(--gradient-error);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: pulse 2s infinite;
        box-shadow: var(--shadow-3d-sm);
        border: 2px solid var(--bg-solid);
    }
    .progress-bar-container {
            background: var(--neutral-700);
            border-radius: var(--border-radius-full);
            height: 12px;
            overflow: hidden;
            position: relative;
        }

        .progress-bar {
            background: linear-gradient(90deg, #00f260, #0575e6);
            height: 100%;
            border-radius: var(--border-radius-full);
            transition: width 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .progress-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 2s infinite;
        }
        .iframe-controls {
            position: absolute;
            bottom: 16px;
            left: 16px;
            z-index: 10;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 8px;
            padding: 8px;
        }

        .iframe-controls button {
            color: white;
            background: none;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .iframe-controls button:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        @media (max-width: 768px) {
         
            
            #videoPlayer {
                height: 200px !important;
            }
            
             
        }

        @media (max-width: 480px) {
            #videoPlayer {
                height: 180px !important;
            }
            
 
        }

    /* OPTIMIZED: Responsive breakpoints with better mobile performance */
    @media (max-width: 1400px) {
        .dashboard-main {
            margin-right: 0;
        }
        
        .dashboard-footer {
            margin-right: 0;
        }
        
        .dashboard-chat {
            width: 100vw;
        }
        
        .dashboard-chat:not(.dashboard-chat--open) {
            width: 0;
        }
        
        .modal-xl .dashboard-modal-content {
            max-width: 95vw;
            width: 95vw;
        }
    }

    @media (max-width: 1024px) {
        .dashboard-sidebar {
            transform: translateX(-100%);
            z-index: 9998;
        }
        
        .dashboard-sidebar--mobile-open {
            transform: translateX(0);
        }
        
        .dashboard-main {
            margin-left: 0;
            width: 100vw;
            padding: var(--space-4);
        }
        
        .dashboard-footer {
            margin-left: 0;
        }

        .section-header {
            flex-direction: column;
            gap: var(--space-3);
            text-align: center;
        }

        .section-cards-grid {
            grid-template-columns: 1fr;
        }
        
        .offer-card {
            width: 100%;
            max-width: 170px;
            height: 320px;
            margin: 0 auto;
        }
        
        .live-lead-card {
            min-width: 180px;
            max-width: 180px;
            height: 85px;
        }
        
        .modal-large .dashboard-modal-content,
        .modal-xl .dashboard-modal-content {
            max-width: 95vw;
            width: 95vw;
        }

        .cards-wrapper {
            gap: var(--space-3);
        }

        .cards-arrow {
            width: 36px;
            height: 36px;
            font-size: var(--font-size-sm);
        }
    }

    @media (max-width: 768px) {
        html {
            font-size: 14px;
        }

        .dashboard-main {
            padding: var(--space-3);
            margin-top: 70px;
        }
        
        .dashboard-header {
            height: 70px;
            padding: 0 var(--space-3);
        }
        
        .dashboard-header__icon {
            width: 36px;
            height: 36px;
            font-size: var(--font-size-sm);
        }

        .dashboard-header__logo {
            height: 36px;
        }

        .dashboard-welcome-title {
            font-size: var(--font-size-2xl);
        }

        .dashboard-welcome-subtitle {
            font-size: var(--font-size-sm);
        }

        .offer-card {
            width: 100%;
            
            height: 300px;
        }

        .live-lead-card {
            min-width: 160px;
            max-width: 160px;
            height: 80px;
        }

        .live-lead-avatar-img {
            width: 28px;
            height: 28px;
        }

        .section-icon {
            width: 36px;
            height: 36px;
            font-size: var(--font-size-base);
        }

        .section-title {
            font-size: var(--font-size-lg);
        }

        .dashboard-footer-grid {
            grid-template-columns: 1fr;
        }
        
        .dashboard-chat {
            width: 100vw;
        }
        
        .dashboard-modal {
            padding: var(--space-2);
        }
        
        .dashboard-modal-content,
        .modal-small .dashboard-modal-content,
        .modal-medium .dashboard-modal-content,
        .modal-large .dashboard-modal-content,
        .modal-xl .dashboard-modal-content {
            max-width: 95vw;
            width: 95vw;
            max-height: 90vh;
        }

        .sidebar-user-card {
            padding: var(--space-3);
        }

        .sidebar-user-avatar {
            width: 40px;
            height: 40px;
        }

        .sidebar-nav-item {
            padding: var(--space-2);
        }

        .dashboard-button {
            padding: var(--space-2) var(--space-3);
            font-size: var(--font-size-xs);
        }

        .dashboard-button--small {
            padding: var(--space-1) var(--space-2);
            font-size: var(--font-size-xs);
        }
    }

    @media (max-width: 480px) {
        html {
            font-size: 13px;
        }

        .dashboard-main {
            padding: var(--space-2);
        }

        .dashboard-header {
            padding: 0 var(--space-2);
        }

        .dashboard-header__right {
            gap: var(--space-1);
        }

        .live-activity-scroll {
            padding: var(--space-2);
        }

        .live-lead-card {
            min-width: 140px;
            max-width: 140px;
            height: 75px;
        }

        .offer-card {
            height: 280px;
            padding: var(--space-2);
        }

        .offer-card-image {
            height: 80px;
        }

        .dashboard-welcome-title {
            font-size: var(--font-size-xl);
        }

        .section-title {
            font-size: var(--font-size-base);
        }

        .section-cards-grid {
            gap: var(--space-3);
        }

        .section-card {
            padding: var(--space-3);
            min-height: 140px;
        }

        .dashboard-dropdown {
            min-width: 160px;
        }

        .dashboard-notification {
            max-width: 280px;
            right: var(--space-2);
        }
    }

    /* 4K and ultra-wide support */
    @media (min-width: 2560px) {
        .dashboard-main {
            max-width: 2200px;
            margin-left: auto;
            margin-right: auto;
            padding-left: 280px;
        }
        
        .section-cards-grid {
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            max-width: 1600px;
            margin: 0 auto;
        }
        
        .offer-card {
            width: 300px;
            height: 380px;
        }
        
        .modal-xl .dashboard-modal-content {
            max-width: 1200px;
        }

        .dashboard-footer {
            max-width: 2200px;
            margin-left: auto;
            margin-right: auto;
            padding-left: 280px;
        }
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.8; transform: scale(1.05); }
    }

    @keyframes slideIn {
        from { opacity: 0; transform: translateY(20px) translateZ(0); }
        to { opacity: 1; transform: translateY(0) translateZ(0); }
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) translateZ(0); }
        50% { transform: translateY(-6px) translateZ(0); }
    }

    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }

    @keyframes messageFlash {
        0% { background: rgba(139, 92, 246, 0.3); transform: scale(1.02) translateZ(0); }
        100% { background: transparent; transform: scale(1) translateZ(0); }
    }

    .dashboard-gradient-text {
        background: var(--gradient-rainbow);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        
    }

    .dashboard-floating {
        animation: float 3s ease-in-out infinite;
    }

    .dashboard-hidden {
        display: none !important;
    }

    .dashboard-sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    *:focus {
        outline: 2px solid var(--primary-500);
        outline-offset: 2px;
    }

    .dashboard-button:focus,
    .dashboard-header__icon:focus {
        outline: 2px solid #ffffff;
        outline-offset: 2px;
    }

    @media print {
        .dashboard-header,
        .dashboard-sidebar,
        .dashboard-chat,
        .dashboard-footer {
            display: none;
        }
        
        .dashboard-main {
            margin: 0;
            margin-top: 0;
        }
    }

    @media (prefers-contrast: high) {
        :root {
            --border-color: #000000;
            --shadow-3d-md: 0 8px 16px rgba(0, 0, 0, 0.8);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    .no-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .no-scrollbar::-webkit-scrollbar {
        display: none;
    }
    @media (min-width: 1600px) {
  .dashboard-modal-content.modal-xl {
    max-width: 1200px;
  }
  .dashboard-modal-content.modal-large {
    max-width: 1000px;
  }
}
@media (min-width: 2560px) {
  .dashboard-modal-content.modal-xl {
    max-width: 1400px;
  }
  .dashboard-modal-content.modal-large {
    max-width: 1200px;
  }
}


    .instant-indicator {
        position: fixed;
        top: 80px;
        right: var(--space-4);
        background: var(--gradient-success);
        color: white;
        padding: var(--space-2) var(--space-3);
        border-radius: var(--border-radius-full);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        z-index: var(--z-toast);
        animation: pulse 2s infinite;
        opacity: 0;
        transition: opacity var(--transition-fast);
        box-shadow: var(--shadow-3d-sm);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .instant-indicator.show {
        opacity: 1;
    }

    .instant-indicator.connecting {
        background: var(--gradient-warning);
    }

    .instant-indicator.disconnected {
        background: var(--gradient-error);
    }

    .message-flash {
        animation: messageFlash 0.3s ease-out;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .chat-open .dashboard-main {
        margin-right: 320px;
    }

    .chat-open .dashboard-footer {
        margin-right: 320px;
    }

    .modal-security-badge {
        background: var(--gradient-success);
        color: white;
        padding: var(--space-1) var(--space-2);
        border-radius: var(--border-radius-md);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-bold);
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        margin: var(--space-2) 0;
        box-shadow: var(--shadow-3d-xs);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .success-notification {
        position: fixed;
        top: 80px;
        right: var(--space-4);
        z-index: var(--z-toast);
        padding: var(--space-3) var(--space-4);
        border-radius: var(--border-radius-md);
        background: var(--gradient-success);
        color: white;
        box-shadow: var(--shadow-3d-lg);
        transform: translateX(100%) translateZ(0);
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        opacity: 0;
        max-width: 280px;
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-semibold);
        border: 2px solid rgba(255, 255, 255, 0.2);
        
    }

    .success-notification.show {
        transform: translateX(0) translateZ(0);
        opacity: 1;
    }

    .success-notification.hide {
        transform: translateX(120%) translateZ(0);
        opacity: 0;
    }

    .success-notification.success {
        background: var(--gradient-success);
    }

    .success-notification.error {
        background: var(--gradient-error);
    }

    .success-notification.warning {
        background: var(--gradient-warning);
    }

    .success-notification.info {
        background: var(--gradient-primary);
    }

    [data-theme="light"] .fas,
    [data-theme="light"] .fab,
    [data-theme="light"] .fa-solid,
    [data-theme="light"] .fa-regular,
    [data-theme="light"] .fa-brands {
        color: #fdfdfd !important;
    }

    [data-theme="light"] .dashboard-button {
        color: #000712 !important;
    }

    [data-theme="light"] .dashboard-header__icon {
        color: #ffffff !important;
    }

    [data-theme="light"] .sidebar-nav-item--active {
        color: white !important;
    }

    [data-theme="light"] .dashboard-modal-content,
    [data-theme="light"] .offer-modal-enhanced,
    [data-theme="light"] .user-modal-content {
        background: var(--bg-solid) !important;
        color: var(--text-primary) !important;
        border: 3px solid var(--border-color) !important;
        box-shadow: var(--shadow-3d-xl) !important;
    }

    [data-theme="light"] .dashboard-chat {
        background: var(--bg-solid) !important;
        border-left: 3px solid var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    [data-theme="light"] .dashboard-chat-messages {
        background: var(--bg-solid) !important;
        border: 2px solid var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    [data-theme="light"] .chat-message {
        color: var(--text-primary) !important;
    }

    [data-theme="light"] .dashboard-chat-header {
        background: var(--bg-card) !important;
        color: var(--text-primary) !important;
    }

    [data-theme="light"] .dashboard-chat-input {
        background: var(--bg-card) !important;
        border: 2px solid var(--border-color) !important;
        color: var(--text-primary) !important;
    }

    .user-modal {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        z-index: var(--z-modal);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        padding: var(--space-4);
    }

    .user-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .user-modal-content {
        background: var(--bg-solid);
        border: 3px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-3d-xl);
        max-width: 500px;
        width: 90vw;
        max-height: 85vh;
        overflow-y: auto;
        transform: scale(0.95) translateZ(0);
        transition: transform var(--transition-normal);
        padding: var(--space-4);
        position: relative;
        color: var(--text-primary);
    }

    .user-modal.active .user-modal-content {
        transform: scale(1) translateZ(0);
    }

    .offer-modal-enhanced {
        position: relative;
        border-radius: var(--border-radius-xl);
        background: var(--bg-solid);
        border: 3px solid var(--border-color);
        box-shadow: var(--shadow-3d-xl);
        color: var(--text-primary);
        overflow: visible;
        z-index: 10;
        max-width: 900px;
        width: 95vw;
        max-height: 90vh;
    }

    .offer-modal-enhanced::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: var(--border-radius-xl);
        background: var(--gradient-rainbow);
        padding: 3px;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
    }

    .modal-scroll-area {
        height: 80vh;
        overflow-y: auto;
        padding: var(--space-4);
        scroll-behavior: smooth;
    }

    .offer-tab-enhanced {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        padding: var(--space-2) var(--space-3);
        border-radius: var(--border-radius-md);
        cursor: pointer;
        transition: all var(--transition-normal);
        font-weight: var(--font-weight-semibold);
        position: relative;
        overflow: hidden;
        font-size: var(--font-size-sm);
        box-shadow: var(--shadow-3d-xs);
    }

    .offer-tab-enhanced:hover {
        background: rgba(139, 92, 246, 0.2);
        transform: translateY(-1px) translateZ(0);
        box-shadow: var(--shadow-3d-sm);
    }

    .offer-tab-enhanced.active {
        background: var(--gradient-primary);
        color: white;
        border-color: transparent;
        box-shadow: var(--shadow-3d-md);
    }

    .offer-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--space-3);
        margin: var(--space-3) 0;
    }

    .offer-stat-card {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        text-align: center;
        transition: all var(--transition-normal);
        position: relative;
        overflow: hidden;
        box-shadow: var(--shadow-3d-sm);
    }

    .offer-stat-card:hover {
        transform: translateY(-2px) translateZ(0);
        box-shadow: var(--shadow-3d-md);
        border-color: rgba(139, 92, 246, 0.6);
    }

    .offer-stat-value {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-black);
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: var(--space-1);
        
    }

    .offer-stat-label {
        font-size: var(--font-size-xs);
        color: var(--text-muted);
        font-weight: var(--font-weight-semibold);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .tab-content {
        display: block;
    }

    .tab-content.hidden {
        display: none;
    }

    .modal-info-panel {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        margin: var(--space-3) 0;
        box-shadow: var(--shadow-3d-sm);
    }

    .offer-requirement-item {
        display: flex;
        align-items: center;
        padding: var(--space-2) var(--space-3);
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        margin: var(--space-2) 0;
        transition: all var(--transition-normal);
        font-size: var(--font-size-sm);
        box-shadow: var(--shadow-3d-xs);
    }

    .offer-requirement-item:hover {
        background: rgba(139, 92, 246, 0.15);
        transform: translateX(4px) translateZ(0);
    }

    .offer-guide-step {
        display: flex;
        align-items: flex-start;
        padding: var(--space-3);
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        margin: var(--space-2) 0;
        position: relative;
        overflow: hidden;
        font-size: var(--font-size-sm);
        box-shadow: var(--shadow-3d-sm);
    }

    .offer-guide-number {
        width: 24px;
        height: 24px;
        background: var(--gradient-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: var(--font-weight-bold);
        font-size: var(--font-size-xs);
        margin-right: var(--space-3);
        flex-shrink: 0;
        box-shadow: var(--shadow-3d-xs);
        
    }

    .modal-details-tabs {
        display: flex;
        gap: var(--space-2);
        margin: var(--space-3) 0;
        flex-wrap: wrap;
    }

    .modal-details-tab {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        padding: var(--space-2) var(--space-3);
        border-radius: var(--border-radius-sm);
        cursor: pointer;
        transition: all var(--transition-normal);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        flex: 1;
        min-width: 70px;
        text-align: center;
        box-shadow: var(--shadow-3d-xs);
    }

    .modal-details-tab:hover {
        background: rgba(139, 92, 246, 0.2);
    }

    .modal-details-tab.active {
        background: var(--gradient-primary);
        color: white;
        border-color: transparent;
        box-shadow: var(--shadow-3d-sm);
    }

    .modal-details-content {
        background: var(--bg-card);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        margin: var(--space-2) 0;
        min-height: 180px;
        box-shadow: var(--shadow-3d-sm);
        border: 2px solid var(--border-color);
    }

    .video-modal-enhanced,
    .social-modal-enhanced,
    .survey-modal-enhanced,
    .offerwall-modal-enhanced {
        background: var(--bg-solid);
        border: 3px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-3d-xl);
        color: var(--text-primary);
    }

    .connection-status {
        position: fixed;
        bottom: var(--space-4);
        right: var(--space-4);
        background: var(--bg-solid);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        padding: var(--space-2) var(--space-3);
        display: flex;
        align-items: center;
        gap: var(--space-2);
        z-index: var(--z-fixed);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        font-size: var(--font-size-xs);
        box-shadow: var(--shadow-3d-sm);
    }

    .connection-status.show {
        opacity: 1;
        visibility: visible;
    }

    .connection-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: var(--shadow-3d-xs);
    }

    .connection-connected {
        background: var(--success-500);
        animation: pulse 2s infinite;
    }

    .connection-disconnected {
        background: var(--error-500);
    }

    .connection-text {
        color: var(--text-primary);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
    }

    .reaction-container {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-top: var(--space-2);
        padding: var(--space-2) 0;
    }

    .reaction-item {
        display: flex;
        align-items: center;
        gap: var(--space-1);
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
        cursor: pointer;
        transition: all var(--transition-normal);
        min-height: 20px;
        box-shadow: var(--shadow-3d-xs);
    }

    .reaction-item:hover {
        background: rgba(139, 92, 246, 0.25);
        transform: scale(1.05) translateZ(0);
    }

    .reaction-item.active {
        background: var(--gradient-primary);
        border-color: transparent;
        color: white;
        box-shadow: var(--shadow-3d-sm);
    }

    .reaction-count {
        font-weight: var(--font-weight-semibold);
        color: var(--text-primary);
        min-width: 10px;
        text-align: center;
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        padding: var(--space-2) var(--space-3);
        margin: var(--space-2) 0;
        background: var(--bg-card);
        border-radius: var(--border-radius-md);
        animation: pulse 2s infinite;
        font-size: var(--font-size-xs);
        box-shadow: var(--shadow-3d-xs);
        border: 1px solid var(--border-color);
    }

    .typing-dots {
        display: flex;
        gap: var(--space-1);
        margin-right: var(--space-2);
    }

    .typing-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--primary-500);
        animation: typing 1.5s infinite ease-in-out;
        box-shadow: var(--shadow-3d-xs);
    }

    .typing-dot:nth-child(1) { animation-delay: -0.3s; }
    .typing-dot:nth-child(2) { animation-delay: -0.15s; }

    @keyframes typing {
        0%, 80%, 100% { transform: scale(0); }
        40% { transform: scale(1); }
    }

    .emoji-picker-enhanced {
        position: absolute;
        bottom: 100%;
        right: 0;
        background: var(--bg-solid);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-md);
        padding: var(--space-3);
        box-shadow: var(--shadow-3d-lg);
        max-width: 240px;
        max-height: 180px;
        overflow-y: auto;
        z-index: var(--z-dropdown);
    }

    .emoji-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: var(--space-1);
    }

    .emoji-btn {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        border-radius: var(--border-radius-sm);
        padding: var(--space-1);
        font-size: var(--font-size-sm);
        cursor: pointer;
        transition: all var(--transition-normal);
        text-align: center;
        box-shadow: var(--shadow-3d-xs);
    }

    .emoji-btn:hover {
        background: rgba(139, 92, 246, 0.25);
        transform: scale(1.1) translateZ(0);
    }

    .quick-option-btn {
        background: var(--bg-card);
        border: 2px solid var(--border-color);
        color: var(--text-primary);
        padding: var(--space-1) var(--space-2);
        border-radius: var(--border-radius-sm);
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        cursor: pointer;
        transition: all var(--transition-normal);
        text-align: center;
        box-shadow: var(--shadow-3d-xs);
    }

    .quick-option-btn:hover {
        background: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.6);
        transform: translateY(-1px) translateZ(0);
    }

    .fa, .fas, .far, .fab {
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
        transform: translateZ(0);
        transition: transform var(--transition-fast);
    }

    .fa:hover, .fas:hover, .far:hover, .fab:hover {
        transform: translateZ(2px) scale(1.05);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
