        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            width: 100%;
            max-width: 100%;
            background-color: #f9fafb;
        }

        .container {
            margin: 0;
            padding: 0;
            width: 100%;
            max-width: 100%;
        }

        /* Fixed: Main layout with proper flexbox structure */
        .main-layout {
            display: flex;
            max-width: 1400px;
            margin: 0 auto;
            gap: 2rem;
            padding: 1rem;
            min-height: calc(100vh - 200px);
        }

        .main-content {
            flex: 1;
            min-width: 0; /* Prevents flex item from overflowing */
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            padding: 2rem;
        }

        .sidebar {
            flex: 0 0 350px; /* Fixed width sidebar */
            max-height: calc(100vh - 150px);
            overflow-y: auto;
            position: sticky;
            top: 1rem;
        }

        .sidebar-widget {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }

        .sidebar-header {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            padding: 1.2rem;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .sidebar-content {
            padding: 1.2rem;
        }

        .price-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.2s ease;
            border-radius: 6px;
            margin: 2px 0;
        }

        .price-item:hover {
            background-color: #f8fafc;
            transform: translateX(2px);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .price-item:last-child {
            border-bottom: none;
        }

        .price-positive {
            color: #10b981;
            font-weight: 600;
        }

        .price-negative {
            color: #ef4444;
            font-weight: 600;
        }

        .trending-item {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .trending-item:hover {
            background-color: #f8fafc;
            transform: translateY(-1px);
        }

        .trending-item:last-child {
            border-bottom: none;
        }

        /* Mobile responsiveness - Updated breakpoints */
        @media (max-width: 1200px) {
            .sidebar {
                flex: 0 0 300px; /* Smaller sidebar on medium screens */
            }
        }

        @media (max-width: 992px) {
            .main-layout {
                flex-direction: column;
                gap: 1.5rem;
                padding: 0.5rem;
            }
            
            .main-content {
                padding: 1.5rem;
            }
            
            .sidebar {
                flex: none;
                position: static;
                max-height: none;
                order: 2; /* Sidebar goes after main content on mobile */
            }
        }

        @media (max-width: 768px) {
            .main-layout {
                padding: 0.25rem;
                gap: 1rem;
            }
            
            .main-content {
                padding: 1rem;
            }
        }

        /* Demo styles for navbar and footer */
        .demo-navbar {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            color: white;
            padding: 1rem;
            text-align: center;
            font-weight: bold;
        }

        .demo-footer {
            background: #374151;
            color: white;
            padding: 2rem;
            text-align: center;
            margin-top: 2rem;
        }

        /* MOBILE RESPONSIVE STYLES - FIXED VERSION */
@media (max-width: 768px) {
    
    /* Show hamburger menu */
    .hamburger {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 10001;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }
    
    /* Hide menu items by default on mobile */
    #menu-items {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        z-index: 10000;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 5rem;
        overflow-y: auto;
    }
    
    /* Show menu when active */
    #menu-items.menu-active {
        display: flex !important;
    }
    
    /* Stack menu items vertically */
    #menu-items > div:first-child {
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        max-width: 300px;
    }
    
    /* Style menu items for mobile */
    .menu-item {
        display: block;
        text-align: center;
        width: 100%;
        padding: 1rem !important;
        margin: 0.5rem 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .menu-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    /* Dropdown styles for mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static !important;
        display: block !important;
        background: rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    .dropdown-content a {
        color: white !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Search container for mobile */
    .search-container {
        width: 90% !important;
        max-width: 300px !important;
        margin-top: 2rem;
        background: rgba(255, 255, 255, 0.9);
    }
    
    /* Brand section adjustments */
    .brand-section {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 10001;
        max-width: calc(100% - 8rem);
    }
    
    .brand-section .navbar-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    /* Hide/show text based on screen size */
    .brand-section span {
        font-size: 0.875rem !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    /* Main crypto menu container adjustments */
    .crypto-menu {
        position: relative;
        padding: 0;
        background: transparent;
    }
    
    .crypto-menu .container {
        position: relative;
    }
    
    /* Hide the main menu container content on mobile except hamburger */
    .crypto-menu .flex.items-center.justify-between {
        position: relative;
        height: 4rem;
        background: linear-gradient(135deg, blue 0%, #b50525 25%, #0e2fb1 50%, #9945ff 75%, #f3ba2f 100%);
        border-radius: 0 0 1rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hamburger {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem;
    }
    
    .brand-section {
        top: 0.5rem;
        left: 0.5rem;
    }
    
    .brand-section span {
        font-size: 0.75rem !important;
    }
    
    #menu-items {
        padding-top: 4rem;
    }
    
    .menu-item {
        padding: 0.75rem !important;
        font-size: 0.875rem;
    }
}
/* MOBILE ENDED */


        .navbar {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .crypto-icon {
            margin-right: 8px;
        }
        
        .hamburger {
            display: none;
            font-size: 24px;
            color: white;
            cursor: pointer;
            padding: 10px;
            border-radius: 4px;
            transition: background-color 0.3s ease;
        }
        
        .hamburger:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .menu-items {
            transition: all 0.3s ease-in-out;
        }
        
        .dropdown {
            position: relative;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            border-radius: 8px;
            z-index: 1000;
            overflow: hidden;
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
        }
        
        .dropdown-content a {
            color: #333;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: background-color 0.2s ease;
        }
        
        .dropdown-content a:hover {
            background-color: #f1f5f9;
        }
        
        .menu-item {
            transition: all 0.2s ease;
        }
        
        .menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-1px);
        }
        
        /* Mobile Styles */
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }
            
            .menu-items {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
                z-index: 999;
            }
            
            .menu-items.active {
                display: flex;
            }
            
            .menu-item {
                width: 100%;
                text-align: left;
                margin: 2px 0;
                border-radius: 6px;
            }
            
            .dropdown-content {
                position: static;
                display: none;
                background: rgba(255, 255, 255, 0.1);
                box-shadow: none;
                margin-top: 8px;
                border-radius: 6px;
            }
            
            .dropdown.active .dropdown-content {
                display: block;
            }
            
            .dropdown-content a {
                color: white;
                padding: 8px 16px;
            }
            
            .dropdown-content a:hover {
                background-color: rgba(255, 255, 255, 0.1);
            }
            
            .brand-section {
                flex: 1;
            }
        }
        
        /* Desktop Styles */
        @media (min-width: 769px) {
            .menu-items {
                display: flex !important;
            }
        }
