    /* ===============================
       COMMUNITY PAGE — LIGHT THEME (matching main site)
       =============================== */
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0,0,0,0.08);
        --card-bg: #FFFFFF;
        --text-primary: #1A1A1A;
        --text-secondary: #555555;
        --text-muted: rgba(0,0,0,0.4);
        --surface-hover: rgba(0,0,0,0.04);
        --divider: rgba(0,0,0,0.08);
        --fb-blue: #2374E1;
    }
    /* Community Dark Mode */
    [data-theme="dark"] {
        --glass-bg: rgba(30,30,30,0.95);
        --glass-border: rgba(255,255,255,0.08);
        --card-bg: #1e1e1e;
        --text-primary: #e8e8e8;
        --text-secondary: #aaa;
        --text-muted: rgba(255,255,255,0.35);
        --surface-hover: rgba(255,255,255,0.06);
        --divider: rgba(255,255,255,0.08);
    }
    [data-theme="dark"] body { background: #0d0d0d; }
    [data-theme="dark"] .comm-navbar { background: #1a1a1a; border-bottom-color: #2a2a2a; }
    [data-theme="dark"] .comm-search { background: #2a2a2a; }
    [data-theme="dark"] .comm-search input { color: #e8e8e8; }
    [data-theme="dark"] .comm-search input::placeholder { color: rgba(255,255,255,0.3); }
    [data-theme="dark"] .comm-nav-icon { background: #2a2a2a; color: #ccc; }
    [data-theme="dark"] .comm-nav-icon:hover { background: #3a3a3a; color: #fff; }

    /* Posts */
    [data-theme="dark"] .post-card { background: #1e1e1e; border-color: #2a2a2a; }
    [data-theme="dark"] .post-card-title { color: #f0f0f0; }
    [data-theme="dark"] .post-card-description { color: #bbb; }
    [data-theme="dark"] .post-card-header * { color: #ccc; }
    [data-theme="dark"] .post-user-name { color: #eee !important; }
    [data-theme="dark"] .post-meta { color: #888 !important; }
    [data-theme="dark"] .post-stats-row { color: #999; }
    [data-theme="dark"] .post-actions-row { border-top-color: #2a2a2a; }
    [data-theme="dark"] .action-btn { color: #aaa; }
    [data-theme="dark"] .action-btn:hover { background: rgba(255,255,255,0.06); color: #eee; }
    [data-theme="dark"] .reaction-picker-pop { background: #2a2a2a; border-color: #3a3a3a; }

    /* Left Sidebar */
    [data-theme="dark"] .comm-left-sidebar { color: #ccc; }
    [data-theme="dark"] .left-nav-item { color: #bbb; }
    [data-theme="dark"] .left-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
    [data-theme="dark"] .left-nav-item.active { color: var(--primary); background: rgba(255,138,61,0.1); }
    [data-theme="dark"] .left-nav-divider { border-color: #2a2a2a; }
    [data-theme="dark"] .left-nav-footer { color: #666; }
    [data-theme="dark"] .left-nav-footer a { color: #666; }

    /* Right Sidebar */
    [data-theme="dark"] .community-sidebar { color: #ccc; }
    [data-theme="dark"] .sidebar-card { background: #1e1e1e; border-color: #2a2a2a; }
    [data-theme="dark"] .sidebar-card h3 { color: #f0f0f0; }
    [data-theme="dark"] .sidebar-card p { color: #aaa; }
    [data-theme="dark"] .sidebar-stat { border-color: #2a2a2a; }
    [data-theme="dark"] .sidebar-stat span:first-child { color: #aaa; }
    [data-theme="dark"] .sidebar-btn { background: #2a2a2a; color: #ccc; border-color: #3a3a3a; }
    [data-theme="dark"] .sidebar-btn:hover { background: #3a3a3a; color: #fff; }

    /* Welcome card / Create post prompt */
    [data-theme="dark"] .welcome-card,
    [data-theme="dark"] .create-post-prompt { background: #1e1e1e; border-color: #2a2a2a; }
    [data-theme="dark"] .welcome-card * { color: #ddd; }
    [data-theme="dark"] .create-post-text { color: #999; }
    [data-theme="dark"] .create-post-prompt:hover .create-post-text { color: #bbb; }
    [data-theme="dark"] .create-post-form { background: #1e1e1e; border-color: #2a2a2a; }

    /* Create Post Modal */
    [data-theme="dark"] .create-post-modal { background: #1e1e1e; color: #e8e8e8; }
    [data-theme="dark"] .cpm-header { border-bottom-color: #2a2a2a; }
    [data-theme="dark"] .cpm-header h3 { color: #f0f0f0; }
    [data-theme="dark"] .cpm-close { background: #2a2a2a; color: #ccc; }
    [data-theme="dark"] .cpm-close:hover { background: #3a3a3a; color: #fff; }
    [data-theme="dark"] .cpm-name { color: #eee; }
    [data-theme="dark"] .cpm-privacy { color: #888; }
    [data-theme="dark"] .cpm-title-input { color: #f0f0f0; border-bottom-color: #2a2a2a; }
    [data-theme="dark"] .cpm-title-input::placeholder { color: #666; }
    [data-theme="dark"] .cpm-textarea { color: #ddd; }
    [data-theme="dark"] .cpm-textarea::placeholder { color: #666; }
    [data-theme="dark"] .cpm-tags-container { background: #2a2a2a; }
    [data-theme="dark"] .cpm-tag-input { color: #ddd; }
    [data-theme="dark"] .cpm-tag-input::placeholder { color: #666; }
    [data-theme="dark"] .cpm-tag-suggestions span { background: #2a2a2a; color: #bbb; }
    [data-theme="dark"] .cpm-tag-suggestions span:hover { background: rgba(255,138,61,0.15); color: var(--primary); }
    [data-theme="dark"] .cpm-image-area { background: #252525; border-color: #3a3a3a; }
    [data-theme="dark"] .cpm-image-area:hover { border-color: var(--primary); background: rgba(255,107,0,0.06); }
    [data-theme="dark"] .cpm-image-area p { color: #ccc; }
    [data-theme="dark"] .cpm-footer { border-top-color: #2a2a2a; }
    [data-theme="dark"] .cpm-footer-action { color: #aaa; }
    [data-theme="dark"] .cpm-footer-action:hover { background: #2a2a2a; }
    [data-theme="dark"] .cpm-category-text { color: #bbb; }

    /* Comments */
    [data-theme="dark"] .comment-card { background: #252525; }
    [data-theme="dark"] .comment-card * { color: #ccc; }
    [data-theme="dark"] .comment-input-area textarea { background: #2a2a2a; border-color: #3a3a3a; color: #e8e8e8; }
    [data-theme="dark"] .comment-input-area textarea::placeholder { color: #666; }

    /* Auth Modal */
    [data-theme="dark"] .auth-modal-overlay .auth-modal { background: #1e1e1e; color: #e8e8e8; }
    [data-theme="dark"] .auth-modal h2, [data-theme="dark"] .auth-modal h3 { color: #f0f0f0; }
    [data-theme="dark"] .auth-modal label { color: #bbb; }
    [data-theme="dark"] .auth-modal input { background: #2a2a2a; border-color: #3a3a3a; color: #e8e8e8; }
    [data-theme="dark"] .auth-modal input::placeholder { color: #666; }
    [data-theme="dark"] .auth-tab { color: #888; }
    [data-theme="dark"] .auth-tab.active { color: var(--primary); }

    /* Category pills */
    [data-theme="dark"] .category-pill { background: #2a2a2a; color: #ccc; border-color: #3a3a3a; }
    [data-theme="dark"] .category-pill.active { background: var(--primary); color: #fff; }

    /* Mobile nav */
    [data-theme="dark"] .mobile-nav { background: #1a1a1a; border-top-color: #2a2a2a; }
    [data-theme="dark"] .mobile-nav a { color: #888; }
    [data-theme="dark"] .mobile-nav a.active { color: var(--primary); }
    [data-theme="dark"] .mobile-nav span { color: inherit; }

    /* Share dropdown */
    [data-theme="dark"] .share-dropdown-pop { background: #2a2a2a; border-color: #3a3a3a; }
    [data-theme="dark"] .share-dropdown-pop a,
    [data-theme="dark"] .share-dropdown-pop button { color: #ccc; }

    /* Notification dropdown */
    [data-theme="dark"] .notif-dropdown { background: #1e1e1e; border-color: #2a2a2a; }
    [data-theme="dark"] .notif-item.unread { background: rgba(255,138,61,0.08); }
    [data-theme="dark"] .notif-header { border-bottom-color: #2a2a2a; color: #eee; }

    /* Link preview cards */
    [data-theme="dark"] .link-preview-card { background: #252525; border-color: #3a3a3a; }
    [data-theme="dark"] .link-preview-card * { color: #ccc; }

    * { -webkit-tap-highlight-color: transparent; }

    body {
        background: #F5F0EB;
        color: var(--text-primary);
    }

    /* Smooth scrollbar */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

    /* ═══════ COMMUNITY-SPECIFIC NAVBAR (hidden — editorial header handles nav) ═══════ */
    .comm-navbar {
        display: none;
    }
    .comm-nav-inner {
        display: flex; align-items: center; gap: 12px;
        max-width: 1400px; margin: 0 auto; padding: 0 16px; height: 56px;
    }
    .comm-logo {
        display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0;
    }
    .comm-logo img { height: 32px; width: 32px; border-radius: 50%; }
    .comm-logo span {
        font-size: 1.15rem; font-weight: 800; color: var(--primary);
        letter-spacing: -0.3px;
    }

    /* Search Bar */
    .comm-search {
        display: flex; align-items: center; gap: 8px;
        background: #F0EDE8; border-radius: 20px;
        padding: 8px 14px; flex: 1; min-width: 0;
    }
    .comm-search i { color: var(--text-muted); font-size: 0.85rem; }
    .comm-search input {
        background: none; border: none; color: var(--text-primary);
        font-size: 0.88rem; font-family: inherit; outline: none; width: 100%;
    }
    .comm-search input::placeholder { color: var(--text-muted); }

    /* Center Tabs */
    .comm-tabs {
        display: flex; flex: 1; justify-content: center; gap: 4px;
    }
    .comm-tab {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        padding: 8px 24px; border-radius: 8px; text-decoration: none;
        color: var(--text-muted); font-size: 0.72rem; font-weight: 600;
        transition: all 0.2s; position: relative;
    }
    .comm-tab i { font-size: 1.15rem; }
    .comm-tab:hover { background: rgba(0,0,0,0.04); color: var(--text-secondary); }
    .comm-tab.active {
        color: var(--primary);
    }
    .comm-tab.active::after {
        content: ''; position: absolute; bottom: -8px; left: 8px; right: 8px;
        height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
    }

    /* Right Actions */
    .comm-nav-actions { display: flex; gap: 6px; flex-shrink: 0; }
    .comm-nav-icon {
        width: 38px; height: 38px; border-radius: 50%;
        background: #F0EDE8; border: none;
        color: var(--text-secondary); font-size: 0.9rem;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s; text-decoration: none;
    }
    .comm-nav-icon:hover { background: #E8E3DD; color: var(--text-primary); }

    /* WhatsApp highlighted button */
    .comm-wa-btn {
        background: #25D366 !important;
        color: #fff !important;
        position: relative;
        text-decoration: none;
    }
    .comm-wa-btn i { color: #fff !important; }
    .comm-wa-btn:hover {
        background: #1ebe5d !important;
        color: #fff !important;
        transform: scale(1.08);
        box-shadow: 0 2px 12px rgba(37,211,102,0.4);
    }
    .comm-wa-btn::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid #25D366;
        animation: commWaPulse 2s ease-out infinite;
        pointer-events: none;
    }
    @keyframes commWaPulse {
        0% { transform: scale(1); opacity: 0.5; }
        70% { transform: scale(1.2); opacity: 0; }
        100% { transform: scale(1.2); opacity: 0; }
    }

    /* Notification Bell */
    .notif-badge {
        position: absolute; top: 2px; right: 2px;
        background: #ef4444; color: #fff;
        font-size: 10px; font-weight: 700;
        min-width: 16px; height: 16px; line-height: 16px;
        border-radius: 8px; text-align: center;
        padding: 0 4px;
    }
    .notif-dropdown {
        position: absolute; top: calc(100% + 8px); right: 0;
        width: 320px; max-height: 400px;
        background: var(--card-bg); border: 1px solid var(--divider);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        opacity: 0; pointer-events: none;
        transform: translateY(-8px);
        transition: all 0.2s ease;
        overflow: hidden; z-index: 200;
    }
    .notif-dropdown.show {
        opacity: 1; pointer-events: all; transform: translateY(0);
    }
    .notif-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 12px 16px; border-bottom: 1px solid var(--divider);
        font-size: 0.95rem;
    }
    .notif-list { max-height: 340px; overflow-y: auto; }
    .notif-item {
        display: flex; gap: 10px; padding: 12px 16px;
        border-bottom: 1px solid var(--divider);
        cursor: pointer; transition: background 0.15s;
        font-size: 0.85rem; line-height: 1.4;
    }
    .notif-item:hover { background: var(--surface-hover); }
    .notif-item.unread { background: rgba(255,107,0,0.05); }
    .notif-item .notif-icon { font-size: 1.3rem; flex-shrink: 0; }
    .notif-item .notif-time { color: var(--text-muted); font-size: 0.75rem; margin-top: 2px; }
    .notif-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
    [data-theme="dark"] .notif-dropdown { background: #1e1e1e; border-color: #2a2a2a; }
    [data-theme="dark"] .notif-item.unread { background: rgba(255,138,61,0.08); }

    #searchToggleMobile { display: none; }

    /* Mobile Search Bar */
    .comm-mobile-search {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 16px 12px; border-top: 1px solid var(--divider);
    }
    .comm-mobile-search input {
        flex: 1; padding: 10px 14px; background: #F0EDE8;
        border: none; border-radius: 20px; color: var(--text-primary);
        font-size: 0.88rem; font-family: inherit; outline: none;
    }
    .comm-mobile-search input::placeholder { color: var(--text-muted); }
    .comm-mobile-search button {
        background: none; border: none; color: var(--text-muted);
        font-size: 1.1rem; cursor: pointer; padding: 4px;
    }

    /* ═══════ 3-COLUMN LAYOUT ═══════ */
    .community-page {
        padding-top: 96px; padding-bottom: 20px; min-height: 100vh;
    }
    .community-layout {
        display: flex; gap: 0;
        max-width: 1400px; margin: 0 auto; padding: 0;
    }

    /* Left Sidebar */
    .comm-left-sidebar {
        width: 280px; flex-shrink: 0; position: sticky; top: 96px;
        height: calc(100vh - 96px); overflow-y: auto; padding: 8px 10px;
        scrollbar-width: none;
    }
    .comm-left-sidebar::-webkit-scrollbar { display: none; }
    .left-nav-item {
        display: flex; align-items: center; gap: 12px;
        padding: 10px 14px; border-radius: 8px; color: var(--text-secondary);
        text-decoration: none; font-size: 0.9rem; font-weight: 500;
        transition: all 0.2s; margin-bottom: 2px;
    }
    .left-nav-item i { width: 20px; text-align: center; font-size: 1rem; }
    .left-nav-item:hover { background: rgba(0,0,0,0.04); color: var(--text-primary); }
    .left-nav-item.active {
        background: rgba(255,107,0,0.12); color: var(--primary); font-weight: 600;
    }
    .left-nav-divider {
        height: 1px; background: var(--divider); margin: 10px 14px;
    }
    .left-nav-footer {
        padding: 12px 14px; font-size: 0.72rem; color: var(--text-muted);
    }
    .left-nav-footer a { color: var(--text-muted); text-decoration: none; }
    .left-nav-footer a:hover { color: var(--text-secondary); }

    /* Main Feed Column */
    .community-main {
        flex: 1; max-width: 680px; min-width: 0;
        padding: 8px 20px;
    }

    /* Right Sidebar */
    .community-sidebar {
        width: 320px; flex-shrink: 0;
        position: sticky; top: 96px;
        align-self: flex-start; padding: 8px 14px;
        height: calc(100vh - 96px); overflow-y: auto;
        scrollbar-width: none;
    }
    .community-sidebar::-webkit-scrollbar { display: none; }

    /* ═══════ RESPONSIVE ═══════ */
    @media (max-width: 1200px) {
        .comm-left-sidebar { width: 220px; }
    }
    @media (max-width: 968px) {
        .comm-left-sidebar { display: none; }
        .community-sidebar { display: none; }
        .community-main { max-width: 100%; padding: 12px 16px; }
    }
    @media (max-width: 480px) {
        .community-page { padding-top: 96px; padding-bottom: 70px; }
        .comm-nav-inner { height: 50px; padding: 0 10px; }
        .comm-logo span { display: none; }
        .comm-search { padding: 6px 10px; }
        .comm-search input { font-size: 0.82rem; }
        .comm-nav-icon { width: 34px; height: 34px; font-size: 0.85rem; }
        .post-card { border-radius: 0; margin-left: -16px; margin-right: -16px; border-left: none; border-right: none; }
        .post-card-header { padding: 12px 16px 8px; }
        .post-card-title { padding: 0 16px 4px; font-size: 0.98rem; }
        .post-card-description { padding: 0 16px 12px; }
        .post-stats-row { padding: 8px 16px; }
        .post-actions-row { padding: 3px 4px; margin: 0; }
        .action-btn { font-size: 0.82rem; padding: 10px 6px; }
        .comments-section-wrap.show { padding: 10px 16px 14px; }
        .user-logged-strip { font-size: 0.8rem; padding: 10px 12px; }
    }

    /* Logged-in user strip */
    .user-logged-strip {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 18px; margin-bottom: 16px;
        background: var(--card-bg); border: 1px solid var(--divider);
        border-radius: 12px; flex-wrap: wrap;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .user-logged-strip .strip-avatar {
        width: 32px; height: 32px; border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        display: flex; align-items: center; justify-content: center;
        color: white; font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
    }
    .user-logged-strip .strip-name { color: var(--text-primary); font-weight: 600; }
    .user-logged-strip .strip-actions { margin-left: auto; display: flex; gap: 8px; }
    .user-logged-strip .strip-btn {
        background: #F0EDE8; border: none; color: var(--text-secondary);
        padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600;
        cursor: pointer; font-family: inherit; transition: all 0.2s;
    }
    .user-logged-strip .strip-btn:hover { background: #E8E3DD; color: var(--text-primary); }
    .user-logged-strip .strip-btn.logout { color: #e74c3c; }
    .user-logged-strip .strip-btn.logout:hover { background: rgba(231,76,60,0.15); }

    /* ── Create Post Prompt (Facebook-style) ── */
    .create-post-prompt {
        background: var(--card-bg);
        border: 1px solid var(--divider);
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    }
    .create-post-prompt:hover {
        background: rgba(0,0,0,0.02);
    }
    .create-post-prompt:active {
        transform: scale(0.99);
    }
    .create-post-avatar {
        width: 40px; height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        display: flex; align-items: center; justify-content: center;
        color: white; font-weight: 700; font-size: 0.95rem;
        flex-shrink: 0;
    }
    .create-post-text {
        flex: 1;
        padding: 10px 16px;
        background: #F0EDE8;
        border: none;
        border-radius: 20px;
        color: var(--text-muted);
        font-size: 0.9rem;
        transition: background 0.2s;
    }
    .create-post-prompt:hover .create-post-text {
        background: #E8E3DD;
    }

    /* ── Inline Create Form ── */
    .create-post-form {
        background: var(--card-bg);
        border: 1px solid var(--divider);
        border-radius: 12px;
        padding: 24px;
        margin-bottom: 20px;
        display: none;
        animation: fadeInDown 0.3s ease;
    }
    .create-post-form.show { display: block; }
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .create-form-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .create-form-header h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-primary);
    }
    .create-form-close {
        background: #F0EDE8;
        border: none;
        color: var(--text-secondary);
        width: 32px; height: 32px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        display: flex; align-items: center; justify-content: center;
        transition: background 0.2s;
    }
    .create-form-close:hover { background: #E8E3DD; }

    .form-field { margin-bottom: 16px; }
    .form-field label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-muted);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .form-field input,
    .form-field textarea,
    .form-field select {
        width: 100%;
        padding: 12px 15px;
        background: #F8F7F4;
        border: 1px solid var(--divider);
        border-radius: 10px;
        color: var(--text-primary);
        font-size: 0.9rem;
        font-family: inherit;
        outline: none;
        transition: border-color 0.2s;
        box-sizing: border-box;
        -webkit-appearance: none;
    }
    .form-field input::placeholder,
    .form-field textarea::placeholder { color: var(--text-muted); }
    .form-field input:focus,
    .form-field textarea:focus,
    .form-field select:focus { border-color: var(--primary); }
    .form-field textarea { resize: vertical; min-height: 100px; }
    .form-field select { cursor: pointer; }
    .form-field select option { background: #FFFFFF; color: var(--text-primary); }

    .image-upload-area {
        border: 2px dashed var(--divider);
        border-radius: 12px;
        padding: 25px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background: #F8F7F4;
        position: relative;
    }
    .image-upload-area:hover {
        border-color: var(--primary);
        background: rgba(255,107,0,0.05);
    }
    .image-upload-area input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }
    .image-upload-area i {
        font-size: 2rem;
        color: var(--primary);
        opacity: 0.6;
        margin-bottom: 8px;
    }
    .image-upload-area p {
        color: var(--text-secondary);
        font-size: 0.88rem;
        font-weight: 500;
        margin: 0;
    }
    .image-upload-area span {
        color: var(--text-muted);
        font-size: 0.75rem;
    }
    .image-preview-container {
        margin-top: 12px;
        position: relative;
        display: none;
    }
    .image-preview-container img {
        max-width: 100%;
        max-height: 200px;
        border-radius: 10px;
        object-fit: contain;
    }
    .image-preview-remove {
        position: absolute;
        top: 8px;
        right: 8px;
        background: rgba(0,0,0,0.7);
        border: none;
        color: white;
        width: 28px; height: 28px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 0.85rem;
        display: flex; align-items: center; justify-content: center;
    }

    .create-form-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
        margin-top: 20px;
    }
    .btn-create {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        border: none;
        padding: 12px 28px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
        display: flex; align-items: center; gap: 8px;
    }
    .btn-create:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,0,0.3); }
    .btn-create:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    /* ── Trending Ticker ── */
    .trending-ticker {
        display: flex;
        align-items: center;
        gap: 0;
        background: linear-gradient(135deg, rgba(255,107,0,0.08), rgba(255,107,0,0.03));
        border: 1px solid rgba(255,107,0,0.12);
        border-radius: 12px;
        margin-bottom: 16px;
        overflow: hidden;
        height: 42px;
    }
    .trending-ticker-label {
        background: linear-gradient(135deg, #FF6B00, #e55d00);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 700;
        padding: 0 14px;
        height: 100%;
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .trending-ticker-label i { animation: fireFlicker 1s ease infinite alternate; }
    @keyframes fireFlicker { 0% { opacity: 0.7; } 100% { opacity: 1; transform: scale(1.1); } }
    .trending-ticker-scroll {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    .trending-ticker-track {
        display: flex;
        gap: 0;
        animation: tickerScroll 30s linear infinite;
        width: max-content;
    }
    .trending-ticker-track:hover { animation-play-state: paused; }
    @keyframes tickerScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
    .trending-ticker-item {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 18px;
        white-space: nowrap;
        text-decoration: none;
        color: var(--text-primary);
        font-size: 0.8rem;
        border-right: 1px solid rgba(255,107,0,0.1);
        cursor: pointer;
        transition: color 0.2s;
    }
    .trending-ticker-item:hover { color: #FF6B00; }
    .ticker-title { font-weight: 500; }
    .ticker-meta { font-size: 0.7rem; color: #FF6B00; font-weight: 700; }

    /* ── Sidebar Trending Topics ── */
    .trending-topic-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(0,0,0,0.04);
        transition: background 0.2s;
        cursor: pointer;
    }
    [data-theme="dark"] .trending-topic-item { border-bottom-color: rgba(255,255,255,0.04); }
    .trending-topic-item:hover { background: rgba(255,107,0,0.04); }
    .trending-rank {
        min-width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #FF6B00, #e55d00);
        color: #fff;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.72rem;
        font-weight: 800;
        flex-shrink: 0;
        margin-top: 2px;
    }
    .trending-topic-info { flex: 1; min-width: 0; }
    .trending-topic-title {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-primary);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .trending-topic-meta {
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-top: 2px;
    }

    /* ── Hot Categories ── */
    .hot-category-item { margin-bottom: 10px; }
    .hot-cat-header {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--text-primary);
        margin-bottom: 4px;
    }
    .hot-cat-count { font-size: 0.72rem; color: var(--text-muted); }
    .hot-cat-bar {
        height: 6px;
        background: rgba(0,0,0,0.06);
        border-radius: 3px;
        overflow: hidden;
    }
    [data-theme="dark"] .hot-cat-bar { background: rgba(255,255,255,0.06); }
    .hot-cat-fill {
        height: 100%;
        background: linear-gradient(90deg, #FF6B00, #ff9a44);
        border-radius: 3px;
        transition: width 0.8s ease;
    }

    @media (max-width: 768px) {
        .trending-ticker { height: 38px; border-radius: 8px; margin-bottom: 12px; }
        .trending-ticker-label { font-size: 0.7rem; padding: 0 10px; }
        .trending-ticker-item { font-size: 0.75rem; padding: 0 14px; }
    }

    /* ── Event Banner ── */
    .event-banner {
        position: relative;
        background: linear-gradient(135deg, #1a0a00 0%, #2d1400 50%, #1a0a00 100%);
        border: 1px solid rgba(255,107,0,0.3);
        border-radius: 16px;
        margin-bottom: 20px;
        overflow: hidden;
        animation: eventGlow 3s ease-in-out infinite alternate;
    }
    @keyframes eventGlow {
        0% { box-shadow: 0 0 20px rgba(255,107,0,0.1); }
        100% { box-shadow: 0 0 30px rgba(255,107,0,0.25); }
    }
    .event-close {
        position: absolute; top: 10px; right: 12px; z-index: 5;
        background: rgba(0,0,0,0.5); border: none; color: #999;
        font-size: 1.2rem; cursor: pointer; width: 28px; height: 28px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        transition: all 0.2s;
    }
    .event-close:hover { color: #fff; background: rgba(255,0,0,0.4); }
    .event-banner-inner {
        display: flex; gap: 0;
    }
    .event-poster {
        width: 240px; flex-shrink: 0; overflow: hidden;
    }
    .event-poster img {
        width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .event-details {
        flex: 1; padding: 20px 24px;
    }
    .event-badge {
        display: inline-block;
        background: rgba(255,0,0,0.15); color: #ff4444;
        font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
        padding: 4px 12px; border-radius: 20px;
        margin-bottom: 8px; text-transform: uppercase;
        animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
    }
    .event-title {
        font-size: 1.2rem; font-weight: 800; color: #fff;
        margin: 0 0 6px; line-height: 1.3;
    }
    .event-desc {
        font-size: 0.82rem; color: #aaa; margin: 0 0 12px; line-height: 1.5;
    }
    .event-desc strong { color: #FF6B00; }
    .event-meta-row {
        display: flex; gap: 16px; flex-wrap: wrap;
        font-size: 0.78rem; color: #ccc; margin-bottom: 14px;
    }
    .event-meta-row i { color: #FF6B00; margin-right: 5px; }
    .event-countdown {
        display: flex; gap: 10px; margin-bottom: 14px;
    }
    .countdown-item {
        background: rgba(255,107,0,0.12);
        border: 1px solid rgba(255,107,0,0.25);
        border-radius: 10px; padding: 8px 12px;
        text-align: center; min-width: 52px;
    }
    .countdown-item span {
        display: block; font-size: 1.3rem; font-weight: 900;
        color: #FF6B00; line-height: 1;
    }
    .countdown-item small {
        font-size: 0.6rem; color: #888; text-transform: uppercase;
        letter-spacing: 0.5px; margin-top: 2px; display: block;
    }
    .event-cta {
        display: inline-flex; align-items: center; gap: 6px;
        background: linear-gradient(135deg, #25D366, #128C7E);
        color: #fff; padding: 8px 20px; border-radius: 8px;
        font-size: 0.82rem; font-weight: 700;
        text-decoration: none; transition: all 0.2s;
    }
    .event-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,211,102,0.3); }

    /* Event Actions (Going + Share) */
    .event-actions {
        display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    }
    .event-going-btn {
        display: inline-flex; align-items: center; gap: 6px;
        background: rgba(255,107,0,0.15); border: 1.5px solid rgba(255,107,0,0.4);
        color: #FF6B00; padding: 8px 18px; border-radius: 8px;
        font-size: 0.82rem; font-weight: 700; cursor: pointer;
        transition: all 0.25s; font-family: inherit;
    }
    .event-going-btn:hover { background: rgba(255,107,0,0.25); }
    .event-going-btn.active {
        background: linear-gradient(135deg, #10b981, #059669);
        border-color: #10b981; color: #fff;
    }
    .event-going-count {
        font-size: 0.75rem; color: #888;
    }
    .event-going-count strong { color: #FF6B00; }
    .event-share-btns {
        display: flex; gap: 6px; margin-left: auto;
    }
    .event-share-btn {
        width: 34px; height: 34px; border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
        border: none; text-decoration: none;
    }
    .event-share-btn.wa { background: rgba(37,211,102,0.15); color: #25D366; }
    .event-share-btn.wa:hover { background: #25D366; color: #fff; }
    .event-share-btn.tw { background: rgba(255,255,255,0.1); color: #ccc; }
    .event-share-btn.tw:hover { background: #1DA1F2; color: #fff; }
    .event-share-btn.copy { background: rgba(255,255,255,0.1); color: #999; }
    .event-share-btn.copy:hover { background: rgba(255,107,0,0.2); color: #FF6B00; }

    @media (max-width: 640px) {
        .event-banner-inner { flex-direction: column; }
        .event-poster { width: 100%; max-height: 200px; }
        .event-details { padding: 16px; }
        .event-title { font-size: 1.05rem; }
        .countdown-item { padding: 6px 8px; min-width: 44px; }
        .countdown-item span { font-size: 1.1rem; }
    }

    /* ── Category Filter Pills (scrollable on mobile) ── */
    .category-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
        padding: 2px 2px 8px;
    }
    .category-filters::-webkit-scrollbar { display: none; }
    .cat-pill {
        padding: 8px 16px;
        border-radius: 20px;
        border: 1px solid var(--divider);
        background: #F0EDE8;
        color: var(--text-secondary);
        font-size: 0.82rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
        font-family: inherit;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .cat-pill:hover {
        background: rgba(255,107,0,0.1);
        border-color: rgba(255,107,0,0.3);
        color: var(--primary);
    }
    .cat-pill:active { transform: scale(0.95); }
    .cat-pill.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 2px 12px rgba(255,107,0,0.3);
    }

    /* ── Post Card (Facebook-style) ── */
    .post-card {
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        margin-bottom: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        animation: postFadeIn 0.4s ease both;
    }
    @keyframes postFadeIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .post-card:nth-child(2) { animation-delay: 0.05s; }
    .post-card:nth-child(3) { animation-delay: 0.1s; }
    .post-card:nth-child(4) { animation-delay: 0.15s; }
    .post-card:nth-child(5) { animation-delay: 0.2s; }

    .post-card-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 18px 10px;
    }
    .post-user-avatar {
        width: 42px; height: 42px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        display: flex; align-items: center; justify-content: center;
        color: white; font-weight: 700; font-size: 0.9rem;
        flex-shrink: 0;
        text-decoration: none;
    }
    .post-user-info { flex: 1; min-width: 0; }
    .post-user-name {
        font-weight: 700;
        font-size: 0.92rem;
        color: var(--text-primary);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }
    .post-user-name:hover { color: var(--primary); }
    .verified-badge {
        display: inline-flex; align-items: center; justify-content: center;
        width: 16px; height: 16px; border-radius: 50%;
        background: #1DA1F2; color: white; font-size: 8px;
        flex-shrink: 0; position: relative;
    }
    .verified-badge::after {
        content: '✓'; font-weight: 900; font-size: 9px; line-height: 1;
    }
    .post-meta {
        font-size: 0.76rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
    .post-category-badge {
        display: inline-block;
        background: rgba(255,107,0,0.15);
        color: var(--primary);
        padding: 2px 10px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: capitalize;
    }

    /* Follow Button */
    .follow-btn {
        padding: 4px 14px; border-radius: 16px;
        font-size: 0.72rem; font-weight: 700;
        cursor: pointer; transition: all 0.2s;
        border: 1.5px solid var(--primary);
        background: transparent; color: var(--primary);
        white-space: nowrap; line-height: 1.4;
        font-family: inherit;
    }
    .follow-btn:hover { background: var(--primary); color: #fff; }
    .follow-btn.following {
        background: rgba(255,107,0,0.1); color: var(--primary);
        border-color: rgba(255,107,0,0.3);
    }
    .follow-btn.following:hover {
        background: #ef4444; color: #fff;
        border-color: #ef4444;
    }
    [data-theme="dark"] .follow-btn { border-color: var(--primary); color: var(--primary); }
    [data-theme="dark"] .follow-btn:hover { background: var(--primary); color: #fff; }
    [data-theme="dark"] .follow-btn.following { background: rgba(255,138,61,0.12); }
    [data-theme="dark"] .follow-btn.following:hover { background: #ef4444; border-color: #ef4444; color: #fff; }

    .post-card-title {
        padding: 0 18px 4px;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.4;
    }
    .post-card-description {
        padding: 0 18px 14px;
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.55;
        word-break: break-word;
    }
    .post-card-description.truncated {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Link Preview Card */
    .link-preview-card {
        margin: 8px 16px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 14px;
        overflow: hidden;
        cursor: pointer;
        transition: background 0.2s, box-shadow 0.2s;
        text-decoration: none;
        display: block;
        color: inherit;
    }
    .link-preview-card:hover {
        background: #f8f8f8;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .link-preview-img {
        width: 100%;
        max-height: 260px;
        object-fit: cover;
        display: block;
        border-bottom: 1px solid #eee;
    }
    .link-preview-body {
        padding: 12px 14px;
    }
    .link-preview-domain {
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .link-preview-domain i {
        font-size: 10px;
    }
    .link-preview-title {
        font-size: 14px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.35;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .link-preview-desc {
        font-size: 13px;
        color: #666;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .link-preview-video {
        width: 100%;
        aspect-ratio: 16/9;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .link-preview-loading {
        padding: 16px;
        text-align: center;
        color: #bbb;
        font-size: 13px;
    }
    .read-more-btn {
        background: none;
        border: none;
        color: var(--primary);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        padding: 0 18px 10px;
        font-family: inherit;
    }
    .read-more-btn:hover { text-decoration: underline; }

    .post-card-image {
        width: 100%;
        max-height: 500px;
        object-fit: cover;
        display: block;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .post-card-image:hover { opacity: 0.92; }

    /* Stats row */
    .post-stats-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 18px;
        font-size: 0.82rem;
        color: var(--text-muted);
    }
    .post-stats-row .reactions-summary { cursor: default; }
    .post-stats-row .comments-shares-count { display: flex; gap: 14px; }
    .post-stats-row .comments-shares-count span {
        cursor: pointer;
        transition: color 0.2s;
    }
    .post-stats-row .comments-shares-count span:hover {
        color: var(--primary);
        text-decoration: underline;
    }

    /* Action buttons (Facebook-style) */
    .post-actions-row {
        display: flex;
        border-top: 1px solid var(--divider);
        margin: 0 12px;
        padding: 3px 0;
    }
    .action-btn-wrap { position: relative; flex: 1; }
    .action-btn {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        width: 100%; padding: 10px 8px;
        background: transparent; border: none; border-radius: 6px;
        color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
        cursor: pointer; transition: all 0.15s cubic-bezier(0.4,0,0.2,1); font-family: inherit;
        -webkit-user-select: none; user-select: none;
    }
    .action-btn:hover { background: var(--surface-hover); }
    .action-btn:active { transform: scale(0.95); background: rgba(0,0,0,0.06); }
    .action-btn.reacted { color: var(--primary); }
    .action-btn.reaction-love { color: #e74c3c; }
    .action-btn.reaction-haha,
    .action-btn.reaction-wow,
    .action-btn.reaction-sad { color: #f1c40f; }
    .action-btn.reaction-angry { color: #e67e22; }

    /* Reaction picker (Facebook-style bounce) */
    .reaction-picker-pop {
        position: absolute; bottom: calc(100% + 4px); left: 50%;
        transform: translateX(-50%) scale(0.3) translateY(12px);
        display: flex; gap: 0;
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        border-radius: 32px;
        padding: 6px 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.05);
        opacity: 0; pointer-events: none;
        transition: all 0.3s cubic-bezier(0.68,-0.55,0.27,1.55); z-index: 100;
    }
    /* Invisible bridge to prevent gap hover loss */
    .reaction-picker-pop::after {
        content: ''; position: absolute;
        bottom: -12px; left: 0; right: 0; height: 16px;
    }
    .reaction-picker-pop.show {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
        pointer-events: all;
    }
    .reaction-picker-pop button {
        font-size: 1.7rem;
        background: none; border: none;
        cursor: pointer; padding: 5px 6px;
        border-radius: 50%;
        transition: transform 0.25s cubic-bezier(0.68,-0.55,0.27,1.55);
        line-height: 1;
        position: relative;
        opacity: 0;
        transform: scale(0) translateY(10px);
    }
    .reaction-picker-pop.show button {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    .reaction-picker-pop.show button:nth-child(1) { transition-delay: 0.02s; }
    .reaction-picker-pop.show button:nth-child(2) { transition-delay: 0.05s; }
    .reaction-picker-pop.show button:nth-child(3) { transition-delay: 0.08s; }
    .reaction-picker-pop.show button:nth-child(4) { transition-delay: 0.11s; }
    .reaction-picker-pop.show button:nth-child(5) { transition-delay: 0.14s; }
    .reaction-picker-pop.show button:nth-child(6) { transition-delay: 0.17s; }
    .reaction-picker-pop button:hover {
        transform: scale(1.45) translateY(-6px);
    }
    .reaction-picker-pop button:active {
        transform: scale(1.1) translateY(-2px);
    }
    /* Tooltip label */
    .reaction-picker-pop button::after {
        content: attr(title);
        position: absolute; bottom: calc(100% + 4px); left: 50%;
        transform: translateX(-50%) scale(0.8);
        background: rgba(0,0,0,0.8); color: #fff;
        font-size: 11px; font-weight: 600;
        padding: 3px 8px; border-radius: 6px;
        white-space: nowrap; opacity: 0;
        pointer-events: none;
        transition: all 0.15s ease;
    }
    .reaction-picker-pop button:hover::after {
        opacity: 1; transform: translateX(-50%) scale(1);
    }
    /* Like button active pulse */
    @keyframes likePopIn {
        0% { transform: scale(1); }
        50% { transform: scale(1.25); }
        100% { transform: scale(1); }
    }
    .action-btn.just-reacted span:first-child {
        animation: likePopIn 0.35s ease;
    }

    /* Share dropdown */
    .share-dropdown-pop {
        position: absolute; bottom: 100%; right: 0;
        background: var(--card-bg);
        border: 1px solid var(--divider);
        border-radius: 12px;
        padding: 8px 0; min-width: 185px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        opacity: 0; pointer-events: none;
        transform: translateY(5px);
        transition: all 0.2s; z-index: 100;
    }
    .share-dropdown-pop.show {
        opacity: 1; pointer-events: all;
        transform: translateY(0);
    }
    .share-dropdown-pop a,
    .share-dropdown-pop button {
        display: flex; align-items: center; gap: 10px;
        width: 100%; padding: 10px 18px;
        background: none; border: none;
        color: var(--text-secondary); font-size: 0.86rem;
        text-decoration: none; cursor: pointer;
        font-family: inherit; transition: background 0.2s;
    }
    .share-dropdown-pop a:hover,
    .share-dropdown-pop button:hover {
        background: var(--surface-hover);
        color: var(--text-primary);
    }
    .share-dropdown-pop .fa-whatsapp { color: #25D366; }
    .share-dropdown-pop .fa-x-twitter { color: #1DA1F2; }
    .share-dropdown-pop .fa-facebook-f { color: #1877F2; }
    .share-dropdown-pop .fa-link { color: var(--primary); }

    /* ── Comments Section (Facebook-style) ── */
    .comments-section-wrap {
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
        transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), padding 0.35s;
    }
    .comments-section-wrap.show {
        max-height: 800px;
        padding: 10px 16px 14px;
        overflow: visible;
    }

    .comments-list {
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 10px;
    }
    .comment-item {
        display: flex;
        gap: 8px;
        padding: 6px 0;
        animation: commentIn 0.25s ease;
    }
    @keyframes commentIn {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .comment-item + .comment-item { padding-top: 4px; }
    .comment-avatar {
        width: 32px; height: 32px;
        border-radius: 50%;
        background: rgba(255,107,0,0.15);
        display: flex; align-items: center; justify-content: center;
        color: var(--primary); font-weight: 700; font-size: 0.72rem;
        flex-shrink: 0;
    }
    .comment-body {
        flex: 1;
        background: #F5F0EB;
        padding: 8px 12px;
        border-radius: 18px;
    }
    .comment-body strong {
        color: var(--text-primary);
        font-size: 0.82rem;
    }
    .comment-date {
        font-size: 0.68rem;
        color: var(--text-muted);
        margin-left: 6px;
    }
    .comment-body p {
        margin: 2px 0 0;
        font-size: 0.86rem;
        color: var(--text-secondary);
        line-height: 1.4;
        word-break: break-word;
    }
    .no-comments {
        text-align: center;
        color: var(--text-muted);
        font-size: 0.85rem;
        padding: 15px;
    }
    .load-more-comments {
        display: block; width: 100%; padding: 8px;
        background: none; border: none;
        color: var(--text-secondary); font-size: 0.83rem; font-weight: 600;
        cursor: pointer; font-family: inherit;
    }
    .load-more-comments:hover { color: var(--text-primary); }
    .comments-loading-indicator {
        text-align: center; padding: 12px; color: var(--text-muted); font-size: 0.85rem;
    }

    .comment-input-row {
        display: flex;
        gap: 8px;
        align-items: center;
    }
    .comment-input-field {
        flex: 1;
        padding: 9px 14px;
        background: #F0EDE8;
        border: none;
        border-radius: 20px;
        color: var(--text-primary);
        font-size: 0.86rem;
        font-family: inherit;
        outline: none;
        transition: background 0.2s;
    }
    .comment-input-field::placeholder { color: var(--text-muted); }
    .comment-input-field:focus { background: #E8E3DD; }
    .comment-send {
        width: 34px; height: 34px;
        border-radius: 50%; border: none;
        background: transparent; color: var(--primary);
        font-size: 0.9rem; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s; flex-shrink: 0;
    }
    .comment-send:hover { background: rgba(255,107,0,0.1); }
    .comment-send:disabled { opacity: 0.3; cursor: not-allowed; }

    /* ── Image Preview Modal ── */
    .image-modal {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,0.92); z-index: 10000;
        align-items: center; justify-content: center;
        cursor: pointer;
    }
    .image-modal.show { display: flex; }
    .image-modal img {
        max-width: 92%;
        max-height: 90vh;
        border-radius: 8px;
        object-fit: contain;
    }
    .image-modal-close {
        position: absolute; top: 20px; right: 30px;
        background: none; border: none;
        color: white; font-size: 2rem;
        cursor: pointer;
    }

    /* ── Sidebar Cards ── */
    .sidebar-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }
    .sidebar-card h3 {
        font-size: 1rem; font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 14px;
        display: flex; align-items: center; gap: 8px;
    }
    .sidebar-card p {
        font-size: 0.86rem;
        color: var(--text-secondary);
        line-height: 1.5;
        margin-bottom: 12px;
    }
    .sidebar-stat {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--divider);
        font-size: 0.86rem;
    }
    .sidebar-stat:last-child { border: none; }
    .sidebar-stat span:first-child { color: var(--text-secondary); }
    .sidebar-stat span:last-child { color: var(--primary); font-weight: 700; }
    .sidebar-btn {
        display: block;
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9rem;
        text-align: center;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
        text-decoration: none;
        border: none;
        margin-bottom: 8px;
    }
    .sidebar-btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
    }
    .sidebar-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255,107,0,0.3);
    }
    .sidebar-btn-outline {
        background: transparent;
        border: 1px solid var(--glass-border);
        color: var(--text-secondary);
    }
    .sidebar-btn-outline:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    .sidebar-trending .trending-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--divider);
        font-size: 0.86rem;
    }
    .sidebar-trending .trending-item:last-child { border: none; }
    .trending-item .trend-name { color: var(--text-secondary); }
    .trending-item .trend-emoji { font-size: 1.1rem; }

    /* ── Loading / Empty States ── */
    .feed-loading {
        text-align: center;
        padding: 50px 20px;
        color: var(--text-muted);
    }
    .feed-loading i {
        font-size: 2rem;
        color: var(--primary);
        margin-bottom: 12px;
        display: block;
        animation: spin 1s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .feed-empty {
        text-align: center;
        padding: 60px 20px;
    }
    .feed-empty i {
        font-size: 3.5rem;
        color: var(--text-muted);
        opacity: 0.3;
        margin-bottom: 15px;
        display: block;
    }
    .feed-empty h3 {
        color: var(--text-primary);
        font-size: 1.15rem;
        margin-bottom: 8px;
    }
    .feed-empty p {
        color: var(--text-muted);
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .load-more-btn {
        display: block;
        margin: 24px auto 0;
        padding: 12px 36px;
        background: #F0EDE8;
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        color: var(--text-secondary);
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
    }
    .load-more-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    .load-more-btn:disabled {
        opacity: 0.5; cursor: not-allowed;
    }

    /* Toast notification */
    .toast {
        position: fixed;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: var(--card-bg);
        border: 1px solid var(--divider);
        color: var(--text-primary);
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 0.88rem;
        font-weight: 500;
        z-index: 11000;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }
    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: all;
    }
    .toast.success { border-color: #2ecc71; }
    .toast.error { border-color: #e74c3c; }

    /* Skeleton loader */
    .skeleton-card {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 18px;
    }
    .skeleton-line {
        background: linear-gradient(90deg, #F0EDE8 25%, #E8E3DD 50%, #F0EDE8 75%);
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        border-radius: 6px;
        margin-bottom: 10px;
    }
    @keyframes shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }
    .skeleton-avatar { width: 42px; height: 42px; border-radius: 50%; }
    .skeleton-title { width: 70%; height: 14px; }
    .skeleton-text { width: 90%; height: 10px; }
    .skeleton-text-sm { width: 50%; height: 10px; }
    .skeleton-image { width: 100%; height: 200px; margin-top: 10px; border-radius: 8px; }
    .skeleton-header {
        display: flex; gap: 12px; align-items: center; margin-bottom: 14px;
    }
    .skeleton-header-text { flex: 1; }

    /* ── Create Post Modal (Facebook-style popup) ── */
    .prompt-actions { display: flex; gap: 2px; flex-shrink: 0; }
    .prompt-icon-btn {
        background: none; border: none; padding: 8px 10px; border-radius: 8px;
        cursor: pointer; font-size: 1.1rem; transition: background 0.2s;
    }
    .prompt-icon-btn:hover { background: rgba(0,0,0,0.05); }

    .create-post-modal-overlay { z-index: 10001; }
    .create-post-modal {
        width: 100%; max-width: 500px;
        background: var(--card-bg); border-radius: 12px;
        overflow: hidden; max-height: 92vh; overflow-y: auto;
    }
    .cpm-header {
        display: flex; align-items: center; justify-content: center;
        padding: 16px 20px; border-bottom: 1px solid var(--divider);
        position: relative;
    }
    .cpm-header h3 {
        font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
        margin: 0;
    }
    .cpm-close {
        position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
        width: 36px; height: 36px; border-radius: 50%;
        background: #F0EDE8; border: none;
        color: var(--text-secondary); font-size: 1rem;
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        transition: background 0.2s;
    }
    .cpm-close:hover { background: #E8E3DD; }

    .cpm-user {
        display: flex; align-items: center; gap: 10px;
        padding: 14px 20px 8px;
    }
    .cpm-avatar {
        width: 40px; height: 40px; border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        display: flex; align-items: center; justify-content: center;
        color: white; font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
    }
    .cpm-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
    .cpm-privacy {
        font-size: 0.72rem; color: var(--text-muted);
        display: flex; align-items: center; gap: 4px; margin-top: 1px;
    }

    .cpm-title-input {
        display: block; width: 100%; padding: 12px 20px;
        background: none; border: none; border-bottom: 1px solid var(--divider);
        color: var(--text-primary); font-size: 1.05rem; font-weight: 600;
        font-family: inherit; outline: none; box-sizing: border-box;
    }
    .cpm-title-input::placeholder { color: var(--text-muted); font-weight: 400; }
    .cpm-title-input:focus { border-bottom-color: var(--primary); }

    .cpm-textarea {
        display: block; width: 100%; min-height: 120px; padding: 14px 20px;
        background: none; border: none; color: var(--text-primary);
        font-size: 0.95rem; font-family: inherit; outline: none;
        resize: none; line-height: 1.5; box-sizing: border-box;
    }
    .cpm-textarea::placeholder { color: var(--text-muted); }

    /* Tags */
    .cpm-tags-wrap { padding: 0 20px 10px; }
    .cpm-tags-container {
        display: flex; flex-wrap: wrap; gap: 6px;
        padding: 8px 12px; background: #F5F0EB;
        border-radius: 10px; align-items: center; min-height: 38px;
    }
    .cpm-tag-chip {
        display: inline-flex; align-items: center; gap: 4px;
        background: rgba(255,107,0,0.15); color: var(--primary);
        padding: 4px 10px; border-radius: 14px; font-size: 0.78rem;
        font-weight: 600; animation: tagIn 0.2s ease;
    }
    @keyframes tagIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .cpm-tag-chip .tag-remove {
        background: none; border: none; color: var(--primary);
        cursor: pointer; font-size: 0.7rem; padding: 0; margin-left: 2px;
        opacity: 0.7; transition: opacity 0.2s;
    }
    .cpm-tag-chip .tag-remove:hover { opacity: 1; }
    .cpm-tag-input {
        border: none; background: none; color: var(--text-primary);
        font-size: 0.85rem; font-family: inherit; outline: none;
        flex: 1; min-width: 100px; padding: 4px 0;
    }
    .cpm-tag-input::placeholder { color: var(--text-muted); }
    .cpm-tag-suggestions {
        display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
    }
    .cpm-tag-suggestions span {
        padding: 4px 10px; border-radius: 12px; font-size: 0.75rem;
        background: #F0EDE8; color: var(--text-secondary);
        cursor: pointer; transition: all 0.2s; font-weight: 500;
    }
    .cpm-tag-suggestions span:hover {
        background: rgba(255,107,0,0.12); color: var(--primary);
    }

    /* Image Upload in Modal */
    .cpm-image-upload { padding: 0 20px 10px; }
    .cpm-image-area {
        border: 2px dashed rgba(0,0,0,0.15); border-radius: 10px;
        padding: 30px 20px; text-align: center; position: relative;
        cursor: pointer; transition: all 0.25s; background: #FAFAF8;
    }
    .cpm-image-area:hover { border-color: var(--primary); background: rgba(255,107,0,0.04); }
    .cpm-image-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
    .cpm-image-area i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 6px; }
    .cpm-image-area p { color: var(--text-primary); font-size: 0.92rem; font-weight: 500; margin: 4px 0; }
    .cpm-image-area span { color: var(--text-muted); font-size: 0.78rem; }

    /* Toolbar */
    .cpm-toolbar {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 16px; margin: 0 20px;
        border: 1px solid var(--divider); border-radius: 10px;
    }
    .cpm-toolbar-label {
        font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    }
    .cpm-toolbar-icons { display: flex; gap: 2px; align-items: center; }
    .cpm-toolbar-icons button {
        background: none; border: none; padding: 8px 10px; border-radius: 8px;
        cursor: pointer; transition: background 0.2s; display: flex; align-items: center;
    }
    .cpm-toolbar-icons button:hover { background: rgba(0,0,0,0.05); }
    .cpm-cat-select {
        background: none; border: none; color: var(--text-secondary);
        font-size: 0.82rem; font-family: inherit; cursor: pointer;
        outline: none; -webkit-appearance: none; padding: 4px 8px;
        border-radius: 6px; max-width: 120px;
    }
    .cpm-cat-select option { background: #FFFFFF; color: var(--text-primary); }

    /* Submit Button */
    .cpm-submit-btn {
        display: block; width: calc(100% - 40px); margin: 14px 20px 20px;
        padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white; border: none; border-radius: 8px; font-size: 1rem;
        font-weight: 700; cursor: pointer; font-family: inherit;
        transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    }
    .cpm-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,107,0,0.35); }
    .cpm-submit-btn:active { transform: scale(0.98); }
    .cpm-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

    /* ── Footer dark overrides ── */
    #footer { display: none; }

    /* ── Auth Modal Overlay ── */
    .modal-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 10000;
        display: flex; align-items: center; justify-content: center;
        padding: 20px;
        animation: modalFadeIn 0.2s ease;
    }
    @keyframes modalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .modal-overlay .modal-content {
        animation: modalSlideUp 0.3s cubic-bezier(0.4,0,0.2,1);
        max-height: 90vh;
        overflow-y: auto;
    }
    @keyframes modalSlideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    /* Floating Chat Button */
    .chat-fab {
        position: fixed;
        bottom: 160px;
        right: 16px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #FF6B00, #e55d00);
        color: #fff;
        border: none;
        font-size: 1.4rem;
        cursor: pointer;
        z-index: 9997;
        box-shadow: 0 4px 20px rgba(255,107,0,0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .chat-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(255,107,0,0.5); }
    .chat-fab .chat-unread {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #e53935;
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
    }

    /* Chat Panel */
    .chat-panel {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        z-index: 100000;
        background: #121212;
        flex-direction: column;
        animation: chatSlideUp 0.3s ease;
    }
    .chat-panel.open { display: flex; }
    @keyframes chatSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    @media (min-width: 768px) {
        .chat-panel {
            bottom: 80px;
            right: 16px;
            left: auto;
            top: auto;
            width: 400px;
            height: 550px;
            border-radius: 16px;
            border: 1px solid rgba(255,107,0,0.2);
            box-shadow: 0 8px 40px rgba(0,0,0,0.5);
        }
    }

    /* Chat Header */
    .chat-header {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        background: linear-gradient(135deg, rgba(255,107,0,0.12), rgba(255,107,0,0.04));
        border-bottom: 1px solid rgba(255,255,255,0.06);
        flex-shrink: 0;
    }
    .chat-header-info { flex: 1; }
    .chat-header-title { font-weight: 700; font-size: 1rem; color: #fff; }
    .chat-header-status { font-size: 0.72rem; color: #aaa; display: flex; align-items: center; gap: 8px; }
    .chat-header-online { color: #4CAF50; font-weight: 600; display: flex; align-items: center; gap: 3px; }
    .chat-header-online::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4CAF50; display: inline-block; animation: onlinePulse 2s infinite; }
    @keyframes onlinePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
    .chat-header-members { color: #888; }
    .chat-close-btn {
        background: none; border: none; color: #ccc;
        font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
        transition: color 0.2s;
    }
    .chat-close-btn:hover { color: #FF6B00; }

    /* Chat Messages Area */
    .chat-messages {
        flex: 1;
        overflow-y: auto;
        padding: 12px 14px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        scroll-behavior: smooth;
        background: url('assets/images/chat-bg.jpg') center center / 100% 100% no-repeat;
        position: relative;
    }
    .chat-messages::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.45);
        pointer-events: none;
        z-index: 0;
    }
    .chat-messages > * { position: relative; z-index: 1; }
    .chat-messages::-webkit-scrollbar { width: 4px; }
    .chat-messages::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 4px; }

    /* Message Bubble */
    .chat-msg {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        max-width: 85%;
        animation: msgFadeIn 0.25s ease;
    }
    .chat-msg.self { align-self: flex-end; flex-direction: row-reverse; }
    @keyframes msgFadeIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .chat-msg-avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255,107,0,0.2);
        color: #FF6B00;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        flex-shrink: 0;
        overflow: hidden;
    }
    .chat-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .chat-msg-bubble {
        background: rgba(20,20,20,0.85);
        padding: 8px 12px;
        border-radius: 12px 12px 12px 4px;
        min-width: 60px;
        backdrop-filter: blur(6px);
    }
    .chat-msg.self .chat-msg-bubble {
        background: rgba(255,107,0,0.35);
        border-radius: 12px 12px 4px 12px;
        backdrop-filter: blur(6px);
    }
    .chat-msg-name {
        font-size: 0.72rem;
        font-weight: 700;
        color: #FF6B00;
        margin-bottom: 2px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .chat-msg-name .admin-badge {
        font-size: 0.6rem;
        background: rgba(255,107,0,0.2);
        padding: 1px 5px;
        border-radius: 4px;
        color: #FF6B00;
    }
    .chat-msg-text {
        font-size: 0.85rem;
        color: #eee;
        line-height: 1.4;
        word-break: break-word;
    }
    .chat-msg-time {
        font-size: 0.65rem;
        color: #888;
        margin-top: 3px;
    }
    .chat-msg-delete {
        background: none; border: none; color: #e53935; font-size: 0.65rem;
        cursor: pointer; opacity: 0; transition: opacity 0.2s; margin-left: 6px;
    }
    .chat-msg:hover .chat-msg-delete { opacity: 1; }

    .chat-input-area {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 8px 10px;
        border-top: 1px solid rgba(255,255,255,0.06);
        background: rgba(0,0,0,0.2);
        flex-shrink: 0;
    }
    .chat-input {
        flex: 1;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 20px;
        padding: 10px 16px;
        color: #fff;
        font-size: 0.88rem;
        font-family: inherit;
        outline: none;
        transition: border-color 0.2s;
    }
    .chat-input:focus { border-color: #FF6B00; outline: none; }
    .chat-input:empty:before {
        content: attr(data-placeholder);
        color: #888;
        pointer-events: none;
    }
    .chat-input { word-break: break-word; -webkit-user-select: text; user-select: text; }
    .chat-input img { max-height: 60px; border-radius: 4px; vertical-align: middle; }
    .chat-send-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #FF6B00;
        color: #fff;
        border: none;
        font-size: 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .chat-send-btn:hover { background: #e55d00; transform: scale(1.05); }
    .chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

    /* Attach & GIF buttons */
    .chat-attach-btn {
        background: none; border: none; color: #888; font-size: 1rem;
        cursor: pointer; padding: 4px; flex-shrink: 0;
        transition: color 0.2s;
    }
    .chat-attach-btn:hover { color: #FF6B00; }
    .chat-gif-btn {
        background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2);
        color: #aaa; font-size: 0.65rem; font-weight: 800; cursor: pointer;
        padding: 2px 6px; flex-shrink: 0; font-family: sans-serif;
        border-radius: 4px; letter-spacing: -0.3px; transition: all 0.2s;
    }
    .chat-gif-btn:hover { border-color: #FF6B00; color: #FF6B00; }

    /* GIF Panel */
    .chat-gif-panel {
        display: none; background: #111; border-top: 2px solid #FF6B00;
        overflow: hidden; flex-shrink: 0;
    }
    .gif-panel-header { padding: 0; }
    .gif-panel-tabs {
        display: flex; overflow-x: auto; gap: 0; padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .gif-panel-tabs::-webkit-scrollbar { display: none; }
    .gif-tab {
        background: none; border: none; border-bottom: 2px solid transparent;
        color: #888; font-size: 0.72rem; padding: 8px 12px; cursor: pointer;
        white-space: nowrap; transition: all 0.2s; flex-shrink: 0;
    }
    .gif-tab.active { color: #FF6B00; border-bottom-color: #FF6B00; }
    .gif-tab:hover { color: #fff; }
    .gif-search-row {
        display: flex; align-items: center; gap: 6px; padding: 6px 10px;
        background: rgba(255,255,255,0.03);
    }
    .gif-search-row input {
        flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
        border-radius: 16px; padding: 5px 10px; color: #fff; font-size: 0.78rem;
        outline: none; font-family: inherit;
    }
    .gif-search-row input:focus { border-color: #FF6B00; }
    .gif-close-btn {
        background: none; border: none; color: #888; font-size: 1.2rem;
        cursor: pointer; padding: 2px 4px; line-height: 1;
    }
    .gif-close-btn:hover { color: #FF6B00; }
    .gif-results {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
        padding: 4px; overflow-y: auto; max-height: 200px;
        -webkit-overflow-scrolling: touch;
    }
    .gif-results img {
        width: 100%; height: 85px; object-fit: cover; border-radius: 4px;
        cursor: pointer; transition: transform 0.15s;
    }
    .gif-results img:active { transform: scale(0.95); }

    /* Slow mode timer */
    .chat-slow-mode {
        background: rgba(255,107,0,0.08);
        font-size: 0.75rem;
        color: #ccc;
        text-align: center;
        padding: 4px;
        display: none;
    }
    .chat-slow-mode.show { display: block; }

    /* Chat login prompt */
    .chat-login-prompt {
        text-align: center;
        padding: 10px 14px;
        border-top: 1px solid rgba(255,255,255,0.06);
        background: rgba(0,0,0,0.2);
    }
    .chat-login-prompt a {
        color: #FF6B00;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.88rem;
    }

    /* Empty state */
    .chat-empty {
        text-align: center;
        padding: 60px 20px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #bbb;
    }
    .chat-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: #FF6B00; opacity: 0.6; }

    /* System message */
    .chat-system-msg {
        text-align: center;
        font-size: 0.75rem;
        color: #bbb;
        padding: 6px 0;
    }

    /* Pinned Message Bar */
    .chat-pinned-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background: rgba(255,107,0,0.1);
        border-bottom: 1px solid rgba(255,107,0,0.2);
        font-size: 0.8rem;
        color: #FF6B00;
        flex-shrink: 0;
    }
    .chat-pinned-bar i { font-size: 0.7rem; }
    .chat-pinned-text { flex: 1; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .chat-pinned-close { background: none; border: none; color: #999; font-size: 1rem; cursor: pointer; padding: 0 4px; }

    /* Expanded Pinned Poll */
    .chat-pinned-poll {
        padding: 10px 14px;
        background: rgba(255,107,0,0.08);
        border-bottom: 1px solid rgba(255,107,0,0.2);
        flex-shrink: 0;
    }
    .chat-pinned-poll .pinned-poll-header {
        display: flex; align-items: center; gap: 6px;
        font-size: 0.72rem; color: #FF6B00; font-weight: 600;
        margin-bottom: 8px;
    }
    .chat-pinned-poll .pinned-poll-header i { font-size: 0.65rem; }
    .chat-pinned-poll .chat-poll-card {
        margin: 0; border: 1px solid rgba(255,107,0,0.2); border-radius: 10px;
    }
    .chat-pinned-poll .pinned-poll-minimize {
        background: none; border: none; color: #888; font-size: 0.72rem;
        cursor: pointer; margin-top: 6px; padding: 0; font-family: inherit;
    }
    .chat-pinned-poll .pinned-poll-minimize:hover { color: #FF6B00; }

    /* Admin Tools Bar */
    .chat-admin-tools {
        display: flex;
        gap: 6px;
        padding: 6px 14px;
        border-top: 1px solid rgba(255,255,255,0.06);
        background: rgba(0,0,0,0.15);
    }
    .chat-admin-tools button {
        background: rgba(255,107,0,0.12);
        border: 1px solid rgba(255,107,0,0.2);
        color: #FF6B00;
        font-size: 0.75rem;
        padding: 5px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .chat-admin-tools button:hover { background: rgba(255,107,0,0.25); }

    /* Poll Creator */
    .chat-poll-creator {
        padding: 12px 14px;
        background: rgba(0,0,0,0.3);
        border-top: 1px solid rgba(255,107,0,0.15);
    }
    .chat-poll-creator-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 8px; color: #fff; font-size: 0.85rem; font-weight: 600;
    }
    .chat-poll-creator-header button { background: none; border: none; color: #999; font-size: 1.2rem; cursor: pointer; }
    .poll-option-input { font-size: 0.82rem !important; padding: 8px 12px !important; }
    .chat-poll-btn {
        background: rgba(255,255,255,0.06);
        border: 1px dashed rgba(255,255,255,0.15);
        color: #aaa;
        font-size: 0.78rem;
        padding: 6px;
        border-radius: 6px;
        cursor: pointer;
    }
    .chat-poll-btn:hover { border-color: #FF6B00; color: #FF6B00; }

    /* Poll Card in Chat */
    .chat-poll-card {
        background: rgba(255,107,0,0.06);
        border: 1px solid rgba(255,107,0,0.15);
        border-radius: 10px;
        padding: 10px 12px;
        margin-top: 4px;
    }
    .chat-poll-question { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
    .chat-poll-option {
        position: relative;
        padding: 7px 10px;
        margin-bottom: 4px;
        border-radius: 6px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.08);
        cursor: pointer;
        transition: all 0.2s;
        overflow: hidden;
    }
    .chat-poll-option:hover { border-color: rgba(255,107,0,0.3); }
    .chat-poll-option.voted { border-color: #FF6B00; cursor: default; }
    .chat-poll-option.selected { border-color: #FF6B00; background: rgba(255,107,0,0.1); }
    .chat-poll-option-bar {
        position: absolute; left: 0; top: 0; bottom: 0;
        background: rgba(255,107,0,0.12);
        border-radius: 6px;
        transition: width 0.4s ease;
    }
    .chat-poll-option-content {
        position: relative; z-index: 1;
        display: flex; justify-content: space-between; align-items: center;
        font-size: 0.78rem; color: #ddd;
    }
    .chat-poll-option-content .pct { color: #FF6B00; font-weight: 600; font-size: 0.72rem; }
    .chat-poll-total { font-size: 0.7rem; color: #888; margin-top: 4px; }

    /* Admin context menu on messages */
    .chat-msg-actions {
        display: flex; gap: 2px; margin-left: 4px;
    }
    .chat-msg-action-btn {
        background: none; border: none; color: #888; font-size: 0.6rem;
        cursor: pointer; opacity: 0; transition: opacity 0.2s; padding: 2px;
    }
    .chat-msg:hover .chat-msg-action-btn { opacity: 1; }
    .chat-msg-action-btn:hover { color: #FF6B00; }

    /* Reply Quote Bubble */
    .chat-reply-quote {
        background: rgba(255,107,0,0.08);
        border-left: 3px solid #FF6B00;
        border-radius: 4px;
        padding: 4px 8px;
        margin-bottom: 4px;
        cursor: pointer;
    }
    .chat-reply-quote-name {
        font-size: 0.7rem;
        font-weight: 600;
        color: #FF6B00;
    }
    .chat-reply-quote-text {
        font-size: 0.72rem;
        color: #aaa;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    /* Reply Bar above input */
    .chat-reply-bar {
        display: none;
        align-items: center;
        gap: 8px;
        padding: 6px 14px;
        background: rgba(255,107,0,0.06);
        border-top: 1px solid rgba(255,107,0,0.15);
        font-size: 0.78rem;
        color: #ccc;
    }
    .chat-reply-bar.show { display: flex; }
    .chat-reply-bar i { color: #FF6B00; font-size: 0.7rem; }
    .chat-reply-bar-name { font-weight: 600; color: #FF6B00; }
    .chat-reply-bar-text { flex: 1; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .chat-reply-bar-close {
        background: none; border: none; color: #999; font-size: 1.1rem;
        cursor: pointer; padding: 0 4px;
    }

    /* @Mention Dropdown */
    .chat-mention-dropdown {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 14px;
        right: 14px;
        background: #1e1e1e;
        border: 1px solid rgba(255,107,0,0.2);
        border-radius: 10px;
        max-height: 180px;
        overflow-y: auto;
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    }
    .chat-mention-dropdown.show { display: block; }
    .chat-mention-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        cursor: pointer;
        transition: background 0.15s;
        font-size: 0.82rem;
        color: #ddd;
    }
    .chat-mention-item:hover { background: rgba(255,107,0,0.1); }
    .chat-mention-avatar {
        width: 28px; height: 28px; border-radius: 50%;
        background: rgba(255,107,0,0.2); color: #FF6B00;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.7rem; font-weight: 700;
        overflow: hidden;
    }
    .chat-mention-avatar img { width: 100%; height: 100%; object-fit: cover; }

    /* @mention highlight in messages */
    .chat-mention { color: #FF6B00; font-weight: 600; }
