/* Hide bottom nav on desktop */
.hide-desktop {
    display: block !important;
}
@media (min-width: 992px) {
    .hide-desktop {
        display: none !important;
    }
}

        :root {
            /* Dark theme color variables */
            --bg-primary: #0f0f0f;
            --bg-secondary: #1a1a1a;
            --bg-card: #232323;
            --bg-sidebar: #151515;
            --text-primary: #ffffff;
            --text-secondary: #888888;
            --text-muted: #666666;
            --accent-primary: #212e48;
            --accent-secondary: #0884cc;
            --accent-success: #10c78a;
            --accent-danger: #ef4444;
            --accent-warning: #f59e0b;
            --border-color: #333333;
            --shadow: rgba(0, 0, 0, 0.3);
            --gradient-purple: linear-gradient(135deg, #212e48, #00a3ff);
        }

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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-primary) !important;
            color: var(--text-primary);
            overflow-x: hidden;
        }

        /* MOBILE STYLES - Default (Mobile First) */
        .app-container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow: visible !important;
        }

        /* Mobile Top Bar */
        .mobile-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0px;
            background: var(--bg-sidebar);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .hamburger {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 20px;
            cursor: pointer;
            padding: 0px;
            margin-left: -35px;
        }

        .mobile-logo {
            display: flex;
            align-items: center;
            width: 250px !important; 
            height: auto;
            gap: 2px;
            margin-left: -25px;
        }

        .logo-icon {
            width: 28px;
            height: 28px;
            background: var(--gradient-purple);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 14px;
        }

        .logo-text {
            font-size: 16px;
            font-weight: 600;
        }

        .mobile-profile {
            width: 32px;
            height: 32px;
            border-radius: 50%;

        }

        .list-empty {
            font-size: 14px;
            opacity: 0.7;
        }

        /* Sidebar for Mobile */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

        .sidebar {
            position: fixed;
            top: 0;
            left: -280px;
            width: 280px;
            height: 100%;
            background: var(--bg-sidebar);
            padding: 20px;
            z-index: 1999;
            transition: left 0.3s ease;
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
        }
        
        /* Hide scrollbar for Chrome, Safari and Opera */
        .sidebar::-webkit-scrollbar {
            display: none;
        }

        .sidebar.active {
            left: 0;
        }

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

        .sidebar-close {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 24px;
            cursor: pointer;
            padding: 4px;
        }

        .nav-item {
            display: flex !important;
            align-items: center !important;
            gap: 12px !important;
            padding: 12px 16px !important;
            margin: 4px 0 !important;
            border-radius: 12px !important;
            cursor: pointer !important;
            transition: all 0.2s !important;
            font-size: 14px !important;
        }

         .nav-item a  {
            color: var(--text-secondary) !important;
         }

         .nav-item a span i , .nav-item  span i{
            font-size: 16px !important;
            color: var(--text-secondary) !important ;
         }

        .nav-item.active {
            background: var(--accent-primary);
            color: white;
        }

        .nav-item:not(.active):hover {
            background: var(--bg-card);
        }

        .nav-item:not(.active) {
            color: var(--text-secondary);
        }

        .guidance-card {
            margin-top: 32px;
            padding: 20px;
            background: var(--bg-card);
            border-radius: 16px;
            text-align: center;
        }

        .guidance-icon {
            width: 36px;
            height: 36px;
            background: var(--accent-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
            color: white;
            font-size: 16px;
        }

        .guidance-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .guidance-text {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 16px;
            line-height: 1.4;
        }

        .play-video-btn {
            background: none;
            border: none;
            color: var(--accent-primary);
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0 auto;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
        }

        .main-content::-webkit-scrollbar {
            display: none;
        }

        .content-header {
            margin-bottom: 24px;
        }

        .page-title {
            font-size: 24px !important;
            font-weight: 700 !important;
            margin-bottom: 4px !important;
        }

        .page-subtitle {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 20px;
        }

        .search-container {
            position: relative;
            margin-bottom: 16px;
        }

        .search-input {
            width: 100%;
            padding: 12px 16px 12px 44px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            color: var(--text-primary);
            font-size: 14px;
        }

        .search-input::placeholder {
            color: var(--text-secondary);
        }

        .search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 16px;
        }

        .notification-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: var(--bg-card);
            border-radius: 12px;
            margin-bottom: 24px;
        }

        .notification-badge {
            background: #ef4444;
            color: white;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        /* Featured Item */
        .featured-section {
            margin-bottom: 32px;
        }

        .featured-card {
            background: var(--bg-card);
            border-radius: 20px;
        
        }

        .featured-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
          
            background: linear-gradient(135deg, #a8e6cf, #88d8c0, #ff8b94, #ffaaa5);
        
        }

        .featured-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .product-id {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: 16px;
        }

        .creator-info {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .creator-pic {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-size:cover; 
            background-position:center;
        }

        .creator-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 2px;
        }

        .creator-email {
            color: var(--text-secondary);
            font-size: 12px;
        }

        .bid-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }

        .bid-item h4 {
            color: var(--text-secondary);
            font-size: 11px;
            text-transform: uppercase;
            margin-bottom: 4px;
            letter-spacing: 0.5px;
        }

        .bid-value {
            font-size: 16px;
            font-weight: 700;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .heart-btn {
            background: none;
            border: none;
            color: #ef4444;
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
        }

        .details-btn {
            flex: 1;
            padding: 10px 16px;
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
        }

        .bid-btn {
            flex: 2;
            padding: 12px 20px;
            background: var(--gradient-purple);
            border: none;
            color: white;
            border-radius: 5px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
        }

        /* Trending Section */
        .trending-section {
            margin-bottom: 32px;
        }

        .section-header {
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .filter-tabs {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 8px;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none;  /* IE and Edge */
        }

        .filter-tabs::-webkit-scrollbar {
            display: none;
        }

        .filter-tab {
            padding: 6px 16px;
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            border-radius: 16px;
            font-size: 14px;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.2s;
        }

        .filter-tab.active {
            background: var(--bg-card);
            color: var(--text-primary);
        }

        .trending-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 16px;
        }

        .trending-card {
            background: var(--bg-card);
            border-radius: 16px;
            overflow: hidden;
        }

        .trending-image {
            width: 100%;
            height: 150px;
            position: relative;
        }

        .trending-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 16px;
            color: white;
        }

        .trending-stats {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            margin-bottom: 6px;
            opacity: 0.9;
        }

        .trending-price {
            font-size: 14px;
            font-weight: 700;
        }

        .trending-info {
            padding: 16px;
        }

        .trending-name {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .trending-creator {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }

        .trending-creator-pic {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            
        }

        .trending-creator-name {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .trending-actions {
            display: flex;
            gap: 8px;
        }

        .trending-actions .details-btn,
        .trending-actions .bid-btn {
            flex: 1;
            text-align: center;
            padding: 8px 12px;
            font-size: 12px;
        }

        /* Stats and Lists */
        .stats-card {
           
         
          border-radius: 15px;
            text-align: start;
        
            margin-bottom: 32px;
        }

        .stats-header {
            background-color: var(--accent-secondary);
            border-radius: 15px;
            height: 150px;
            margin-bottom: 30px;
            padding: 25px;
            position: relative;

        }

        .stats-title {
            color: var(--text-primary);
            font-size: 14px;
            margin-bottom: 3px;

        }

        .stats-amount {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 5px;
        }

        .stats-pnl {
       color: var(--text-primary);
            font-size: 14px;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .stats-pnl.profit {
            color: var(--accent-success) /* Green for profit */
        }

        .stats-pnl.loss {
            color: var(--accent-danger) /* Red for loss */
        }

        .withdraw-btn {
     
            padding: 12px;
            background: transparent;
            border: none;
            color: white;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            position: absolute;
            right: 10px;
            top: 0;
        }

        .deposit-btn {
            width:60px;
            height:60px;
            border-radius:10px;
            background:#fff;
            color:var(--accent-secondary);
            font-size:2rem;
            border:none;
            box-shadow:0 2px 8px rgba(0,0,0,0.08);
            position: absolute;
            right: 30px;
            top: 50px;
            cursor: pointer;
        }

        .stats-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .stat-item {
            text-align: center;
            background-color: var(--bg-card);
            padding: 15px 20px;
            border-radius: 15px;
        }

        .stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            margin: 0 auto 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
        }

        .stat-icon.teal { background: #14b8a6; }
        .stat-icon.orange { background: #f97316; }

        .stat-value {
            font-weight: 700;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .list-section {
            margin-bottom: 32px;
            background-color: var(--bg-card);
            border-radius: 15px;
            padding: 15px;
        }

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

        .list-title {
            font-size: 16px;
            font-weight: 700;
        }

        .see-all-btn {
            color: var(--accent-primary);
            background: none;
            border: none;
            font-size: 12px;
            cursor: pointer;
        }

        .list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            margin: 5px 0;
            background: var(--bg-card);
            border-radius: 12px;
        }

        .list-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, #ff9a9e, #fecfef);
            flex-shrink: 0;
        }

        .list-avatar.box {
            border-radius: 10px !important;
        }

        


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

        .list-name {
            font-weight: 600;
            font-size: 13px;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .list-handle {
            color: var(--text-secondary);
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .follow-btn {
            padding: 6px 14px;
            background: var(--gradient-purple);
            border: none;
            color: white;
            border-radius: 14px;
            font-size: 11px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .unfollow-btn {
            padding: 6px 14px;
            background: transparent;
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 14px;
            font-size: 11px;
            cursor: pointer;
            flex-shrink: 0;
        }

        .list-time {
            color: var(--text-secondary);
            font-size: 11px;
            flex-shrink: 0;
        }

        /* Bottom Navigation */
        .bottom-nav {
            display: flex;
            justify-content: space-around;
            padding: 3px 0;
            background: var(--bg-sidebar);
            border-top: 1px solid var(--border-color);
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100vw;
            z-index: 2000;
        }
            .bottom-nav {
                display: flex !important;
                justify-content: space-around !important;
                padding: 3px 0 !important;
                background: var(--bg-sidebar) !important;
                border-top: 1px solid var(--border-color) !important;
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100vw !important;
                z-index: 2000 !important;
            }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 10px;
            transition: color 0.2s;
        }
            .bottom-nav-item {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                gap: 4px !important;
                padding: 8px !important;
                color: var(--text-secondary) !important;
                text-decoration: none !important;
                font-size: 10px !important;
                transition: color 0.2s !important;
            }

        .bottom-nav-item.active,
        .bottom-nav-item:hover {
            color: var(--accent-secondary);
            font-weight: 600;
            /* Stronger blue than var(--accent-primary) */
            text-shadow: 0 2px 8px rgba(33,46,72,0.25);
        }
            .bottom-nav-item.active,
            .bottom-nav-item:hover {
                color: var(--accent-secondary) !important;
                font-weight: 600 !important;
                /* Stronger blue than var(--accent-primary) */
                text-shadow: 0 2px 8px rgba(33,46,72,0.25) !important;
            }

      
            .bottom-nav-item span i {
                font-size: 16px !important;
            }

        a {
            text-decoration: none;
            color: inherit;
        }

        .dropdown-menu-dark {
            background: var(--bg-card) !important;
            border: 1px solid var(--border-color) !important;
            color: var(--text-primary) !important;
        }

        /* Background gradients */
        .bg-teal { background: linear-gradient(135deg, #14b8a6, #0891b2); }
        .bg-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
        .bg-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
        .bg-yellow { background: linear-gradient(135deg, #eab308, #ca8a04); }
        .bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
        .bg-red { background: linear-gradient(135deg, #ef4444, #dc2626); }

        /* TABLET STYLES */
        @media (min-width: 768px) {
            .trending-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .main-content {
                padding: 32px;
            }

            .page-title {
                font-size: 28px;
            }

            .featured-image {
                height: 100%;
            }

            .section-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .section-title {
                margin-bottom: 0;
            }
        }


        /* DESKTOP STYLES */

         /* Hide bottom nav on desktop */
    
        @media (min-width: 992px) {
            .hide-desktop {
                display: none !important;
            }
        }

        @media (min-width: 1024px) {
            body {
                display: flex;
                height: 100vh;
            }

            .app-container {
                flex-direction: row;
                width: 100%;
            }

            /* Hide mobile elements */
            .mobile-header,
            .bottom-nav,
            .sidebar-overlay {
                display: none;
            }

            /* Desktop Sidebar */
            .sidebar {
                position: static;
                width: 260px;
                height: 100vh;
                background: var(--bg-sidebar);
                padding: 20px;
                border-right: 1px solid var(--border-color);
                overflow-y: auto;
                flex-shrink: 0;
            }

            .sidebar-header {
                display: none;
            }

            .desktop-logo {
                display: flex;
                align-items: center;
                gap: 12px;
                margin-bottom: 40px;
            }

            .desktop-logo .logo-icon {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .desktop-logo .logo-text {
                font-size: 18px;
            }

            /* Main content area */
            .main-content {
                flex: 1;
                height: 100vh;
                overflow-y: auto;
                padding: 0;
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none;  /* IE and Edge */
            }

            .main-content::-webkit-scrollbar {
                display: none;
            }

            /* Desktop header */
            .desktop-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 20px 32px;
                border-bottom: 1px solid var(--border-color);
            }

            .desktop-header .page-title {
                font-size: 28px;
                margin-bottom: 4px;
            }

            .desktop-header .page-subtitle {
                margin-bottom: 0;
            }

            .desktop-header-right {
                display: flex;
                align-items: center;
                gap: 20px;
            }

            .desktop-search {
                position: relative;
            }

            .desktop-search .search-input {
                width: 280px;
                margin-bottom: 0;
            }

            .notification-btn {
                position: relative;
                background: var(--bg-card);
                border: none;
                padding: 8px;
                border-radius: 8px;
                color: var(--text-secondary);
                cursor: pointer;
                font-size: 16px;
            }

            .notification-btn .notification-badge {
                position: absolute;
                top: -4px;
                right: -4px;
                width: 18px;
                height: 18px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 10px;
            }

            .desktop-profile {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .desktop-profile .mobile-profile {
                width: 32px;
                height: 32px;
            }

            .profile-name {
                font-size: 14px;
                font-weight: 500;
            }

            /* Desktop content layout */
            .desktop-content {
                display: flex;
                gap: 32px;
                padding: 32px;
            }

            .main-section {
                flex: 2;
            }

            .sidebar-right {
                width: 320px;
                flex-shrink: 0;
            }

            /* Desktop featured item */
            .featured-card {
                display: flex;
                gap: 24px;
                align-items: flex-start;
   
            }

            .featured-image {
                width: 280px;
                height: 300px;
                margin-bottom: 0;
                flex-shrink: 0;
            }

            .featured-details {
                flex: 1;
                padding-top: 20px;
            }

            .featured-title {
                font-size: 24px;
            }

            .product-id {
                font-size: 14px;
                margin-bottom: 24px;
            }

            .creator-info {
                margin-bottom: 32px;
            }

            .creator-pic {
                width: 40px;
                height: 40px;
            }

            .creator-name {
                font-size: 16px;
            }

            .bid-row {
                display: flex;
                gap: 32px;
                margin-bottom: 24px;
            }

            .bid-value {
                font-size: 18px;
            }

            .action-buttons {
                flex-wrap: nowrap;
            }

            .details-btn,
            .bid-btn {
                flex: none;
            }

            .details-btn {
                padding: 8px 16px;
                font-size: 14px;
            }

            .bid-btn {
                padding: 8px 24px;
                font-size: 14px;
            }

            /* Desktop trending section */
            .trending-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .trending-image {
                height: 180px;
            }

            .section-title {
                font-size: 24px;
            }

            /* Hide mobile-only elements on desktop */
            .content-header,
            .search-container,
            .notification-bar {
                display: none;
            }
        }
