        body { font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif; background: #050505; color: #e2e8f0; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; transition: background-color .3s ease, color .3s ease; }
        #profile-main-view, #profile-settings-view { background: transparent; padding: 30px 15px; border-radius: 0; backdrop-filter: none; width: 100%; max-width: 800px; text-align: center; border: none; margin: 0 auto; box-sizing: border-box; }
        input, textarea { width: 100%; padding: 10px; margin: 10px 0; border-radius: 5px; border: none; box-sizing: border-box; }
        button { padding: 10px; background: #ff9800; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 1rem; font-weight: bold; margin-top: 10px; }
        button:hover { background: #e68900; }
        .profile-pic { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid white; margin-bottom: 15px; cursor: pointer; }
        /* CropperJS CSS Fix */
        .cropper-container { max-width: 100%; max-height: 100%; }

        /* Styling for followed/blocked state of transparent buttons */
        .btn-transparent.following { color: #aaa !important; }
        .btn-transparent.following::before { background: linear-gradient(45deg, #777, #444) !important; }
        body.light-mode .btn-transparent.following { color: #666 !important; }
        body.light-mode .btn-transparent.following::before { background: linear-gradient(45deg, #aaa, #888) !important; }
        .verified-badge { color: #1da1f2; margin-left: 5px; font-size: 1rem; vertical-align: middle; }
        
        /* Badge Styles */
        .badge-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255,255,255,0.1);
            padding: 5px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.2);
            cursor: help;
            transition: all 0.2s ease;
            margin: 5px;
        }
        .badge-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        .badge-icon {
            font-size: 1rem;
        }
        .badge-title {
            font-size: 0.85rem;
            font-weight: bold;
        }
        
        .stat-label { font-size: 0.85rem; color: #aaa; }
        body.light-mode .stat-label { color: #555; font-weight: bold; }

        @media (max-width: 480px) {
            #profile-main-view, #profile-settings-view { width: 90%; padding: 20px; }
        }

        /* Profile Inputs & Bio Styling */
        #username, #name, #bio {
            background: rgba(0, 0, 0, 0.2);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 12px 15px;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
        }
        #username:focus, #name:focus, #bio:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
            background: rgba(0, 0, 0, 0.4);
        }
        #bio { resize: vertical; min-height: 80px; line-height: 1.5; }

        /* Light Mode */
        body.light-mode { background: #f4f7f6; color: #333; }
        body.light-mode #profile-main-view, body.light-mode #profile-settings-view { background: transparent; border: none; }
        body.light-mode input, body.light-mode textarea { background: #f0f0f0; color: #333; border: 1px solid #ccc; }
        
        /* Light mode for badges */
        body.light-mode .badge-item {
            background: #e9ecef;
            border-color: #dee2e6;
        }
        body.light-mode .badge-title { color: #333; }

        /* Light Mode for Inputs & Bio */
        body.light-mode #username, body.light-mode #name, body.light-mode #bio {
            background: #f8f9fa;
            color: #333;
            border: 1px solid #ced4da;
        }
        body.light-mode #username:focus, body.light-mode #name:focus, body.light-mode #bio:focus {
            border-color: #6366f1;
            box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
            background: #fff;
        }

        body.light-mode #user-list-modal > div { background: #fff; border-color: #ddd; color: #333; }
        body.light-mode #user-list-title { color: #0d6efd; }
        body.light-mode #user-list-content > div { border-bottom-color: #eee; }
        body.light-mode #user-list-content strong { color: #000; }
        body.light-mode #password-modal > div { background: #fff; border-color: #ddd; color: #333; }
        body.light-mode #pwd-modal-title { color: #0d6efd; }
        body.light-mode #pwd-modal-desc { color: #666; }
        body.light-mode #pwd-auth-section input, body.light-mode #new-password-section input { background: #f0f0f0; border-color: #ccc; color: #333; }
        .btn {
            display: inline-block; padding: 8px 18px; font-size: 0.9rem; font-weight: bold; color: #fff; background: linear-gradient(135deg, #6366f1, #a855f7); border: none; border-radius: 30px !important; text-decoration: none; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        }
        .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5); }

    .theme-btn {
        position: relative;
        z-index: 1;
        border: none !important;
        background: transparent !important;
        color: #fff !important;
        font-size: 1.5rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .theme-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    }
    
    .btn-transparent {
        position: relative;
        background: transparent !important;
        color: #fff !important;
        border: none !important;
        border-radius: 30px !important;
        z-index: 1;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .btn-transparent::before, .theme-btn::before {
        content: "";
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        border-radius: 30px;
        padding: 1.5px;
    background: linear-gradient(45deg, #6366f1, #a855f7);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
        pointer-events: none;
    }
    .btn-transparent:hover {
        transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    }

    footer {
        text-align: center;
        padding: 20px 15px 110px 15px;
        margin-top: 40px;
        background: rgba(255, 255, 255, 0.03);
        color: #aaa;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }
    body.light-mode footer {
        background: rgba(0, 0, 0, 0.03);
        border-top-color: #ddd;
        color: #666;
    }
    body.light-mode .theme-btn { color: #333 !important; }
    body.light-mode .btn-transparent { color: #333 !important; }
body.light-mode .btn-transparent::before, body.light-mode .theme-btn::before { background: linear-gradient(45deg, #0d6efd, #a855f7); }
body.light-mode .profile-tab-btn.active { color: #0d6efd !important; border-bottom-color: #0d6efd !important; }

/* Generic white text overrides */
body.light-mode [style*="color: #fff"], 
body.light-mode [style*="color: white"],
body.light-mode [style*="color:#fff"], 
body.light-mode [style*="color:white"],
body.light-mode [style*="color: #ffffff"],
body.light-mode [style*="color:#ffffff"],
body.light-mode [style*="color: #eee"],
body.light-mode [style*="color:#eee"],
body.light-mode [style*="color: #ddd"],
body.light-mode [style*="color:#ddd"],
body.light-mode [style*="rgb(255, 255, 255)"],
body.light-mode [style*="rgb(238, 238, 238)"],
body.light-mode [style*="rgb(221, 221, 221)"] {
    color: #333 !important;
}

/* Explicit Class Overrides for texts */
body.light-mode .card-title-text, body.light-mode .grid-title-text,
body.light-mode .news-card-content p, body.light-mode .blog-desc-text,
body.light-mode .comment-text, body.light-mode .comment-author,
body.light-mode .news-card-info h3, body.light-mode .card-comments-box h3 { color: #333 !important; }

body.light-mode .comment-date, body.light-mode .article-meta { color: #666 !important; }
/* Buttons exception */
body.light-mode .btn,
body.light-mode .btn[style*="color"] {
    color: #fff !important;
}
body.light-mode .btn-transparent[style*="color"] {
    color: #333 !important;
}
body.light-mode .stat-label { color: #555 !important; }
body.light-mode #display-username { color: #555 !important; }
body.light-mode #display-bio { color: #444 !important; }

body.light-mode .theme-dropdown { background: rgba(255,255,255,0.95) !important; border-color: #ddd !important; color: #333 !important; }
body.light-mode .theme-option { border-color: #eee !important; color: #333 !important; }
body.light-mode .theme-option:hover { background: rgba(0,0,0,0.05) !important; }

body.light-mode #user-list-modal > div,
body.light-mode #password-modal > div,
body.light-mode #cropper-modal > div {
    background: #fff !important;
    border-color: #ddd !important;
    color: #333 !important;
}

        /* Theme Dropdown Styles */
        .theme-dropdown-container { position: relative; display: inline-block; width: 100%; margin-top: 10px; }
        .theme-dropdown { position: absolute; bottom: 100%; right: 0; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px; display: none; flex-direction: column; gap: 8px; z-index: 1000; min-width: 220px; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); margin-bottom: 5px; }
        .theme-dropdown.show { display: flex; animation: slideUp 0.2s ease; }
        @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .theme-option { padding: 10px 15px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; font-weight: bold; text-align: left; display: flex; align-items: center; justify-content: flex-start; gap: 12px; transition: transform 0.2s, box-shadow 0.2s; font-family: inherit; font-size: 0.9rem; width: 100%; box-sizing: border-box; white-space: nowrap; }
        .theme-option:hover { transform: scale(1.05); }
        .theme-option.active { border: 2px solid #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.4); transform: scale(1.02); }

        /* 5 New Futuristic Themes */
        body.cyberpunk-mode { background: radial-gradient(circle at top right, #3a0ca3, #050505); color: #ff007c; }
        body.cyberpunk-mode #profile-main-view, body.cyberpunk-mode #profile-settings-view { border: none; }
        body.cyberpunk-mode .btn { background: linear-gradient(135deg, #f72585, #4361ee); box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3); }
body.cyberpunk-mode .btn-transparent::before, body.cyberpunk-mode .theme-btn::before { background: linear-gradient(45deg, #f72585, #4361ee); }
body.cyberpunk-mode .profile-tab-btn.active { color: #f72585 !important; border-bottom-color: #f72585 !important; }
        body.matrix-mode { background: radial-gradient(circle at top, #003300, #050505); color: #00ff41; }
        body.matrix-mode #profile-main-view, body.matrix-mode #profile-settings-view { border: none; }
        body.matrix-mode .btn { background: linear-gradient(135deg, #00b4d8, #00ff41); box-shadow: 0 4px 15px rgba(0, 255, 65, 0.3); color: #000; }
body.matrix-mode .btn-transparent::before, body.matrix-mode .theme-btn::before { background: linear-gradient(45deg, #00b4d8, #00ff41); }
body.matrix-mode .profile-tab-btn.active { color: #00ff41 !important; border-bottom-color: #00ff41 !important; }
        body.ocean-mode { background: radial-gradient(circle at top left, #0077b6, #050505); color: #90e0ef; }
        body.ocean-mode .btn { background: linear-gradient(135deg, #0077b6, #00b4d8); box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3); }
body.ocean-mode .btn-transparent::before, body.ocean-mode .theme-btn::before { background: linear-gradient(45deg, #0077b6, #00b4d8); }
body.ocean-mode .profile-tab-btn.active { color: #00b4d8 !important; border-bottom-color: #00b4d8 !important; }
        body.dracula-mode { background: #282a36; color: #f8f8f2; }
        body.dracula-mode .btn { background: linear-gradient(135deg, #bd93f9, #ff79c6); box-shadow: 0 4px 15px rgba(189, 147, 249, 0.3); }
body.dracula-mode .btn-transparent::before, body.dracula-mode .theme-btn::before { background: linear-gradient(45deg, #bd93f9, #ff79c6); }
body.dracula-mode .profile-tab-btn.active { color: #bd93f9 !important; border-bottom-color: #bd93f9 !important; }
        body.solar-mode { background: radial-gradient(circle at center, #370617, #03071e); color: #ffba08; }
        body.solar-mode .btn { background: linear-gradient(135deg, #dc2f02, #ffba08); box-shadow: 0 4px 15px rgba(220, 47, 2, 0.3); }
body.solar-mode .btn-transparent::before, body.solar-mode .theme-btn::before { background: linear-gradient(45deg, #dc2f02, #ffba08); }
body.solar-mode .profile-tab-btn.active { color: #ffba08 !important; border-bottom-color: #ffba08 !important; }

    /* Promote Button Styling */
    .btn-promote {
        background: linear-gradient(45deg, #ff0050, #8e44ad);
        border: none; color: white; padding: 6px 15px; border-radius: 20px;
        font-size: 0.85rem; font-weight: bold; cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 10px rgba(255, 0, 80, 0.4);
    }
    .btn-promote:hover {
        transform: scale(1.05); box-shadow: 0 6px 15px rgba(255, 0, 80, 0.6);
    }

        /* Styles from news.html for blog cards */
        .news-card {
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
            display: flex;
            flex-direction: column;
            height: 100%;
            margin-bottom: 20px;
        }
        .news-card img.card-img-top {
            width: 100%;
            height: auto;
            object-fit: cover;
            max-height: 400px;
        }
        .news-card-content { padding: 25px; }
        .news-card-content h2 { font-size: 1.75rem; margin-top: 0; margin-bottom: 10px; }
        .news-card-content h2 a { color: #fff; text-decoration: none; transition: color 0.2s ease; }
        .news-card-content h2 a:hover { color: #ddd; text-decoration: underline; }
        .article-meta { font-size: 0.85rem; color: #ddd; margin-bottom: 15px; display: block; }
        .news-card-content p { font-size: 1.05rem; color: #eee; margin-bottom: 1em; }
        .card-title-text {
            margin: 0 0 4px 0;
            font-size: 1rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            cursor: pointer;
            color: #fff;
        }
        .card-media-container {
            position: relative;
            width: 100%;
            aspect-ratio: 16 / 9;
            background: #000;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            cursor: pointer;
        }
        .card-media-container img, .card-media-container video, .card-media-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border: none;
        }
        .carousel-container { position: relative; }
        .image-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
        .image-carousel img { flex: 0 0 100%; scroll-snap-align: center; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; cursor: pointer; position: relative !important; }
        .image-carousel::-webkit-scrollbar { display: none; }
        .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; cursor: pointer; z-index: 5; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: background 0.3s; }
        .carousel-btn:hover { background: rgba(0,0,0,0.9); }
        .carousel-btn.prev { left: 10px; }
        .carousel-btn.next { right: 10px; }
        .comment-actions { display: flex; gap: 15px; margin-top: 8px; font-size: 0.85rem; color: #aaa; }
        .comment-action-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
        .comment-action-btn:hover { color: #fff; }

        /* Modern Action Buttons for Blog Cards */
        .blog-action-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: 8px;
            transition: transform 0.2s ease, background-color 0.2s ease;
            font-family: inherit;
        }
        .blog-action-btn:hover { background-color: rgba(255, 255, 255, 0.05); transform: scale(1.05); }

        .replies-list { margin-left: 20px; margin-top: 10px; border-left: 2px solid rgba(255,255,255,0.1); padding-left: 10px; }
        .pinned-badge { background: #ffd700; color: #000; font-size: 0.6rem; padding: 2px 5px; border-radius: 4px; margin-left: 8px; font-weight: bold; vertical-align: middle; }
        .follow-btn.in-card { padding: 2px 8px; font-size: 0.7rem; border-radius: 10px; border: 1px solid #0d6efd; background: transparent; color: #0d6efd; cursor: pointer; margin-left: 10px; transition: all 0.2s; }
        .follow-btn.in-card.following { background: #0d6efd; color: white; }

        /* Light mode for blog cards */
    body.light-mode .news-card { background: transparent; border: none; box-shadow: none; }
        body.light-mode .news-card-content h2 a { color: #333; }
        body.light-mode .news-card-content p { color: #555; }
        body.light-mode .article-meta { color: #666; }
        body.light-mode .blog-action-btn:hover { background-color: rgba(0, 0, 0, 0.05); }
        body.light-mode .comment-actions { color: #666; }
        body.light-mode .comment-action-btn:hover { color: #000; }
        body.light-mode .replies-list { border-left-color: #eee; }

        /* Lightbox styles */
        body.light-mode .replies-list { border-left-color: #eee; }

        /* Lightbox styles */
        .lightbox-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 30%; overflow: hidden; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
        .lightbox-content { display: block; max-width: 90vw; max-height: 85vh; object-fit: contain; transition: transform 0.3s ease; }
        .profile-lightbox {  border-radius: 50%;left:0; top:0; width: 100%; height: 70%; max-width: 400px; max-height: 400px; object-fit: cover; align-items: center; justify-content: center; }
        .close-lightbox { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 2001; }
        .close-lightbox:hover { color: #bbb; }        

        /* Profile Tabs Styles */
        .profile-tabs { display: flex; border-bottom: 1px solid #444; margin-top: 30px; margin-bottom: 20px; }
        .profile-tab-btn { flex: 1; padding: 12px; background: transparent; color: #888; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-weight: bold; font-size: 1rem; transition: 0.3s; }
        .profile-tab-btn.active { color: #fff; border-bottom-color: #6366f1; }
        .profile-tab-btn:hover { color: #ccc; }
        body.light-mode .profile-tabs { border-bottom-color: #ddd; }
        body.light-mode .profile-tab-btn { color: #666; }
        body.light-mode .profile-tab-btn.active { color: #6366f1; border-bottom-color: #6366f1; }
        body.light-mode .profile-tab-btn:hover { color: #333; }
        .profile-tab-content { display: none; text-align: left; }
        .profile-tab-content.active { display: block; }

        /* Grid View Styles for Videos and Flicks */
        .videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
        .flicks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
        .flick-grid-item { position: relative; aspect-ratio: 9 / 16; cursor: pointer; overflow: hidden; background: #222; border-radius: 4px; transition: transform 0.2s; }
        .flick-grid-item:hover { transform: scale(1.02); }
        .flick-grid-item img, .flick-grid-item video { width: 100%; height: 100%; object-fit: cover; }
        .flick-grid-stats { position: absolute; bottom: 8px; left: 8px; color: white; font-size: 0.85rem; font-weight: bold; display: flex; align-items: center; gap: 4px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); pointer-events: none; }
        .flick-grid-duration { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; pointer-events: none; z-index: 2; text-shadow: 1px 1px 2px black; backdrop-filter: blur(2px); }
        .flick-grid-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; opacity: 0; transition: opacity 0.2s; }
        .flick-grid-item:hover .flick-grid-actions { opacity: 1; }
        .flick-grid-action-btn { background: rgba(0,0,0,0.7); color: white; border: none; border-radius: 5px; padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
        .flick-grid-action-btn:hover { background: rgba(0,0,0,0.9); }
        @media (max-width: 768px) {
            .flicks-grid { gap: 2px; }
            .flick-grid-actions { opacity: 1; top: 4px; right: 4px; }
            .flick-grid-action-btn { padding: 4px; }
            .flick-grid-stats { bottom: 4px; left: 4px; font-size: 0.75rem; }
            .flick-grid-duration { bottom: 4px; right: 4px; font-size: 0.7rem; padding: 2px 4px; }
        }
        .yt-grid-item { cursor: pointer; text-align: left; display: flex; flex-direction: column; transition: transform 0.2s; }
        .yt-grid-item:hover { transform: scale(1.02); }
        .video-thumbnail { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #222; border: 1px solid #444; }
        .flick-thumbnail { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #222; border: 1px solid #444; }
        .grid-title-text { margin: 8px 0 4px 0; font-size: 0.95rem; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
        @media (min-width: 601px) {
            .card-title-text { min-height: 2.8em; }
            .grid-title-text { min-height: 2.6em; }
            .card-media-container { border-radius: 12px; }
        }
        @media (max-width: 600px) {
            .news-card { margin-bottom: 0 !important; border-bottom: 4px solid #222; padding-bottom: 10px; border-radius: 0; }
            .news-card-content { padding: 10px 12px 0 12px !important; }
            body.light-mode .news-card { border-bottom: 4px solid #ddd; }
        }
        .yt-grid-item p { margin: 0; font-size: 0.8rem; color: #aaa; }
        body.light-mode .yt-grid-item h4 { color: #333; }
        body.light-mode .yt-grid-item p { color: #666; }
        body.light-mode .video-thumbnail, body.light-mode .flick-thumbnail { border-color: #ddd; }