/* ==========================================================================
   DGserv Social Hub — Ultra-Coloré & Dynamique
   ========================================================================== */

:root {
    --bg-dark: #07080e;
    --bg-panel: rgba(18, 20, 32, 0.78);
    --bg-card: rgba(24, 27, 44, 0.72);
    --bg-card-hover: rgba(34, 38, 62, 0.85);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glow: rgba(255, 0, 80, 0.35);

    --neon-pink: #ff0055;
    --neon-cyan: #00f2fe;
    --neon-purple: #7928ca;
    --neon-orange: #ff8a00;
    --neon-blue: #2aabee; /* Telegram Blue */

    --grad-vibrant: linear-gradient(135deg, #ff0055 0%, #7928ca 50%, #00f2fe 100%);
    --grad-clips: linear-gradient(90deg, #ff0055 0%, #00f2fe 100%);
    --grad-insta: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --grad-telegram: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);

    --text-main: #ffffff;
    --text-muted: #9aa0b8;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.social-body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 8% 15%, rgba(255, 0, 85, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 92% 12%, rgba(0, 242, 254, 0.14) 0%, transparent 38%),
        radial-gradient(circle at 50% 85%, rgba(121, 40, 202, 0.14) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 10px;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.social-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--grad-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.45);
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.brand-title span {
    background: var(--grad-clips);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topbar-search {
    flex: 1;
    max-width: 720px;
    margin: 0 24px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
}

.topbar-search input:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.25);
}

.topbar-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-vibrant {
    background: var(--grad-vibrant);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-vibrant:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border: 1px solid var(--border-glass);
    padding: 9px 16px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-glass);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}
.user-pill:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 85, 0.12);
}
.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
}

/* ==========================================================================
   3-COLUMN MAIN LAYOUT
   ========================================================================== */
.social-layout {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 88px 28px 90px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

/* ==========================================================================
   LEFT SIDEBAR (NAVIGATION & ECOSYSTEM)
   ========================================================================== */
.left-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.nav-item:hover i {
    transform: scale(1.15);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255, 0, 85, 0.22) 0%, rgba(121, 40, 202, 0.15) 100%);
    border-color: rgba(255, 0, 85, 0.4);
    box-shadow: 0 4px 20px rgba(255, 0, 85, 0.15);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-pink { background: var(--neon-pink); color: #fff; }
.badge-cyan { background: var(--neon-cyan); color: #000; }
.badge-tg { background: var(--neon-blue); color: #fff; }
.badge-orange { background: var(--neon-orange); color: #000; }

/* Mini Profile Card in Sidebar */
.mini-profile-card {
    overflow: hidden;
    padding: 0;
}

.mini-profile-banner {
    height: 75px;
    background: var(--grad-vibrant);
    background-size: cover;
    background-position: center;
    position: relative;
}

.mini-profile-body {
    padding: 0 18px 18px;
    text-align: center;
    position: relative;
}

.mini-profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d0f1a;
    box-shadow: 0 0 0 2px var(--neon-pink);
    margin-top: -34px;
    background: #111;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.mini-stat-val {
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}
.mini-stat-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   STORIES BAR
   ========================================================================== */
.stories-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 4px 14px;
    margin-bottom: 18px;
}

.story-bubble {
    flex-shrink: 0;
    width: 105px;
    height: 165px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: var(--bg-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}

.story-bubble:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(255, 0, 85, 0.35);
}

.story-bubble-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.35s ease;
}
.story-bubble:hover .story-bubble-bg {
    transform: scale(1.08);
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.story-ring-avatar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: var(--grad-insta);
    z-index: 2;
}
.story-ring-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #000;
}

.story-author {
    position: relative;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-add-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}

/* ==========================================================================
   FEED QUICK COMPACT BAR (STYLE RESEAU SOCIAL / BARRE COMPACTE)
   ========================================================================== */
.feed-create-bar {
    margin-bottom: 22px;
    padding: 14px 18px 10px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.feed-create-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feed-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-pink);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.feed-user-avatar:hover {
    transform: scale(1.05);
}

.feed-prompt-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.feed-prompt-input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 242, 254, 0.45);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.feed-create-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 12px 0 6px;
}

.feed-create-bottom {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
}

.feed-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #c0c6d8;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.feed-quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-1px);
}
.feed-quick-btn.btn-anon i {
    font-size: 1.25rem;
    color: #00f2fe;
}
.feed-quick-btn.btn-mood i {
    font-size: 1.25rem;
    color: #ff9f43;
}
.feed-quick-btn.btn-story i {
    font-size: 1.25rem;
    color: #ff0055;
}

/* ==========================================================================
   UNIFIED PUBLISH POPUP MODAL (POST & STORY)
   ========================================================================== */
.publish-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    animation: fadeInModal 0.22s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.publish-modal-content {
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    background: #10121f;
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    padding: 24px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 0, 85, 0.15);
}

.publish-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
    gap: 12px;
}

.publish-tabs-switch {
    display: inline-flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-glass);
}

.publish-tab-btn {
    padding: 9px 20px;
    border-radius: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}
.publish-tab-btn:hover {
    color: #fff;
}
.publish-tab-btn.active {
    background: var(--grad-vibrant);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.45);
}

.publish-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.publish-close-btn:hover {
    background: rgba(255, 77, 109, 0.35);
    color: #ff4d6d;
    transform: rotate(90deg);
}

.publish-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.publish-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.publish-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-pink);
}

.mood-selector-box {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px dashed rgba(255, 159, 67, 0.45);
    margin-bottom: 12px;
}
.mood-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: #e2e6f3;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.mood-pill:hover, .mood-pill.active {
    background: rgba(255, 159, 67, 0.25);
    border-color: #ff9f43;
    color: #fff;
}

/* ==========================================================================
   POST COMPOSER ("QUOI DE NEUF ?")
   ========================================================================== */
.composer-card {
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.composer-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.composer-top img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-pink);
}

.composer-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    resize: vertical;
    min-height: 76px;
    outline: none;
    transition: border-color 0.2s;
}
.composer-textarea:focus {
    border-color: var(--neon-pink);
}

/* Barre de mise en forme intégrée au-dessus de la zone de saisie */
.composer-editor-wrap {
    width: 100%;
    position: relative;
}

.composer-format-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px;
    background: rgba(14, 16, 28, 0.95);
    border: 1px solid var(--border-glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    flex-wrap: wrap;
}

.composer-textarea.has-toolbar {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.format-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e6f3;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: rgba(255, 0, 85, 0.25);
    border-color: var(--neon-pink);
    color: #fff;
    transform: translateY(-1px);
}

.format-btn:active {
    transform: scale(0.95);
    background: var(--grad-vibrant);
}

.format-separator {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.composer-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.tool-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* ==========================================================================
   FEED FILTER PILLS
   ========================================================================== */
.feed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}
.filter-chip.active, .filter-chip:hover {
    background: var(--grad-vibrant);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

/* ==========================================================================
   SOCIAL POST CARDS
   ========================================================================== */
.post-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
}

.post-author-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-icon {
    color: var(--neon-cyan);
    font-size: 1.05rem;
}

.admin-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--grad-vibrant);
    color: #fff;
    font-weight: 800;
}

.post-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-content {
    font-size: 1rem;
    line-height: 1.55;
    color: #eef0f7;
    margin-bottom: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.hashtag {
    color: var(--neon-cyan);
    font-weight: 600;
}

.post-media-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media-box img,
.post-media-box video {
    width: 100%;
    max-height: 540px;
    object-fit: contain;
    display: block;
}

.post-media-box iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
    gap: 8px;
}

.reaction-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

.action-btn.liked {
    background: rgba(255, 0, 85, 0.2);
    border-color: var(--neon-pink);
    color: #ff4d88;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.25);
}

/* Comments Drawer */
.comments-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    display: none;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 12px;
}

.comment-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 10px 16px;
    color: #fff;
    font-family: inherit;
    outline: none;
}
.comment-form input:focus {
    border-color: var(--neon-cyan);
}

/* ==========================================================================
   DG-CLIPS VERTICAL REELS VIEW
   ========================================================================== */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.clip-card {
    background: #000;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9 / 14;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.clip-card video,
.clip-card iframe,
.clip-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.clip-info-overlay {
    position: relative;
    z-index: 2;
    padding: 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

.clip-side-actions {
    position: absolute;
    right: 12px;
    bottom: 85px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clip-fab {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
.clip-fab:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

/* ==========================================================================
   TELEGRAM CHANNELS & CHAT HUB
   ========================================================================== */
.telegram-hub {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 640px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tg-channels-list {
    background: rgba(0, 0, 0, 0.35);
    border-right: 1px solid var(--border-glass);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.tg-channel-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
}
.tg-channel-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.tg-channel-btn.active {
    background: rgba(42, 171, 238, 0.18);
    border-color: rgba(42, 171, 238, 0.45);
    color: #fff;
}

.tg-chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tg-chat-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tg-messages-box {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-msg {
    display: flex;
    gap: 10px;
    max-width: 82%;
}
.tg-msg.me {
    margin-left: auto;
    flex-direction: row-reverse;
}

.tg-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tg-msg-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    padding: 10px 14px;
    border-radius: 16px;
}
.tg-msg.me .tg-msg-bubble {
    background: var(--grad-telegram);
    border-color: transparent;
}

.tg-input-bar {
    padding: 14px 18px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.35);
}

.tg-input-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 11px 18px;
    color: #fff;
    font-family: inherit;
    outline: none;
}
.tg-input-bar input:focus {
    border-color: var(--neon-blue);
}

/* ==========================================================================
   RIGHT SIDEBAR (LIVE COMMUNITY & ONLINE MEMBERS)
   ========================================================================== */
.right-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.member-row:last-child {
    border-bottom: none;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-avatar-wrap {
    position: relative;
}
.member-avatar-wrap img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #0d0f1a;
}
.status-online { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.status-offline { background: #6c757d; }

.member-name-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.member-name-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* View Sections Visibility */
.social-view-section {
    display: none;
}
.social-view-section.active {
    display: block;
    animation: fadeInView 0.25s ease;
}

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

/* Mobile Bottom Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: inherit;
}
.mobile-nav-btn span {
    font-size: 0.68rem;
    font-weight: 600;
}
.mobile-nav-btn.active {
    color: var(--neon-pink);
}

/* Responsive */
@media (max-width: 1180px) {
    .social-layout {
        grid-template-columns: 240px 1fr;
    }
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 820px) {
    .social-layout {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }
    .left-sidebar {
        display: none;
    }
    .mobile-bottom-nav {
        display: flex;
    }
    .telegram-hub {
        grid-template-columns: 1fr;
        height: 560px;
    }
    .tg-channels-list {
        flex-direction: row;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        overflow-x: auto;
    }
}

/* ==========================================================================
   FLOATING TEXT FORMATTING POPOVER
   ========================================================================== */
.floating-format-bar {
    position: absolute;
    display: none;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(16, 18, 30, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 0, 85, 0.25);
    z-index: 3000;
    animation: popFormatBar 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popFormatBar {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-format-bar button {
    background: transparent;
    border: none;
    color: #e2e6f3;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.floating-format-bar button:hover {
    background: var(--grad-vibrant);
    color: #fff;
    transform: translateY(-1px);
}

.floating-format-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

/* Rich Text Styles inside Posts */
.post-content h1.post-h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 6px 0;
    color: #fff;
}
.post-content h2.post-h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 5px 0;
    color: var(--neon-cyan);
}
.post-content blockquote.post-quote {
    border-left: 3px solid var(--neon-pink);
    background: rgba(255, 0, 85, 0.08);
    padding: 8px 14px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #d6daea;
    margin: 6px 0;
}
.post-content .post-list-item {
    display: block;
    padding-left: 14px;
    margin: 3px 0;
}

/* ==========================================================================
   DG-STUDIO — INTERFACE DE MONTAGE & CREATION VIDEO PRO
   ========================================================================== */
.studio-workspace {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    width: 100%;
}

.social-layout.studio-mode {
    grid-template-columns: 290px minmax(0, 1fr);
}

.social-layout.studio-mode .right-sidebar {
    display: none !important;
}

@media (max-width: 820px) {
    .social-layout.studio-mode {
        grid-template-columns: 1fr;
    }
}

.studio-tools-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.studio-tabs-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.studio-tab-pill {
    padding: 9px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.studio-tab-pill i {
    font-size: 1.15rem;
}

.studio-tab-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.studio-tab-pill.active {
    background: var(--grad-vibrant);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.35);
}

.studio-tool-pane {
    display: none;
    animation: fadeInView 0.2s ease;
}
.studio-tool-pane.active {
    display: block;
}

.studio-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.filter-preset-btn,
.fx-toggle-btn,
.beat-preset-btn,
.ratio-chip,
.speed-chip {
    padding: 10px 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #e2e6f3;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.filter-preset-btn:hover,
.fx-toggle-btn:hover,
.beat-preset-btn:hover,
.ratio-chip:hover,
.speed-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.filter-preset-btn.active,
.fx-toggle-btn.active,
.beat-preset-btn.active,
.ratio-chip.active,
.speed-chip.active {
    background: linear-gradient(135deg, rgba(255,0,85,0.35), rgba(0,242,254,0.28));
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.28);
}

.studio-slider-row {
    margin-bottom: 11px;
}

.studio-slider-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.studio-range {
    width: 100%;
    accent-color: var(--neon-pink);
    cursor: pointer;
}

.studio-monitor-card {
    background: var(--bg-panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.studio-canvas-stage {
    width: 100%;
    min-height: 520px;
    max-height: 680px;
    background: radial-gradient(circle at center, #141728 0%, #06070c 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

#studioCanvas {
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75);
    cursor: grab;
}
#studioCanvas:active {
    cursor: grabbing;
}

.studio-timeline-bar {
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
}

.stickers-palette {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.sticker-btn {
    font-size: 1.5rem;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.sticker-btn:hover {
    transform: scale(1.18);
    background: rgba(255, 0, 85, 0.2);
}

@media (max-width: 1024px) {
    .studio-workspace {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   DOUBLE FLUX (FIL D'ACTUALITE PUBLIC vs MON MUR) & DG-LIVE
   ========================================================================== */
.feed-mode-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 8px;
    background: rgba(18, 20, 32, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    flex-wrap: wrap;
}

.feed-mode-tab {
    flex: 1;
    min-width: 170px;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.feed-mode-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.feed-mode-tab.active {
    background: var(--grad-vibrant);
    color: #fff;
    box-shadow: 0 4px 18px rgba(255, 0, 85, 0.35);
}

.feed-mode-tab.live-btn {
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.22), rgba(255, 110, 0, 0.22));
    border-color: rgba(255, 0, 85, 0.5);
    color: #fff;
}

/* En-tête de Mur Personnel */
.fb-wall-header {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.fb-wall-cover {
    height: 190px;
    background: linear-gradient(135deg, #ff0055 0%, #7928ca 50%, #00f2fe 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

.fb-wall-profile-bar {
    padding: 0 24px 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.fb-wall-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0b0d17;
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.4);
    background: #121420;
}

/* Bannière / Carte Live affichée dans Actualité ET Mur Privé */
.live-stream-alert-card {
    background: linear-gradient(135deg, rgba(255, 0, 68, 0.22) 0%, rgba(121, 40, 202, 0.2) 60%, rgba(0, 242, 254, 0.14) 100%);
    border: 1px solid rgba(255, 0, 85, 0.55);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 0 26px rgba(255, 0, 85, 0.25);
}

.live-pulse-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff0044;
    display: inline-block;
    box-shadow: 0 0 12px #ff0044;
    animation: livePulseAnim 1.2s infinite ease-in-out;
}

@keyframes livePulseAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

/* Salle DG-Live Pleine Largeur */
.dglive-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
    width: 100%;
}

.dglive-stage-box {
    width: 100%;
    height: 540px;
    background: radial-gradient(circle at center, #171026 0%, #06070d 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 0, 85, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dglive-stage-box video,
.dglive-stage-box iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    background: #000;
}

.dglive-src-btn {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: #e2e6f3;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.dglive-src-btn.active {
    background: linear-gradient(135deg, rgba(255,0,85,0.35), rgba(0,242,254,0.25));
    border-color: var(--neon-cyan);
    color: #fff;
}

@media (max-width: 1024px) {
    .dglive-workspace {
        grid-template-columns: 1fr;
    }
}



