/* ===================================================
   File: design-hub.css
   Description: Styles specific to the Design Hub community page.
   =================================================== */

/* Main Layout */
.design-hub-main {
    padding-top: 120px;
    padding-bottom: 60px;
    background-color: #080824; /* A slightly different shade for distinction */
}

.hub-container {
    display: grid;
    grid-template-columns: 250px 1fr 280px;
    gap: 30px;
    align-items: flex-start;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

/* =========================================
   WORLD CLASS USER PROFILE CARD
   ========================================= */

.user-profile-card {
    padding: 0 !important; /* ডিফল্ট প্যাডিং রিমুভ */
    overflow: hidden;
    background: #0f1020 !important; /* ডিপ ব্যাকগ্রাউন্ড */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
}

/* ১. কার্ডের উপরে একটি সুন্দর ব্যানার */
.profile-card-banner {
    height: 80px;
    background: linear-gradient(45deg, #00f2ff, #bd00ff);
    position: relative;
}

.profile-card-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'); /* হালকা প্যাটার্ন */
    opacity: 0.2;
}

/* ২. ইউজারের ছবি (Floating Effect) */
.profile-card-avatar {
    width: 90px;
    height: 90px;
    margin: -45px auto 10px; /* অর্ধেক ব্যানারের উপরে থাকবে */
    position: relative;
    z-index: 2;
    padding: 3px;
    background: #0f1020; /* কার্ডের ব্যাকগ্রাউন্ডের সাথে মিল */
    border-radius: 50%;
}

.profile-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00f2ff; /* নিয়ন বর্ডার */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

/* ৩. নাম এবং ইমেইল */
.profile-card-info {
    padding: 0 20px 20px;
}

.profile-card-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; /* নাম বেশি বড় হলে ... দেখাবে */
}

.profile-card-info p {
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ৪. স্ট্যাটস (Followers/Following) */
.user-stats {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.stat-box {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-box strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

.stat-box small {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ৫. প্রোফাইল বাটন */
.view-profile-btn {
    display: block;
    margin: 0 20px 20px;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.3);
    background: rgba(0, 242, 255, 0.05);
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.hub-navigation ul {
    list-style: none;
}
.hub-navigation li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    text-decoration: none;
    color: var(--secondary-text);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.hub-navigation li a:hover,
.hub-navigation li a.active {
    background-color: rgba(51, 213, 229, 0.1);
    color: var(--accent-cyan);
}
.hub-navigation li a i {
    width: 20px;
    text-align: center;
}


/* Main Feed */
.create-post-card textarea {
    width: 100%;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    min-height: 80px;
    resize: vertical;
    margin-bottom: 15px;
}
.create-post-card textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.create-post-actions button {
    background: transparent;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.create-post-actions button:hover {
    background-color: var(--dark-blue);
}
#submit-post-btn {
    color: var(--primary-text);
}
#submit-post-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#image-preview-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.image-preview-item {
    position: relative;
}
.image-preview-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}
.remove-img-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 20px;
    text-align: center;
}

.feed-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.feed-filter .filter-btn { /* Reusing from style.css but can be customized */
    padding: 6px 18px;
    font-size: 0.9rem;
}

/* Feed Post Styling */
.feed-post {
    margin-bottom: 20px;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.post-header img.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.author-info strong {
    color: var(--primary-text);
    font-weight: 600;
}
.author-info small {
    display: block;
    color: var(--secondary-text);
    font-size: 0.8rem;
}
.post-body .post-text {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* OLD .post-images CODE REMOVED HERE AS REQUESTED */

.post-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
}
.action-btn {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.action-btn:hover {
    background-color: var(--dark-blue);
    color: var(--primary-text);
}
.action-btn.liked {
    color: var(--accent-pink);
    font-weight: 600;
}
.action-btn.liked i {
    animation: pop 0.3s ease;
}
@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Comments Section */
.post-comments {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}
.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.comment img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-content {
    background: var(--dark-blue);
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
}
.comment-content strong {
    font-size: 0.9rem;
}
.comment-content p {
    font-size: 0.95rem;
    margin: 5px 0 0;
}
.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.comment-form input {
    flex-grow: 1;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 15px;
    color: var(--primary-text);
}
.comment-form input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

/* Right Sidebar */
.right-sidebar ul {
    list-style: none;
}
.trending-topics li a {
    text-decoration: none;
    color: var(--secondary-text);
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}
.trending-topics li a:hover {
    color: var(--accent-cyan);
}
#contributors-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
#contributors-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
#contributors-list small {
    color: var(--secondary-text);
    font-size: 0.8rem;
}

.loading-spinner-container {
    display: flex;
    justify-content: center;
    padding: 50px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .hub-container {
        grid-template-columns: 250px 1fr;
    }
    .right-sidebar {
        display: none;
    }
}
@media (max-width: 992px) {
    .hub-container {
        grid-template-columns: 1fr;
    }
    .left-sidebar {
        position: static;
    }
    .design-hub-main {
        padding-top: 100px;
    }
}

/* ===================================================
File: design-hub.css (NEW STYLES FOR ENGAGEMENT FEATURES)
=================================================== */

/* --- Notifications --- */
.notification-area {
    position: relative;
    margin-right: 15px;
}
.notification-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}
.notification-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--accent-pink);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    display: none; /* Hidden by default */
}
.notification-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}
.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    top: 130%;
}
.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}
.notification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    text-decoration: none;
    color: var(--secondary-text);
    transition: background-color 0.3s;
}
.notification-item:hover {
    background-color: var(--dark-blue);
}
.notification-item.unread {
    background-color: rgba(51, 213, 229, 0.08);
}
.notification-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.notification-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}
.notification-item p strong {
    color: var(--primary-text);
}
.notification-item small {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

/* --- Create Post Card Enhancements --- */
.post-type-switcher {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin: -20px -20px 20px -20px;
}
.post-type-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--secondary-text);
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.post-type-btn.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}
#poll-creator input {
    width: 100%;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--primary-text);
    margin-bottom: 10px;
}
#add-poll-option-btn {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* --- Tags --- */
.tags-input-container { margin: 15px 0; }
#tags-input {
    width: 100%;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--primary-text);
}
#tags-display-area { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-item {
    background: var(--dark-blue);
    color: var(--accent-cyan);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}
.tag-item .remove-tag { margin-left: 8px; cursor: pointer; }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.post-tag {
    background-color: rgba(51, 213, 229, 0.1);
    color: var(--accent-cyan);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background-color 0.3s;
}
.post-tag:hover { background-color: rgba(51, 213, 229, 0.2); }

/* --- Polls in Feed --- */
.poll-body { margin: 15px 0; }
.poll-question { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; }
.poll-option-item {
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.poll-option-item.voted {
    border-color: var(--accent-cyan);
}
.poll-option-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(51, 213, 229, 0.2);
    width: 0%; /* JS will set this */
    transition: width 0.5s ease;
}
.poll-option-text { position: relative; z-index: 1; }
.poll-option-percent { position: relative; z-index: 1; float: right; font-weight: 600; }

/* --- Daily Challenge Card --- */
.daily-challenge {
    background: linear-gradient(135deg, rgba(51, 213, 229, 0.1), rgba(229, 51, 148, 0.1));
    border-color: var(--accent-cyan);
}
.daily-challenge h4 i { color: #ffc107; }
#challenge-content p { margin: 10px 0 15px; }

/* --- Post Header/Action Enhancements --- */
.post-header { position: relative; }
.follow-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.follow-btn:hover {
    background: var(--accent-cyan);
    color: var(--dark-blue);
}
.follow-btn.following {
    background: var(--accent-cyan);
    color: var(--dark-blue);
}
.action-btn.saved {
    color: var(--accent-cyan);
    font-weight: 600;
}
/* ===================================================
   File: design-hub.css (NEW STYLES FOR CATEGORY 2 FEATURES)
   =================================================== */

/* --- Before & After Creator --- */
.ba-upload-area { display: flex; gap: 20px; margin: 15px 0; }
.ba-upload-box { flex: 1; text-align: center; }
.ba-upload-box label { font-weight: 600; display: block; margin-bottom: 10px; }
.ba-upload-box input[type="file"] { display: none; }
.ba-preview {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px dashed var(--border-color);
    cursor: pointer;
    background-color: var(--dark-blue);
}
#ba-textarea { width: 100%; margin-top: 10px; /* Uses existing textarea styles */ }

/* --- Guide Creator (Quill Editor) --- */
#guide-title {
    width: 100%; background: var(--dark-blue); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 10px 15px; color: var(--primary-text); margin-bottom: 15px; font-size: 1.2rem;
}
#quill-editor-container { background-color: #fff; color: #000; border-radius: 8px; }
.ql-toolbar { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.ql-container { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; min-height: 200px; }

/* --- Post Body Styles for New Types --- */
.post-body .guide-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 20px; }
.post-body .guide-content { line-height: 1.8; }
.post-body .guide-content p, .post-body .guide-content li { margin-bottom: 15px; }
.post-body .guide-content h2, .post-body .guide-content h3 { margin: 25px 0 10px; }
.post-body video.post-video { width: 100%; border-radius: 10px; margin-top: 15px; }

/* --- Expert Badge and Answer Styles --- */
.author-info strong .expert-badge {
    background-color: var(--accent-cyan);
    color: var(--dark-blue);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}
.comment.top-answer .comment-content {
    border: 2px solid var(--accent-cyan);
    background-color: rgba(51, 213, 229, 0.1);
}
.pin-answer-btn {
    font-size: 0.8rem; color: var(--secondary-text);
    cursor: pointer; margin-left: 10px;
}
.pin-answer-btn:hover { color: var(--accent-cyan); }

/* --- Styles for Profile Page --- */
.profile-header { display: flex; gap: 30px; align-items: center; }
.profile-avatar img { width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--accent-cyan); }
.profile-stats { display: flex; gap: 25px; margin: 15px 0; }
.profile-stats strong { font-size: 1.5rem; }
#profile-bio { color: var(--secondary-text); }
#profile-style-container { margin-top: 10px; }
#profile-style { background: var(--dark-blue); padding: 5px 10px; border-radius: 5px; }

/* --- Styles for Moderation --- */
.post-options { position: absolute; top: 10px; right: 10px; }
.options-btn { background: none; border: none; color: var(--secondary-text); font-size: 1rem; cursor: pointer; }
.options-dropdown { display: none; position: absolute; right: 0; top: 120%; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 10; }
.post-options.active .options-dropdown { display: block; }
.options-dropdown a { display: block; padding: 10px 15px; color: var(--primary-text); text-decoration: none; white-space: nowrap; }
.options-dropdown a:hover { background-color: var(--dark-blue); }
/* --- Shop the Look Styles --- */
.post-media-wrapper {
    position: relative;
    margin-top: 15px;
}
.post-media-wrapper > img {
    width: 100%;
    border-radius: 10px;
}
.shop-tag-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}
.shop-tag-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
}
.shop-tag-point .shop-tag-tooltip {
    display: none;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.shop-tag-point:hover .shop-tag-tooltip {
    display: block;
}
.shop-tag-tooltip p {
    font-weight: 600;
    margin-bottom: 10px;
}
/* --- AR Viewer Modal Styles --- */
.ar-modal { max-width: 80vw; height: 80vh; padding: 0; }
model-viewer { width: 100%; height: 100%; border-radius: 15px; }
/* --- Verified Professional Badge Styles (UPDATED) --- */
.verified-badge-small {
    display: inline-flex; /* Use flexbox for alignment */
    align-items: center;
    background-color: rgba(51, 213, 229, 0.1); /* Lighter background */
    color: var(--accent-cyan);
    padding: 3px 8px; /* Add padding */
    border-radius: 20px; /* Pill shape */
    font-size: 0.75rem; /* Slightly larger font */
    font-weight: 600;
    margin-left: 8px; /* Increase margin a bit */
    vertical-align: middle; /* Align with the text */
}

.verified-badge-small::before {
    content: '\f058'; /* Font Awesome check-circle icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
}
/* --- Styles for Video and Link Preview Features --- */

/* Updated Create Post Actions */
.create-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.action-buttons-left button {
    background: none;
    border: none;
    color: var(--secondary-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.action-buttons-left button:hover {
    background-color: var(--dark-blue);
}

/* Post Video Player */
.post-video-container {
    margin-top: 15px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.post-video-container video {
    width: 100%;
    display: block;
}

/* Link Preview Card */
.link-preview-card {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
    text-decoration: none;
    background-color: var(--dark-blue);
    transition: background-color 0.3s;
}
.link-preview-card:hover {
    background-color: var(--card-bg);
}
.link-preview-image {
    width: 150px;
    flex-shrink: 0;
}
.link-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.link-preview-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.link-preview-title {
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 5px;
}
.link-preview-description {
    font-size: 0.9rem;
    color: var(--secondary-text);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}
.link-preview-domain {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    margin-top: 10px;
}

/* YouTube Embed */
.youtube-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}
.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* --- Styles for Edit, Delete, Pin Features --- */

/* Enhanced Post Options Dropdown */
.options-dropdown a, .options-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    color: var(--primary-text);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
}
.options-dropdown a:hover, .options-dropdown button:hover {
    background-color: var(--dark-blue);
}
.options-dropdown a i, .options-dropdown button i {
    margin-right: 10px;
    width: 15px;
}
.options-dropdown .delete-option {
    color: var(--accent-pink);
}

/* Edit Post Modal */
#edit-post-textarea {
    width: 100%;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-text);
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
}

/* Pinned Post on Profile */
#pinned-post-container {
    border-left: 4px solid var(--accent-cyan);
}
#pinned-post-container .pinned-badge {
    color: var(--secondary-text);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
#pinned-post-container .pinned-badge i {
    margin-right: 5px;
}
#pinned-post-container .feed-post {
    padding: 0;
    border: none;
    background: none;
    margin-bottom: 0;
}

/* --- Styles for Share Feature --- */

/* Share Modal Styles */
.share-modal .modal-body p {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 20px;
}
.share-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.share-btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: opacity 0.3s;
}
.share-btn-social:hover {
    opacity: 0.85;
}
.share-btn-social i {
    font-size: 1.2rem;
}

/* Social Media Colors */
.share-btn-social.facebook { background-color: #1877F2; }
.share-btn-social.twitter { background-color: #1DA1F2; }
.share-btn-social.pinterest { background-color: #E60023; }
.share-btn-social.whatsapp { background-color: #25D366; }
.share-btn-social.linkedin { background-color: #0A66C2; }
.share-btn-social.email { background-color: #7f8c8d; }

.copy-link-container {
    display: flex;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.copy-link-container input {
    flex-grow: 1;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    padding: 10px 15px;
    color: var(--secondary-text);
    font-size: 0.9rem;
}
.copy-link-container button {
    background: var(--accent-cyan);
    color: var(--dark-blue);
    border: none;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.1rem;
}
/* --- Styles for Leaderboard Widget --- */
.leaderboard {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(0,0,0,0.1));
}
.leaderboard h4 i { color: #ffc107; }
.leaderboard-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin: -10px 0 15px;
}
#leaderboard-list { list-style: none; }
#leaderboard-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
#leaderboard-list .rank {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary-text);
    width: 20px;
}
#leaderboard-list img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}
#leaderboard-list .points {
    margin-left: auto;
    font-weight: 600;
    color: var(--accent-cyan);
}
/* --- Styles for Featured/Sponsored Post --- */
.feed-post.featured {
    border: 2px solid var(--accent-cyan);
    background: linear-gradient(135deg, rgba(51, 213, 229, 0.05), rgba(0,0,0,0.1));
}
.featured-badge {
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.featured-badge i { margin-right: 5px; }

/* --- Styles for Current Filter Display --- */
.current-filter-display {
    display: flex;
    align-items: center;
    background-color: rgba(51, 213, 229, 0.1);
    color: var(--secondary-text);
    border: 1px solid var(--accent-cyan);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
#current-filter-tag {
    color: var(--accent-cyan);
    font-weight: 700;
    margin-left: 8px;
}
.clear-filter-btn {
    background: none;
    border: none;
    color: var(--accent-pink);
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: auto;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}
.clear-filter-btn:hover {
    color: #ff78b0;
}
/* ===================================================
   FIX & IMPROVEMENTS for Post Header & Mobile Layout
   =================================================== */

/* --- ১. Post Header Layout ঠিক করা (ডেস্কটপ এবং মোবাইল উভয়ের জন্য) --- */
.post-header {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 15px;
    margin-bottom: 15px;
    position: relative; /* This is important for child positioning */
}

.post-header .author-link {
    /* Author avatar link doesn't need changes */
    flex-shrink: 0; /* Prevents the avatar from shrinking */
}

.author-info {
    flex-grow: 1; /* Allows this element to take up available space */
    margin-right: 100px; /* Right margin to create space for buttons */
    /* We remove the inner flexbox to simplify */
}

.author-info a strong {
    display: flex; /* Use flexbox for name and badge alignment */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 8px; /* Space between name and badge */
    font-size: 1rem; /* Consistent font size */
    line-height: 1.4;
}

.author-info small {
    display: block;
    color: var(--secondary-text);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* --- ২. ফলো বাটন এবং অপশনস (3-dot) মেনু ঠিকভাবে পজিশন করা --- */
.post-options {
    position: absolute;
    top: 5px;
    right: 10px;
    margin-left: 10px; /* Add some space from the follow button */
}

.follow-btn {
    position: absolute;
    top: 5px;
    right: 45px; /* Position it to the left of the 3-dot menu */
    flex-shrink: 0; /* Prevent button from shrinking */

    /* Button styles (re-applying for consistency) */
    background: none;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents text from wrapping */
}

.follow-btn:hover {
    background: var(--accent-cyan);
    color: var(--dark-blue);
}
.follow-btn.following {
    background: var(--accent-cyan);
    color: var(--dark-blue);
}

/* --- ৩. মোবাইল ভিউতে লেআউট সেন্টারে আনা এবং স্পেসিং ঠিক করা --- */
@media (max-width: 992px) {
    .hub-container {
        /* This grid-template-columns was causing the right shift */
        grid-template-columns: 1fr; /* Force single column layout */
        padding: 0 15px; /* Add horizontal padding for mobile */
    }
}

/* --- ৪. মোবাইল ভিউতে Post Header আরও সুন্দর করা --- */
@media (max-width: 576px) {
    .author-info {
        /* Reduce the margin to bring buttons closer on very small screens */
        margin-right: 90px;
    }

    .author-info a strong {
        font-size: 0.95rem; /* Slightly smaller name on mobile */
    }
    
    .follow-btn {
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    .post-header {
        align-items: center; /* Center align vertically for a cleaner look on mobile */
    }
}
/* ===================================================
   STYLES FOR NEW TRENDING & SUGGESTED TOPICS
   =================================================== */

.topics-container {
    padding: 0; /* Remove default card padding */
}

.topics-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.topics-container .topics-section:last-child {
    border-bottom: none;
}

.topics-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topics-section h4 i {
    color: var(--accent-cyan);
}

.topics-list {
    list-style: none;
    max-height: 200px; /* Set a max height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add some padding for the scrollbar */
}

/* Custom scrollbar for a better look */
.topics-list::-webkit-scrollbar {
    width: 5px;
}
.topics-list::-webkit-scrollbar-track {
    background: transparent;
}
.topics-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}
.topics-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.topics-list li a {
    text-decoration: none;
    color: var(--secondary-text);
    display: block;
    padding: 8px 5px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.topics-list li a:hover {
    color: var(--accent-cyan);
    background-color: var(--dark-blue);
}

.topics-list .topic-count {
    float: right;
    font-size: 0.8rem;
    color: var(--secondary-text);
}

/* --- IMPROVED IMAGE DISPLAY STYLES --- */

/* Container for Single Image (Full View) */
.post-media-single {
    width: 100%;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000; /* Black background for better focus */
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-media-single img {
    width: 100%;
    height: auto; /* This allows original aspect ratio */
    max-height: 600px; /* Prevents extremely tall images from taking up too much space */
    object-fit: contain; /* Shows the full image without cropping */
    display: block;
}

/* Container for Multiple Images (Grid View) */
.post-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px;
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.post-media-grid img {
    width: 100%;
    height: 200px; /* Fixed height for grid items to look neat */
    object-fit: cover; /* Crop to fit the square */
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.post-media-grid img:hover {
    opacity: 0.9;
}

/* Fix for Shop Tags Wrapper */
.post-media-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
}
.post-media-wrapper img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
}

/* --- Styles for Deep Linked Post (Highlight Effect) --- */
@keyframes highlightPost {
    0% { box-shadow: 0 0 0 0 rgba(51, 213, 229, 0); }
    30% { box-shadow: 0 0 20px 5px rgba(51, 213, 229, 0.5); border-color: var(--accent-cyan); }
    100% { box-shadow: 0 0 0 0 rgba(51, 213, 229, 0); }
}

.feed-post.highlighted {
    animation: highlightPost 2s ease-in-out;
    border: 2px solid var(--accent-cyan); /* Optional: Keep border to show selection */
}

/* ===================================================
   NEW UPDATES: GRID FIXES & MOBILE DISCOVERY
   =================================================== */

/* Main Layout Grid Fix - Overrides previous settings */
.hub-container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 25px;
    align-items: flex-start;
}

/* Tablet View (max-width: 1200px) */
@media (max-width: 1200px) {
    .hub-container {
        grid-template-columns: 240px 1fr;
    }
    .right-sidebar {
        display: none;
    }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .design-hub-main {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hub-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
        gap: 15px;
    }

    .left-sidebar {
        display: none;
    }

    .card {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile Discovery Section Fixes */
.mobile-discovery-section {
    display: none;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Show on Mobile/Tablet only */
@media (max-width: 992px) {
    .mobile-discovery-section {
        display: block;
    }

    .mobile-scroll-container {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 10px 15px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .mobile-tag-chip, .mobile-profile-item {
        flex: 0 0 auto;
    }
}

/* =========================================
   FINAL MOBILE RESPONSIVE FIXES (ADD TO END OF FILE)
   ========================================= */

/* 1. Container Layout Fix for All Screens */
.hub-container {
    display: grid;
    /* Default Desktop: 3 Columns */
    grid-template-columns: 260px 1fr 300px; 
    gap: 25px;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. Tablet View (max-width: 1200px) */
@media (max-width: 1200px) {
    .hub-container {
        /* 2 Columns: Left Sidebar + Main Feed */
        grid-template-columns: 240px 1fr;
    }
    /* Hide Right Sidebar on Tablet */
    .right-sidebar {
        display: none !important;
    }
    /* Show Mobile Discovery Section on Tablet */
    .mobile-discovery-section {
        display: block !important;
    }
}

/* 3. Mobile View (max-width: 768px) */
@media (max-width: 768px) {
    .design-hub-main {
        padding-top: 90px; /* Better spacing for fixed header */
        padding-bottom: 80px;
    }

    .hub-container {
        /* Single Column for Mobile */
        grid-template-columns: 1fr;
        padding: 0 10px; /* Reduce side padding */
        gap: 15px;
    }

    /* Hide both sidebars on mobile */
    .left-sidebar, .right-sidebar {
        display: none !important;
    }

    /* Ensure Mobile Discovery is visible */
    .mobile-discovery-section {
        display: block !important;
        width: 100%;
        overflow: hidden; /* Prevent horizontal scroll on body */
    }

    /* Card Adjustments */
    .card {
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        border-radius: 10px;
    }

    /* Post Header Layout */
    .post-header {
        display: flex;
        align-items: center;
        position: relative;
        gap: 10px;
    }
    
    .author-info {
        max-width: 60%; /* Prevent overlapping with buttons */
    }
    
    .author-info strong {
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Button Positioning Fixes */
    .follow-btn {
        position: absolute;
        right: 35px; /* Left of the 3-dot menu */
        top: 5px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .post-options {
        position: absolute;
        right: 0;
        top: 5px;
    }

    /* Action Buttons (Like, Comment, Share) */
    .post-actions {
        justify-content: space-between;
    }
    .action-btn {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    /* Hide text labels on very small screens if needed */
    @media (max-width: 360px) {
        .action-btn span { display: none; }
    }

    /* Modals */
    .modal-container {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
    }
}

/* 4. Mobile Discovery Section Styling */
.mobile-discovery-section {
    display: none; /* Hidden on Desktop by default */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 0;
    margin-bottom: 20px;
}

.mobile-widget-header {
    padding: 0 15px;
    margin-bottom: 10px;
}

.mobile-widget-header h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--secondary-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 15px 10px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.mobile-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.mobile-tag-chip {
    flex: 0 0 auto;
    background: var(--dark-blue);
    border: 1px solid var(--border-color);
    color: var(--primary-text);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-profile-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 65px;
    text-align: center;
}

.mobile-profile-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    padding: 2px;
    object-fit: cover;
    margin-bottom: 5px;
}

.mobile-profile-item span {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    color: var(--primary-text);
}

/* ===================================================
   STORY FEATURE STYLES (Facebook Style Fixed)
   =================================================== */

/* 1. Main Container (Scrollable Area) */
.stories-container-wrapper {
    display: flex;
    gap: 10px; /* কার্ডের মাঝখানের গ্যাপ */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 20px 5px;
    margin-bottom: 20px;
    
    /* Scrollbar Hide */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    cursor: grab;
    
    /* Alignment Fixes */
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap; /* লাইন ভাঙা বন্ধ করবে */
}

.stories-container-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* 2. Track Fix (যাতে সব কার্ড এক লাইনে থাকে) */
.stories-track {
    display: contents; /* MAGIC FIX: এটি ডিভটিকে অদৃশ্য করে চাইল্ড এলিমেন্টগুলোকে মেইন কন্টেইনারে নিয়ে আসবে */
}

/* 3. Common Card Style (Fixed Size for Everyone) */
.story-card {
    /* Desktop Size */
    width: 120px;
    height: 200px;
    min-width: 120px; /* সংকুচিত হওয়া আটকাবে */
    min-height: 200px;
    
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Flex Properties */
    flex: 0 0 auto; /* সাইজ ফিক্সড রাখবে */
    flex-shrink: 0; /* ছোট হতে দেবে না */
    
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

/* 4. Create Story Card Specifics */
.create-story-card {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.create-story-card img {
    width: 100%;
    height: 75%; /* ইমেজের উচ্চতা */
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
    display: block; /* ইমেজ গ্যাপ ফিক্স */
}

.create-story-card:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Plus Icon (Fixed Position) */
.plus-icon-circle {
    position: absolute;
    bottom: 35px; /* টেক্সটের ঠিক উপরে */
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #0A0A2A; /* কার্ডের ব্যাকগ্রাউন্ড কালার */
    color: #fff;
    font-size: 0.9rem;
    z-index: 5;
}

.story-text {
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 5;
}

/* 5. User Story Card (Dynamic) */
.user-story-card img.story-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.user-story-card:hover img.story-bg {
    transform: scale(1.1);
}

/* Gradient Overlay for Readability */
.user-story-card .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Avatar Ring */
.story-avatar-ring {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--neon-blue);
    padding: 2px;
    z-index: 2;
    background: rgba(0,0,0,0.5);
}

.story-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.story-username {
    position: absolute;
    bottom: 10px;
    left: 8px;
    right: 8px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==============================================
   6. MOBILE OPTIMIZATION (Size Fix)
   ============================================== */
@media (max-width: 768px) {
    .stories-container-wrapper {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* মোবাইলের জন্য সাইজ ছোট করা হয়েছে */
    .story-card {
        width: 100px;        /* চওড়া কমানো হলো */
        height: 165px;       /* উচ্চতা কমানো হলো */
        min-width: 100px;
        min-height: 165px;
        border-radius: 10px;
    }

    /* আইকন এবং টেক্সট এডজাস্টমেন্ট */
    .plus-icon-circle {
        width: 28px;
        height: 28px;
        bottom: 30px;
        border-width: 2px;
    }

    .story-text {
        font-size: 0.7rem;
        bottom: 6px;
    }

    .story-avatar-ring {
        width: 30px;
        height: 30px;
        top: 8px;
        left: 8px;
        border-width: 2px;
    }

    .story-username {
        font-size: 0.7rem;
        bottom: 8px;
        left: 6px;
    }
}

/* ===================================================
   STORY VIEWER MODAL CSS (FACEBOOK STYLE)
   =================================================== */

/* 1. Full Screen Overlay */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Deep Black Background */
    z-index: 10000; /* Header-এর উপরে থাকবে */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Default Hidden State */
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* 2. Active State (When JS adds this class) */
.story-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* 3. Close Button */
.close-story-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.close-story-viewer:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 4. Main Content Area (Mobile aspect ratio) */
.story-viewer-content {
    position: relative;
    width: 100%;
    max-width: 450px; /* Mobile width constraint on desktop */
    height: 100%;
    max-height: 90vh; /* Leave some space on desktop */
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

@media (max-width: 768px) {
    .story-viewer-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* 5. Progress Bars (Top) */
.story-progress-bar-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10002;
}

.story-bar-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-bar-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    /* Transition set via JS usually, generally handled by animation logic */
}

/* 6. User Info Header */
.story-header-info {
    position: absolute;
    top: 25px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10002;
}

.story-header-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
}

.story-header-info h4 {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.story-header-info small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* 7. Media Container (Image/Video) */
.story-media-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.story-media-container img, 
.story-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is seen */
    display: block;
}

/* 8. Navigation Zones (Invisible Click Areas) */
.story-nav-left, .story-nav-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 10001;
    cursor: pointer;
}
.story-nav-left { left: 0; }
.story-nav-right { right: 0; }

/* =========================================
   STORY VIDEO THUMBNAIL FIX
   ========================================= */

/* ভিডিও এবং ইমেজ দুটোর জন্যই একই স্টাইল যাতে কার্ডের সাইজ ঠিক থাকে */
.user-story-card video.story-bg {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ভিডিও পুরো কার্ড জুড়ে থাকবে */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ==============================================
   SUPER ADMIN STYLES
   ============================================== */

/* Admin Options in Dropdown */
.options-dropdown .admin-option {
    color: #ffd700; /* Gold color for admin actions */
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.options-dropdown .admin-option:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Featured Post Styling */
.feed-post.is-featured {
    border: 2px solid #ffd700; /* Gold Border */
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(15, 23, 42, 0.8));
    position: relative;
}
.featured-badge-top {
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 10px;
    position: absolute;
    top: 10px; /* কার্ডের ভেতরে আনা হয়েছে */
    left: 10px; /* বাম পাশে গ্যাপ */
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Optional: কার্ডের প্যাডিং একটু বাড়ানো যাতে টেক্সটের সাথে ওভারল্যাপ না হয় */
.feed-post.is-featured {
    padding-top: 40px !important; /* উপরে একটু জায়গা ছাড়া হলো */
    position: relative; 
}

/* Global Pinned Styling */
.feed-post.is-global-pinned {
    border: 2px solid var(--neon-blue);
    background: linear-gradient(180deg, rgba(0, 242, 255, 0.05), rgba(15, 23, 42, 0.8));
}

/* Comments Locked UI */
.comments-locked-msg {
    text-align: center;
    padding: 15px;
    color: var(--secondary-text);
    font-style: italic;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    margin-top: 10px;
}

/* --- FIX: Dropdown Overflow Issue --- */
.feed-post, .card {
    overflow: visible !important; /* ড্রপডাউন যাতে কার্ডের বাইরে দেখা যায় */
}

/* Ensure dropdown is always on top */
.post-options {
    position: relative;
    z-index: 100;
}

.options-dropdown {
    z-index: 9999 !important; /* অন্য সব কিছুর উপরে থাকবে */
    box-shadow: 0 5px 25px rgba(0,0,0,0.5); /* শ্যাডো একটু গাঢ় করা হলো */
}

/* --- FIX: Double Verified Tick --- */
/* আগের কোডে ::before দিয়ে আইকন অ্যাড করা ছিল, আবার HTML এও আইকন ছিল। তাই ::before রিমুভ করা হলো */
.verified-badge-small::before {
    content: none !important; 
}
.verified-badge-small {
    background: transparent !important; /* ব্যাকগ্রাউন্ড রিমুভ করে ক্লিন লুক */
    padding: 0;
    margin-left: 5px;
}
.verified-badge-small i {
    color: var(--accent-cyan); /* আইকনের কালার */
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4); /* গ্লো এফেক্ট */
}

/* --- NEW: Admin Badge Style --- */
.admin-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff0055, #bd00ff);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    cursor: help; /* কার্সার নিয়ে গেলে জিজ্ঞাসা চিহ্ন আসবে */
    box-shadow: 0 2px 8px rgba(189, 0, 255, 0.4);
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-small i {
    font-size: 0.8rem;
}

/* ==============================================
   FIX: MOBILE BADGE & DROPDOWN (UPDATED)
   ============================================== */

/* ১. ড্রপডাউন ফিক্স (Dropdown Cut-off Fix) */
.feed-post, .card {
    overflow: visible !important; /* কার্ডের বাইরে ড্রপডাউন দেখাবে */
    position: relative; /* পজিশনিং ফিক্স */
    transition: z-index 0s; /* z-index চেঞ্জ স্মুথ হওয়ার দরকার নেই */
}

/* যখন ড্রপডাউন একটিভ হবে, তখন এই ক্লাসটি JS দিয়ে এড হবে */
.feed-post.dropdown-active {
    z-index: 10000 !important; /* সবার উপরে নিয়ে আসবে */
}

.post-options {
    position: relative;
    z-index: 5;
}

.options-dropdown {
    width: 200px; /* ফিক্সড উইডথ */
    right: 0;
    top: 30px; /* আইকনের একটু নিচে */
    box-shadow: 0 5px 20px rgba(0,0,0,0.6); /* গাঢ় শ্যাডো */
    border: 1px solid rgba(255,255,255,0.1);
}

/* ২. ব্যাজ স্টাইলিং (Desktop & Mobile Unified Professional Look) */
.author-info a strong {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap; /* নাম এবং ব্যাজ এক লাইনে রাখবে */
    gap: 6px;
    max-width: 100%;
}

/* Verified Badge (Clean Blue Tick) */
.verified-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
}

.verified-badge-small i {
    color: #00f2ff; /* Neon Cyan */
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.6));
}

/* Admin Badge (Professional Gradient Pill) */
.admin-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(90deg, #ff0055, #bd00ff);
    color: #fff;
    font-size: 0.65rem; /* ডেস্কটপে ছোট ফন্ট */
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap; /* টেক্সট ভাঙবে না */
    box-shadow: 0 2px 8px rgba(189, 0, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* ৩. মোবাইল স্পেসিফিক ফিক্স (Mobile Adjustments) */
@media (max-width: 768px) {
    /* নাম এবং ব্যাজের ফন্ট সাইজ ব্যালেন্স করা */
    .author-info a strong {
        font-size: 0.9rem; /* নামটা মোবাইলে একটু ছোট */
    }

    /* মোবাইলে অ্যাডমিন ব্যাজ আরও স্লিম এবং প্রফেশনাল করা */
    .admin-badge-small {
        font-size: 0.55rem; /* ফন্ট সাইজ কমানো হলো */
        padding: 1px 5px;   /* প্যাডিং কমানো হলো */
        border-radius: 3px;
        gap: 2px;
        height: auto;
        align-self: center; /* মাঝ বরাবর থাকবে */
    }
    
    .admin-badge-small i {
        font-size: 0.6rem; /* আইকন সাইজ */
    }

    /* মোবাইলে ভেরিফাইড টিক সাইজ */
    .verified-badge-small i {
        font-size: 0.8rem;
    }
}

/* ==============================================
   WORLD CLASS POST HEADER REDESIGN (FINAL)
   ============================================== */

/* 1. Main Header Container - Strict Alignment */
.post-header {
    display: flex;
    align-items: center; /* Vertically Center everything */
    justify-content: space-between;
    gap: 12px; /* Spacing between Avatar, Text, and Actions */
    margin-bottom: 12px;
    position: relative;
    width: 100%;
}

/* 2. Avatar - Fixed Size, Never Shrinks */
.post-header .author-link:first-child {
    flex-shrink: 0; /* ছবি চ্যাপ্টা হবে না */
    line-height: 0;
}
.post-header img.author-avatar {
    width: 42px; /* Standard Mobile Size */
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 3. Middle Section (Name, Badge, Time) - Takes available space */
.author-info {
    flex-grow: 1; /* মাঝখানের জায়গা দখল করবে */
    display: flex;
    flex-direction: column; /* নাম উপরে, টাইম নিচে */
    justify-content: center;
    overflow: hidden; /* নাম অনেক বড় হলে হ্যান্ডেল করবে */
    margin-right: 5px; 
}

/* Name Row (Name + Badges) */
.author-name-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* এক লাইনে রাখার চেষ্টা করবে */
    gap: 6px;
    max-width: 100%;
}

.author-name-row strong {
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* নাম বড় হলে ... দেখাবে */
    max-width: 100%;
    line-height: 1.2;
}

/* Timestamp (Subtext) */
.author-info small {
    font-size: 0.75rem;
    color: #94a3b8; /* Muted Color */
    margin-top: 2px;
    display: block;
}

/* 4. Right Side Actions (Follow + Menu) - Grouped Together */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ডানদিকের জায়গা ফিক্সড */
}

/* 5. Sleek Follow Button (Outline Style) */
.follow-btn {
    position: static; /* আগের absolute পজিশন বাতিল */
    background: transparent;
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    height: 28px; /* Fixed Height */
    display: flex;
    align-items: center;
}

.follow-btn:hover, .follow-btn.following {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* 6. Professional Badges */
/* Verified Tick */
.verified-badge-small {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.verified-badge-small i {
    color: #00f2ff;
    font-size: 0.9rem;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.4));
}

/* Admin Badge - Sleek Pill Style */
.admin-badge-small {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(255, 0, 85, 0.15); /* Transparent Red/Pink */
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #ff0055;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 18px;
}

/* 7. Dropdown Menu Trigger */
.options-btn {
    color: #94a3b8;
    padding: 5px;
    font-size: 1rem;
}

/* ==============================================
   FIX: NAME TRUNCATION & MISSING BADGE
   ============================================== */

/* 1. Middle Container needs min-width: 0 to allow text truncation inside flex */
.author-info {
    flex: 1;                /* Take remaining space */
    min-width: 0;           /* CRITICAL FIX: এটি না দিলে টেক্সট কাটবে না, লেআউট ভেঙে যাবে */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 8px;      /* ডানদিকের বাটনের সাথে গ্যাপ */
}

/* 2. Name Row Layout */
.author-name-row {
    display: flex;
    align-items: center;    /* Vertically center name and badge */
    width: 100%;            /* Full width of the middle container */
}

/* 3. Name Link Styling (This will shrink if space is low) */
.author-name-link {
    display: block;
    color: #fff;
    font-weight: 700;       /* Bold Name */
    font-size: 0.95rem;
    text-decoration: none;
    
    /* Truncation Logic */
    white-space: nowrap;    /* এক লাইনে রাখবে */
    overflow: hidden;       /* বাড়তি অংশ লুকাবে */
    text-overflow: ellipsis;/* ... দেখাবে */
    
    flex-shrink: 1;         /* জায়গা কম পড়লে এটিই ছোট হবে */
}

/* 4. Badge Styling (This will NEVER shrink) */
.verified-badge-small, 
.admin-badge-small {
    flex-shrink: 0;         /* CRITICAL FIX: এটি কখনোই সংকুচিত হয়ে হারিয়ে যাবে না */
    margin-left: 5px;       /* নামের সাথে গ্যাপ */
    display: inline-flex;
    align-items: center;
}

/* 5. Mobile Adjustments for very small screens */
@media (max-width: 380px) {
    .follow-btn {
        padding: 4px 8px;   /* বাটন একটু ছোট করা হলো */
        font-size: 0.7rem;
    }
    .author-name-link {
        font-size: 0.85rem; /* নাম একটু ছোট করা হলো যাতে বেশি জায়গা পায় */
    }
}

/* ==============================================
   FIX: PERFECT ALIGNMENT (Name, Badge, Button, Menu)
   ============================================== */

/* ১. সব কিছুকে উপরের লাইন বরাবর ফিক্স করা হলো */
.post-header {
    align-items: flex-start !important; /* Center বাদ দিয়ে Top Alignment */
    padding-top: 4px; /* উপরে সামান্য স্পেস */
}

/* ২. ছবি এবং টেক্সটের হাইট ব্যালেন্স করা */
.post-header img.author-avatar {
    margin-top: 3px; /* নামের সাথে চোখের আন্দাজে সমান করা */
}

/* ৩. মাঝখানের সেকশন (নাম ও টাইম) */
.author-info {
    justify-content: flex-start; /* উপর থেকে শুরু হবে */
    margin-top: 4px; /* নামের টেক্সটকে বাটনের সোজাসুজি আনা হলো */
}

/* ৪. ডানদিকের সেকশন (বাটন ও মেনু) */
.header-actions {
    align-items: center;
    margin-top: 2px; /* বাটনকে নামের একদম সোজা লাইনে আনা হলো */
    height: 24px; /* নামের হাইটের সাথে মিল রাখা */
}

/* ৫. ফলো বাটন ফিক্স */
.follow-btn {
    height: 28px; /* ফিক্সড হাইট */
    display: flex;
    align-items: center;
    margin-top: 0; /* উপরে কোনো মার্জিন থাকবে না */
}

/* ৬. ৩-ডট মেনু বাটন ফিক্স */
.options-btn {
    padding: 0 5px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ৭. নামের ফন্ট ও লাইন হাইট ফিক্স */
.author-name-row {
    line-height: 1.2; /* টাইট লাইন হাইট */
    height: 24px; /* বাটনের হাইটের কাছাকাছি */
    align-items: center;
}

/* ৮. টাইমস্ট্যাম্প পজিশন */
.author-info small {
    margin-top: 1px; /* নামের ঠিক নিচে */
    line-height: 1;
}

/* ৯. ব্যাজ পজিশন ফিক্স */
.verified-badge-small, 
.admin-badge-small {
    display: inline-flex;
    align-items: center;
    height: 100%; /* প্যারেন্টের হাইট নেবে */
    margin-top: 1px; /* চোখের আন্দাজে পারফেক্ট করা */
}

/* ==============================================
   FINAL FIX: TRUNCATION LOGIC & COMPACT ACTIONS
   ============================================== */

/* ১. ডানদিকের অ্যাকশন এরিয়া (বাটন + মেনু) টাইট করা */
.header-actions {
    gap: 2px !important;       /* বাটন ও মেনুর গ্যাপ কমানো হলো */
    margin-left: 5px;          /* নামের থেকে একটু দূরত্ব */
    flex-shrink: 0;            /* এটি কখনোই সংকুচিত হবে না */
}

/* ২. ফলো বাটন ছোট এবং স্লিম করা */
.follow-btn {
    padding: 2px 10px !important; /* প্যাডিং কমানো হলো */
    height: 24px !important;      /* হাইট কমানো হলো */
    font-size: 0.7rem !important; /* ফন্ট সাইজ এডজাস্ট */
    border-radius: 4px !important; /* গোল ভাব কমিয়ে একটু শার্প লুক (Optional: আপনি চাইলে 20px রাখতে পারেন) */
    line-height: 1;
}

/* ৩. ৩-ডট মেনু বাটন ফিক্স */
.options-btn {
    padding: 0 4px !important;    /* ৩-ডটের চারপাশের স্পেস কমানো */
    width: 24px;
    height: 24px;
}

/* ৪. নামের লজিক ফিক্স (সবচেয়ে গুরুত্বপূর্ণ) */
.author-name-row {
    display: flex;
    align-items: center;
    width: 100%;
    /* কোনো এক্সট্রা মার্জিন বা প্যাডিং থাকলে রিমুভ */
}

.author-name-link {
    /* Magic Fix for Truncation */
    flex: 0 1 auto;           /* Grow: 0, Shrink: 1, Basis: Auto */
    /* এর মানে: টেক্সট যতটুকু ততটুকুই জায়গা নেবে (Auto), 
       জায়গা থাকলে বড় হবে না (0), 
       কিন্তু জায়গা না থাকলে ছোট হবে (1) */
    
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 4px;        /* ব্যাজের সাথে সামান্য গ্যাপ */
    font-size: 0.9rem;        /* ফন্ট সাইজ পারফেক্ট করা */
}

/* ৫. ব্যাজ যেন সংকুচিত না হয় */
.verified-badge-small, 
.admin-badge-small {
    flex-shrink: 0 !important; /* ব্যাজ কখনোই চ্যাপ্টা হবে না */
}

/* ৬. মোবাইলের জন্য স্পেশাল টিউনিং */
@media (max-width: 400px) {
    .follow-btn {
        font-size: 0.65rem !important; /* খুব ছোট স্ক্রিনে ফন্ট আরও ছোট */
        padding: 2px 8px !important;
    }
    
    .author-name-link {
        font-size: 0.85rem; /* নাম একটু ছোট করা */
    }
}

/* ==============================================
   WORLD CLASS ANNOUNCEMENT BANNER
   ============================================== */

.announcement-bar {
    display: none; /* ডিফল্টভাবে হাইড থাকবে, JS দিয়ে শো হবে */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* ফিক্সড হাইট */
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%); /* প্রফেশনাল ডার্ক লুক */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    z-index: 100000; /* সবার উপরে থাকবে */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    align-items: center;
    justify-content: center;
    padding: 0 40px; /* ক্লোজ বাটনের জন্য জায়গা */
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge Style */
.announce-badge {
    background: var(--accent-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Close Button Style */
.announce-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

.announce-close:hover {
    color: #fff;
}

/* --- LAYOUT SHIFT FIX (হেডার নিচে নামানোর জন্য) --- */
/* যখন ব্যানার একটিভ থাকবে, তখন বডিতে এই ক্লাস যোগ হবে */
body.has-announcement {
    padding-top: 40px; /* ব্যানারের উচ্চতার সমান */
}

body.has-announcement header.header {
    top: 40px; /* হেডারকে নিচে নামিয়ে দেবে */
    transition: top 0.3s ease;
}

/* মোবাইলে ফন্ট ছোট করা */
@media (max-width: 768px) {
    .announcement-bar { height: auto; min-height: 40px; padding: 5px 35px 5px 15px; }
    .announcement-content { flex-wrap: wrap; justify-content: center; text-align: center; }
    body.has-announcement { padding-top: 50px; } /* মোবাইলে একটু বেশি স্পেস */
    body.has-announcement header.header { top: auto; } /* মোবাইলে সাধারণত হেডার ফিক্সড নাও হতে পারে */
}

/* --- CUSTOM BADGES --- */
.custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    text-transform: uppercase;
    flex-shrink: 0;
    vertical-align: middle;
}

/* --- COMMENT REPLY STYLES --- */
.comment-item {
    margin-bottom: 15px;
}
.comment-main {
    display: flex;
    gap: 10px;
}
.comment-bubble {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
}
.comment-actions {
    margin-left: 50px;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}
.comment-actions button {
    background: none; border: none; color: inherit; 
    cursor: pointer; margin-right: 10px; font-weight: 600;
}
.comment-actions button:hover { text-decoration: underline; }

/* Reply Indentation */
.replies-container {
    margin-left: 50px; /* Shift right */
    border-left: 2px solid #e2e8f0;
    padding-left: 10px;
    margin-top: 5px;
}
.reply-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.tiny-avatar {
    width: 24px; height: 24px; border-radius: 50%;
}
.reply-content {
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 8px;
    flex: 1;
}
.reply-actions button {
    font-size: 0.7rem; color: #ef4444; background: none; border: none; cursor: pointer;
}

/* ==============================================
   WORLD CLASS COMMENT SECTION DESIGN (FINAL)
   ============================================== */

/* 1. Comment Container */
.post-comments {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}

/* Scrollbar Style */
.comment-list::-webkit-scrollbar { width: 4px; }
.comment-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* 2. Individual Comment Item */
.comment-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.comment-main {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Avatar Fix */
.comment-main img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Bubble Design */
.comment-bubble {
    background: rgba(255, 255, 255, 0.05); /* Transparent Glass Effect */
    padding: 8px 12px;
    border-radius: 12px;
    border-top-left-radius: 2px; /* Chat bubble style */
    flex-grow: 1;
    border: 1px solid rgba(255,255,255,0.05);
}

.comment-bubble strong {
    display: block;
    font-size: 0.85rem;
    color: #fff; /* Name Color */
    margin-bottom: 2px;
}

.comment-bubble p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1; /* Text Color (Readable Gray) */
    line-height: 1.4;
    word-break: break-word;
}

/* 3. Action Buttons (Reply, Delete) */
.comment-actions {
    margin-left: 42px; /* Aligned with bubble */
    margin-top: 4px;
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.action-reply { color: #94a3b8; }
.action-reply:hover { color: var(--accent-cyan); }

.action-delete { color: #ef4444; } /* Red */
.action-delete:hover { text-decoration: underline; }

.action-edit { color: #3b82f6; } /* Blue */

/* 4. Reply Thread (Indentation) */
.replies-container {
    margin-left: 42px; /* Shift right */
    margin-top: 8px;
    border-left: 2px solid rgba(255,255,255,0.1);
    padding-left: 10px;
}

.reply-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.tiny-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
}

.reply-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.reply-content strong { color: #fff; }

/* 5. Input Area (Modern) */
.comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.comment-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.comment-input:focus {
    border-color: var(--accent-cyan) !important;
    outline: none;
}

.comment-submit-btn {
    background: var(--accent-cyan) !important;
    color: #000 !important;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- PREMIUM CONTENT LOCK --- */
.premium-lock-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #ffd700;
    color: white;
}
.premium-lock-card i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
}
.premium-lock-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}
.premium-lock-card button {
    background: #ffd700 !important;
    color: #000 !important;
    font-weight: bold;
    margin-top: 15px;
    border: none;
}

/* --- FIX: MOBILE SUPER MENU LAYER & SAFE AREA --- */

/* ১. সুপার মেনুকে সবার উপরে আনা হলো */
.super-menu-overlay {
    z-index: 10000 !important; /* Bottom Nav (9990) এর চেয়ে বেশি */
    padding-bottom: 100px; /* নিচের দিকে এক্সট্রা জায়গা রাখা হলো */
    
    /* iPhone Safe Area Fix */
    padding-bottom: calc(100px + env(safe-area-inset-bottom)); 
}

/* ২. ক্লোজ বাটন যাতে আঙুলের চাপে ঢাকা না পড়ে */
.super-menu-close {
    padding: 10px;
    z-index: 10001; /* মেনুর চেয়েও উপরে */
    cursor: pointer;
}

/* ৩. ইনপুট ফিল্ড ফোকাস ফিক্স (কিবোর্ড ওপেন হলে) */
.super-search-box input:focus {
    font-size: 16px; /* iPhone এ অটো জুম বন্ধ করার জন্য */
} 

/* --- FIX: QUILL EDITOR MOBILE SCROLLING --- */

#quill-editor-container .ql-editor {
    max-height: 300px;       /* হাইট লিমিট করে দেওয়া হলো */
    overflow-y: auto;        /* স্ক্রলবার আসবে */
    font-size: 16px;         /* মোবাইলে পড়ার সুবিধা */
    background-color: #fff;  /* সাদা ব্যাকগ্রাউন্ড */
    color: #333;             /* কালো টেক্সট */
}

/* টুলবার যাতে সব সময় উপরে থাকে */
.ql-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f3f4f6;
    border-radius: 8px 8px 0 0;
}

/* =========================================
   🚀 WORLD CLASS UI UPGRADES (PART 3)
   ========================================= */

/* 1. SKELETON LOADER ANIMATION (Shimmer Effect) */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: #1f2937;
    background-image: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

/* Skeleton Layout Structure */
.skeleton-card {
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
}
.sk-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.sk-avatar { width: 40px; height: 40px; border-radius: 50%; }
.sk-name { width: 120px; height: 14px; }
.sk-date { width: 80px; height: 10px; margin-top: 5px; }
.sk-img { width: 100%; height: 250px; border-radius: 8px; margin-bottom: 15px; }
.sk-text { width: 90%; height: 12px; margin-bottom: 8px; }
.sk-text-sm { width: 60%; height: 12px; }

/* 2. MICRO-INTERACTION: HEART POP ANIMATION */
@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}
.action-btn.liked i {
    color: #ff0055;
    animation: likePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. MODAL SPRING PHYSICS */
.modal-container {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    transform: scale(0.95);
    opacity: 0;
}
.modal-overlay.active .modal-container {
    transform: scale(1);
    opacity: 1;
}

/* 4. GLASSMORPHISM PERFORMANCE FALLBACK (Low-End Devices) */
@supports not (backdrop-filter: blur(25px)) {
    .card, .mobile-discovery-section {
        background: #0f1020 !important; /* Solid color fallback */
        opacity: 0.95;
    }
}

/* SEO Friendly Hidden Headings */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 🚀 WORLD CLASS PERFORMANCE BOOST --- */

/* 1. Virtual Scrolling Logic (CSS Native) */
.feed-post {
    /* স্ক্রিনের বাইরের কন্টেন্ট রেন্ডার করবে না, মেমোরি বাঁচাবে */
    content-visibility: auto; 
    /* ব্রাউজারকে একটি আনুমানিক সাইজ বলে দেওয়া যাতে স্ক্রলবার লাফালাফি না করে */
    contain-intrinsic-size: 1px 500px; 
}

/* 2. Progressive Image Loading (Blur Effect) */
.post-media-wrapper, .post-media-single, .post-media-grid a {
    position: relative;
    background-color: #f0f0f0; /* লোড হওয়ার আগে হালকা কালার */
    overflow: hidden;
    display: block;
}

/* ইমেজ প্রথমে ঝাপসা থাকবে */
.blur-load {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.02); /* ব্লার এজ ঢাকার জন্য */
    transition: filter 0.5s ease-out, opacity 0.5s ease-out;
}

/* লোড কমপ্লিট হলে ক্লিয়ার হবে */
.blur-load.loaded {
    opacity: 1;
    filter: blur(0);
}

/* ইমেজের উপর ছোট স্পিনার (আপনার পছন্দের স্টাইল) */
.img-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 242, 255, 0.3);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
    pointer-events: none; /* ক্লিকের সমস্যা করবে না */
}

/* ইমেজ লোড হয়ে গেলে লোডার গায়েব হবে */
.img-loader.hidden {
    display: none;
}

/* =========================================
   ADMIN GHOST POSTING STYLES
   ========================================= */
#admin-ghost-mode-container {
    background: rgba(255, 193, 7, 0.08); /* Gold tint */
    border: 1px dashed #ffd700;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
}

.ghost-mode-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ghost-user-search {
    width: 100%;
    background: #0f1020;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.ghost-results-dropdown {
    position: absolute;
    width: 100%;
    background: #1e1e2d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.ghost-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ghost-result-item:hover { background: rgba(51, 213, 229, 0.1); }

.ghost-result-item img {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
}

.ghost-selected-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-cyan);
}

.ghost-user-info img {
    width: 35px; height: 35px; border-radius: 50%; border: 1px solid #fff; margin-right: 10px;
}

#clear-ghost-user {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
}
#clear-ghost-user:hover { background: #ff4757; }

/* ===================================================
   TASK 1: MOBILE BADGE FIX (Name Wrap Logic)
   =================================================== */
@media (max-width: 576px) {
    /* নাম এবং ব্যাজ এর কন্টেইনারকে ফ্লেক্সিবল করা */
    .author-name-row {
        flex-wrap: wrap !important; /* জায়গা না থাকলে নিচে নামবে */
        height: auto !important; /* হাইট ফিক্সড থাকবে না */
        align-items: baseline;
    }

    /* নাম পুরো জায়গা নিতে পারে */
    .author-name-link {
        flex: 0 1 auto; /* ফ্লেক্সিবল */
        white-space: normal !important; /* নাম ভাঙতে দেওয়া হবে */
        overflow: visible !important;
        text-overflow: clip !important;
        margin-right: 5px;
        font-size: 0.95rem !important;
    }

    /* ব্যাজগুলোকে পরের লাইনে বা নামের সাথে এডজাস্ট করা */
    .custom-badge, 
    .admin-badge-small, 
    .verified-badge-small {
        margin-top: 2px; /* একটু গ্যাপ */
        display: inline-flex;
        font-size: 0.55rem !important; /* ব্যাজ ফন্ট ছোট করা */
        padding: 1px 5px !important;
    }

    /* পোস্ট হেডারের অ্যালাইনমেন্ট ঠিক করা */
    .author-info {
        justify-content: center; 
    }
}

/* ===================================================
   TASK 2: WORLD CLASS LEADERBOARD REDESIGN
   =================================================== */

/* মেইন কার্ড স্টাইল */
.leaderboard.card {
    background: linear-gradient(145deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 25, 0.95)) !important;
    border: 1px solid rgba(255, 215, 0, 0.2); /* গোল্ডেন বর্ডার */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    padding: 20px !important;
}

/* ব্যাকগ্রাউন্ড গ্লো ইফেক্ট */
.leaderboard.card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 100px; height: 100px;
    background: var(--accent-pink);
    filter: blur(80px);
    opacity: 0.3;
}
.leaderboard.card::after {
    content: '';
    position: absolute;
    bottom: -50px; left: -50px;
    width: 100px; height: 100px;
    background: var(--accent-cyan);
    filter: blur(80px);
    opacity: 0.2;
}

/* হেডার স্টাইল */
.leaderboard h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}
.leaderboard h4 i { 
    color: #FFD700; 
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.leaderboard-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* লিস্ট আইটেম ডিজাইন */
#leaderboard-list li {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

#leaderboard-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* র‍্যাঙ্ক নম্বর */
#leaderboard-list .rank {
    font-weight: 900;
    font-size: 0.9rem;
    width: 25px;
    color: #64748b;
    text-align: center;
}

/* ছবি */
#leaderboard-list img {
    width: 40px; height: 40px;
    border-radius: 50%;
    margin: 0 12px;
    border: 2px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

/* নাম */
#leaderboard-list .name {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: block;
}

/* পয়েন্ট */
#leaderboard-list .points {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(51, 213, 229, 0.1);
    padding: 4px 8px;
    border-radius: 20px;
}

/* 🥇🥈🥉 মেডেল লজিক (Top 3) */

/* Rank 1 (Gold) */
#leaderboard-list li:nth-child(1) {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    border: 1px solid rgba(255, 215, 0, 0.3);
}
#leaderboard-list li:nth-child(1) .rank {
    color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); font-size: 1.2rem;
}
#leaderboard-list li:nth-child(1) img { border-color: #FFD700; }

/* Rank 2 (Silver) */
#leaderboard-list li:nth-child(2) {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08), transparent);
    border: 1px solid rgba(192, 192, 192, 0.3);
}
#leaderboard-list li:nth-child(2) .rank {
    color: #C0C0C0; font-size: 1.1rem;
}
#leaderboard-list li:nth-child(2) img { border-color: #C0C0C0; }

/* Rank 3 (Bronze) */
#leaderboard-list li:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08), transparent);
    border: 1px solid rgba(205, 127, 50, 0.3);
}
#leaderboard-list li:nth-child(3) .rank {
    color: #CD7F32; font-size: 1.1rem;
}
#leaderboard-list li:nth-child(3) img { border-color: #CD7F32; }

/* ===================================================
   TASK 3: IN-FEED LEADERBOARD (MOBILE ONLY)
   =================================================== */
.in-feed-leaderboard {
    margin: 25px 0;
    animation: fadeIn 0.5s ease-in-out;
}
@media (min-width: 992px) {
    .in-feed-leaderboard { display: none !important; } /* ডেস্কটপে হাইড থাকবে */
}

/* ===================================================
   FINAL UPDATE: HORIZONTAL LEADERBOARD & HEADER FIX
   =================================================== */

/* 1. Modern Horizontal Leaderboard (Mobile) */
.in-feed-leaderboard {
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.95), rgba(10, 10, 20, 1));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 16px;
    padding: 15px 0 15px 15px; 
    margin: 20px 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    overflow: hidden;
}
.mobile-lb-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-right: 15px; margin-bottom: 12px;
}
.mobile-lb-header h4 {
    font-size: 0.95rem; font-weight: 800; color: #fff; margin: 0;
    display: flex; align-items: center; gap: 8px; text-transform: uppercase;
}
.mobile-lb-header h4 i { color: #FFD700; filter: drop-shadow(0 0 5px rgba(255,215,0,0.5)); }

/* Scroll Container */
.mobile-lb-scroll {
    display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; padding-right: 15px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mobile-lb-scroll::-webkit-scrollbar { display: none; }

/* User Card */
.mobile-lb-card {
    flex: 0 0 85px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 12px;
    padding: 10px 5px; display: flex; flexDirection: column; align-items: center;
    text-align: center; position: relative; text-decoration: none !important;
}
.mobile-lb-rank {
    position: absolute; top: -5px; right: -5px; width: 20px; height: 20px;
    background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    font-size: 0.7rem; font-weight: 700; color: #fff;
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.mobile-lb-card img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    margin-bottom: 8px; border: 2px solid rgba(255,255,255,0.1);
}
.mobile-lb-name {
    font-size: 0.7rem; font-weight: 600; color: #fff; width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.mobile-lb-points { font-size: 0.65rem; color: #00f2ff; font-weight: 700; }

/* Rank Colors */
.mobile-lb-card.rank-1 { border-color: rgba(255, 215, 0, 0.4); background: radial-gradient(circle at top, rgba(255,215,0,0.1), transparent); }
.mobile-lb-card.rank-1 .mobile-lb-rank { background: #FFD700; color: #000; }
.mobile-lb-card.rank-2 { border-color: rgba(192, 192, 192, 0.4); }
.mobile-lb-card.rank-2 .mobile-lb-rank { background: #C0C0C0; color: #000; }
.mobile-lb-card.rank-3 { border-color: rgba(205, 127, 50, 0.4); }
.mobile-lb-card.rank-3 .mobile-lb-rank { background: #CD7F32; color: #000; }

/* 2. Profile Header Alignment Fix */
.author-info {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0; margin-right: 5px;
}
.author-name-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 6px; row-gap: 2px; line-height: 1.3;
}
.name-group-wrapper {
    display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
}
.badges-group-wrapper {
    display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap;
}
.author-name-link {
    font-size: 0.95rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.verified-badge-small, .admin-badge-small, .custom-badge {
    margin: 0 !important; flex-shrink: 0; display: inline-flex;
}
.admin-badge-small, .custom-badge {
    height: 18px; padding: 0 6px !important; border-radius: 4px;
    font-size: 0.6rem !important;
}

@media (max-width: 480px) {
    .author-name-link { font-size: 0.9rem; }
    /* Force new line for badges if name is too long */
    .author-name-row { align-items: baseline; }
}

/* ADMIN TOPIC ADD BUTTON */
.admin-add-topic-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: auto; /* Pushes button to right */
    transition: all 0.3s ease;
}

.admin-add-topic-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: scale(1.1);
}

/* Header Flex Adjustment */
#trending-header, #explore-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures spacing */
}

/* =========================================
   EXPERT DESIGNERS WIDGET STYLES
   ========================================= */

/* 1. Scroll Container (Desktop & Mobile) */
.experts-scroll-container {
    max-height: 400px; /* Desktop vertical limit */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Custom Scrollbar */
.experts-scroll-container::-webkit-scrollbar { width: 4px; }
.experts-scroll-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* 2. Expert Card Design */
.expert-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.expert-card-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(51, 213, 229, 0.3);
}

.expert-avatar-box { position: relative; }
.expert-avatar-box img {
    width: 45px; height: 45px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.expert-info { flex: 1; min-width: 0; } /* min-width for text truncation */

.expert-name {
    font-size: 0.9rem; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 4px;
}
/* Blue Tick Style */
.expert-verified { color: #00f2ff; font-size: 0.85rem; }

.expert-actions {
    display: flex; gap: 8px;
}

/* Action Buttons */
.btn-expert-action {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-follow {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}
.btn-follow:hover { background: var(--accent-cyan); color: #000; }

.btn-view {
    background: rgba(255,255,255,0.1);
    border: 1px solid transparent;
    color: #ccc;
}
.btn-view:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Admin Delete Button */
.btn-expert-remove {
    position: absolute; top: 5px; right: 5px;
    color: #ff4757; background: none; border: none;
    font-size: 0.9rem; cursor: pointer; opacity: 0.6;
}
.btn-expert-remove:hover { opacity: 1; }

/* 3. MOBILE RESPONSIVE (Horizontal Slide) */
@media (max-width: 991px) {
    /* Hide the original sidebar logic and show this if you inject it into mobile feed */
    /* But if this is inside the sidebar which is hidden on mobile, 
       we need to ensure this CSS applies where the widget is visible */
    
    .experts-scroll-container {
        display: flex; /* Horizontal Layout */
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 10px;
        gap: 15px;
    }
    
    .expert-card-item {
        flex: 0 0 240px; /* Fixed Width Card */
        margin-bottom: 0;
    }
}

/* ===================================================
   MOBILE EXPERT SLIDER STYLES
   =================================================== */

/* Story Ring Design (Instagram Style) */
.story-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2px; /* Gap between border and image */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    /* Or use your brand colors */
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    margin-bottom: 5px;
    position: relative;
    flex-shrink: 0;
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0f1020; /* Matches bg color */
    object-fit: cover;
    display: block;
}

/* Mobile Profile Item */
.mobile-profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 70px; /* Fixed width for alignment */
    flex-shrink: 0; /* Prevent shrinking */
    margin-right: 5px;
}

.mobile-profile-item span {
    font-size: 0.7rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

/* Verified Tick on Mobile Name */
.mobile-profile-item span i {
    color: var(--accent-cyan);
    font-size: 0.6rem;
}

/* =========================================
   MODERN STORY VIEWER UI (FIXED)
   ========================================= */

/* 1. Stats Overlay (Views & List Button) */
.story-stats-overlay {
    position: absolute;
    bottom: 25px;
    left: 20px;
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Glassmorphism View Counter */
.story-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.story-views i {
    color: var(--accent-cyan); /* Neon Blue Eye Icon */
    font-size: 0.9rem;
}

/* "See Viewers" Button */
.story-list-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.story-list-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* 2. Actions Overlay (Like Button) */
.story-actions-overlay {
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 10005;
}

.story-like-btn {
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-like-btn:active { transform: scale(0.9); }

.story-like-btn.liked {
    background: rgba(255, 0, 85, 0.2);
    border-color: rgba(255, 0, 85, 0.5);
    color: #ff0055;
    animation: likePop 0.4s ease;
}

.story-like-btn.liked i { font-weight: 900; }

@keyframes likePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* 3. Header Info Alignment Fix */
.story-header-info {
    position: absolute;
    top: 20px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10005; /* Progress Bar এর উপরে থাকবে */
    background: rgba(0,0,0,0.3); /* টেক্সট যাতে ভিডিওর উপর বোঝা যায় */
    padding: 5px 10px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.story-header-info img {
    width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent-cyan);
}

/* 🔥 LIST MODAL FIX (WORLD CLASS) */
#story-viewers-modal {
    z-index: 20000 !important; /* স্টোরি প্লেয়ারের (10000) চেয়ে বেশি */
}

/* মডালটি যাতে মোবাইল এবং ডেস্কটপ দুটিতেই সুন্দর দেখায় */
.bottom-sheet-modal {
    position: fixed;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); /* ডিম ব্যাকগ্রাউন্ড */
    display: flex; justify-content: center; align-items: flex-end;
    opacity: 0; visibility: hidden; transition: all 0.3s;
}

.bottom-sheet-modal.active {
    opacity: 1; visibility: visible;
}

.sheet-content {
    background: #1e1e2d; /* ডার্ক থিম */
    width: 100%; max-width: 500px;
    height: 60vh; /* স্ক্রিনের ৬০% */
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
}

.bottom-sheet-modal.active .sheet-content {
    transform: translateY(0);
}

/* Reaction Emoji Hover Effect */
.reaction-emoji:hover {
    transform: scale(1.4);
}
.reaction-emoji:active {
    transform: scale(0.9);
}

/* স্টোরি ইমেজের শ্যাডো (যাতে ব্লার ব্যাকগ্রাউন্ড থেকে আলাদা বোঝা যায়) */
#story-image-view, #story-video-view {
    box-shadow: 0 0 50px rgba(0,0,0,0.5); /* ডিপ শ্যাডো */
}

/* সোয়াইপ করার সময় যাতে টেক্সট সিলেক্ট না হয় */
.story-viewer-content {
    user-select: none;
    -webkit-user-select: none;
}

/* Seen Story (ধূসর) */
.story-avatar-ring.seen {
    border-color: #777 !important; /* স্পষ্ট ধূসর */
    box-shadow: none !important;
    opacity: 0.8;
}

/* Unseen Story (নিয়ন - ডিফল্ট) */
.story-avatar-ring.unseen {
    border: 3px solid #00f2ff !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.6) !important;
}

/* মিউজিক বাটন পালস অ্যানিমেশন */
.music-playing i {
    animation: musicPulse 1s infinite alternate;
    color: var(--neon-blue); /* নিয়ন কালার */
}

@keyframes musicPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

#story-delete-btn:hover {
    background: rgba(255, 0, 0, 0.5) !important;
    border-color: #ff0000 !important;
    transform: scale(1.1);
}

/* ======================================================
   🚀 WORLD-CLASS INTELLIGENT TAG SYSTEM (FINAL FIXED UI)
   ====================================================== */

/* 1. Main Suggestion Dropdown Container */
.tag-suggestions-box {
    position: absolute;
    top: calc(100% + 10px); /* ইনপুট থেকে ১০px নিচে */
    left: 0;
    width: 100%; /* প্যারেন্টের সমান চওড়া থাকবে, তাই কাটবে না */
    background: rgba(15, 23, 42, 0.98); /* Deep Navy Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, 0.2); /* Neon Border */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6); /* Deep Shadow */
    z-index: 1000;
    display: none;
    overflow: hidden; /* রাউন্ডেড কর্নার ঠিক রাখার জন্য */
    animation: menuSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tag-suggestions-box.active {
    display: block;
}

/* Mega Menu Mode Styles */
.tag-suggestions-box.mega-active {
    display: flex;
    flex-direction: column;
}

/* 2. Mega Menu Tabs (Recent, Rooms, Styles) */
.mega-menu-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto; /* মোবাইলে ট্যাব বেশি হলে স্ক্রল হবে */
}

/* Scrollbar Hide for Tabs */
.mega-menu-tabs::-webkit-scrollbar { display: none; }

.mega-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.mega-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.mega-tab.active {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
    background: linear-gradient(to top, rgba(0, 242, 255, 0.05), transparent);
}

/* 3. Content Area (Tags Grid) */
.mega-content-area {
    padding: 15px;
    max-height: 220px; /* ফিক্সড হাইট, যাতে বেশি লম্বা না হয় */
    overflow-y: auto;  /* ভার্টিকাল স্ক্রল */
}

/* Custom Scrollbar for Tags */
.mega-content-area::-webkit-scrollbar { width: 5px; }
.mega-content-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
.mega-content-area::-webkit-scrollbar-thumb { background: rgba(0, 242, 255, 0.3); border-radius: 10px; }

.category-group {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* অটো রেস্পন্সিভ গ্রিড */
    gap: 8px;
}

.category-group.active {
    display: grid;
    animation: fadeIn 0.3s ease;
}

/* 4. Tag Chips (The Buttons) */
.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-chip:hover {
    background: rgba(0, 242, 255, 0.15);
    color: #fff;
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 255, 0.1);
}

/* Highlight Text Logic */
.highlight-text {
    color: var(--accent-cyan);
    font-weight: 800;
}

/* 5. Limit Counter (0/10) */
.tag-limit-counter {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(15, 23, 42, 0.8);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    transition: all 0.3s;
}

.tag-limit-counter.warning { color: #facc15; border-color: #facc15; }
.tag-limit-counter.error { color: #ff4757; border-color: #ff4757; background: rgba(255, 71, 87, 0.1); }

/* Input Error Animation */
.tags-input-container input.error-border {
    border-color: #ff4757 !important;
    animation: shakeInput 0.4s ease-in-out;
}

/* 6. AI Auto-Tag Popup (Floating) */
.ai-tag-popup {
    background: rgba(20, 25, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 16px;
    position: absolute;
    bottom: 80px; /* পোস্ট বাটনের বেশ উপরে */
    left: 15px; 
    right: 15px; /* দুই পাশ থেকে প্যাডিং */
    z-index: 2000;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8), 0 0 20px rgba(0, 242, 255, 0.2);
    display: none;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-tag-popup.active { display: block; }

.ai-popup-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; font-size: 0.9rem; color: #fff; font-weight: 700;
}

.ai-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }

.ai-tag-chip {
    background: linear-gradient(135deg, rgba(0,242,255,0.1), rgba(0,242,255,0.05));
    color: var(--accent-cyan);
    padding: 6px 14px; border-radius: 30px; font-size: 0.8rem; cursor: pointer;
    border: 1px solid rgba(0,242,255,0.2); transition: 0.2s;
}
.ai-tag-chip:hover { background: var(--accent-cyan); color: #000; }

/* 7. Modern Tags Display (Inside Post Card) */
.post-tags-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.modern-tag-pill:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.modern-tag-pill::before {
    content: '#';
    margin-right: 2px;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Animations */
@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes shakeTag {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); border-color: #ff4757; }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); border-color: transparent; }
}
.shake-animation { animation: shakeTag 0.4s ease-in-out; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .tag-suggestions-box {
        position: fixed; /* মোবাইলে ফিক্সড হলে ভালো */
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0; /* Bottom Sheet স্টাইল */
        border: none;
        border-top: 1px solid rgba(0, 242, 255, 0.3);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    }
    .mega-content-area {
        max-height: 40vh; /* স্ক্রিনের ৪০% */
    }
    .ai-tag-popup {
        bottom: 20px;
    }
}

/* --- 🚀 NEW POST ANIMATION UX --- */

/* 1. Highlight Animation (Glow Effect) */
@keyframes newPostGlow {
    0% {
        box-shadow: 0 0 0 rgba(0, 242, 255, 0);
        border-color: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
        opacity: 0;
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
        border-color: var(--accent-cyan);
        transform: scale(1.01);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 242, 255, 0);
        border-color: rgba(255, 255, 255, 0.1);
        transform: scale(1);
        opacity: 1;
    }
}

/* এই ক্লাসটি JS দিয়ে অ্যাড করা হবে */
.just-posted-highlight {
    animation: newPostGlow 2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    position: relative;
    z-index: 10; /* অন্য সবকিছুর উপরে দেখাবে */
}

/* --- "Just Now" Badge Fix --- */
.just-posted-highlight::after {
    content: 'Just Now';
    position: absolute;
    top: 10px;  /* আগে -10px ছিল, এখন 10px করে ভেতরে আনা হলো */
    right: 10px; /* ডানদিক থেকে একটু গ্যাপ */
    background: var(--accent-cyan);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px; /* রাউন্ডেড শেপ */
    box-shadow: 0 2px 10px rgba(0, 242, 255, 0.4);
    animation: fadeIn 0.5s ease-out;
    z-index: 20; /* সবার উপরে থাকবে */
}

/* --- 🚀 WORLD-CLASS SHARE SYSTEM CSS (FINAL) --- */

.share-modal-modern {
    max-width: 450px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #1e293b; /* Dark Slate */
    border-radius: 20px;
}

.share-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.share-header h3 { margin: 0; font-size: 1.1rem; color: #fff; }

/* 5. Internal Send Section */
.share-internal-section {
    padding: 15px 20px 5px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-label {
    font-size: 0.75rem; color: #94a3b8; margin-bottom: 10px; font-weight: 600; text-transform: uppercase;
}
.internal-users-list {
    display: flex; gap: 15px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none;
}
.internal-users-list::-webkit-scrollbar { display: none; }

.internal-user-item {
    display: flex; flex-direction: column; align-items: center; cursor: pointer; min-width: 60px;
}
.internal-user-item img {
    width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; transition: all 0.3s;
}
.internal-user-item span {
    font-size: 0.7rem; color: #cbd5e1; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 60px; text-align: center;
}
.internal-user-item:hover img { border-color: var(--accent-cyan); transform: scale(1.1); }
.internal-user-item.sent img { border-color: #00ff88; opacity: 0.5; }
.internal-user-item.sent span { color: #00ff88; font-weight: bold; }

/* 3. Preview Card */
.share-preview-card {
    display: flex; align-items: center; gap: 15px; padding: 15px 20px; background: rgba(255,255,255,0.02); margin-bottom: 0;
}
.share-preview-card img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.share-meta h4 {
    margin: 0 0 5px 0; font-size: 0.95rem; color: #fff; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.share-meta span { font-size: 0.8rem; color: #94a3b8; }

/* 4. QR Code */
.qr-handoff-section {
    display: flex; justify-content: space-between; align-items: center; background: rgba(0, 242, 255, 0.05); margin: 15px 20px; padding: 10px 15px; border-radius: 12px; border: 1px dashed rgba(0, 242, 255, 0.3);
}
.qr-text { display: flex; flex-direction: column; }
.qr-text span { font-size: 0.9rem; color: #fff; font-weight: 600; }
.qr-text small { font-size: 0.75rem; color: var(--accent-cyan); }
#share-qr-code { width: 50px; height: 50px; border-radius: 4px; background: #fff; padding: 2px; }

/* 1. Share Grid */
.share-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; padding: 0 20px 20px 20px;
}
.share-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #cbd5e1; font-size: 0.75rem; transition: transform 0.2s; cursor: pointer;
}
.share-item:hover { transform: translateY(-3px); color: #fff; }
.share-item i {
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.4rem; color: #fff; transition: all 0.3s;
}
.share-item.whatsapp i { background: #25D366; }
.share-item.facebook i { background: #1877F2; }
.share-item.twitter i { background: #1DA1F2; }
.share-item.linkedin i { background: #0A66C2; }
.share-item.image-share i { background: linear-gradient(135deg, #ff0055, #bd00ff); box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4); }

/* 3. Copy Link */
.share-copy-area {
    margin: 0 20px 25px 20px; background: #0f172a; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: flex; align-items: center; padding: 5px; cursor: pointer; transition: border-color 0.3s;
}
.share-copy-area:hover { border-color: rgba(255,255,255,0.3); }
.copy-icon { width: 40px; text-align: center; color: #94a3b8; }
#share-link-input {
    flex: 1; background: transparent; border: none; color: #fff; font-size: 0.9rem; pointer-events: none; text-overflow: ellipsis;
}
.copy-btn {
    background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 8px 15px; border-radius: 8px; font-weight: 600; font-size: 0.8rem; cursor: pointer;
}
.share-copy-area.copied { border-color: #00f2ff; }
.share-copy-area.copied .copy-btn { background: #00f2ff; color: #000; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .qr-handoff-section { display: none; }
}