:root {
    /* Cyan-to-Pink Theme (matching landing page) */
    --primary-50: #e0fcff;
    --primary-100: #b3f8ff;
    --primary-200: #80f4ff;
    --primary-300: #4df0ff;
    --primary-400: #26ecff;
    --primary-500: #00f5ff;
    --primary-600: #00d4e6;
    --primary-700: #00b3cc;
    --primary-800: #0092b3;
    --primary-900: #007199;
    
    --secondary-50: #ffe0f0;
    --secondary-100: #ffb3d9;
    --secondary-200: #ff80c2;
    --secondary-300: #ff4dab;
    --secondary-400: #ff269a;
    --secondary-500: #ff0080;
    --secondary-600: #e60073;
    --secondary-700: #cc0066;
    --secondary-800: #b30059;
    --secondary-900: #99004d;
    
    --accent-50: #fefbff;
    --accent-100: #fdf4ff;
    --accent-200: #fae8ff;
    --accent-300: #f5d0fe;
    --accent-400: #f0abfc;
    --accent-500: #e879f9;
    --accent-600: #d946ef;
    --accent-700: #c026d3;
    --accent-800: #a21caf;
    --accent-900: #86198f;
    
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    --success-800: #166534;
    --success-900: #14532d;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    --error-50: #fef2f2;
    --error-100: #fee2e2;
    --error-200: #fecaca;
    --error-300: #fca5a5;
    --error-400: #f87171;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;
    --error-800: #991b1b;
    --error-900: #7f1d1d;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #ff0080 100%);
    --gradient-secondary: linear-gradient(135deg, #ff0080 0%, #00f5ff 100%);
    --gradient-accent: linear-gradient(135deg, #00f5ff 25%, #ff0080 75%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-error: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-rainbow: linear-gradient(135deg, #00f5ff 0%, #00d4e6 25%, #ff0080 50%, #22c55e 75%, #f59e0b 100%);
    
    /* BLACK THEME BACKGROUNDS */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(20, 20, 20, 0.9);
    --bg-solid: #000000;
    --bg-mesh: radial-gradient(circle at 25% 25%, rgba(0, 245, 255, 0.05) 0%, transparent 50%),
               radial-gradient(circle at 75% 75%, rgba(255, 0, 128, 0.05) 0%, transparent 50%),
               radial-gradient(circle at 50% 50%, rgba(0, 212, 230, 0.03) 0%, transparent 50%);
    
    --shadow-xs: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 25px 25px -12px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 50px 100px -20px rgba(0, 0, 0, 0.9);
    
    --shadow-3d-xs: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-3d-sm: 
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-3d-md: 
        0 10px 20px rgba(0, 0, 0, 0.7),
        0 6px 8px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --shadow-3d-lg: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 10px 15px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --shadow-3d-xl: 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 15px 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    
    --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: 800;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-bounce: 0.3s 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;
    
    /* BLACK THEME COLORS */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 245, 255, 0.2);
    --surface-100: rgba(20, 20, 20, 0.9);
    --surface-200: rgba(30, 30, 30, 0.8);
    --surface-300: rgba(40, 40, 40, 0.7);
}

/* FORCE BLACK THEME */
[data-theme="dark"],
[data-theme="light"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-solid: #000000;
    --bg-card: rgba(20, 20, 20, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 245, 255, 0.2);
    --surface-100: rgba(20, 20, 20, 0.9);
    --surface-200: rgba(30, 30, 30, 0.8);
    --surface-300: rgba(40, 40, 40, 0.7);
}

/* ================================================
   NEON COLOR UTILITIES (Cyan-to-Pink Theme)
   ================================================ */

/* Neon Blue (Cyan) - Primary */
.text-neon-blue { color: #00f5ff !important; }
.bg-neon-blue { background-color: #00f5ff !important; }
.border-neon-blue { border-color: #00f5ff !important; }
.bg-neon-blue\/10 { background-color: rgba(0, 245, 255, 0.1) !important; }
.bg-neon-blue\/20 { background-color: rgba(0, 245, 255, 0.2) !important; }
.bg-neon-blue\/30 { background-color: rgba(0, 245, 255, 0.3) !important; }
.border-neon-blue\/10 { border-color: rgba(0, 245, 255, 0.1) !important; }
.border-neon-blue\/20 { border-color: rgba(0, 245, 255, 0.2) !important; }
.border-neon-blue\/30 { border-color: rgba(0, 245, 255, 0.3) !important; }
.hover\:text-neon-blue:hover { color: #00f5ff !important; }
.hover\:bg-neon-blue:hover { background-color: #00f5ff !important; }
.hover\:bg-neon-blue\/20:hover { background-color: rgba(0, 245, 255, 0.2) !important; }

/* Neon Pink - Secondary */
.text-neon-pink { color: #ff0080 !important; }
.bg-neon-pink { background-color: #ff0080 !important; }
.border-neon-pink { border-color: #ff0080 !important; }
.bg-neon-pink\/10 { background-color: rgba(255, 0, 128, 0.1) !important; }
.bg-neon-pink\/20 { background-color: rgba(255, 0, 128, 0.2) !important; }
.bg-neon-pink\/30 { background-color: rgba(255, 0, 128, 0.3) !important; }
.border-neon-pink\/10 { border-color: rgba(255, 0, 128, 0.1) !important; }
.border-neon-pink\/20 { border-color: rgba(255, 0, 128, 0.2) !important; }
.border-neon-pink\/30 { border-color: rgba(255, 0, 128, 0.3) !important; }
.hover\:text-neon-pink:hover { color: #ff0080 !important; }
.hover\:bg-neon-pink:hover { background-color: #ff0080 !important; }
.hover\:bg-neon-pink\/20:hover { background-color: rgba(255, 0, 128, 0.2) !important; }

/* Neon Green */
.text-neon-green { color: #00ff88 !important; }
.bg-neon-green { background-color: #00ff88 !important; }
.border-neon-green { border-color: #00ff88 !important; }
.bg-neon-green\/10 { background-color: rgba(0, 255, 136, 0.1) !important; }
.bg-neon-green\/20 { background-color: rgba(0, 255, 136, 0.2) !important; }
.bg-neon-green\/30 { background-color: rgba(0, 255, 136, 0.3) !important; }
.border-neon-green\/10 { border-color: rgba(0, 255, 136, 0.1) !important; }
.border-neon-green\/20 { border-color: rgba(0, 255, 136, 0.2) !important; }
.border-neon-green\/30 { border-color: rgba(0, 255, 136, 0.3) !important; }
.hover\:text-neon-green:hover { color: #00ff88 !important; }
.hover\:bg-neon-green:hover { background-color: #00ff88 !important; }
.hover\:bg-neon-green\/20:hover { background-color: rgba(0, 255, 136, 0.2) !important; }

/* Neon Yellow */
.text-neon-yellow { color: #ffff00 !important; }
.bg-neon-yellow { background-color: #ffff00 !important; }
.border-neon-yellow { border-color: #ffff00 !important; }
.bg-neon-yellow\/10 { background-color: rgba(255, 255, 0, 0.1) !important; }
.bg-neon-yellow\/20 { background-color: rgba(255, 255, 0, 0.2) !important; }
.bg-neon-yellow\/30 { background-color: rgba(255, 255, 0, 0.3) !important; }
.hover\:text-neon-yellow:hover { color: #ffff00 !important; }
.hover\:bg-neon-yellow:hover { background-color: #ffff00 !important; }
.hover\:bg-neon-yellow\/20:hover { background-color: rgba(255, 255, 0, 0.2) !important; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    height: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 20%, #001a1a 40%, #1a0014 60%, #0a0a0a 80%, #000000 100%);
    background-size: 300% 300%;
    animation: gradient-shift 15s ease infinite;
    color: var(--text-primary);
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    font-weight: var(--font-weight-normal);
    height: 100%;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) rotate(360deg);
        opacity: 0;
    }
}

.animate-particle-float {
    animation: particle-float 8s infinite linear;
}

.bg-primary {
    background-color: #00f5ff;
}

.bg-secondary {
    background-color: #ff0080;
}

.bg-accent {
    background-color: #ffff00;
}

.absolute {
    position: absolute;
}

.rounded-full {
    border-radius: 9999px;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    position: relative;
   
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* MOBILE MENU TOGGLE BUTTON */
.mobile-menu-toggle {
    display: none;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-size: var(--font-size-base);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    border: 1px solid rgba(108, 92, 231, 0.4);
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px) scale(1.05) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

/* SIDEBAR OVERLAY FOR MOBILE */
.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(8px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.svg-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: none !important;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
}

.svg-icon:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.5));
}

.svg-icon rect,
.svg-icon path,
.svg-icon polyline,
.svg-icon line,
.svg-icon polygon,
.svg-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.realtime-connection-indicator {
    position: fixed;
    top: 72px;
    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-semibold);
    z-index: var(--z-toast);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(22, 163, 74, 0.4);
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-normal);
    backdrop-filter: blur(16px);
}

.realtime-connection-indicator.show {
    opacity: 1;
    transform: translateX(0);
}

.realtime-connection-indicator.connecting {
    background: var(--gradient-warning);
    animation: pulse-glow 2s infinite;
}

.realtime-connection-indicator.disconnected {
    background: var(--gradient-error);
}

.realtime-connection-indicator.connected {
    background: var(--gradient-success);
}

.live-update-flash {
    animation: liveUpdateFlash 0.5s ease-out;
}

@keyframes liveUpdateFlash {
    0% { 
        background: rgba(108, 92, 231, 0.2);
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% { 
        background: rgba(108, 92, 231, 0.4);
        transform: scale(1.02);
        box-shadow: var(--shadow-lg);
    }
    100% { 
        background: transparent;
        transform: scale(1);
        box-shadow: none;
    }
}
 
/* GRID CARDS REDESIGN - FORCE SMALL CARDS */
.cards-section {
    margin-bottom: var(--space-6);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-2);
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    display: flex;
    align-items: center;
    font-weight: var(--font-weight-bold);
    color: #ddd6fe;
    margin: 0;
    font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-2xl));
    line-height: var(--line-height-tight);
}

/* FORCE GRID CONTAINER */
.cards-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.cards-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 16px !important;
    padding: 8px !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box;
    pointer-events: auto;
}

/* HIDE ARROW CONTROLS COMPLETELY */
.cards-arrow {
    display: none !important;
}

/* FORCE SMALL CARDS */
.offer-card {
    background: linear-gradient(145deg, var(--bg-card), var(--surface-200));
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-md);
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    padding-bottom: 10px !important;
    -webkit-tap-highlight-color: rgba(108, 92, 231, 0.2);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.locked-offer.offer-card {
    min-height: 265px !important;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 92, 231, 0.6);
}

/* FORCE SMALL IMAGES */
.offer-card-image-container {
    position: relative;
    width: 100% !important;
    height: 80px !important;
    max-height: 80px !important;
    min-height: 80px !important;
    overflow: hidden;
    background: var(--surface-200);
    flex-shrink: 0;
}

.offer-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-card-image {
    transform: scale(1.05);
}

/* SMALL BADGES */
.offer-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px !important;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    z-index: 5;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-card-category {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px !important;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* COUNTRY BADGE */
.country-badge {
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100% - 60px);
    font-size: 9px !important;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.8), rgba(162, 155, 254, 0.8));
    backdrop-filter: blur(10px);
}

.country-badge img {
    width: 12px !important;
    height: 9px !important;
    border-radius: 2px;
}

/* OPTIMIZED CARD CONTENT */
.offer-card-title {
    font-size: 13px !important;
    font-weight: bold;
    color: var(--text-primary);
    margin: 6px 10px 4px !important;
    line-height: 1.3 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    flex-shrink: 0;
    height: auto;
    max-height: 20px;
}

.offer-card-description {
    font-size: 11px !important;
    color: var(--text-muted);
    margin: 0 10px 4px !important;
    line-height: 1.3 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 0 auto;
    max-height: 16px;
}

.offerwall-lock-message,
.survey-lock-message,
.offer-lock-message {
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
    border-left: 3px solid #FF5722;
    padding: 6px 8px;
    margin: 3px 10px 5px 10px !important;
    font-size: 10px !important;
    line-height: 1.3;
    border-radius: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 20px);
    flex: 0 0 auto;
    display: block;
}

/* LOCK OVERLAY - IMPROVED DESIGN */
.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(225, 112, 85, 0.95);
    color: white;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 9px !important;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    z-index: 15;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.3;
}

/* HIDE FOOTER WHEN LOCKED */
.offer-card.locked .offer-card-footer {
    display: flex !important;
    pointer-events: auto !important;
}

/* OPTIMIZED FOOTER */
.offer-card-footer {
    margin-top: auto;
    margin-bottom: 4px;
    padding: 12px 12px 4px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    position: relative;
    z-index: 5;
}

@media (max-width: 768px) {
    .offer-card {
        min-height: 270px !important;
        padding: 0 !important;
        padding-bottom: 12px !important;
    }
    
    .locked-offer.offer-card {
        min-height: 275px !important;
    }
    
    .offer-card-title {
        font-size: 13px !important;
        margin: 8px 12px 5px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }
    
    .offer-card-description {
        font-size: 11px !important;
        margin: 0 12px 8px !important;
        line-height: 1.3 !important;
    }
    
    .offer-card-footer {
        padding: 12px 12px 6px 12px !important;
        gap: 10px;
        margin-bottom: 0 !important;
    }
    
    .dashboard-button--small {
        font-size: 11px !important;
        padding: 7px 11px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        height: 34px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 10px !important;
        padding: 6px 8px;
        margin: 4px 12px 6px 12px !important;
    }
}

@media (max-width: 480px) {
    .offer-card {
        min-height: 280px !important;
        padding: 0 !important;
        padding-bottom: 12px !important;
        border-radius: 16px !important;
    }
    
    .locked-offer.offer-card {
        min-height: 285px !important;
    }
    
    .offer-card-title {
        font-size: 13px !important;
        margin: 8px 12px 5px !important;
        line-height: 1.4 !important;
        font-weight: 700 !important;
    }
    
    .offer-card-description {
        font-size: 11px !important;
        margin: 0 12px 8px !important;
        line-height: 1.3 !important;
        opacity: 0.9;
    }
    
    .offer-card-footer {
        padding: 12px 12px 6px 12px !important;
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 0 !important;
        align-items: center;
    }
    
    .dashboard-button--small {
        font-size: 11px !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }
    
    .offer-card-reward {
        font-size: 13px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 10px !important;
        padding: 6px 8px;
        margin: 4px 12px 6px 12px !important;
        line-height: 1.3;
    }
    
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
    
    .offer-card-badge {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }
    
    .offer-card-category {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
}

/* Extra Small Screens - Phones */
@media (max-width: 360px) {
    .offer-card {
        min-height: 275px !important;
        padding: 0 !important;
        padding-bottom: 10px !important;
    }
    
    .locked-offer.offer-card {
        min-height: 280px !important;
    }
    
    .offer-card-title {
        font-size: 12px !important;
        margin: 6px 10px 4px !important;
        line-height: 1.3 !important;
        font-weight: 700 !important;
    }
    
    .offer-card-description {
        font-size: 10px !important;
        margin: 0 10px 6px !important;
        line-height: 1.2 !important;
    }
    
    .offer-card-footer {
        padding: 10px 10px 4px 10px !important;
        gap: 8px;
        margin-bottom: 0 !important;
    }
    
    .offer-card-reward {
        font-size: 12px !important;
    }
    
    .dashboard-button--small {
        font-size: 10px !important;
        padding: 6px 10px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        height: 32px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 7px !important;
        padding: 3px 5px;
        margin: 1px 6px 2px 6px !important;
        line-height: 1.1;
    }
}

.offer-card-reward {
    font-size: 11px !important;
    font-weight: bold;
    color: #00b894;
    white-space: nowrap;
    flex-shrink: 0;
}



/* SMALL BUTTONS - FIXED SIZE */
.dashboard-button--small {
    padding: 6px 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    height: 30px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-button--small:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
}

.dashboard-button--small svg {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-button--small svg rect,
.dashboard-button--small svg path,
.dashboard-button--small svg polyline,
.dashboard-button--small svg line,
.dashboard-button--small svg polygon,
.dashboard-button--small svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.dashboard-button--full {
    flex: 1;
    min-width: 0;
}

/* STAR RATING */
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px 6px;
    font-size: 9px !important;
}

.stars {
    display: flex;
    gap: 1px;
}

.rating-text {
    font-size: 9px !important;
    color: var(--text-muted);
}

/* VIDEO PLAY OVERLAY */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.offer-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.8);
}

.play-icon {
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.offer-card:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.featured-carousel .cards-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* FEATURED CARD: FIXED SIZE */
.featured-carousel .offer-card {
    flex: 0 0 auto !important;
    width: 183px !important;
    height: 240px !important;
    margin: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* RESIZE IMAGE INSIDE CARD AUTOMATICALLY */
.featured-carousel .offer-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* HIDE SCROLLBAR */
.featured-carousel .cards-wrapper::-webkit-scrollbar {
    display: none;
}
.featured-carousel .cards-wrapper {
    scrollbar-width: none;
}

/* ARROWS */
.featured-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(108, 92, 231, 0.8);
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
}
.featured-carousel .carousel-arrow.left {
    left: 10px;
}
.featured-carousel .carousel-arrow.right {
    right: 10px;
}

.offer-modal-description {
    color: rgba(255, 255, 255, 0.9);
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-color);
}

.offer-modal-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.offer-stat {
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.offer-stat-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.offer-stat-value {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.offer-modal-requirements {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.offer-modal-requirements h4 {
    color: white;
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: bold;
}

.offer-modal-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-modal-requirements li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-modal-requirements li:before {
    content: "✓";
    color: #00b894;
    font-weight: bold;
    font-size: 12px;
}

.offer-modal-actions {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.offer-modal-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.offer-modal-button--primary {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

.offer-modal-button--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.offer-modal-button--secondary {
    background: var(--bg-card);
    color: white;
    border: 1px solid var(--border-color);
}

.offer-modal-button--secondary:hover {
    background: var(--surface-200);
}

/* HEADER WITH BLACK THEME */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-primary);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    transform: translateZ(0);
    will-change: transform;
    width: 100%;
    box-sizing: border-box;
}

.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-md);
    font-size: var(--font-size-base);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    border: 1px solid rgba(108, 92, 231, 0.4);
}

.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-lg);
}

.dashboard-header__icon:hover::before {
    left: 100%;
}

.dashboard-header__icon:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

.dashboard-header__logo {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transition: height var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.4));
}

/* SIDEBAR WITH BLACK THEME AND FIXED MOBILE TOGGLE */
.dashboard-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-primary);
    backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-color);
    padding: var(--space-6);
    overflow-y: auto;
    transition: transform var(--transition-normal);
    transform: translateX(0);
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.5) transparent;
    box-shadow: var(--shadow-lg);
    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);
    box-shadow: var(--shadow-sm);
}

/* Desktop sidebar toggle (closed state) */
@media (min-width: 1024px) {
    .dashboard-sidebar.open {
        transform: translateX(-100%) !important;
    }
    
    body.sidebar-open .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
        transition: all var(--transition-normal);
    }
    
    body.sidebar-open .dashboard-footer {
        margin-left: 0 !important;
        width: 100% !important;
        transition: all var(--transition-normal);
    }
    
    .dashboard-main {
        transition: all var(--transition-normal);
    }
}

.sidebar-user-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 20px rgba(168, 85, 247, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backdrop-filter: blur(20px);
}
.sidebar-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.15), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.sidebar-user-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 25%, #ffd23f 50%, #ee4e9a 75%, #a855f7 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.sidebar-user-card:hover {
    transform: translateY(-4px) translateZ(0) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 0 30px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.6);
}

.sidebar-user-card:hover::before {
    left: 100%;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3);
}

.sidebar-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    margin-right: var(--space-3);
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #ff6b35, #a855f7, #ee4e9a) border-box;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4), 0 0 20px rgba(238, 78, 154, 0.3);
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: avatarFloat 3s ease-in-out infinite;
}

.sidebar-user-avatar:hover {
    transform: scale(1.08) rotate(2deg) translateZ(0);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.6), 0 0 30px rgba(238, 78, 154, 0.5);
}

.sidebar-user-name {
    background: linear-gradient(135deg, #ff6b35, #ffd23f, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-1);
    line-height: var(--line-height-tight);
    text-shadow: none;
    animation: gradientText 4s ease infinite;
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.5));
    transition: transform 0.3s ease;
}

.sidebar-user-name:hover {
    transform: scale(1.02);
}

.sidebar-user-level {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.15), rgba(168, 85, 247, 0.15));
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: inline-block;
    transition: all 0.3s ease;
    animation: levelPulse 2s ease-in-out infinite;
}

.sidebar-progress {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-full);
    height: 10px;
    overflow: hidden;
    margin-bottom: var(--space-2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}


.sidebar-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 25%, #ffd23f 50%, #ee4e9a 75%, #a855f7 100%);
    background-size: 200% 100%;
    border-radius: var(--border-radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(238, 78, 154, 0.4), 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: xpGlow 3s ease-in-out infinite, gradientShift 4s ease infinite;
    overflow: hidden;
}

.sidebar-progress-bar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffd23f, #ee4e9a, #a855f7);
    background-size: 200% 100%;
    border-radius: var(--border-radius-full);
    opacity: 0;
    filter: blur(8px);
    animation: gradientShift 4s ease infinite, pulseGlow 2s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.sidebar-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: var(--border-radius-full);
    animation: shimmerXP 2.5s infinite;
    transform: translateX(-100%);
}

.sidebar-progress-text {
    background: linear-gradient(90deg, #ffd23f, #ff6b35, #a855f7);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 13px;
    font-weight: 600;
    animation: gradientText 3s ease infinite;
    filter: drop-shadow(0 2px 4px rgba(168, 85, 247, 0.3));
    text-align: center;
    letter-spacing: 0.3px;
}
.sidebar-nav {
    list-style: none;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    margin: var(--space-2) 0;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-sm);
    transform: translateZ(0);
    backdrop-filter: blur(16px);
}

.sidebar-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.2), transparent);
    transition: left var(--transition-normal);
}

.sidebar-nav-item:hover {
    background: var(--gradient-primary);
    border-color: rgba(108, 92, 231, 0.6);
    transform: translateX(4px) translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-md);
    color: white;
}

.sidebar-nav-item:hover::before {
    left: 100%;
}

.sidebar-nav-item--active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.6);
}

.sidebar-nav-icon {
    width: 20px;
    height: 20px;
    margin-right: var(--space-3);
    text-align: center;
    font-size: var(--font-size-base);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
}

.sidebar-nav-text {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    flex: 1;
    line-height: var(--line-height-tight);
}

.sidebar-nav-badge {
    margin-left: auto;
    background: var(--gradient-error);
    color: white;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    min-width: 20px;
    text-align: center;
    animation: pulse-glow 2s infinite;
    box-shadow: var(--shadow-sm);
    line-height: var(--line-height-tight);
}

.sidebar-footer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin-top: var(--space-6);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    transform: translateZ(0);
    backdrop-filter: blur(16px);
}

.sidebar-footer-card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 92, 231, 0.5);
}

.sidebar-footer-icon {
    font-size: var(--font-size-2xl);
    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 2px 4px rgba(108, 92, 231, 0.3));
}

.sidebar-footer-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.sidebar-footer-text {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    line-height: var(--line-height-normal);
}

/* MAIN CONTENT WITH BLACK THEME */
.dashboard-main {
    margin-left: 280px;
    margin-top: 64px;
    padding: var(--space-8);
    min-height: calc(100vh - 64px);
    width: calc(100vw - 280px);
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: var(--space-8);
}

.dashboard-welcome-title {
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-4);
    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);
    text-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.dashboard-welcome-subtitle {
    font-size: clamp(var(--font-size-sm), 3vw, var(--font-size-lg));
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-normal);
}

/* LIVE ACTIVITY SECTION WITH RESPONSIVE CARDS */
.live-activity-section {
    margin-bottom: var(--space-8);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(var(--font-size-lg), 4vw, var(--font-size-2xl));
    font-weight: var(--font-weight-black);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-tight);
    text-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-success);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
    border: 1px solid rgba(34, 197, 94, 0.4);
    flex-shrink: 0;
}

/* LIVE ACTIVITY — CONTAINER */
.live-activity-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    width: 100%;
    box-sizing: border-box;
}

/* SCROLL AREA */
.live-activity-scroll {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    min-height: 120px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overflow-x: auto;
    width: 100%;
    box-sizing: border-box;
}
.live-activity-scroll::-webkit-scrollbar { display: none; }

/* MOBILE RESPONSIVE SCROLL SNAP */
.live-activity-scroll {
    scroll-snap-type: x mandatory;
}

/* LIVE LEAD CARD - UPDATED FOR MOBILE */
.live-lead-card {
    background: linear-gradient(135deg, var(--bg-card), var(--surface-200));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(16px);
    position: relative;
    transform: translateZ(0);
    min-width: 280px;
    width: 100%;
    max-width: 320px;
    height: auto;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* SHINE EFFECT */
.live-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.live-lead-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 92, 231, 0.8);
}
.live-lead-card:hover::before { left: 120%; }

/* CONTENT LAYOUT */
.live-lead-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    flex-wrap: wrap;
}

.live-lead-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* AVATAR */
.live-lead-avatar {
    position: relative;
    flex-shrink: 0;
}

.live-lead-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-lg);
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.live-lead-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    background: var(--success-500);
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* USERNAME */
.live-lead-username {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
    line-height: 1;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* OFFER + POINT FIX */
.live-lead-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    width: 100%;
    flex-wrap: wrap;
}

.live-lead-offer .offer-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
    word-break: break-word;
    line-height: 1.2;
}

.live-lead-offer .offer-points {
    flex-shrink: 0;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.4);
    white-space: nowrap;
}

/* TIME */
.live-lead-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    margin-top: var(--space-1);
}

/* REWARD */
.live-lead-amount {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.5);
    white-space: nowrap;
    margin-top: var(--space-1);
}

.cards-section {
    margin-bottom: var(--space-8);
}

.cards-container {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.cards-wrapper {
    display: flex;
    gap: var(--space-6);
    transition: transform var(--transition-normal);
    width: max-content;
}

.cards-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 48px;
    height: 48px;
    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-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(108, 92, 231, 0.4);
}

.cards-arrow:hover {
    transform: translateY(-50%) scale(1.1) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.cards-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9) translateZ(0);
}

.cards-arrow--left {
    left: var(--space-4);
}

.cards-arrow--right {
    right: var(--space-4);
}

.offer-card {
    width: 280px;
    height: 360px;
    background: linear-gradient(135deg, var(--bg-card), var(--surface-200));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    will-change: transform;
    backdrop-filter: blur(16px);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.offer-card:hover {
    transform: translateY(-4px) scale(1.02) translateZ(0);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 92, 231, 0.8);
}

.offer-card:hover::before {
    opacity: 1;
}

/* Removed duplicate - defined earlier in file */

.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-md);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    line-height: var(--line-height-tight);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.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-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    line-height: var(--line-height-tight);
    border: 1px solid var(--border-color);
}

.offer-card-title {
    font-size: var(--font-size-lg);
    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;
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.offer-card-description {
    color: var(--text-muted);
    font-size: var(--font-size-base);
    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-2xl);
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
}

.offer-card-reward {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.4);
}

.section-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    width: 100%;
    box-sizing: border-box;
}

.section-card {
    background: linear-gradient(135deg, var(--bg-card), var(--surface-200));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    backdrop-filter: blur(16px);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.section-card::after {
    content: none !important;
}

.section-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: var(--shadow-xl);
    border-color: rgba(108, 92, 231, 0.8);
    background: linear-gradient(135deg, var(--bg-card), var(--surface-200)) !important;
}

.section-card:hover::before {
    opacity: 1;
}

.section-card:hover::after {
    content: none !important;
}

.section-card-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.4));
    transform: translateZ(0);
}

.section-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-2);
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.section-card:hover .section-card-title {
    background: var(--gradient-secondary);
    -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-base);
}

.section-card-value {
    font-weight: var(--font-weight-black);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

.section-card:hover .section-card-value {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-button {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-lg);
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    will-change: transform;
    border: 1px solid rgba(108, 92, 231, 0.4);
    -webkit-tap-highlight-color: rgba(108, 92, 231, 0.3);
    touch-action: manipulation;
    min-height: 40px;
    line-height: var(--line-height-tight);
    transform: translateZ(0);
    min-height: 44px;
}

.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-lg);
}

.dashboard-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.dashboard-button svg rect,
.dashboard-button svg path,
.dashboard-button svg polyline,
.dashboard-button svg line,
.dashboard-button svg polygon,
.dashboard-button svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.dashboard-button:hover::before {
    left: 100%;
}

.dashboard-button:active {
    transform: translateY(0) scale(0.98) translateZ(0);
}

.dashboard-button--full {
    width: 100%;
}

/* CHAT WITH BLACK THEME */
.dashboard-chat {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: 320px;
    background: var(--bg-primary);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-color);
    z-index: var(--z-fixed);
    transition: width var(--transition-normal);
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    will-change: transform;
    box-shadow: var(--shadow-lg);
}

.dashboard-chat:not(.dashboard-chat--open) {
    width: 0;
    overflow: hidden;
    border-left: none;
}

.dashboard-chat--open {
    width: 320px;
}

.dashboard-chat-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.dashboard-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    max-height: calc(100vh - 240px);
    font-size: var(--font-size-base);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    margin: var(--space-2);
    border-radius: var(--border-radius-lg);
    scrollbar-width: thin;
    scrollbar-color: rgba(108, 92, 231, 0.5) transparent;
    box-shadow: inset 0 2px 4px rgba(108, 92, 231, 0.1);
}

.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);
    box-shadow: var(--shadow-sm);
}

.dashboard-chat-input-container {
    padding: var(--space-4);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.dashboard-chat-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    width: 100%;
    resize: none;
    box-shadow: inset 0 2px 4px rgba(108, 92, 231, 0.1);
    backdrop-filter: blur(16px);
}

.dashboard-chat-input:focus {
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: var(--shadow-md), inset 0 2px 4px rgba(108, 92, 231, 0.1);
    outline: none;
}

.chat-message {
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--border-radius-lg);
    background: var(--bg-card);
    animation: slideIn 0.3s ease-out;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    font-size: var(--font-size-base);
    backdrop-filter: blur(16px);
}

/* MODAL WITH BLACK THEME AND FULL RESPONSIVENESS */
.dashboard-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    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-6);
}

.dashboard-modal--show {
    opacity: 1;
    visibility: visible;
}

.dashboard-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    color: var(--text-primary);
    transform: scale(0.95) translateZ(0);
    transition: transform var(--transition-normal);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(24px);
}

.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: 90vh;
}

.dashboard-notification {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-lg);
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%) translateZ(0);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    opacity: 0;
    max-width: 320px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(34, 197, 94, 0.4);
    line-height: var(--line-height-tight);
    backdrop-filter: blur(16px);
}

.dashboard-notification--show {
    transform: translateX(0) translateZ(0);
    opacity: 1;
}

.dashboard-notification--error {
    background: var(--gradient-error);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.4);
}

.dashboard-notification--warning {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.4);
}

/* FOOTER WITH BLACK THEME */
.dashboard-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-left: 280px;
    padding: var(--space-8) var(--space-6);
    transition: all var(--transition-normal);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    box-sizing: border-box;
}

.dashboard-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.dashboard-footer-section {
    margin-bottom: var(--space-6);
}

.dashboard-footer-title {
    font-size: var(--font-size-lg);
    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;
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.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-base);
}

.dashboard-footer-link:hover {
    color: var(--primary-500);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.dashboard-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2) 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) translateZ(0);
    transition: all var(--transition-normal);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.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-4);
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-normal);
    cursor: pointer;
    font-size: var(--font-size-base);
}

.dashboard-dropdown-item:hover {
    background: var(--bg-card);
    color: var(--primary-500);
}

.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-6);
    flex-direction: column;
}

.dashboard-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(108, 92, 231, 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-sm);
}

.dashboard-loading-text {
    text-align: center;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

.iframe-container {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    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-secondary);
    z-index: 10;
}

.iframe-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-6);
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gradient-error);
    color: white;
    border-radius: var(--border-radius-full);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 20px;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    border: 2px solid var(--bg-solid);
    z-index: 10;
    white-space: nowrap;
}

.progress-bar-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-full);
    height: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-bar {
    background: linear-gradient(90deg, #6c5ce7, #a855f7);
    height: 100%;
    border-radius: var(--border-radius-full);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.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.8);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

.iframe-controls button {
    color: white;
    background: none;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.iframe-controls button:hover {
    background: rgba(108, 92, 231, 0.2);
}

/* ENHANCED LOCK STYLES */
.locked-offer {
    position: relative;
    opacity: 0.7;
    cursor: not-allowed !important;
    overflow: hidden !important;
}

.locked-offer:hover {
    transform: none !important;
    box-shadow: none !important;
}

.locked-offer .offer-card-image-container,
.locked-offer .offer-card-content,
.locked-offer .offer-card-title,
.locked-offer .offer-card-description {
    pointer-events: none !important;
}

.locked-offer .offer-card-footer,
.locked-offer .offer-card-footer *,
.locked-offer .offer-card-footer button,
.locked-offer .offer-card-footer .dashboard-button,
.locked-offer .offer-card-footer .locked-button {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.offer-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    z-index: 10;
    backdrop-filter: blur(2px);
}

.offer-lock-content {
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
}

.locked-button {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #6b7280 !important;
    border-color: #6b7280 !important;
}

.locked-button:hover {
    background: #6b7280 !important;
    border-color: #6b7280 !important;
    transform: none !important;
}

.locked-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.locked-button svg rect,
.locked-button svg path,
.locked-button svg polyline,
.locked-button svg line,
.locked-button svg polygon,
.locked-button svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.offerwall-lock-message {
    background: rgba(255, 87, 34, 0.1);  
    color: #FF5722;  
    border-left: 3px solid #FF5722;
    padding: 6px 10px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.survey-lock-message {
    background: rgba(255, 87, 34, 0.1);  
    color: #FF5722;  
    border-left: 3px solid #FF5722;
    padding: 6px 10px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.offer-lock-message {
    background: rgba(255, 87, 34, 0.1);
    color: #FF5722;
    border-left: 3px solid #FF5722;
    padding: 6px 8px;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* MODAL STYLES - FULLY RESPONSIVE */
.offer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    padding: var(--space-2);
    box-sizing: border-box;
}

.offer-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-color);
    position: relative;
    margin: 0 auto;
}

.offer-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.offer-modal-close:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: scale(1.1);
}

.offer-modal-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(16px);
    z-index: 10;
}

.offer-modal-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: block;
    border: 2px solid var(--border-color);
}

.offer-modal-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px;
    line-height: 1.3;
}

.offer-modal-payout {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
}

/* RESPONSIVE BREAKPOINTS WITH ENHANCED FIXES */

/* MOBILE MENU TOGGLE DISPLAY RULES */
/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .offer-card {
        -webkit-tap-highlight-color: rgba(108, 92, 231, 0.2);
        touch-action: manipulation;
    }
    
    .dashboard-button,
    .dashboard-button--small {
        min-height: 44px !important;
        -webkit-tap-highlight-color: rgba(108, 92, 231, 0.3);
        touch-action: manipulation;
    }
    
    .offer-card:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .dashboard-button:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 320px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .dashboard-footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* TABLET BREAKPOINT (768px - 834px) - iPad Air Optimized */
@media (min-width: 768px) and (max-width: 834px) {
    html {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: var(--space-4);
        margin-top: 64px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }

    .dashboard-header {
        height: 64px;
        padding: 0 var(--space-4);
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-header__icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }

    .dashboard-header__logo {
        height: 48px;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 340px !important;
        top: 64px;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - TABLET RESPONSIVE */
    .live-lead-card {
        min-width: 260px;
        max-width: 320px;
        height: auto;
        min-height: 100px;
        padding: var(--space-4);
    }

    .live-lead-content {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .live-lead-avatar-img {
        width: 48px;
        height: 48px;
    }

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

    .live-lead-username {
        font-size: var(--font-size-base);
        margin-bottom: 4px;
    }

    .live-lead-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .live-lead-offer .offer-text {
        font-size: var(--font-size-sm);
        line-height: 1.3;
    }

    .live-lead-offer .offer-points {
        font-size: var(--font-size-sm);
        font-weight: bold;
    }

    .live-lead-time {
        font-size: var(--font-size-sm);
        margin-top: 4px;
    }

    .live-lead-amount {
        font-size: var(--font-size-lg);
        margin-top: 4px;
    }

    /* FIXED: Better card grid for iPad Air */
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 16px !important;
        padding: 12px !important;
    }

    .offer-card {
        height: 280px !important;
        max-height: 280px !important;
        min-height: 280px !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
    }

    .offer-card-image-container {
        height: 120px !important;
        max-height: 120px !important;
        min-height: 120px !important;
    }

    .offer-card-title {
        font-size: 14px !important;
        margin: 10px 10px 6px !important;
        line-height: 1.3 !important;
    }

    .offer-card-description {
        font-size: 12px !important;
        margin: 0 10px 10px !important;
        line-height: 1.4 !important;
    }

    .offer-card-footer {
        padding: 8px 10px !important;
        margin-top: auto !important;
    }

    .dashboard-button--small {
        min-height: 44px !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
        touch-action: manipulation !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-5);
    }

    .section-header {
        flex-direction: row;
        gap: var(--space-4);
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }

    .featured-carousel .offer-card {
        width: 200px !important;
        height: 280px !important;
    }

    .dashboard-footer {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .dashboard-chat {
        width: 100vw;
    }

    .modal-large .dashboard-modal-content,
    .modal-xl .dashboard-modal-content {
        max-width: 90vw;
        width: 90vw;
    }

    /* MODAL FIXES FOR TABLET */
    .offer-modal,
    .dashboard-modal {
        padding: 12px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 720px !important;
        width: 92vw !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }
}

/* LARGER TABLETS (835px - 1023px) */
@media (min-width: 835px) and (max-width: 1023px) {
    html {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: var(--space-5);
        margin-top: 70px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }

    .dashboard-header {
        height: 70px;
        padding: 0 var(--space-5);
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-header__icon {
        width: 42px;
        height: 42px;
        font-size: var(--font-size-base);
    }

    .dashboard-header__logo {
        height: 50px;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 360px !important;
        top: 70px;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 18px !important;
        padding: 14px !important;
    }

    .offer-card {
        height: 300px !important;
        max-height: 300px !important;
        min-height: 300px !important;
    }

    .offer-card-image-container {
        height: 130px !important;
        max-height: 130px !important;
        min-height: 130px !important;
    }

    .offer-card-title {
        font-size: 15px !important;
        margin: 12px 12px 6px !important;
    }

    .offer-card-description {
        font-size: 13px !important;
        margin: 0 12px 12px !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: var(--space-6);
    }

    .featured-carousel .offer-card {
        width: 220px !important;
        height: 300px !important;
    }

    .dashboard-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

/* LARGE MOBILE (640px to 767px) */
@media (min-width: 640px) and (max-width: 767px) {
    html {
        font-size: 12px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: var(--space-3);
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-top: 60px;
    }

    .dashboard-header {
        padding: 0 var(--space-3);
        width: 100%;
        box-sizing: border-box;
        height: 60px;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 300px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - BETTER MOBILE LAYOUT */
    .live-lead-card {
        min-width: 240px;
        max-width: 280px;
        min-height: 90px;
        height: auto;
        padding: var(--space-3);
    }

    .live-lead-content {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .live-lead-avatar-img {
        width: 38px;
        height: 38px;
    }

    .live-lead-info {
        gap: var(--space-1);
    }

    .live-lead-username {
        font-size: var(--font-size-sm);
    }

    .live-lead-offer .offer-text {
        font-size: var(--font-size-xs);
    }

    .live-lead-offer .offer-points {
        font-size: var(--font-size-xs);
    }

    .live-lead-time {
        font-size: var(--font-size-xs);
    }

    .live-lead-amount {
        font-size: var(--font-size-base);
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 12px !important;
    }

    .offer-card {
        height: 190px !important;
        max-height: 190px !important;
        min-height: 190px !important;
    }

    .offer-card-image-container {
        height: 55px !important;
        max-height: 55px !important;
        min-height: 55px !important;
    }

    .section-cards-grid {
        gap: var(--space-4);
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: var(--space-4);
        min-height: 140px;
        width: 100%;
        box-sizing: border-box;
    }

    .featured-carousel .offer-card {
        width: 140px !important;
    }

    .dashboard-footer {
        margin-left: 0;
        width: 100%;
    }

    /* MODAL FIXES FOR LARGE MOBILE */
    .offer-modal,
    .dashboard-modal {
        padding: 8px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 94vw !important;
        width: 94vw !important;
        max-height: 88vh !important;
        border-radius: 12px !important;
    }
}

/* STANDARD MOBILE (480px to 639px) */
@media (min-width: 480px) and (max-width: 639px) {
    html {
        font-size: 11px;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: var(--space-2);
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-top: 56px;
    }

    .dashboard-header {
        padding: 0 var(--space-2);
        width: 100%;
        box-sizing: border-box;
        height: 56px;
    }

    .dashboard-header__right {
        gap: var(--space-1);
    }

    .dashboard-header__icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .dashboard-header__logo {
        height: 38px;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 280px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - COMPACT MOBILE LAYOUT */
    .live-lead-card {
        min-width: 220px;
        max-width: 260px;
        min-height: 85px;
        height: auto;
        padding: var(--space-2);
    }

    .live-lead-content {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .live-lead-avatar-img {
        width: 36px;
        height: 36px;
    }

    .live-lead-info {
        gap: 2px;
    }

    .live-lead-username {
        font-size: var(--font-size-sm);
    }

    .live-lead-offer .offer-text {
        font-size: var(--font-size-xs);
        line-height: 1.1;
    }

    .live-lead-offer .offer-points {
        font-size: var(--font-size-xs);
    }

    .live-lead-time {
        font-size: var(--font-size-xs);
    }

    .live-lead-amount {
        font-size: var(--font-size-base);
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        gap: 10px !important;
        padding: 6px !important;
    }

    .offer-card {
        height: 180px !important;
        max-height: 180px !important;
        min-height: 180px !important;
        padding: var(--space-2);
    }

    .offer-card-image-container {
        height: 50px !important;
        max-height: 50px !important;
        min-height: 50px !important;
    }

    .offer-card-image {
        height: 50px !important;
    }

    .offer-card-title {
        font-size: 10px !important;
        margin: 4px 4px 2px !important;
    }

    .offer-card-description {
        font-size: 8px !important;
        margin: 0 4px 4px !important;
    }

    .offer-card-footer {
        padding: 4px 4px 6px !important;
        flex-direction: column;
        gap: 3px;
    }

    .section-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .section-card {
        padding: var(--space-3);
        min-height: 120px;
    }

    .live-activity-scroll {
        padding: var(--space-3);
    }

    .featured-carousel .offer-card {
        width: 183px !important;
        height: 180px !important;
    }

    .dashboard-welcome-title {
        font-size: clamp(var(--font-size-xl), 6vw, var(--font-size-2xl));
    }

    .section-title {
        font-size: clamp(var(--font-size-base), 4vw, var(--font-size-lg));
    }

    .dashboard-dropdown {
        min-width: 160px;
    }

    .dashboard-notification {
        max-width: 260px;
        right: var(--space-2);
    }

    .dashboard-footer {
        margin-left: 0;
        width: 100%;
    }

    /* MODAL FIXES FOR STANDARD MOBILE */
    .offer-modal,
    .dashboard-modal {
        padding: 6px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 96vw !important;
        width: 96vw !important;
        max-height: 90vh !important;
        border-radius: 10px !important;
    }
}

/* SMALL MOBILE (400px to 479px) */
@media (min-width: 400px) and (max-width: 479px) {
    html {
        font-size: 10px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: 6px !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-top: 52px !important;
        overflow-x: hidden !important;
    }

    .dashboard-header {
        padding: 0 6px !important;
        height: 52px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .dashboard-header__icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 10px !important;
    }

    .dashboard-header__logo {
        height: 34px !important;
    }

    .dashboard-header__right {
        gap: 4px !important;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 260px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - VERY COMPACT LAYOUT */
    .live-lead-card {
        min-width: 140px !important;
        max-width: 180px !important;
        height: 60px !important;
        padding: 6px !important;
    }

    .live-lead-avatar-img {
        width: 28px !important;
        height: 28px !important;
    }

    .live-lead-content {
        gap: 6px !important;
        flex-direction: row;
        align-items: center;
    }

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

    .live-lead-username {
        font-size: 9px !important;
        margin-bottom: 2px;
    }

    .live-lead-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .live-lead-offer .offer-text {
        font-size: 8px !important;
        line-height: 1.1;
    }

    .live-lead-offer .offer-points {
        font-size: 8px !important;
    }

    .live-lead-time {
        font-size: 7px !important;
        margin-top: 1px;
    }

    .live-lead-amount {
        font-size: 9px !important;
        margin-top: 1px;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)) !important;
        gap: 6px !important;
        padding: 4px !important;
    }

    .offer-card {
        height: 150px !important;
        max-height: 150px !important;
        min-height: 150px !important;
        padding: 3px !important;
    }

    .offer-card-image-container {
        height: 40px !important;
        max-height: 40px !important;
        min-height: 40px !important;
    }

    .offer-card-badge {
        font-size: 7px !important;
        padding: 1px 3px !important;
        top: 3px !important;
        right: 3px !important;
    }

    .offer-card-category {
        font-size: 6px !important;
        padding: 1px 3px !important;
        bottom: 3px !important;
        left: 3px !important;
    }

    .offer-card-title {
        font-size: 8px !important;
        margin: 3px 3px 1px !important;
        line-height: 1.1 !important;
    }

    .offer-card-description {
        font-size: 7px !important;
        margin: 0 3px 3px !important;
        line-height: 1.2 !important;
    }

    .offer-card-footer {
        padding: 3px 3px 4px !important;
        flex-direction: column;
        gap: 2px;
    }

    .offer-card-reward {
        font-size: 8px !important;
    }

    .dashboard-button--small {
        padding: 2px 4px !important;
        font-size: 7px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        height: 20px !important;
    }

    .star-rating {
        font-size: 6px !important;
        gap: 2px;
        margin: 0 3px 3px;
    }

    .rating-text {
        font-size: 6px !important;
    }

    .section-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .section-card {
        padding: 12px !important;
        min-height: 90px !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px !important;
    }

    .section-title {
        font-size: clamp(12px, 4vw, 14px) !important;
    }

    .live-activity-scroll {
        padding: 8px !important;
        min-height: 80px !important;
    }

    .featured-carousel .offer-card {
        width: 183px !important;
        height: 150px !important;
    }

    .featured-carousel .carousel-arrow {
        display: none !important;
    }

    .dashboard-welcome-title {
        font-size: clamp(16px, 5vw, 18px) !important;
        margin-bottom: 8px !important;
    }

    .dashboard-welcome-subtitle {
        font-size: clamp(10px, 3vw, 11px) !important;
    }

    /* MODAL FIXES FOR SMALL MOBILE */
    .offer-modal,
    .dashboard-modal {
        padding: 6px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 96vw !important;
        width: 96vw !important;
        max-height: 90vh !important;
        border-radius: 10px !important;
    }

    .offer-modal-header {
        padding: 8px !important;
    }

    .offer-modal-image {
        width: 40px !important;
        height: 40px !important;
        margin: 0 auto 8px !important;
    }

    .offer-modal-title {
        font-size: 12px !important;
        margin: 0 0 6px !important;
    }

    .offer-modal-payout {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }

    .offer-modal-close {
        width: 24px !important;
        height: 24px !important;
        top: 6px !important;
        right: 6px !important;
        font-size: 12px !important;
    }

    .dashboard-notification {
        max-width: 220px !important;
        right: 6px !important;
        font-size: 9px !important;
        padding: 6px 8px !important;
    }

    .dashboard-footer {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 12px 6px !important;
    }

    .dashboard-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}

/* SMALL MOBILE (320px to 399px) */
@media (min-width: 320px) and (max-width: 399px) {
    html {
        font-size: 9px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: 4px !important;
        margin-left: 0 !important;
        margin-top: 48px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .dashboard-header {
        padding: 0 4px !important;
        height: 48px !important;
    }

    .dashboard-header__icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
    }

    .dashboard-header__logo {
        height: 32px !important;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 240px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - ULTRA COMPACT */
    .live-lead-card {
        min-width: 120px !important;
        max-width: 160px !important;
        height: 55px !important;
        padding: 4px !important;
    }

    .live-lead-content {
        flex-direction: row;
        align-items: center;
        gap: 4px !important;
    }

    .live-lead-avatar-img {
        width: 24px !important;
        height: 24px !important;
    }

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

    .live-lead-username {
        font-size: 8px !important;
        margin-bottom: 1px;
    }

    .live-lead-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .live-lead-offer .offer-text {
        font-size: 7px !important;
        line-height: 1.1;
    }

    .live-lead-offer .offer-points {
        font-size: 7px !important;
    }

    .live-lead-time {
        font-size: 6px !important;
        margin-top: 1px;
    }

    .live-lead-amount {
        font-size: 8px !important;
        margin-top: 1px;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)) !important;
        gap: 4px !important;
        padding: 2px !important;
    }

    .offer-card {
        height: 140px !important;
        max-height: 140px !important;
        min-height: 140px !important;
        padding: 2px !important;
    }

    .offer-card-image-container {
        height: 35px !important;
        max-height: 35px !important;
        min-height: 35px !important;
    }

    .offer-card-badge {
        font-size: 6px !important;
        padding: 1px 2px !important;
    }

    .offer-card-category {
        font-size: 5px !important;
        padding: 1px 2px !important;
    }

    .offer-card-title {
        font-size: 7px !important;
        margin: 2px !important;
        line-height: 1.1 !important;
    }

    .offer-card-description {
        font-size: 6px !important;
        margin: 1px 2px !important;
        line-height: 1.1 !important;
    }

    .offer-card-footer {
        padding: 2px !important;
        flex-direction: column !important;
        gap: 1px !important;
    }

    .offer-card-reward {
        font-size: 7px !important;
    }

    .dashboard-button--small {
        padding: 1px 3px !important;
        font-size: 6px !important;
        min-height: 18px !important;
        max-height: 18px !important;
        height: 18px !important;
    }

    .star-rating {
        font-size: 5px !important;
        gap: 1px !important;
        margin: 1px 2px !important;
    }

    .rating-text {
        font-size: 5px !important;
    }

    .section-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .section-card {
        padding: 8px !important;
        min-height: 70px !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px !important;
    }

    .section-title {
        font-size: clamp(10px, 4vw, 12px) !important;
    }

    .live-activity-scroll {
        padding: 6px !important;
        min-height: 70px !important;
    }

    .dashboard-welcome-title {
        font-size: clamp(14px, 5vw, 16px) !important;
        margin-bottom: 6px !important;
    }

    .dashboard-welcome-subtitle {
        font-size: clamp(9px, 3vw, 10px) !important;
    }

    /* MODAL FIXES FOR VERY SMALL MOBILE */
    .offer-modal,
    .dashboard-modal {
        padding: 4px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 97vw !important;
        width: 97vw !important;
        max-height: 93vh !important;
        border-radius: 8px !important;
    }

    .offer-modal-header {
        padding: 6px !important;
    }

    .offer-modal-image {
        width: 35px !important;
        height: 35px !important;
        margin: 0 auto 6px !important;
    }

    .offer-modal-title {
        font-size: 11px !important;
        margin: 0 0 4px !important;
    }

    .offer-modal-payout {
        font-size: 9px !important;
        padding: 3px 8px !important;
    }

    .offer-modal-close {
        width: 22px !important;
        height: 22px !important;
        top: 4px !important;
        right: 4px !important;
        font-size: 11px !important;
    }

    .featured-carousel .offer-card {
        width: 163px !important;
        height: 160px !important;
    }

    .featured-carousel .carousel-arrow {
        display: none;
    }

    .dashboard-notification {
        max-width: 240px;
        right: var(--space-1);
        font-size: var(--font-size-xs);
    }

    .sidebar-user-card {
        padding: var(--space-2);
    }

    .sidebar-user-avatar {
        width: 36px;
        height: 36px;
    }

    .sidebar-nav-item {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
    }

    .dashboard-button {
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
        min-height: 36px;
    }
}

/* EXTRA SMALL MOBILE (280px to 319px) */
@media (min-width: 280px) and (max-width: 319px) {
    html {
        font-size: 8px !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-main {
        padding: 2px !important;
        margin-left: 0 !important;
        margin-top: 44px !important;
        width: 100% !important;
    }

    .dashboard-header {
        padding: 0 2px !important;
        height: 44px !important;
    }

    .dashboard-header__icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 8px !important;
    }

    .dashboard-header__logo {
        height: 28px !important;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
        width: 100vw !important;
        max-width: 220px !important;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    /* LIVE LEAD CARDS - MINIMAL LAYOUT */
    .live-lead-card {
        min-width: 100px !important;
        max-width: 140px !important;
        height: 50px !important;
        padding: 3px !important;
    }

    .live-lead-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px !important;
    }

    .live-lead-avatar-img {
        width: 20px !important;
        height: 20px !important;
    }

    .live-lead-info {
        width: 100%;
    }

    .live-lead-username {
        font-size: 7px !important;
        margin-bottom: 1px;
    }

    .live-lead-offer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }

    .live-lead-offer .offer-text {
        font-size: 6px !important;
        line-height: 1.1;
    }

    .live-lead-offer .offer-points {
        font-size: 6px !important;
    }

    .live-lead-time {
        font-size: 5px !important;
        margin-top: 1px;
    }

    .live-lead-amount {
        font-size: 7px !important;
        margin-top: 1px;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
        gap: 2px !important;
        padding: 1px !important;
    }

    .offer-card {
        height: 120px !important;
        max-height: 120px !important;
        min-height: 120px !important;
        padding: 1px !important;
    }

    .offer-card-image-container {
        height: 30px !important;
        max-height: 30px !important;
        min-height: 30px !important;
    }

    .offer-card-title {
        font-size: 6px !important;
        margin: 1px !important;
    }

    .offer-card-description {
        font-size: 5px !important;
        margin: 0 1px !important;
    }

    .offer-card-footer {
        padding: 1px !important;
    }

    .offer-card-reward {
        font-size: 6px !important;
    }

    .dashboard-button--small {
        padding: 1px 2px !important;
        font-size: 5px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        height: 16px !important;
    }

    .section-title {
        font-size: clamp(8px, 4vw, 10px) !important;
    }

    .dashboard-welcome-title {
        font-size: clamp(12px, 5vw, 14px) !important;
    }

    .dashboard-welcome-subtitle {
        font-size: clamp(8px, 3vw, 9px) !important;
    }

    /* MODAL FIXES FOR EXTRA SMALL MOBILE */
    .offer-modal,
    .dashboard-modal {
        padding: 2px !important;
    }

    .offer-modal-content,
    .dashboard-modal-content {
        max-width: 98vw !important;
        width: 98vw !important;
        max-height: 95vh !important;
        border-radius: 6px !important;
    }

    .offer-modal-header {
        padding: 4px !important;
    }

    .offer-modal-image {
        width: 30px !important;
        height: 30px !important;
        margin: 0 auto 4px !important;
    }

    .offer-modal-title {
        font-size: 9px !important;
        margin: 0 0 3px !important;
    }

    .offer-modal-payout {
        font-size: 7px !important;
        padding: 2px 6px !important;
    }

    .offer-modal-close {
        width: 18px !important;
        height: 18px !important;
        top: 2px !important;
        right: 2px !important;
        font-size: 9px !important;
    }
}

/* 4K+ DISPLAYS (3840px+) */
@media (min-width: 3840px) {
    :root {
        --font-size-xs: 16px;
        --font-size-sm: 18px;
        --font-size-base: 20px;
        --font-size-lg: 24px;
        --font-size-xl: 28px;
        --font-size-2xl: 32px;
        --font-size-3xl: 40px;
        --font-size-4xl: 48px;
        --font-size-5xl: 64px;
        --space-1: 6px;
        --space-2: 12px;
        --space-3: 18px;
        --space-4: 24px;
        --space-5: 30px;
        --space-6: 36px;
        --space-8: 48px;
        --space-10: 60px;
        --space-12: 72px;
        --space-16: 96px;
        --space-20: 120px;
    }

    html {
        font-size: 18px;
    }

    .dashboard-main {
        margin-left: 280px;
        width: calc(100vw - 280px);
        max-width: none;
        padding: var(--space-12);
        box-sizing: border-box;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
    }

    .offer-card {
        height: 320px !important;
        max-height: 320px !important;
        min-height: 320px !important;
    }

    .offer-card-image-container {
        height: 120px !important;
        max-height: 120px !important;
        min-height: 120px !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: var(--space-8);
        max-width: none;
    }

    .dashboard-sidebar {
        width: 360px;
    }

    .dashboard-main {
        margin-left: 360px;
        width: calc(100vw - 360px);
    }

    .dashboard-footer {
        margin-left: 280px;
        width: calc(100vw - 280px);
        max-width: none;
        padding: var(--space-12) var(--space-8);
        box-sizing: border-box;
    }
}

/* 2K DISPLAYS (2560px to 3839px) */
@media (min-width: 2560px) and (max-width: 3839px) {
    :root {
        --font-size-xs: 14px;
        --font-size-sm: 16px;
        --font-size-base: 18px;
        --font-size-lg: 20px;
        --font-size-xl: 24px;
        --font-size-2xl: 28px;
        --font-size-3xl: 36px;
        --font-size-4xl: 44px;
        --font-size-5xl: 56px;
    }

    html {
        font-size: 16px;
    }

    .dashboard-main {
        margin-left: 280px;
        margin-right: 0;
        width: calc(100vw - 280px);
        max-width: none;
        padding-left: 0;
    }
    
    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        max-width: none;
        margin: 0;
    }
    
    .offer-card {
        width: 100%;
        height: 240px;
    }
    
    .modal-xl .dashboard-modal-content {
        max-width: 1000px;
    }

    .dashboard-footer {
        margin-left: 280px;
        margin-right: 0;
        width: calc(100vw - 280px);
        max-width: none;
        padding-left: 0;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 24px !important;
    }

    .offer-card {
        height: 280px !important;
        max-height: 280px !important;
        min-height: 280px !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        max-width: 2000px;
        margin: 0 auto;
    }

    .dashboard-sidebar {
        width: 320px;
    }

    .dashboard-main {
        margin-left: 320px;
        width: calc(100vw - 320px);
    }

    .dashboard-footer {
        margin-left: 320px;
        max-width: 2400px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 320px;
    }
}

/* STANDARD DESKTOP (1200px to 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 18px !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* LARGE TABLET/SMALL DESKTOP (1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .dashboard-sidebar {
        transform: translateX(-100%) !important;
        z-index: 9999;
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0) !important;
    }

    .dashboard-main {
        margin-left: 0;
        width: 100%;
        padding: var(--space-6);
        box-sizing: border-box;
    }

    .dashboard-footer {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }

    .offer-card {
        height: 220px !important;
        max-height: 220px !important;
        min-height: 220px !important;
    }

    .offer-card-image-container {
        height: 70px !important;
        max-height: 70px !important;
        min-height: 70px !important;
    }

    .section-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .dashboard-header {
        padding: 0 var(--space-4);
    }
}

/* LANDSCAPE ORIENTATION ADJUSTMENTS */
@media (orientation: landscape) and (max-height: 500px) {
    .dashboard-header {
        height: 48px;
    }

    .dashboard-main {
        margin-top: 48px;
        padding: var(--space-2);
        margin-left: 0;
    }

    .dashboard-sidebar {
        top: 48px;
        width: 240px;
        transform: translateX(-100%);
    }

    .dashboard-sidebar--mobile-open {
        transform: translateX(0);
    }

    .offer-card {
        height: 180px !important;
        max-height: 180px !important;
        min-height: 180px !important;
    }

    .live-lead-card {
        height: 60px;
        min-width: 200px;
    }

    .section-card {
        min-height: 120px;
        padding: var(--space-3);
    }
}

/* HIGH DPI DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .svg-icon,
    .dashboard-header__logo,
    .offer-card-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* PRINT STYLES */
@media print {
    .dashboard-header,
    .dashboard-sidebar,
    .dashboard-chat,
    .dashboard-footer,
    .carousel-arrow,
    .dashboard-button {
        display: none !important;
    }

    .dashboard-main {
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .cards-wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 16px !important;
    }

    .offer-card {
        break-inside: avoid;
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* REDUCED MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(108, 92, 231, 0.8);
        --shadow-3d-md: 0 10px 20px rgba(108, 92, 231, 0.6);
    }

    .offer-card {
        border: 2px solid rgba(108, 92, 231, 0.8) !important;
    }

    .dashboard-button {
        border: 2px solid rgba(108, 92, 231, 0.8) !important;
    }
}

/* ADDITIONAL UTILITY CLASSES FOR RESPONSIVE BEHAVIOR */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* RESPONSIVE TEXT UTILITIES */
@media (max-width: 640px) {
    .text-responsive-sm {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .text-responsive-xs {
        font-size: 0.7rem !important;
    }
}

/* CONTAINER QUERY SUPPORT FOR MODERN BROWSERS */
@supports (container-type: inline-size) {
    .cards-container {
        container-type: inline-size;
    }

    @container (max-width: 600px) {
        .cards-wrapper {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
        }
    }

    @container (max-width: 400px) {
        .cards-wrapper {
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        }
    }
}

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

@keyframes pulse-glow {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(16px) translateZ(0); }
    to { opacity: 1; transform: translateY(0) translateZ(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-8px) translateZ(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@keyframes shimmerXP {
    0% { 
        transform: translateX(-100%) skewX(-15deg); 
    }
    100% { 
        transform: translateX(200%) skewX(-15deg); 
    }
}

@keyframes xpGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(238, 78, 154, 0.4), 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 60px rgba(238, 78, 154, 0.6), 0 4px 16px rgba(255, 107, 53, 0.5);
    }
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}
@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-3px) translateZ(0);
    }
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes levelPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
        border-color: rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(168, 85, 247, 0.4), 0 0 20px rgba(255, 107, 53, 0.2);
        border-color: rgba(168, 85, 247, 0.4);
    }
}
@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.4; 
    }
    50% { 
        opacity: 0.7; 
    }
}
@keyframes messageFlash {
    0% { 
        background: rgba(108, 92, 231, 0.2); 
        transform: scale(1.02) translateZ(0);
        box-shadow: var(--shadow-md);
    }
    100% { 
        background: transparent; 
        transform: scale(1) translateZ(0);
        box-shadow: none;
    }
}

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0); 
    }
    40% { 
        transform: scale(1); 
    }
}

.dashboard-gradient-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.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 rgba(108, 92, 231, 0.6);
    outline-offset: 2px;
}

.dashboard-button:focus,
.dashboard-header__icon:focus {
    outline: 2px solid rgba(108, 92, 231, 0.8);
    outline-offset: 2px;
}

.instant-indicator {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    background: var(--gradient-success);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    z-index: var(--z-toast);
    animation: pulse-glow 2s infinite;
    opacity: 0;
    transition: opacity var(--transition-fast);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(16px);
}

.instant-indicator.show {
    opacity: 1;
}

.instant-indicator.connecting {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.4);
}

.instant-indicator.disconnected {
    background: var(--gradient-error);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.4);
}

.message-flash {
    animation: messageFlash 0.3s ease-out;
}

.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-lg);
    font-size: var(--font-size-sm);
    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-sm);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.success-notification {
    position: fixed;
    top: 80px;
    right: var(--space-6);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-lg);
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%) translateZ(0);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    opacity: 0;
    max-width: 320px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(34, 197, 94, 0.4);
    line-height: var(--line-height-tight);
    backdrop-filter: blur(16px);
}

.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);
    box-shadow: var(--shadow-lg);
    border-color: rgba(34, 197, 94, 0.4);
}

.success-notification.error {
    background: var(--gradient-error);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.4);
}

.success-notification.warning {
    background: var(--gradient-warning);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.4);
}

.success-notification.info {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    border-color: rgba(108, 92, 231, 0.4);
}

/* FORCE BLACK THEME FOR ALL ELEMENTS */
[data-theme="light"] .fas,
[data-theme="light"] .fab,
[data-theme="light"] .fa-solid,
[data-theme="light"] .fa-regular,
[data-theme="light"] .fa-brands {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
}

[data-theme="light"] .dashboard-button {
    color: #ffffff !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-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-2xl) !important;
    backdrop-filter: blur(24px) !important;
}

[data-theme="light"] .dashboard-chat {
    background: var(--bg-primary) !important;
    border-left: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="light"] .dashboard-chat-messages {
    background: var(--bg-secondary) !important;
    border: 1px 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: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.user-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 8px;
}

.user-modal.active {
    opacity: 1;
    visibility: visible;
}

.user-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 420px;
    width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95) translateZ(0);
    transition: transform var(--transition-normal);
    padding: 16px;
    position: relative;
    color: var(--text-primary);
    backdrop-filter: blur(24px);
}

.user-modal.active .user-modal-content {
    transform: scale(1) translateZ(0);
}

/* USER MODAL STATS GRID */
.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.user-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    font-size: 11px;
}

.user-stat-value {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.user-stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.user-profile-header {
    text-align: center;
    margin-bottom: 16px;
}

.user-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid var(--border-color);
}

.user-profile-name {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
}

.user-profile-level {
    font-size: 12px;
    color: var(--text-muted);
}

.user-profile-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0;
}

.user-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
}

.user-badge.verified {
    background: var(--gradient-success);
    color: white;
}

.user-badge.level {
    background: var(--gradient-primary);
    color: white;
}

.offer-modal-enhanced {
    position: relative;
    border-radius: var(--border-radius-2xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-2xl);
    color: var(--text-primary);
    overflow: visible;
    z-index: 10;
    max-width: 420px;
    width: 95vw;
    max-height: 85vh;
    backdrop-filter: blur(24px);
    margin: 0 auto;
}

.offer-modal-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--border-radius-2xl);
    background: var(--gradient-rainbow);
    padding: 2px;
    -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 {
    gap: 8px;
    padding: 12px;
    min-height: 100px;
    scroll-behavior: smooth;
}

.offer-tab-enhanced {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: var(--font-weight-medium);
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.offer-tab-enhanced:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-md);
}

.offer-tab-enhanced.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.offer-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.offer-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.offer-stat-card:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-md);
    border-color: rgba(108, 92, 231, 0.5);
}

.offer-stat-value {
    font-size: var(--font-size-xl);
    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);
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(108, 92, 231, 0.3);
}

.offer-stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-content {
    display: block;
}

.tab-content.hidden {
    display: none;
}

.modal-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.offer-requirement-item {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin: var(--space-2) 0;
    transition: all var(--transition-normal);
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.offer-requirement-item:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: translateX(4px) translateZ(0);
}

.offer-guide-step {
    display: flex;
    align-items: flex-start;
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin: var(--space-2) 0;
    position: relative;
    overflow: hidden;
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.offer-guide-number {
    width: 32px;
    height: 32px;
    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-base);
    margin-right: var(--space-3);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    line-height: var(--line-height-tight);
}

.modal-details-tabs {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-details-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    flex: 0 1 auto;
    min-width: 70px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.modal-details-tab:hover {
    background: rgba(108, 92, 231, 0.1);
}

.modal-details-tab.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.modal-details-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin: var(--space-2) 0;
    min-height: 200px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
}

.video-modal-enhanced,
.social-modal-enhanced,
.survey-modal-enhanced,
.offerwall-modal-enhanced {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-2xl);
    color: var(--text-primary);
    backdrop-filter: blur(24px);
}

.connection-status {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2) var(--space-4);
    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-sm);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.connection-status.show {
    opacity: 1;
    visibility: visible;
}

.connection-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.connection-connected {
    background: var(--success-500);
    animation: pulse-glow 2s infinite;
}

.connection-disconnected {
    background: var(--error-500);
    animation: pulse-glow 2s infinite;
}

.connection-text {
    font-size: var(--font-size-sm);
    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: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-1) var(--space-2);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 24px;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(16px);
}

.reaction-item:hover {
    background: rgba(108, 92, 231, 0.15);
    transform: translateY(-2px) translateZ(0);
}

.reaction-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-sm);
}

.reaction-count {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    min-width: 12px;
    text-align: center;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    margin: var(--space-2) 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    animation: pulse-glow 2s infinite;
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-sm);
    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.4s infinite;
    box-shadow: var(--shadow-xs);
}

.typing-dot:nth-child(1) { animation-delay: -0.3s; }
.typing-dot:nth-child(2) { animation-delay: -0.15s; }

.emoji-picker-enhanced {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    max-width: 280px;
    max-height: 200px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    backdrop-filter: blur(24px);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-1);
}

.emoji-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-1);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(16px);
}

.emoji-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    transform: scale(1.1) translateZ(0);
}

.quick-option-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(16px);
    margin-top: var(--space-1);
}

.quick-option-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.5);
    transform: translateY(-2px) translateZ(0);
}

.fa, .fas, .far, .fab {
    filter: drop-shadow(0 2px 4px rgba(108, 92, 231, 0.3));
    transform: translateZ(0);
    transition: transform var(--transition-fast);
}

.fa:hover, .fas:hover, .far:hover, .fab:hover {
    transform: translateZ(1px) scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(108, 92, 231, 0.6));
}

/* GPU ACCELERATION AND PERFORMANCE OPTIMIZATIONS */
.offer-card,
.dashboard-button,
.dashboard-header__icon,
.sidebar-nav-item,
.live-lead-card {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    perspective: 1000;
}

/* IMPROVED TOUCH HANDLING FOR MOBILE */
@media (pointer: coarse) {
    .dashboard-button,
    .offer-card,
    .dashboard-header__icon,
    .mobile-menu-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dashboard-button--small {
        min-height: 32px !important;
        min-width: 32px !important;
    }
}

/* BETTER FOCUS HANDLING FOR KEYBOARD NAVIGATION */
.dashboard-button:focus-visible,
.offer-card:focus-visible,
.dashboard-header__icon:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid rgba(108, 92, 231, 0.8);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.3);
}

/* IMPROVED ACCESSIBILITY FOR SCREEN READERS */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* BETTER CONTRAST FOR TEXT ON BACKGROUNDS */
@supports (backdrop-filter: blur(10px)) {
    .dashboard-header,
    .dashboard-sidebar,
    .dashboard-chat {
        -webkit-backdrop-filter: blur(24px);
        backdrop-filter: blur(24px);
    }
}

/* FALLBACK FOR BROWSERS WITHOUT BACKDROP-FILTER SUPPORT */
@supports not (backdrop-filter: blur(10px)) {
    .dashboard-header {
        background: var(--bg-primary);
    }
    
    .dashboard-sidebar {
        background: var(--bg-primary);
    }
    
    .dashboard-chat {
        background: var(--bg-primary);
    }
}

/* ENHANCED SCROLLBAR STYLING FOR WEBKIT BROWSERS */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5b21b6, #9333ea);
}

/* BETTER HANDLING OF LONG TEXT CONTENT */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-break {
    word-wrap: break-word;
    word-break: break-word;
}

/* PERFORMANCE OPTIMIZATION FOR ANIMATIONS */
.dashboard-loading-spinner,
.sidebar-progress-bar::after {
    will-change: transform;
}

/* BETTER HANDLING OF IMAGE LOADING STATES */
.offer-card-image {
    background-color: var(--bg-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c5ce7'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.offer-card-image[src] {
    background-image: none;
}

/* BETTER MODAL Z-INDEX MANAGEMENT */
.dashboard-modal {
    z-index: 10000;
}

.user-modal {
    z-index: 10001;
}

.offer-modal {
    z-index: 10002;
}

/* ENHANCED BUTTON STATES */
.dashboard-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard-button--loading {
    position: relative;
    pointer-events: none;
}

.dashboard-button--loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* BETTER HANDLING OF EMPTY STATES */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
    opacity: 0.6;
}

.empty-state-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.empty-state-description {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    max-width: 400px;
}

/* ENHANCED ERROR STATES */
.error-state {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
    color: #fca5a5;
}

.error-state-icon {
    color: #ef4444;
    margin-right: var(--space-2);
}

/* BETTER LOADING STATES */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--border-radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    margin-bottom: 0;
    width: 75%;
}

/* IMPROVED TOAST NOTIFICATIONS POSITIONING */
.toast-container {
    position: fixed;
    top: var(--space-20);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
}

.toast-container > * {
    pointer-events: auto;
}

/* BETTER HANDLING OF VERY LONG CONTENT */
.content-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Laravel Pagination Styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.pagination .page-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

nav[role="navigation"] {
    margin-top: var(--space-4);
}

nav[role="navigation"] > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

nav[role="navigation"] p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* Responsive Pagination */
@media (max-width: 640px) {
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-size-xs);
    }
    
    .pagination {
        gap: var(--space-1);
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN FOR CARDS
   ============================================ */

/* Desktop and Large Tablets (1024px+) */
@media (min-width: 1024px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 18px !important;
    }
    
    .offer-card {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
    
    .offerwall-card,
    .survey-card {
        height: 270px !important;
        max-height: 270px !important;
        min-height: 270px !important;
    }
    
    .star-rating {
        margin: 0 8px 6px;
        font-size: 10px !important;
        gap: 5px;
    }
    
    .stars svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .rating-text {
        font-size: 10px !important;
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 14px !important;
    }
    
    .offer-card {
        height: 240px !important;
        max-height: 240px !important;
        min-height: 240px !important;
    }
    
    .offerwall-card,
    .survey-card {
        height: 260px !important;
        max-height: 260px !important;
        min-height: 260px !important;
    }
    
    .offer-card-footer {
        gap: 6px;
    }
    
    .star-rating {
        margin: 0 8px 6px;
        font-size: 9px !important;
        gap: 4px;
    }
    
    .stars svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .rating-text {
        font-size: 9px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 10px;
        padding: 6px 8px;
        line-height: 1.4;
    }
}

/* Small Tablets and Large Phones (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        gap: 12px !important;
    }
    
    .offer-card {
        height: 230px !important;
        max-height: 230px !important;
        min-height: 230px !important;
    }
    
    .offerwall-card,
    .survey-card {
        height: 250px !important;
        max-height: 250px !important;
        min-height: 250px !important;
    }
    
    .offer-card-image-container {
        height: 70px !important;
        max-height: 70px !important;
        min-height: 70px !important;
    }
    
    .offer-card-title {
        font-size: 11px !important;
        margin: 6px 6px 3px !important;
    }
    
    .offer-card-description {
        font-size: 9px !important;
        margin: 0 6px 6px !important;
    }
    
    .offer-card-footer {
        padding: 5px 6px 6px !important;
        gap: 5px;
    }
    
    .offer-card-reward {
        font-size: 10px !important;
    }
    
    .dashboard-button--small {
        padding: 5px 8px !important;
        font-size: 9px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        height: 26px !important;
        gap: 3px;
    }
    
    .dashboard-button--small svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .lock-overlay {
        font-size: 8px !important;
        padding: 5px 8px;
        max-width: 90%;
    }
    
    .star-rating {
        margin: 0 6px 5px;
        font-size: 8px !important;
        gap: 3px;
    }
    
    .stars svg {
        width: 14px !important;
        height: 14px !important;
    }
    
    .rating-text {
        font-size: 8px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 9px;
        padding: 5px 7px;
        line-height: 1.3;
    }
}

/* Mobile Phones (320px - 599px) */
@media (max-width: 599px) {
    .cards-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
        padding: 6px !important;
    }
    
    .offer-card {
        height: 220px !important;
        max-height: 220px !important;
        min-height: 220px !important;
        border-radius: 10px !important;
    }
    
    .offerwall-card,
    .survey-card {
        height: 240px !important;
        max-height: 240px !important;
        min-height: 240px !important;
    }
    
    .offer-card-image-container {
        height: 65px !important;
        max-height: 65px !important;
        min-height: 65px !important;
    }
    
    .offer-card-title {
        font-size: 10px !important;
        margin: 5px 5px 3px !important;
    }
    
    .offer-card-description {
        font-size: 8px !important;
        margin: 0 5px 5px !important;
        line-height: 1.2;
    }
    
    .offer-card {
        min-height: 280px !important;
        padding-bottom: 14px !important;
    }
    
    .locked-offer.offer-card {
        min-height: 300px !important;
    }
    
    .offer-card-footer {
        padding: 10px 10px 4px 10px !important;
        gap: 6px;
        margin-bottom: 4px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 7px !important;
        padding: 4px 6px;
        margin: 1px 6px 3px 6px !important;
    }
    
    .offer-card-reward {
        font-size: 9px !important;
    }
    
    .dashboard-button--small {
        padding: 5px 7px !important;
        font-size: 8px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        height: 26px !important;
        gap: 2px;
    }
    
    .dashboard-button--small svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    .lock-overlay {
        font-size: 7px !important;
        padding: 4px 6px;
        max-width: 92%;
        line-height: 1.2;
    }
    
    .star-rating {
        margin: 0 5px 4px;
        font-size: 7px !important;
        gap: 2px;
    }
    
    .stars svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .rating-text {
        font-size: 7px !important;
    }
    
    .offer-card-badge {
        font-size: 8px !important;
        padding: 2px 4px;
        top: 4px;
        right: 4px;
    }
    
    .offer-card-category {
        font-size: 7px !important;
        padding: 2px 4px;
        bottom: 4px;
        left: 4px;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 8px;
        padding: 4px 6px;
        line-height: 1.3;
    }
}

/* Very Small Phones (< 375px) */
@media (max-width: 374px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .offer-card {
        height: auto !important;
        max-height: none !important;
        min-height: 280px !important;
        padding-bottom: 12px !important;
    }
    
    .locked-offer.offer-card {
        min-height: 310px !important;
    }
    
    .offerwall-card,
    .survey-card {
        height: 220px !important;
        max-height: 220px !important;
        min-height: 220px !important;
    }
    
    .offer-card-image-container {
        height: 55px !important;
        max-height: 55px !important;
        min-height: 55px !important;
    }
    
    .offer-card-title {
        font-size: 9px !important;
        margin: 4px 4px 2px !important;
    }
    
    .offer-card-description {
        font-size: 7px !important;
        margin: 0 4px 4px !important;
    }
    
    .dashboard-button--small {
        padding: 3px 5px !important;
        font-size: 7px !important;
        min-height: 22px !important;
        max-height: 22px !important;
        height: 22px !important;
    }
    
    .lock-overlay {
        font-size: 6px !important;
        padding: 3px 5px;
    }
    
    .star-rating {
        margin: 0 4px 3px;
        font-size: 6px !important;
        gap: 1px;
    }
    
    .stars svg {
        width: 10px !important;
        height: 10px !important;
    }
    
    .rating-text {
        font-size: 6px !important;
    }
    
    .offerwall-lock-message,
    .survey-lock-message,
    .offer-lock-message {
        font-size: 7px;
        padding: 3px 5px;
        line-height: 1.2;
    }
}

/* ================================================
   ANIMATED GRADIENT BACKGROUND (Landing Page Style)
   ================================================ */

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Optional: Add subtle mesh overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 245, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 128, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 230, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
/* ================================================
   XP Progress Bar - Responsive Styles
   ================================================ */

/* Mobile devices (portrait phones, 576px and down) */
@media (max-width: 576px) {
    .sidebar-progress {
        height: 8px;
        margin-bottom: var(--space-1);
    }
    
    .sidebar-progress-bar {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5), 0 0 30px rgba(238, 78, 154, 0.3), 0 3px 10px rgba(255, 107, 53, 0.2);
    }
    
    .sidebar-progress-text {
        font-size: 11px;
    }
}

/* Small tablets and large phones (landscape, 576px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .sidebar-progress {
        height: 9px;
    }
    
    .sidebar-progress-bar {
        box-shadow: 0 0 18px rgba(168, 85, 247, 0.55), 0 0 35px rgba(238, 78, 154, 0.35), 0 4px 11px rgba(255, 107, 53, 0.25);
    }
}

/* Tablets and small desktops (768px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .sidebar-progress {
        height: 10px;
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .sidebar-progress {
        height: 12px;
    }
    
    .sidebar-progress-bar {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.7), 0 0 50px rgba(238, 78, 154, 0.5), 0 5px 15px rgba(255, 107, 53, 0.4);
    }
    
    .sidebar-progress-bar::before {
        filter: blur(10px);
    }
}

/* Extra large screens (1400px and up) */
@media (min-width: 1400px) {
    .sidebar-user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .sidebar-user-name {
        font-size: 18px;
    }
    
    .sidebar-progress {
        height: 14px;
    }
    
    .sidebar-progress-text {
        font-size: 14px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sidebar-user-card,
    .sidebar-user-card::before,
    .sidebar-user-card::after,
    .sidebar-user-avatar,
    .sidebar-user-name,
    .sidebar-user-level,
    .sidebar-progress-bar,
    .sidebar-progress-bar::before,
    .sidebar-progress-bar::after,
    .sidebar-progress-text {
        animation: none !important;
    }
    
    .sidebar-progress-bar {
        transition: width 0.3s ease !important;
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    }
    
    .sidebar-user-avatar {
        box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
    }
}