        :root {
            --bg-body: #0f172a; 
            --bg-gradient: radial-gradient(circle at top, #1e293b, #0f172a);
            --text-main: #f8fafc; --text-muted: #94a3b8;
            --primary: #3b82f6; 
            --card-bg: rgba(30, 41, 59, 0.95);
            --border: rgba(255,255,255,0.08);
            --nav-bg: #0f172a;
        }
        [data-theme="light"] {
            --bg-body: #f8fafc;
            --bg-gradient: radial-gradient(circle at top, #e2e8f0, #f8fafc);
            --text-main: #1e293b; --text-muted: #64748b;
            --primary: #2563eb;
            --card-bg: #ffffff;
            --border: rgba(0,0,0,0.08);
            --nav-bg: #ffffff;
        }
        
        * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
        
        body { 
            background: var(--bg-body); background-image: var(--bg-gradient);
            color: var(--text-main); font-family: 'Cairo', sans-serif; min-height: 100vh; 
            padding-bottom: 30px; overflow-x: hidden; background-attachment: fixed;
        }
        body.no-scroll { overflow: hidden; }

        header {
            position: sticky; top: 0; z-index: 1000; background: var(--nav-bg);
            border-bottom: 1px solid var(--border); padding: 15px 20px;
            display: flex; justify-content: space-between; align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        .logo { font-size: 1.3rem; font-weight: 900; letter-spacing: 1px; }
        .logo span { color: var(--primary); }
        .header-left { display: flex; gap: 25px; align-items: center; } 
        .icon-btn { font-size: 1.4rem; cursor: pointer; transition: 0.2s; color: var(--text-main); }

        .hero { text-align: center; padding: 25px 20px 5px; }
        .hero h1 { font-size: 1.8rem; margin-bottom: 5px; color: var(--primary); }
        .hero p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 25px; }

        .stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 25px; }
        .stat-item { 
            background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; 
            padding: 10px 20px; min-width: 90px; cursor: pointer; user-select: none;
        }
        .stat-item:active { transform: scale(0.95); border-color: var(--primary); }
        .stat-num { font-weight: 800; color: var(--primary); font-size: 1.2rem; display: block; }
        .stat-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

        .search-container { position: relative; max-width: 500px; margin: 0 auto 20px; }
        .search-box {
            width: 100%; background: var(--card-bg); border: 1px solid var(--border);
            padding: 14px 45px 14px 20px; border-radius: 50px; color: var(--text-main);
            font-family: 'Cairo'; font-size: 1rem; outline: none; 
        }
        .search-box:focus { border-color: var(--primary); }
        .search-icon { position: absolute; right: 20px; top: 16px; color: var(--text-muted); }

        .tabs-wrapper { position: sticky; top: 73px; z-index: 900; padding: 5px 0; margin-bottom: 15px; background: transparent; }
        .tabs-container { display: flex; gap: 8px; overflow-x: auto; padding: 5px 20px; scrollbar-width: none; }
        .tabs-container::-webkit-scrollbar { display: none; }
        .tab-btn {
            background: var(--card-bg); color: var(--text-muted); border: 1px solid var(--border);
            padding: 8px 20px; border-radius: 50px; cursor: pointer; transition: 0.2s;
            font-family: 'Cairo'; font-weight: 700; font-size: 0.85rem; white-space: nowrap; flex-shrink: 0;
        }
        .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

        .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 20px; max-width: 1000px; margin: 0 auto; }
        
        .card {
            background: var(--card-bg); border-radius: 18px; padding: 15px; 
            text-decoration: none; color: var(--text-main); display: flex; flex-direction: column; 
            align-items: center; border: 1px solid var(--border); position: relative; 
            transition: transform 0.1s; cursor: pointer;
        }
        .card:active { transform: scale(0.97); background: rgba(59, 130, 246, 0.05); }
        
        .mod-badge {
            position: absolute; top: 10px; left: 10px; 
            background: rgba(59, 130, 246, 0.1); color: var(--primary);
            font-size: 0.65rem; padding: 3px 8px; border-radius: 6px; font-weight: bold;
        }
        
        .heart-btn {
            position: absolute; top: 10px; right: 10px; font-size: 1.1rem; color: var(--text-muted);
            cursor: pointer; z-index: 5; background: none; border: none; padding: 5px;
        }
        .heart-btn.active { color: #ef4444; }

        .card img { width: 75px; height: 75px; border-radius: 16px; margin-bottom: 12px; object-fit: cover; background: #334155; }
        .card-title { font-size: 0.9rem; font-weight: 700; text-align: center; margin-bottom: 10px; line-height: 1.3; height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

        .get-btn {
            background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
            font-size: 0.8rem; font-weight: 700; padding: 6px 0; border-radius: 50px; 
            width: 100%; text-align: center; display: block;
        }
        .card:hover .get-btn { background: var(--primary); color: white; }
        .get-btn.secondary { border-color: #94a3b8; color: #94a3b8; } 

        .sidebar { height: 100%; width: 0; position: fixed; z-index: 2000; top: 0; right: 0; background-color: var(--nav-bg); overflow-x: hidden; transition: 0.3s; padding-top: 20px; border-left: 1px solid var(--border); box-shadow: -5px 0 20px rgba(0,0,0,0.5); }
        .sidebar-header { text-align: center; padding-bottom: 20px; margin-bottom: 10px; }
        .profile-img { width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--primary); margin-bottom: 10px; object-fit: cover; }
        .sidebar-link { margin: 10px 20px; padding: 12px 15px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; text-decoration: none; font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; border: 1px solid var(--border); }
        .sidebar-link i { width: 30px; color: var(--primary); font-size: 1.1rem; }
        .close-btn { position: absolute; top: 15px; left: 20px; font-size: 25px; color: var(--text-muted); background: none; border: none; }
        
        #imgViewer {
            display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%;
            background-color: #000; justify-content: center; align-items: center; flex-direction: column;
        }
        #imgViewer img { max-width: 100%; max-height: 80vh; object-fit: contain; }
        .close-viewer { position: absolute; top: 20px; right: 20px; color: white; font-size: 30px; cursor: pointer; background: rgba(255,255,255,0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
        
        #overlay { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.5); z-index: 1500; }
        .status { grid-column: span 2; text-align: center; color: var(--text-muted); margin-top: 50px; font-size: 0.9rem; }
        footer { text-align: center; padding: 30px; color: var(--text-muted); font-size: 0.8rem; margin-top: 40px; border-top: 1px solid var(--border); }