        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #ec4899;
            --dark: #1f2937;
            --darker: #111827;
            --light: #f3f4f6;
            --lighter: #f9fafb;
            --text: #1f2937;
            --text-light: #6b7280;
            --success: #10b981;
            --warning: #f59e0b;
            --error: #ef4444;
            --card-bg: #ffffff;
            --header-bg: rgba(255, 255, 255, 0.95);
            --footer-bg: #111827;
            --transition: all 0.3s ease;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --radius: 12px;
            --radius-lg: 16px;
        }

        .dark-mode {
            --primary: #818cf8;
            --primary-dark: #6366f1;
            --card-bg: #1f2937;
            --header-bg: rgba(31, 41, 55, 0.95);
            --text: #f3f4f6;
            --text-light: #d1d5db;
            --light: #374151;
            --lighter: #4b5563;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        html {
            scroll-behavior: smooth;
        }
        
        body {
            background-color: var(--lighter);
            color: var(--text);
            overflow-x: hidden;
            transition: var(--transition);
        }

        /* Header Styles */
        header {
            position: sticky;
            top: 0;
            left: 0;
            width: 100%;
            padding: 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            background-color: var(--header-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .logo {
            font-size: 26px;
            font-weight: 700;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo i {
            font-size: 22px;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .theme-toggle {
            background: var(--light);
            border: none;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .theme-toggle:hover {
            background: var(--primary);
            color: white;
        }

        /* Search Bar */
        .search-container {
            padding: 16px 24px;
            background: var(--header-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 65px;
            z-index: 95;
            transition: var(--transition);
        }

        .search-box {
            display: flex;
            max-width: 600px;
            margin: 0 auto;
            background: var(--card-bg);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .search-input {
            flex: 1;
            padding: 14px 20px;
            border: none;
            background: transparent;
            font-size: 16px;
            outline: none;
            color: var(--text);
            transition: var(--transition);
        }

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

        .search-btn {
            background: linear-gradient(to right, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 0 20px;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
        }

        .search-btn:hover {
            background: linear-gradient(to right, var(--primary-dark), var(--primary));
        }

        /* Main Container */
        .main-container {
            margin-bottom: 80px;
            width: 100%;
            padding: 0 16px;
        }

        /* Content Tabs */
        .content-tabs {
            display: flex;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            background: var(--header-bg);
            backdrop-filter: blur(10px);
            position: sticky;
            top: 130px;
            z-index: 90;
            transition: var(--transition);
        }

        .tab {
            flex: 1;
            text-align: center;
            padding: 16px 0;
            font-weight: 600;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            position: relative;
        }

        .tab.active {
            color: var(--primary);
        }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 20%;
            width: 60%;
            height: 3px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 3px;
        }

        /* Content Feed */
        .content-feed {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
            padding: 24px 0;
        }

        /* Content Card */
        .content-card {
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
        }

        .content-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
        }

        .content-media-container {
            width: 100%;
            height: 0;
            padding-bottom: 75%; /* 4:3 aspect ratio */
            position: relative;
            overflow: hidden;
            background: linear-gradient(45deg, var(--light), var(--lighter));
        }

        .content-media {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .content-media:hover {
            transform: scale(1.05);
        }

        .favorite-btn {
            position: absolute;
            top: 12px;
            left: 12px;
            background-color: rgba(0,0,0,0.7);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            border: none;
            outline: none;
            transition: var(--transition);
        }

        .favorite-btn:hover {
            background-color: rgba(0,0,0,0.9);
            transform: scale(1.1);
        }

        .favorite-btn.favorited {
            color: #ff4d4d;
            background-color: rgba(255, 255, 255, 0.9);
        }

        .content-info {
            padding: 16px;
        }

        .content-title {
            font-weight: 600;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            color: var(--text);
        }

        .content-description {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

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

        .download-btn {
            background: linear-gradient(to right, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 10px 18px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        /* Preview Modal */
        .preview-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 1000;
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }

        .preview-content {
            display: flex;
            flex-direction: column;
            max-width: 1200px;
            margin: 40px auto;
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: slideUp 0.4s ease;
        }

        @keyframes slideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .preview-media-container {
            width: 100%;
            height: 70vh;
            position: relative;
            background: linear-gradient(45deg, var(--light), var(--lighter));
        }

        .preview-media {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .preview-info {
            padding: 32px;
        }

        .preview-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 24px;
        }

        .preview-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text);
            margin-right: 16px;
        }

        .preview-meta {
            display: flex;
            gap: 24px;
            margin-bottom: 24px;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            color: var(--text-light);
        }

        .meta-icon {
            font-size: 18px;
            color: var(--primary);
        }

        .preview-description {
            margin-bottom: 32px;
            line-height: 1.7;
            color: var(--text);
            font-size: 16px;
        }

        .preview-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 32px;
        }

        .tag {
            background-color: var(--light);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            color: var(--text);
            transition: var(--transition);
        }

        .tag:hover {
            background-color: var(--primary);
            color: white;
        }

        .preview-actions {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }

        .preview-download-btn {
            background: linear-gradient(to right, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }

        .preview-download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
        }

        .preview-close-btn {
            background: var(--light);
            color: var(--text);
            border: none;
            padding: 14px 28px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .preview-close-btn:hover {
            background: var(--lighter);
        }

        /* Profile Modal */
        .profile-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            z-index: 1000;
            overflow-y: auto;
            animation: fadeIn 0.3s ease;
        }

        .profile-content {
            max-width: 600px;
            margin: 40px auto;
            background-color: var(--card-bg);
            border-radius: var(--radius-lg);
            overflow: hidden;
            padding: 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            animation: slideUp 0.4s ease;
        }

        .profile-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 32px;
        }

        .profile-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 5px solid var(--light);
            margin-bottom: 16px;
            box-shadow: var(--shadow);
        }

        .profile-name {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text);
            text-align: center;
        }

        .profile-title {
            font-size: 16px;
            color: var(--text-light);
            margin-bottom: 16px;
            text-align: center;
        }

        .profile-bio {
            text-align: center;
            color: var(--text);
            margin-bottom: 32px;
            line-height: 1.7;
            font-size: 16px;
        }

        .profile-section {
            margin-bottom: 28px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title i {
            color: var(--primary);
            font-size: 20px;
        }

        .profile-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 16px;
        }

        .gallery-item {
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
        }

        .gallery-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-img {
            transform: scale(1.1);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text);
            font-size: 15px;
        }

        .contact-item i {
            width: 20px;
            color: var(--primary);
            font-size: 18px;
        }

        .profile-close-btn {
            position: absolute;
            top: 24px;
            right: 24px;
            background: none;
            border: none;
            color: white;
            font-size: 28px;
            cursor: pointer;
            z-index: 10;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            transition: var(--transition);
        }

        .profile-close-btn:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: rotate(90deg);
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 16px 0;
            display: flex;
            justify-content: space-around;
            align-items: center;
            background-color: var(--card-bg);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            z-index: 100;
            box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: var(--transition);
            padding: 8px 16px;
            border-radius: 12px;
        }

        .nav-item:hover {
            transform: translateY(-3px);
            background: var(--light);
        }

        .nav-icon {
            font-size: 22px;
            margin-bottom: 4px;
            color: var(--text-light);
            transition: var(--transition);
        }

        .nav-text {
            font-size: 11px;
            color: var(--text-light);
            transition: var(--transition);
        }

        .active .nav-icon {
            color: var(--primary);
            transform: translateY(-3px);
        }

        .active .nav-text {
            color: var(--primary);
            font-weight: 600;
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .content-feed {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 16px;
            }
            
            .preview-content {
                margin: 20px auto;
            }
            
            .preview-media-container {
                height: 50vh;
            }
            
            .preview-info {
                padding: 20px;
            }

            .profile-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .preview-header {
                flex-direction: column;
                gap: 16px;
            }
            
            .preview-actions {
                flex-direction: column;
            }
            
            .preview-download-btn, .preview-close-btn {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .content-feed {
                grid-template-columns: 1fr;
            }
            
            header {
                padding: 12px 16px;
            }
            
            .search-container {
                padding: 12px 16px;
            }
            
            .logo {
                font-size: 22px;
            }
            
            .profile-gallery {
                grid-template-columns: 1fr;
            }
            
            .preview-title {
                font-size: 24px;
            }
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        @keyframes heartBeat {
            0% { transform: scale(1); }
            25% { transform: scale(1.3); }
            50% { transform: scale(0.9); }
            75% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .heart-beat {
            animation: heartBeat 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Loading Animation */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-spinner {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 4px solid rgba(99, 102, 241, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s linear infinite;
            z-index: 1000;
        }

        /* No results message */
        .no-results {
            text-align: center;
            padding: 60px 40px;
            color: var(--text-light);
            grid-column: 1 / -1;
        }

        .no-results i {
            font-size: 56px;
            margin-bottom: 20px;
            color: var(--light);
        }

        .no-results h3 {
            font-size: 22px;
            margin-bottom: 12px;
            color: var(--text);
        }

        .no-results p {
            font-size: 16px;
        }

        /* Loading Screen Styles */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease-out;
        }

        .loading-logo {
            width: 120px;
            margin-bottom: 30px;
            animation: pulse 2s infinite;
        }

        .loading-text {
            color: #fff;
            font-size: 20px;
            margin-bottom: 24px;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .progress-container {
            width: 80%;
            max-width: 400px;
            height: 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
        }

        .progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        .loading-details {
            color: rgba(255, 255, 255, 0.7);
            margin-top: 20px;
            font-size: 14px;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        #loading-percentage {
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        .loading-screen.fade-out {
            opacity: 0;
            pointer-events: none;
        }

        /* Image protection */
        img {
            pointer-events: none;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .content-media-container {
            position: relative;
        }

        .content-media-container::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.02);
            z-index: 1;
            pointer-events: none;
        }

        /* Footer */
        .footer-credit {
            text-align: center;
            padding: 28px 0;
            font-family: 'Inter', sans-serif;
        }

        .footer-credit a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            padding: 10px 18px;
            border-radius: 25px;
            transition: var(--transition);
            background-color: var(--light);
            display: inline-block;
            margin: 5px;
        }

        .footer-credit a:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        /* Load More Button */
        .load-more-container {
            display: flex;
            justify-content: center;
            padding: 32px 0;
        }
        
        .load-more-btn {
            background: linear-gradient(to right, var(--primary), var(--primary-dark));
            color: white;
            border: none;
            padding: 14px 32px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow);
        }
        
        .load-more-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
        }
        
        .load-more-btn:disabled {
            background: var(--text-light);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--card-bg);
            color: var(--text);
            padding: 14px 24px;
            border-radius: 10px;
            box-shadow: var(--shadow-lg);
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideUp 0.3s ease;
        }
        
        .toast.success {
            border-left: 4px solid var(--success);
        }
        
        .toast.error {
            border-left: 4px solid var(--error);
        }
        
        .toast i {
            font-size: 20px;
        }
        
        .toast.success i {
            color: var(--success);
        }
        
        .toast.error i {
            color: var(--error);
        }
    