      /* ===== RESET & BASE ===== */
        * { box-sizing: border-box; }
        body { 
            background: #fafafa !important; 
            font-family: 'Inter', sans-serif; 
            margin: 0; 
            padding: 0; 
        }
        
        /* ===== HEADER ===== */
        .header { 
            background: #ffffff !important; 
            border-bottom: 1px solid #dbdbdb !important; 
            padding: 0 16px; 
            position: sticky; 
            top: 0; 
            z-index: 100; 
        }
        .header-inner { 
            max-width: 935px; 
            margin: 0 auto; 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            height: 60px; 
        }
        .header-search-wrap input { 
            background: #fafafa; 
            border: 1px solid #dbdbdb; 
            border-radius: 8px; 
            padding: 8px 12px 8px 36px; 
            font-size: 14px; 
            outline: none; 
            width: 100%; 
        }
        
               /* ===== MAIN WRAPPER - FLEX CONTAINER ===== */
        .main-wrapper { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 0 16px; 
            display: flex !important; 
            flex-direction: row !important;
            gap: 30px; 
            align-items: flex-start;
        }

        /* ===== LEFT SIDEBAR ===== */
        .sidebar-nav {
            flex-shrink: 0;
            width: 220px;
            position: sticky;
            top: 80px;
            height: calc(100vh - 80px);
            overflow-y: auto;
            border-right: 1px solid #e5e7eb;
            background: #ffffff;
            padding: 16px 10px;
            display: flex;
            flex-direction: column;
        }

        .sidebar-nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            text-decoration: none;
            color: #000;
            font-weight: 500;
            font-size: 0.85rem;
            transition: background 0.15s;
        }

        .sidebar-nav-item:hover {
            background: #f3f4f6 !important;
        }

        .sidebar-nav-item.special {
            background: #fefce8 !important;
        }

        .sidebar-nav-item.special:hover {
            background: #fef3c7 !important;
        }

        .sidebar-nav-item.active {
            background: #f0fdf4;
            color: #009933;
        }

        .sidebar-nav-icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        .sidebar-nav-label {
            font-size: 14px;
        }
        
        /* ===== FEED CONTAINER ===== */
        .feed-container { 
            max-width: 614px; 
            min-width: 614px;
            width: 614px;
            padding: 20px 0; 
            flex: 0 0 auto;
        }
        
        /* ===== SIDEBAR ===== */
        .sidebar-right { 
            display: block !important; 
            width: 293px; 
            flex: 0 0 293px;
            padding-top: 20px;
        }
        
        .sidebar-right-sticky {
            position: sticky;
            top: 80px;
        }
        
        /* ===== POST FEED ===== */
        .post-feed-grid { display: flex; flex-direction: column; gap: 16px; }
        .post-card { 
            background: #ffffff; 
            border: 1px solid #dbdbdb; 
            border-radius: 12px; 
            overflow: hidden; 
            width: 100%; 
        }
        .post-header { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
        .post-author { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .post-avatar { 
            width: 32px; 
            height: 32px; 
            border-radius: 50%; 
            overflow: hidden; 
            flex-shrink: 0; 
            background: #e5e7eb; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-weight: 700; 
            font-size: 14px; 
            color: #262626; 
        }
        .post-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .post-name { font-weight: 600; font-size: 14px; color: #262626; }
        .post-time { font-size: 12px; color: #8e8e8e; }
        .post-media { position: relative; width: 100%; background: #000; }
        .post-media img { width: 100%; display: block; height: auto; max-height: 614px; object-fit: contain; }
        .post-media video { width: 100%; display: block; max-height: 614px; background: #000; }
        
        .video-mute-btn {
            position: absolute;
            bottom: 12px;
            right: 12px;
            z-index: 5;
            background: rgba(0,0,0,0.6);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: 50%;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #fff;
            backdrop-filter: blur(4px);
        }
        .video-mute-btn:hover {
            background: rgba(0,0,0,0.8);
            transform: scale(1.05);
        }
        .video-mute-btn svg {
            width: 18px;
            height: 18px;
            fill: none;
            stroke: white;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        
        .post-actions { 
            display: flex; 
            align-items: center; 
            gap: 4px; 
            padding: 4px 16px 8px; 
            border-top: 1px solid #f3f4f6; 
        }
        .post-actions button { 
            display: flex; 
            align-items: center; 
            gap: 4px; 
            background: none; 
            border: none; 
            cursor: pointer; 
            padding: 6px 8px; 
            border-radius: 8px; 
            transition: 0.2s; 
            color: #6b7280; 
            font-size: 13px; 
        }
        .post-actions button:hover { background: #f3f4f6; }
        .post-actions button svg { width: 22px; height: 22px; stroke: #6b7280; stroke-width: 2.5; }
        .post-title { 
            padding: 0 16px 12px; 
            font-size: 14px; 
            color: #262626; 
            line-height: 1.4; 
            display: flex; 
            align-items: center; 
            gap: 12px; 
        }
        .post-title .disc { 
            width: 44px; 
            height: 44px; 
            border-radius: 50%; 
            overflow: hidden; 
            flex-shrink: 0; 
            background: #f0f0f0; 
            border: 2px solid #e8e8e8; 
        }
        .post-title .disc img { width: 100%; height: 100%; object-fit: cover; }
        
        /* ===== MOBILE NAV ===== */
        .mobile-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            background: #fff; 
            border-top: 1px solid #dbdbdb; 
            display: flex; 
            justify-content: space-around; 
            padding: 8px 0; 
            z-index: 100; 
            height: 56px;
        }
        .mobile-nav a { color: #262626; padding: 4px 12px; text-decoration: none; }
        
        /* ===== GUEST SIDEBAR CARD ===== */
        .sidebar-guest-card {
            background: #ffffff;
            border: 1px solid #dbdbdb;
            border-radius: 12px;
            padding: 24px 20px;
            text-align: center;
            margin-top: 12px;
        }
        .sidebar-guest-card .icon {
            font-size: 32px;
            margin-bottom: 10px;
        }
        .sidebar-guest-card h3 {
            font-size: 16px;
            font-weight: 600;
            color: #262626;
            margin: 0 0 4px 0;
        }
        .sidebar-guest-card p {
            font-size: 13px;
            color: #8e8e8e;
            margin: 0 0 16px 0;
        }
        .sidebar-guest-card .btn-login {
            display: inline-block;
            background: #0095f6;
            color: #fff;
            padding: 8px 24px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            margin-right: 8px;
        }
        .sidebar-guest-card .btn-login:hover {
            background: #0080d6;
        }
        .sidebar-guest-card .btn-register {
            display: inline-block;
            background: transparent;
            color: #0095f6;
            padding: 8px 24px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            text-decoration: none;
            border: 1px solid #0095f6;
        }
        .sidebar-guest-card .btn-register:hover {
            background: #f0f8ff;
        }
        
       /* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    body {
        overflow: hidden !important;
        height: 100vh !important;
        position: fixed !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .header-actions .btn-outline,
    .header-actions .btn-primary { display: none !important; }
    
    /* Hide search bar on mobile */
    .header-search-wrap { 
        display: none !important;
    }
    
    .header {
        padding: 0 4px;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
        flex-shrink: 0 !important;
    }
    
    /* Center the logo on mobile */
    .header-inner {
        justify-content: center !important;
    }
    
    .header-inner a {
        margin: 0 auto;
    }
            
            .header {
                padding: 0 4px;
                position: sticky !important;
                top: 0 !important;
                z-index: 100 !important;
                flex-shrink: 0 !important;
            }
            
            .main-wrapper { 
                padding: 0 !important;
                display: flex !important;
                flex-direction: column !important;
                height: calc(100vh - 60px - 56px) !important;
                overflow: hidden !important;
                position: relative !important;
                max-width: 100% !important;
                min-height: auto !important;
                gap: 0 !important;
            }
            
            .feed-container { 
                max-width: 100% !important; 
                min-width: auto !important;
                width: 100% !important;
                flex: 1 !important;
                padding: 0 !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch !important;
                height: 100% !important;
                background: #fafafa !important;
            }
            
            .post-feed-grid {
                gap: 4px !important;
                padding: 4px 0 !important;
                margin: 0 !important;
                padding-bottom: 0 !important;
            }
            
            .post-card {
                border-radius: 0 !important;
                border-left: none !important;
                border-right: none !important;
                border-top: 1px solid #dbdbdb !important;
                border-bottom: 1px solid #dbdbdb !important;
            }
            
            .post-header {
                padding: 10px 10px !important;
            }
            
            .post-actions {
                padding: 4px 10px 8px !important;
            }
            
            .post-title {
                padding: 0 10px 10px !important;
            }
            
            div[style*="display:flex;align-items:center;gap:6px;padding:0 16px 8px"] {
                padding: 0 10px 8px !important;
            }
            
            .sidebar-right { 
                display: none !important;
                width: 0 !important;
                flex: 0 0 0 !important;
                padding: 0 !important;
                margin: 0 !important;
            }
            
            .shop-icon-beside,
            .post-wrapper > div[style*="width:48px"] {
                display: none !important;
            }
            
            .post-wrapper {
                gap: 0 !important;
            }
            
            .mobile-nav {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                background: #fff !important;
                border-top: 1px solid #dbdbdb !important;
                display: flex !important;
                justify-content: space-around !important;
                padding: 8px 0 !important;
                z-index: 100 !important;
                flex-shrink: 0 !important;
                height: 56px !important;
            }
        }

        /* ===== COMMENT PANEL (SINGLE DEFINITION) ===== */
        .comment-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            animation: fadeIn 0.2s ease;
        }
        .comment-panel {
            background: #fff;
            border-radius: 20px 20px 0 0;
            width: 100%;
            max-width: 600px;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s ease;
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }
        .comment-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px 12px;
            border-bottom: 1px solid #e5e7eb;
            flex-shrink: 0;
        }
        .comment-panel-title {
            font-size: 16px;
            font-weight: 700;
            color: #111827;
        }
        .comment-panel-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #6b7280;
            padding: 4px 8px;
        }
        .comment-list {
            flex: 1;
            overflow-y: auto;
            padding: 12px 16px;
            max-height: 400px;
        }
        .comment-item {
            display: flex;
            gap: 10px;
            padding: 8px 0;
            border-bottom: 1px solid #f3f4f6;
        }
        .comment-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #009933;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }
        .comment-avatar-small {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            background: #009933;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
        }
        .comment-avatar-small img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .comment-body {
            flex: 1;
        }
        .comment-author {
            font-weight: 600;
            font-size: 13px;
            color: #111827;
        }
        .comment-text {
            font-size: 14px;
            color: #374151;
            margin: 2px 0;
        }
        .comment-time {
            font-size: 11px;
            color: #9ca3af;
        }
        .comment-input-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-top: 1px solid #e5e7eb;
            flex-shrink: 0;
        }
        .comment-input {
            flex: 1;
            border: 1px solid #e5e7eb;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            outline: none;
            font-family: 'Inter', sans-serif;
        }
        .comment-input:focus {
            border-color: #009933;
        }
        .comment-post-btn {
            background: #009933;
            color: #fff;
            border: none;
            border-radius: 20px;
            padding: 8px 20px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
        }
        .comment-post-btn:hover {
            background: #007a29;
        }
        .comment-login-prompt {
            padding: 16px;
            text-align: center;
            color: #6b7280;
            font-size: 14px;
            border-top: 1px solid #e5e7eb;
        }
        .comment-login-prompt a {
            color: #009933;
            font-weight: 600;
            text-decoration: none;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }

        /* ===== POST MEDIA WRAPPER ===== */
        .post-media-wrapper {
            position: relative;
            width: 100%;
            overflow: visible;
        }

        /* ===== SHOP ICON ===== */
        .shop-media-icon {
            position: absolute;
            bottom: 10px;
            left: -18px;
            z-index: 10;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            color: #fff;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
            transition: all 0.3s ease;
            border: 2px solid #fff;
            cursor: pointer;
        }

        .shop-media-icon:hover {
            transform: scale(1.1) rotate(-5deg);
            box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
        }

        .shop-media-icon i {
            font-size: 18px;
        }

        /* ===== SHOP ICON BESIDE POST ===== */
        .post-wrapper {
            display: flex;
            align-items: stretch;
            gap: 8px;
            margin-bottom: 16px;
        }

        .post-wrapper .post-card {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .post-wrapper .post-card .post-media-wrapper {
            flex-shrink: 0;
            position: relative;
        }

        .shop-icon-beside {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 48px;
        }

        .shop-icon-beside a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border-radius: 50%;
            color: #fff;
            text-decoration: none;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
            transition: all 0.3s ease;
            border: 2px solid #fff;
            margin-top: 0;
            align-self: flex-end;
        }

        .shop-icon-beside a:hover {
            transform: scale(1.1) rotate(-5deg);
            box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
        }

        .shop-icon-beside a i {
            font-size: 18px;
        }

        /* Mobile adjustments for shop icon */
        @media (max-width: 768px) {
            .shop-media-icon {
                width: 36px;
                height: 36px;
                bottom: 8px;
                left: -14px;
            }
            .shop-media-icon i {
                font-size: 14px;
            }
            
            .shop-icon-beside {
                width: 40px;
            }
            .shop-icon-beside a {
                width: 34px;
                height: 34px;
            }
            .shop-icon-beside a i {
                font-size: 14px;
            }
        }
              .stories-container {
            position: relative;
            top: 0;
            left: 0;
            transform: none;
            z-index: 10;
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 8px 0;
            box-shadow: none;
            width: 100%;
            max-width: 614px;
            overflow: hidden;
            transition: opacity 0.3s ease;
            opacity: 1;
            margin: 0 auto 8px auto;
        }

        .stories-container.hidden {
            opacity: 0;
            pointer-events: none;
        }
        
        .stories-scroll {
            display: flex;
            gap: 16px;
            overflow-x: auto;
            padding: 4px 0;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }

        .stories-scroll::-webkit-scrollbar {
            display: none;
        }

        .story-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            gap: 4px;
            flex-shrink: 0;
        }

        .story-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            overflow: hidden;
            position: relative;
            background: #e5e7eb;
            border: 3px solid #dbdbdb;
            flex-shrink: 0;
        }

        .story-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .story-avatar.has-story {
            border: 3px solid #0095f6;
            padding: 2px;
            background: #0095f6;
        }

        .story-avatar.has-story img {
            border-radius: 50%;
            border: 2px solid #fff;
        }

        .story-add {
            position: absolute;
            bottom: -4px;
            right: -4px;
            background: #0095f6;
            border: 2px solid #fff;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
        }

        .story-username {
            font-size: 11px;
            color: #262626;
            max-width: 64px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .story-avatar {
                width: 56px;
                height: 56px;
            }
            .story-username {
                font-size: 10px;
                max-width: 56px;
            }
            .story-add {
                width: 20px;
                height: 20px;
            }
            .story-add svg {
                width: 12px;
                height: 12px;
            }
            .stories-scroll {
                gap: 12px;
            }
        }

        @media (max-width: 480px) {
            .story-avatar {
                width: 48px;
                height: 48px;
            }
            .story-username {
                font-size: 9px;
                max-width: 48px;
            }
            .story-add {
                width: 18px;
                height: 18px;
            }
            .story-add svg {
                width: 10px;
                height: 10px;
            }
            .stories-scroll {
                gap: 10px;
            }
        }
                /* ===== RESPONSIVE - HIDE LEFT SIDEBAR ON MOBILE ===== */
        @media (max-width: 768px) {
            .sidebar-nav {
                display: none !important;
            }
        }
                /* ===== POST HEADER LAYOUT ===== */
        .post-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
        }
        
        .post-author {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }
        
        .post-author .post-name {
            white-space: nowrap;
        }
        
        .post-author .post-time {
            white-space: nowrap;
        }
        
        /* Move follow button to the right side */
        .feed-follow-btn {
            margin-left: auto !important;
        }
        
        /* Post menu button stays on the far right */
        .post-menu-btn {
            flex-shrink: 0;
        }
        .post-hashtags {
            padding: 0 16px 8px 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .post-hashtags a {
            color: #009933;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            background: #f0fdf4;
            padding: 2px 10px;
            border-radius: 12px;
            transition: all 0.2s ease;
        }
        
        .post-hashtags a:hover {
            background: #d1fae5;
        }