:root{
    --bg:#071225;
    --bg-soft:#0d1a32;
    --card:#101b33;
    --card-2:#142142;
    --line:rgba(255,255,255,.08);
    --line-soft:rgba(255,255,255,.05);
    --text:#eef4ff;
    --muted:#a6b1cb;
    --muted-2:#8d9ab7;
    --blue:#4d8dff;
    --blue-2:#77a9ff;
    --gold:#dca15f;
    --danger:#ff6b81;
    --shadow:0 20px 60px rgba(0,0,0,.35);
    --shadow-soft:0 12px 28px rgba(0,0,0,.22);
    --radius:22px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
    font-family:Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top center, rgba(62,100,197,.18), transparent 30%),
        linear-gradient(180deg, #06101f 0%, #081426 55%, #08111f 100%);
    color:var(--text);
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button,input,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(1240px, calc(100% - 32px));margin:0 auto}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

/* HEADER */

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    backdrop-filter:blur(18px);
    background:rgba(6,16,31,.82);
    border-bottom:1px solid var(--line);
}
.header-shell{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:14px 0 16px;
}
.header-top{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:18px;
    align-items:center;
}
.header-bottom{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:16px;
    align-items:center;
}
.brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}
.brand-mark{
    width:60px;
    height:60px;
    border-radius:18px;
    background:linear-gradient(135deg, rgba(116,168,255,.18), rgba(246,179,109,.16));
    border:1px solid rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 60px;
    overflow:hidden;
}
.brand-logo{
    width:42px;
    height:42px;
    object-fit:contain;
}
.brand-copy{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}
.brand-name{
    font-size:30px;
    font-weight:900;
    line-height:1;
    background:linear-gradient(90deg,#74a8ff,#f6b36d);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.brand-tagline{
    font-size:12px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color:#c5d0eb;
    opacity:.95;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.header-right{
    display:flex;
    align-items:center;
    gap:12px;
}
.search-form{
    width:min(320px, 100%);
}
.search-form input{
    width:100%;
    height:46px;
    border:none;
    outline:none;
    border-radius:999px;
    padding:0 16px;
    background:rgba(255,255,255,.06);
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}
.search-form input::placeholder{color:#b5c1dc}
.menu-toggle{
    display:none;
    width:46px;
    height:46px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    color:#fff;
    font-size:20px;
}
.main-nav{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}
.main-nav a{
    color:#d9e3f8;
    font-weight:700;
    opacity:.92;
}
.main-nav a:hover{color:#fff}
.header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.08);
    font-weight:700;
    transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
    background:linear-gradient(135deg,#cf9655,#e4b071);
    color:#fff;
    box-shadow:0 12px 30px rgba(220,161,95,.25);
}
.btn-dark{
    background:rgba(255,255,255,.04);
    color:#fff;
}

/* GLOBAL */

.site-main{padding:24px 0 56px}
.alert{
    background:#13213d;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    border-radius:16px;
    padding:14px 18px;
    margin-bottom:18px;
}
.empty-card{
    background:linear-gradient(180deg, rgba(17,28,54,.96), rgba(11,19,37,.96));
    border:1px solid var(--line);
    border-radius:20px;
    padding:18px;
    color:var(--muted);
}

/* HOME */

.feed-section{padding-top:10px}
.content-grid{
    display:grid;
    grid-template-columns:minmax(0, 2fr) 320px;
    gap:18px;
}
.section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.section-head h2{
    margin:0 0 4px;
    font-size:19px;
}
.section-head p{
    margin:0;
    color:var(--muted);
    font-size:14px;
}
.section-counter{
    color:#f0bf84;
    font-weight:700;
    white-space:nowrap;
}

.feed-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(150px, 170px));
    gap:12px;
    justify-content:start;
    align-items:start;
}

.post-card{
    width:100%;
    max-width:170px;
    min-height:310px;
    background:linear-gradient(180deg, rgba(18,31,60,.98), rgba(10,18,36,.98));
    border:1px solid rgba(255,255,255,.07);
    border-radius:18px;
    overflow:hidden;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow:var(--shadow-soft);
}
.post-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 34px rgba(0,0,0,.30);
    border-color:rgba(119,169,255,.16);
}
.post-card-link{
    display:flex;
    flex-direction:column;
    height:100%;
}
.post-card-media{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    background:#091224;
    overflow:hidden;
    flex:0 0 auto;
}
.post-card-media::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.18) 100%);
    pointer-events:none;
}
.post-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .28s ease;
}
.post-card:hover .post-card-media img{
    transform:scale(1.03);
}

.post-card-badge-overlay{
    position:absolute;
    top:8px;
    left:8px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:0 8px;
    border-radius:999px;
    background:rgba(9,19,39,.78);
    backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.10);
    color:#ebf3ff;
    font-weight:800;
    font-size:10px;
    box-shadow:0 6px 20px rgba(0,0,0,.25);
}

.post-card-body{
    padding:10px;
    display:flex;
    flex-direction:column;
    gap:8px;
    flex:1 1 auto;
}

.card-topline{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    min-height:12px;
}
.card-category{
    color:#f0bf84;
    font-size:11px;
    font-weight:700;
    letter-spacing:.01em;
}

.post-card-body h3{
    margin:0;
    font-size:14px;
    line-height:1.25;
    font-weight:800;
    min-height:34px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    text-wrap:balance;
}

.post-card-excerpt{
    margin:0;
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
    min-height:32px;
    max-height:32px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.post-card-stats-inline{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
    margin-top:auto;
    padding-top:2px;
}

.stat-pill{
    display:inline-flex;
    align-items:center;
    gap:4px;
    min-height:22px;
    padding:0 7px;
    border-radius:999px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.055);
    color:#dce7ff;
    font-size:11px;
    line-height:1;
    transition:background .15s ease, border-color .15s ease;
}
.post-card:hover .stat-pill{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.08);
}
.stat-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:12px;
    text-align:center;
    opacity:.95;
    font-size:10px;
}

/* SIDEBAR */

.sidebar{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.side-card,
.comments-card,
.detail-card{
    background:linear-gradient(180deg, rgba(17,28,54,.96), rgba(11,19,37,.96));
    border:1px solid var(--line);
    border-radius:22px;
    box-shadow:var(--shadow);
}
.side-card{padding:16px}
.side-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}
.side-card-head h3{
    margin:0;
    font-size:16px;
}

.trend-list,
.comment-preview-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.trend-item{
    display:flex;
    gap:10px;
    align-items:center;
    padding:9px;
    border-radius:14px;
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.04);
    transition:.2s ease;
}
.trend-item:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.04);
}
.trend-thumb{
    width:64px;
    height:64px;
    border-radius:12px;
    overflow:hidden;
    flex:0 0 64px;
    background:#0b1325;
}
.trend-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.trend-copy{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}
.trend-copy strong{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:14px;
}
.trend-copy span{
    color:var(--muted);
    font-size:12px;
}

.random-post{
    display:block;
    overflow:hidden;
    border-radius:16px;
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.04);
}
.random-post-media{
    aspect-ratio:16/10;
    background:#0b1325;
}
.random-post-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.random-post-body{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:5px;
}
.random-post-body strong{
    font-size:14px;
}
.random-post-body span{
    color:var(--muted);
    font-size:12px;
}

.comment-preview{
    display:block;
    padding:12px;
    border-radius:14px;
    background:rgba(255,255,255,.02);
    border:1px solid rgba(255,255,255,.04);
    transition:.2s ease;
}
.comment-preview:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.04);
}
.comment-preview strong{
    display:block;
    margin-bottom:4px;
    font-size:14px;
}
.comment-preview-post{
    display:block;
    color:#f0bf84;
    font-size:12px;
    margin-bottom:6px;
}
.comment-preview p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
}

/* DETAIL */

.detail-page{padding-top:10px}
.detail-grid{
    display:grid;
    grid-template-columns:minmax(0, 2fr) 320px;
    gap:20px;
}
.detail-main{
    min-width:0;
}
.detail-card{padding:22px}
.detail-title-wrap{
    display:flex;
    flex-direction:column;
    gap:12px;
    min-width:0;
}
.detail-head h1{
    margin:0;
    font-size:clamp(2rem, 3vw, 3rem);
    line-height:1.02;
}
.detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    color:var(--muted);
    font-size:14px;
}
.detail-media-wrap{margin-top:18px}
.detail-media{
    width:100%;
    max-height:460px;
    object-fit:contain;
    background:#091224;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.06);
}
.detail-video{
    min-height:340px;
}
.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}
.inline-form{margin:0}
.inline-form button{appearance:none}
.action-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    padding:0 14px;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.09);
    color:#f5f8ff;
    font-weight:700;
    transition:.2s ease;
}
.action-chip:hover{
    background:rgba(255,255,255,.09);
    transform:translateY(-1px);
}
.action-chip.active{
    background:rgba(220,161,95,.16);
    border-color:rgba(220,161,95,.38);
    color:#ffd4a5;
}
.detail-description{
    margin-top:18px;
    color:var(--muted);
    line-height:1.75;
    font-size:15px;
}

.comments-card{
    margin-top:20px;
    padding:22px;
}
.comment-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:24px;
}
.comment-form textarea{
    width:100%;
    min-height:120px;
    border:none;
    outline:none;
    resize:vertical;
    border-radius:18px;
    padding:16px;
    background:#0b152b;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}
.ajax-comment-error{
    margin:-8px 0 16px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,107,129,.12);
    border:1px solid rgba(255,107,129,.28);
    color:#ffd3da;
    font-size:14px;
}
.comment-emoji-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}
.emoji-btn{
    min-width:36px;
    height:36px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    transition:.15s ease;
}
.emoji-btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.10);
}
.comment-submit-btn{
    min-height:38px !important;
    height:38px;
    padding:0 14px !important;
    font-size:14px;
    border-radius:12px;
    align-self:flex-start;
}
.comment-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.comment-item{
    display:flex;
    gap:14px;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
}
.comment-avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    flex:0 0 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    background:linear-gradient(135deg,#4d8dff,#dca15f);
}
.comment-body{flex:1}
.comment-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
    color:var(--muted);
    font-size:13px;
    flex-wrap:wrap;
}
.comment-body p{margin:0;line-height:1.6}
.comment-reactions{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
}
.comment-reaction-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:32px;
    padding:0 11px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#edf3ff;
    font-size:13px;
    cursor:pointer;
    transition:.15s ease;
}
.comment-reaction-btn:hover{
    background:rgba(255,255,255,.09);
}
.comment-reaction-btn.active{
    background:rgba(77,141,255,.16);
    border-color:rgba(77,141,255,.34);
    color:#cfe0ff;
}
.comment-reaction-btn.dislike.active{
    background:rgba(255,107,129,.14);
    border-color:rgba(255,107,129,.30);
    color:#ffd2da;
}

.login-notice{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px;
    margin-bottom:20px;
    border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.05);
}

/* LIGHTBOX */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.84);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:2000;
    padding:24px;
}
.lightbox.show{display:flex}
.lightbox-box{
    position:relative;
    width:min(720px, 82vw);
    max-width:720px;
    max-height:78vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    border-radius:22px;
    background:rgba(11,18,37,.96);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 25px 80px rgba(0,0,0,.5);
}
.lightbox img{
    max-width:100%;
    max-height:60vh;
    object-fit:contain;
    border-radius:14px;
    background:#fff;
}
.lightbox-close{
    position:absolute;
    top:10px;
    right:12px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:26px;
    line-height:1;
}

/* RESPONSIVE */

@media (max-width: 1100px){
    .content-grid,
    .detail-grid{
        grid-template-columns:1fr;
    }

    .header-bottom{
        grid-template-columns:1fr;
    }

    .header-actions{
        justify-content:flex-start;
    }
}

@media (max-width: 860px){
    .menu-toggle{
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    .header-top{
        grid-template-columns:1fr auto;
    }

    .header-bottom{
        display:none;
        padding-top:4px;
    }

    .header-bottom.is-open{
        display:grid;
    }

    .main-nav{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .header-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .header-actions .btn{
        width:100%;
    }

    .search-form{
        width:100%;
    }

    .header-right{
        width:100%;
        justify-content:flex-end;
    }

    .feed-grid{
        grid-template-columns:repeat(auto-fill, minmax(140px, 158px));
    }

    .post-card{
        max-width:158px;
        min-height:295px;
    }
}

@media (max-width: 760px){
    .brand{
        align-items:flex-start;
    }

    .brand-copy{
        align-items:flex-start;
    }

    .brand-name{
        font-size:26px;
    }

    .brand-tagline{
        white-space:normal;
        overflow:visible;
        text-overflow:clip;
    }

    .detail-card,
    .comments-card,
    .side-card{
        padding-left:16px;
        padding-right:16px;
    }

    .detail-media{
        max-height:320px;
    }

    .lightbox-box{
        width:min(92vw, 520px);
        padding:14px;
    }

    .lightbox img{
        max-height:46vh;
    }

    .login-notice{
        flex-direction:column;
        align-items:flex-start;
    }

    .feed-grid{
        grid-template-columns:repeat(auto-fill, minmax(132px, 148px));
        gap:10px;
    }

    .post-card{
        max-width:148px;
        min-height:282px;
        border-radius:16px;
    }

    .post-card-body{
        padding:9px;
    }

    .post-card-body h3{
        font-size:13px;
        min-height:32px;
    }

    .post-card-excerpt{
        font-size:10px;
        min-height:29px;
        max-height:29px;
    }

    .stat-pill{
        font-size:10px;
        min-height:20px;
        padding:0 6px;
    }

    .stat-icon{
        width:11px;
        font-size:9px;
    }

    .post-card-badge-overlay{
        top:6px;
        left:6px;
        font-size:9px;
        min-height:20px;
        padding:0 7px;
    }
}
/* ===== COMMENTAIRES : AMELIORATION COMPLETE ===== */

.comment-composer{
    background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    border:1px solid rgba(255,255,255,.06);
    border-radius:20px;
    padding:18px;
}

.comment-composer-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    margin-bottom:14px;
    flex-wrap:wrap;
}

.comment-composer-top h3{
    margin:0 0 4px;
    font-size:17px;
    color:#fff;
}

.comment-composer-top p{
    margin:0;
    font-size:13px;
    color:var(--muted);
}

.composer-shortcut{
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:0 10px;
    border-radius:999px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    color:#c7d3ee;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.comment-emoji-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:14px;
}

.emoji-btn{
    width:38px;
    height:38px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    transition:.18s ease;
    box-shadow:0 6px 16px rgba(0,0,0,.14);
}

.emoji-btn:hover{
    transform:translateY(-2px);
    background:rgba(255,255,255,.09);
    border-color:rgba(255,255,255,.12);
}

.comment-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:22px;
}

.comment-form textarea{
    width:100%;
    min-height:110px;
    max-height:260px;
    resize:none;
    border:none;
    outline:none;
    border-radius:18px;
    padding:16px 16px;
    background:#091731;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    line-height:1.6;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}

.comment-form textarea::placeholder{
    color:#8fa0c4;
}

.comment-form textarea:focus{
    border-color:rgba(119,169,255,.32);
    box-shadow:0 0 0 4px rgba(77,141,255,.08);
}

.comment-form-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-top:2px;
}

.comment-char-count{
    font-size:12px;
    color:#9eaed0;
    font-weight:600;
}

.comment-submit-btn{
    min-height:38px !important;
    height:38px;
    padding:0 16px !important;
    font-size:14px;
    border-radius:12px;
    align-self:flex-start;
    box-shadow:0 12px 30px rgba(220,161,95,.18);
}

.ajax-comment-error{
    margin:-6px 0 16px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(255,107,129,.12);
    border:1px solid rgba(255,107,129,.28);
    color:#ffd3da;
    font-size:14px;
}

.comment-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.comment-item{
    display:flex;
    gap:14px;
    padding:14px;
    border-radius:18px;
    background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.06);
    transition:.18s ease;
}

.comment-item:hover{
    transform:translateY(-2px);
    border-color:rgba(119,169,255,.14);
    box-shadow:0 16px 26px rgba(0,0,0,.14);
}

.comment-avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    flex:0 0 44px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:18px;
    color:#fff;
    background:linear-gradient(135deg, #76a8ff, #d8a26b);
    box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.comment-body{
    flex:1;
    min-width:0;
}

.comment-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
    flex-wrap:wrap;
}

.comment-userline{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.comment-userline strong{
    font-size:15px;
    color:#dbe7ff;
}

.comment-user-badge{
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:0 8px;
    border-radius:999px;
    background:rgba(77,141,255,.14);
    border:1px solid rgba(77,141,255,.25);
    color:#cfe0ff;
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
}

.comment-date{
    color:#a9b7d4;
    font-size:13px;
    white-space:nowrap;
}

.comment-content{
    color:#fff;
    line-height:1.65;
    font-size:15px;
    word-break:break-word;
}

.comment-reactions{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    flex-wrap:wrap;
}

.comment-reaction-btn{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:34px;
    padding:0 12px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.07);
    color:#edf3ff;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:.18s ease;
}

.comment-reaction-btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.08);
}

.comment-reaction-btn .reaction-icon{
    font-size:14px;
    line-height:1;
}

.comment-reaction-btn .reaction-text{
    opacity:.95;
}

.like-btn.active{
    background:rgba(77,141,255,.16);
    border-color:rgba(77,141,255,.34);
    color:#cfe0ff;
    box-shadow:0 8px 20px rgba(77,141,255,.12);
}

.dislike-btn.active{
    background:rgba(255,107,129,.14);
    border-color:rgba(255,107,129,.30);
    color:#ffd2da;
    box-shadow:0 8px 20px rgba(255,107,129,.10);
}

.comment-item-fresh{
    animation:commentFlash 1.6s ease;
}

@keyframes commentFlash{
    0%{
        transform:translateY(-6px);
        box-shadow:0 0 0 0 rgba(77,141,255,.0);
        border-color:rgba(119,169,255,.10);
    }
    30%{
        transform:translateY(0);
        box-shadow:0 0 0 5px rgba(77,141,255,.08);
        border-color:rgba(119,169,255,.30);
    }
    100%{
        box-shadow:0 0 0 0 rgba(77,141,255,0);
        border-color:rgba(255,255,255,.06);
    }
}

@media (max-width: 760px){
    .composer-shortcut{
        display:none;
    }

    .comment-form-footer{
        align-items:flex-start;
        flex-direction:column;
    }

    .comment-reaction-btn .reaction-text{
        display:none;
    }

    .comment-item{
        padding:12px;
    }

    .comment-avatar{
        width:40px;
        height:40px;
        flex-basis:40px;
        font-size:16px;
    }

    .comment-content{
        font-size:14px;
    }
}
/* ===== PACK A : REPONSES / EDITION / SUPPRESSION / TRI / PAGINATION ===== */

.comments-toolbar{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin:0 0 16px;
}

.comments-sort-form{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.comments-sort-form label{
    color:#cfe0ff;
    font-size:13px;
    font-weight:700;
}

.comments-sort-form select{
    height:38px;
    border:none;
    outline:none;
    border-radius:12px;
    padding:0 12px;
    background:#0b1730;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}

.comment-actions-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-top:12px;
}

.comment-tools{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.comment-tool-btn{
    min-height:30px;
    padding:0 10px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#d9e6ff;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:.16s ease;
}

.comment-tool-btn:hover{
    background:rgba(255,255,255,.10);
}

.comment-tool-btn.danger{
    color:#ffd7df;
    border-color:rgba(255,107,129,.20);
    background:rgba(255,107,129,.08);
}

.comment-tool-btn.danger:hover{
    background:rgba(255,107,129,.14);
}

.comment-reply-box,
.comment-edit-box{
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}

.reply-form,
.edit-form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.reply-form textarea,
.edit-form textarea{
    width:100%;
    min-height:86px;
    resize:none;
    border:none;
    outline:none;
    border-radius:14px;
    padding:12px 14px;
    background:#091731;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    line-height:1.6;
}

.reply-form textarea:focus,
.edit-form textarea:focus{
    border-color:rgba(119,169,255,.32);
    box-shadow:0 0 0 4px rgba(77,141,255,.08);
}

.reply-form-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.reply-submit-btn{
    min-height:36px !important;
    height:36px;
    padding:0 14px !important;
    border-radius:12px;
    font-size:13px;
}

.reply-cancel-btn{
    min-height:36px !important;
    height:36px;
    padding:0 14px !important;
    border-radius:12px;
    font-size:13px;
}

.comment-replies{
    margin-top:14px;
    padding-left:18px;
    border-left:2px solid rgba(255,255,255,.06);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.comment-reply{
    background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.015));
}

.comments-pagination{
    margin-top:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}

.pagination-pages{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.pagination-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:38px;
    padding:0 12px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#edf4ff;
    font-size:13px;
    font-weight:700;
    transition:.16s ease;
}

.pagination-btn:hover{
    background:rgba(255,255,255,.10);
}

.pagination-btn.active{
    background:rgba(77,141,255,.16);
    border-color:rgba(77,141,255,.30);
    color:#d9e6ff;
}

@media (max-width: 760px){
    .comments-toolbar{
        justify-content:flex-start;
    }

    .comment-actions-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .comment-replies{
        padding-left:12px;
    }

    .comments-pagination{
        align-items:flex-start;
        flex-direction:column;
    }
}
/* ===== PACK COMMENTAIRES AVANCE ===== */

.comment-author-badge{
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:0 8px;
    border-radius:999px;
    background:rgba(220,161,95,.14);
    border:1px solid rgba(220,161,95,.26);
    color:#ffd5a2;
    font-size:11px;
    font-weight:800;
    letter-spacing:.02em;
}

.comments-toolbar{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin:0 0 16px;
}

.comments-sort-form{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.comments-sort-form label{
    color:#cfe0ff;
    font-size:13px;
    font-weight:700;
}

.comments-sort-form select{
    height:38px;
    border:none;
    outline:none;
    border-radius:12px;
    padding:0 12px;
    background:#0b1730;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}

.comment-actions-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-top:12px;
}

.comment-tools{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.comment-tool-btn{
    min-height:30px;
    padding:0 10px;
    border:none;
    border-radius:999px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#d9e6ff;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:.16s ease;
}

.comment-tool-btn:hover{
    background:rgba(255,255,255,.10);
}

.comment-tool-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.comment-tool-btn.danger{
    color:#ffd7df;
    border-color:rgba(255,107,129,.20);
    background:rgba(255,107,129,.08);
}

.comment-tool-btn.danger:hover{
    background:rgba(255,107,129,.14);
}

.comment-reply-box,
.comment-edit-box{
    margin-top:12px;
    padding:12px;
    border-radius:16px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
}

.reply-form,
.edit-form{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.reply-form textarea,
.edit-form textarea{
    width:100%;
    min-height:86px;
    resize:none;
    border:none;
    outline:none;
    border-radius:14px;
    padding:12px 14px;
    background:#091731;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
    line-height:1.6;
}

.reply-form textarea:focus,
.edit-form textarea:focus{
    border-color:rgba(119,169,255,.32);
    box-shadow:0 0 0 4px rgba(77,141,255,.08);
}

.reply-form-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.reply-submit-btn{
    min-height:36px !important;
    height:36px;
    padding:0 14px !important;
    border-radius:12px;
    font-size:13px;
}

.reply-cancel-btn{
    min-height:36px !important;
    height:36px;
    padding:0 14px !important;
    border-radius:12px;
    font-size:13px;
}

.comment-replies{
    margin-top:14px;
    padding-left:18px;
    border-left:2px solid rgba(255,255,255,.06);
    display:flex;
    flex-direction:column;
    gap:12px;
}

.comment-reply{
    background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.015));
}

.comments-pagination{
    margin-top:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}

.pagination-pages{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.pagination-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    min-height:38px;
    padding:0 12px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    color:#edf4ff;
    font-size:13px;
    font-weight:700;
    transition:.16s ease;
}

.pagination-btn:hover{
    background:rgba(255,255,255,.10);
}

.pagination-btn.active{
    background:rgba(77,141,255,.16);
    border-color:rgba(77,141,255,.30);
    color:#d9e6ff;
}

.toast-container{
    position:fixed;
    top:18px;
    right:18px;
    z-index:4000;
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}

.toast-item{
    min-width:220px;
    max-width:320px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(14,24,48,.96);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    box-shadow:0 20px 40px rgba(0,0,0,.24);
    transform:translateY(-10px);
    opacity:0;
    transition:.22s ease;
    font-size:14px;
    font-weight:600;
}

.toast-item.show{
    transform:translateY(0);
    opacity:1;
}

.toast-item.success{
    border-color:rgba(77,141,255,.22);
}

.toast-item.error{
    border-color:rgba(255,107,129,.22);
}

@media (max-width: 760px){
    .comments-toolbar{
        justify-content:flex-start;
    }

    .comment-actions-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .comment-replies{
        padding-left:12px;
    }

    .comments-pagination{
        align-items:flex-start;
        flex-direction:column;
    }

    .toast-container{
        top:12px;
        right:12px;
        left:12px;
    }

    .toast-item{
        min-width:auto;
        max-width:none;
    }
}
/* ===== MODERATION / RESPONSIVE / TOAST / NIVEAUX ===== */

.depth-1 { margin-left: 0; }
.depth-2 { margin-left: 6px; }
.depth-3 { margin-left: 12px; }
.depth-4 { margin-left: 18px; }

.comment-tool-btn[disabled]{
    opacity:.55;
    cursor:not-allowed;
}

.toast-container{
    position:fixed;
    top:18px;
    right:18px;
    z-index:4000;
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}

.toast-item{
    min-width:220px;
    max-width:320px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(14,24,48,.96);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    box-shadow:0 20px 40px rgba(0,0,0,.24);
    transform:translateY(-10px);
    opacity:0;
    transition:.22s ease;
    font-size:14px;
    font-weight:600;
}

.toast-item.show{
    transform:translateY(0);
    opacity:1;
}

.toast-item.success{
    border-color:rgba(77,141,255,.22);
}

.toast-item.error{
    border-color:rgba(255,107,129,.22);
}

@media (max-width: 1024px){
    .content-grid,
    .detail-grid{
        grid-template-columns:1fr;
    }

    .sidebar,
    .detail-sidebar{
        order:2;
    }

    .detail-main,
    .content-main{
        order:1;
    }
}

@media (max-width: 760px){
    .container{
        width:min(100% - 20px, 1240px);
    }

    .detail-card,
    .comments-card,
    .side-card{
        padding:16px;
        border-radius:18px;
    }

    .detail-head h1{
        font-size:1.8rem;
        line-height:1.1;
    }

    .detail-meta{
        gap:10px;
        font-size:13px;
    }

    .detail-actions{
        gap:8px;
    }

    .action-chip{
        min-height:36px;
        padding:0 12px;
        font-size:13px;
    }

    .comment-item{
        gap:10px;
        padding:12px;
    }

    .comment-avatar{
        width:38px;
        height:38px;
        flex:0 0 38px;
        font-size:15px;
    }

    .comment-content{
        font-size:14px;
        line-height:1.55;
    }

    .comment-actions-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .comment-tools{
        width:100%;
    }

    .comment-tool-btn{
        min-height:28px;
        font-size:11px;
        padding:0 9px;
    }

    .comment-replies{
        padding-left:10px;
        gap:10px;
    }

    .depth-2,
    .depth-3,
    .depth-4{
        margin-left:0;
    }

    .comments-pagination{
        align-items:flex-start;
        flex-direction:column;
    }

    .pagination-pages{
        gap:6px;
    }

    .pagination-btn{
        min-width:34px;
        min-height:34px;
        font-size:12px;
        padding:0 10px;
    }

    .comment-form textarea,
    .reply-form textarea,
    .edit-form textarea{
        font-size:16px;
    }

    .comment-form-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .toast-container{
        top:12px;
        right:12px;
        left:12px;
    }

    .toast-item{
        min-width:auto;
        max-width:none;
    }
}

@media (max-width: 480px){
    .brand-name{
        font-size:24px;
    }

    .brand-tagline{
        font-size:11px;
    }

    .search-form input{
        height:42px;
    }

    .comment-emoji-toolbar{
        gap:6px;
    }

    .emoji-btn{
        width:34px;
        height:34px;
        font-size:16px;
        border-radius:10px;
    }

    .comment-reaction-btn .reaction-text{
        display:none;
    }

    .comment-reaction-btn{
        min-height:30px;
        padding:0 10px;
        font-size:12px;
    }

    .composer-shortcut{
        display:none;
    }
}
/* ===== CAPTCHA / ANTI-SPAM / NOTIFICATIONS / RESPONSIVE ===== */

.spam-trap{
    position:absolute !important;
    left:-9999px !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.captcha-row{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:10px;
}

.captcha-row label{
    color:#cfe0ff;
    font-size:13px;
    font-weight:700;
}

.captcha-input{
    width:140px;
    height:38px;
    border:none;
    outline:none;
    border-radius:12px;
    padding:0 12px;
    background:#0b1730;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}

.depth-1 { margin-left: 0; }
.depth-2 { margin-left: 6px; }
.depth-3 { margin-left: 12px; }
.depth-4 { margin-left: 18px; }

.comment-tool-btn[disabled]{
    opacity:.55;
    cursor:not-allowed;
}

.toast-container{
    position:fixed;
    top:18px;
    right:18px;
    z-index:4000;
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}

.toast-item{
    min-width:220px;
    max-width:320px;
    padding:12px 14px;
    border-radius:14px;
    background:rgba(14,24,48,.96);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    box-shadow:0 20px 40px rgba(0,0,0,.24);
    transform:translateY(-10px);
    opacity:0;
    transition:.22s ease;
    font-size:14px;
    font-weight:600;
}

.toast-item.show{
    transform:translateY(0);
    opacity:1;
}

.toast-item.success{
    border-color:rgba(77,141,255,.22);
}

.toast-item.error{
    border-color:rgba(255,107,129,.22);
}

@media (max-width: 1024px){
    .content-grid,
    .detail-grid{
        grid-template-columns:1fr;
    }

    .sidebar,
    .detail-sidebar{
        order:2;
    }

    .detail-main,
    .content-main{
        order:1;
    }
}

@media (max-width: 760px){
    .container{
        width:min(100% - 20px, 1240px);
    }

    .detail-card,
    .comments-card,
    .side-card{
        padding:16px;
        border-radius:18px;
    }

    .detail-head h1{
        font-size:1.8rem;
        line-height:1.1;
    }

    .detail-meta{
        gap:10px;
        font-size:13px;
    }

    .detail-actions{
        gap:8px;
    }

    .action-chip{
        min-height:36px;
        padding:0 12px;
        font-size:13px;
    }

    .comment-item{
        gap:10px;
        padding:12px;
    }

    .comment-avatar{
        width:38px;
        height:38px;
        flex:0 0 38px;
        font-size:15px;
    }

    .comment-content{
        font-size:14px;
        line-height:1.55;
    }

    .comment-actions-row{
        align-items:flex-start;
        flex-direction:column;
    }

    .comment-tools{
        width:100%;
    }

    .comment-tool-btn{
        min-height:28px;
        font-size:11px;
        padding:0 9px;
    }

    .comment-replies{
        padding-left:10px;
        gap:10px;
    }

    .depth-2,
    .depth-3,
    .depth-4{
        margin-left:0;
    }

    .comments-pagination{
        align-items:flex-start;
        flex-direction:column;
    }

    .pagination-pages{
        gap:6px;
    }

    .pagination-btn{
        min-width:34px;
        min-height:34px;
        font-size:12px;
        padding:0 10px;
    }

    .comment-form textarea,
    .reply-form textarea,
    .edit-form textarea{
        font-size:16px;
    }

    .comment-form-footer{
        flex-direction:column;
        align-items:flex-start;
    }

    .toast-container{
        top:12px;
        right:12px;
        left:12px;
    }

    .toast-item{
        min-width:auto;
        max-width:none;
    }

    .captcha-input{
        width:100%;
        max-width:180px;
    }
}

@media (max-width: 480px){
    .brand-name{
        font-size:24px;
    }

    .brand-tagline{
        font-size:11px;
    }

    .search-form input{
        height:42px;
    }

    .comment-emoji-toolbar{
        gap:6px;
    }

    .emoji-btn{
        width:34px;
        height:34px;
        font-size:16px;
        border-radius:10px;
    }

    .comment-reaction-btn .reaction-text{
        display:none;
    }

    .comment-reaction-btn{
        min-height:30px;
        padding:0 10px;
        font-size:12px;
    }

    .composer-shortcut{
        display:none;
    }
}
/* ===== BADGE NOTIFICATIONS ===== */

.nav-notification-link,
.notif-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.notif-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:#ff4d6d;
    color:#fff;
    font-size:11px;
    font-weight:800;
    line-height:1;
    box-shadow:0 6px 16px rgba(255,77,109,.28);
}

@media (max-width: 760px){
    .notif-badge{
        min-width:18px;
        height:18px;
        font-size:10px;
        padding:0 5px;
    }
}
/* ===== NOTIFICATIONS LUES / NON LUES ===== */

.notif-badge.is-hidden{
    display:none;
}

.notification-unread{
    border-color:rgba(220,161,95,.22);
    box-shadow:0 10px 24px rgba(220,161,95,.08);
}

.notification-new-badge{
    background:rgba(220,161,95,.14);
    border-color:rgba(220,161,95,.26);
    color:#ffd5a2;
}
/* ===== BADGES + POINT NOTIFICATIONS ===== */

.notif-badge.is-hidden,
.notif-dot.is-hidden{
    display:none;
}

.nav-notification-link,
.notif-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.notif-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:#ff4d6d;
    color:#fff;
    font-size:11px;
    font-weight:800;
    line-height:1;
    box-shadow:0 6px 16px rgba(255,77,109,.28);
}

.notif-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ff4d6d;
    box-shadow:0 0 0 rgba(255,77,109,.55);
    animation:notifPulse 1.6s infinite;
}

@keyframes notifPulse{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(255,77,109,.55);
    }
    70%{
        transform:scale(1.1);
        box-shadow:0 0 0 10px rgba(255,77,109,0);
    }
    100%{
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(255,77,109,0);
    }
}

.notification-unread{
    border-color:rgba(220,161,95,.22);
    box-shadow:0 10px 24px rgba(220,161,95,.08);
}

.notification-new-badge{
    background:rgba(220,161,95,.14);
    border-color:rgba(220,161,95,.26);
    color:#ffd5a2;
}

@media (max-width: 760px){
    .notif-badge{
        min-width:18px;
        height:18px;
        font-size:10px;
        padding:0 5px;
    }

    .notif-dot{
        width:8px;
        height:8px;
    }
}
/* ===== DROPDOWN NOTIFICATIONS ===== */

.header-notif-wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
}

.notif-trigger{
    cursor:pointer;
}

.notif-dropdown{
    position:absolute;
    top:calc(100% + 12px);
    left:0;
    width:360px;
    max-width:min(92vw, 360px);
    border-radius:18px;
    background:rgba(7,18,40,.98);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
    z-index:2500;
    overflow:hidden;
}

.notif-dropdown-right{
    right:0;
    left:auto;
}

.notif-dropdown-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.notif-dropdown-head strong{
    color:#fff;
    font-size:15px;
}

.notif-dropdown-link{
    color:#dca15f;
    font-size:13px;
    font-weight:700;
}

.notif-dropdown-list{
    max-height:360px;
    overflow:auto;
    display:flex;
    flex-direction:column;
}

.notif-dropdown-item{
    width:100%;
    display:flex;
    align-items:flex-start;
    gap:12px;
    text-align:left;
    padding:14px 16px;
    background:transparent;
    border:none;
    border-bottom:1px solid rgba(255,255,255,.05);
    color:#fff;
    cursor:pointer;
    transition:.16s ease;
}

.notif-dropdown-item:hover{
    background:rgba(255,255,255,.05);
}

.notif-dropdown-item.unread{
    background:rgba(220,161,95,.06);
}

.notif-dropdown-avatar{
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:14px;
    color:#fff;
    background:linear-gradient(135deg, #8cb8ff, #dca15f);
}

.notif-dropdown-content{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
    flex:1;
}

.notif-dropdown-top{
    display:flex;
    align-items:center;
    gap:8px;
}

.notif-dropdown-text{
    color:#d9e6ff;
    font-size:13px;
    line-height:1.45;
    white-space:normal;
    word-break:break-word;
}

.notif-inline-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#ff4d6d;
    display:inline-block;
    box-shadow:0 0 0 rgba(255,77,109,.55);
    animation:notifPulse 1.6s infinite;
}

.notif-dropdown-empty{
    padding:18px 16px;
    color:#cfe0ff;
    font-size:13px;
}

.notifications-retention-note{
    margin-top:6px;
    color:#9fb7dd;
    font-size:13px;
}

@media (max-width: 760px){
    .notif-dropdown{
        width:min(92vw, 340px);
    }
}


.comment-item-anchor {
    scroll-margin-top: 110px;
}


/* ===== HEADER REDESIGN ===== */
.header-topline{
    display:grid;
    grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
}
.brand-mark{
    position:relative;
    background:linear-gradient(135deg, rgba(77,141,255,.28), rgba(220,161,95,.28));
    box-shadow:0 18px 34px rgba(8,18,37,.38);
}
.brand-mark-text{
    font-weight:900;
    font-size:24px;
    letter-spacing:-.06em;
    color:#fff;
}
.brand-copy{gap:6px;}
.brand-name{font-size:32px;}
.brand-tagline{
    font-size:11px;
    letter-spacing:.16em;
    text-transform:uppercase;
    color:#94a8cc;
}
.header-slogan-wrap{
    min-width:0;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    border-radius:18px;
    background:linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:var(--shadow-soft);
}
.header-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 12px;
    border-radius:999px;
    background:rgba(220,161,95,.16);
    border:1px solid rgba(220,161,95,.28);
    color:#ffd8b1;
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}
.header-slogan{
    margin:0;
    color:#eef4ff;
    font-size:15px;
    font-weight:700;
    letter-spacing:.01em;
    min-height:1.3em;
}
.header-bottom{
    grid-template-columns:minmax(260px, 1fr) auto;
    gap:16px;
    align-items:center;
}
.header-actions{
    justify-content:flex-end;
    gap:10px;
}
.search-form{width:100%;}
.search-form input{
    background:rgba(255,255,255,.045);
    border-color:rgba(255,255,255,.07);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.btn-ghost{
    background:transparent;
    color:#dce8ff;
}
.btn-ghost:hover{background:rgba(255,255,255,.04);}
.btn-notif{position:relative;}

/* ===== MEMBER DASHBOARD REDESIGN ===== */
.member-dashboard{padding-top:10px;}
.member-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:20px;
    align-items:start;
}
.member-panel{
    background:linear-gradient(180deg, rgba(16,27,51,.96), rgba(10,17,31,.94));
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    box-shadow:var(--shadow);
}
.member-sidebar{padding:20px; position:sticky; top:130px;}
.member-profile{display:grid; gap:18px;}
.member-profile-top{display:flex; gap:14px; align-items:center;}
.member-avatar{
    width:78px; height:78px; border-radius:22px; overflow:hidden; flex:0 0 78px;
    background:linear-gradient(135deg, rgba(77,141,255,.28), rgba(220,161,95,.24));
    border:1px solid rgba(255,255,255,.1);
    display:flex; align-items:center; justify-content:center;
    box-shadow:var(--shadow-soft);
}
.member-avatar img{width:100%; height:100%; object-fit:cover;}
.member-avatar-fallback{font-size:28px; font-weight:900; color:#fff;}
.member-name{margin:0 0 4px; font-size:24px; font-weight:900;}
.member-subtitle{margin:0; color:var(--muted); font-size:14px;}
.member-badges{display:flex; flex-wrap:wrap; gap:8px;}
.member-badge{
    display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:0 12px; border-radius:999px;
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); color:#d7e5ff; font-size:12px; font-weight:800;
}
.member-badge.is-accent{background:rgba(220,161,95,.15); border-color:rgba(220,161,95,.25); color:#ffd8b1;}
.member-stats-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px;}
.member-stat-card{
    padding:14px; border-radius:18px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06);
}
.member-stat-card strong{display:block; font-size:24px; margin-bottom:4px;}
.member-stat-card span{color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em;}
.member-menu{display:grid; gap:8px;}
.member-menu a{
    display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:16px; color:#dbe6ff;
    background:rgba(255,255,255,.02); border:1px solid transparent; font-weight:800;
}
.member-menu a:hover,.member-menu a.is-active{background:rgba(77,141,255,.12); border-color:rgba(77,141,255,.18); color:#fff;}
.member-menu-dot{width:9px; height:9px; border-radius:50%; background:currentColor; opacity:.9; flex:0 0 9px;}
.member-content{display:grid; gap:20px;}
.member-hero{
    padding:24px; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:18px;
    background:linear-gradient(135deg, rgba(220,161,95,.95), rgba(201,121,70,.98));
    color:#fff;
}
.member-hero-copy h1{margin:0 0 10px; font-size:clamp(30px, 4vw, 44px); line-height:1.02; letter-spacing:-.05em;}
.member-hero-copy p{margin:0; max-width:620px; color:rgba(255,255,255,.94); line-height:1.6;}
.member-hero-actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:18px;}
.member-hero-actions .btn-light{background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.22);}
.member-hero-spotlight{
    padding:16px; border-radius:20px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); box-shadow:0 12px 24px rgba(0,0,0,.12);
}
.member-spotlight-label{display:inline-flex; min-height:30px; align-items:center; padding:0 10px; border-radius:999px; background:rgba(6,16,31,.18); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;}
.member-spotlight-title{margin:12px 0 8px; font-size:20px; font-weight:900; line-height:1.15;}
.member-spotlight-text{margin:0 0 14px; color:rgba(255,255,255,.92); line-height:1.5; font-size:14px;}
.member-spotlight-meta{display:flex; flex-wrap:wrap; gap:8px;}
.member-spotlight-meta span{display:inline-flex; align-items:center; min-height:32px; padding:0 10px; border-radius:999px; background:rgba(6,16,31,.12); font-size:12px; font-weight:800;}
.member-section{padding:0;}
.member-section-head{display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding:20px 20px 0;}
.member-section-head h2{margin:0; font-size:20px;}
.member-section-head p{margin:6px 0 0; color:var(--muted); font-size:14px;}
.member-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; padding:20px;}

#member-overview,
#member-favorites,
#member-likes,
#member-comments{
    scroll-margin-top: 124px;
}
.member-card{
    background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:20px; overflow:hidden; box-shadow:var(--shadow-soft);
}
.member-card-head{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:16px 16px 0;}
.member-card-head h3{margin:0; font-size:18px;}
.member-card-head span{color:var(--muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;}
.member-card-body{padding:16px; display:grid; gap:12px;}
.member-list-item{
    display:grid; gap:8px; padding:14px; border-radius:16px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06);
}
.member-list-item:hover{transform:translateY(-1px); border-color:rgba(220,161,95,.18);}
.member-list-item strong{font-size:15px; line-height:1.35;}
.member-list-item p{margin:0; color:var(--muted); line-height:1.5; font-size:14px;}
.member-list-meta{display:flex; flex-wrap:wrap; gap:8px; color:#d6e3ff; font-size:12px; font-weight:800;}
.member-list-meta span{display:inline-flex; align-items:center; gap:6px;}
.member-empty{padding:14px; border-radius:16px; background:rgba(255,255,255,.03); border:1px dashed rgba(255,255,255,.1); color:var(--muted);}
.member-wide{grid-column:1 / -1;}
.member-suggestion-grid{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px;}
.member-suggestion{padding:16px; border-radius:18px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06);}
.member-suggestion h4{margin:0 0 8px; font-size:16px;}
.member-suggestion p{margin:0 0 10px; color:var(--muted); font-size:14px; line-height:1.5;}
.member-suggestion a{color:#ffd7af; font-weight:800;}

@media (max-width: 1100px){
    .member-layout{grid-template-columns:1fr;}
    .member-sidebar{position:static; top:auto;}
    .member-hero{grid-template-columns:1fr;}
}

@media (max-width: 860px){
    .header-topline{grid-template-columns:minmax(0,1fr) auto;}
    .header-slogan-wrap{grid-column:1 / -1; order:3;}
    .header-bottom{grid-template-columns:1fr;}
    .header-actions{justify-content:flex-start;}
    .member-grid{grid-template-columns:1fr;}
    .member-suggestion-grid{grid-template-columns:1fr;}
}

@media (max-width: 640px){
    .brand-name{font-size:28px;}
    .brand-tagline{white-space:normal;}
    .member-stats-grid{grid-template-columns:1fr 1fr;}
    .member-hero{padding:20px;}
    .member-hero-actions .btn{width:100%;}
}


/* ===== PREMIUM PASS : HOME + HEADER + MEMBER ===== */
.brand-logo-only{display:flex; align-items:center;}
.brand-logo-full{height:58px; width:auto; display:block; object-fit:contain; filter:drop-shadow(0 10px 22px rgba(0,0,0,.28));}
.header-slogan-bar{justify-content:center; min-height:42px; padding:10px 18px; background:linear-gradient(90deg, rgba(255,255,255,.04), rgba(77,141,255,.05), rgba(255,255,255,.03));}
.header-slogan{font-size:16px; text-align:center;}
.header-actions .btn{min-width:120px;}
.header-actions .btn-primary{background:linear-gradient(135deg,#d8a25f,#efbd79);}

.home-intro-card{
    display:grid; grid-template-columns:minmax(0,1.5fr) minmax(260px,.8fr); gap:18px;
    margin-bottom:20px; padding:22px; border-radius:24px; overflow:hidden;
    background:linear-gradient(135deg, rgba(14,25,49,.96), rgba(9,18,35,.96));
    border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow);
    position:relative;
}
.home-intro-card::before{
    content:""; position:absolute; inset:auto auto -70px -40px; width:280px; height:280px;
    background:radial-gradient(circle, rgba(77,141,255,.18), transparent 68%); pointer-events:none;
}
.home-intro-card::after{
    content:""; position:absolute; inset:-80px -80px auto auto; width:260px; height:260px;
    background:radial-gradient(circle, rgba(220,161,95,.14), transparent 68%); pointer-events:none;
}
.home-intro-copy,.home-intro-stats{position:relative; z-index:1;}
.home-intro-kicker{display:inline-flex; align-items:center; min-height:32px; padding:0 12px; border-radius:999px; background:rgba(220,161,95,.12); border:1px solid rgba(220,161,95,.24); color:#ffd9b1; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;}
.home-intro-copy h1{margin:14px 0 10px; font-size:clamp(28px, 4vw, 42px); line-height:1.04; letter-spacing:-.05em;}
.home-intro-copy p{margin:0; max-width:720px; color:#c4d0ea; line-height:1.7;}
.home-intro-points{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px;}
.home-intro-points span{display:inline-flex; align-items:center; min-height:38px; padding:0 14px; border-radius:999px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); color:#e8efff; font-size:13px; font-weight:800;}
.home-intro-stats{display:grid; grid-template-columns:1fr; gap:12px; align-content:center;}
.intro-stat{padding:16px 18px; border-radius:20px; background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow-soft);}
.intro-stat strong{display:block; font-size:28px; margin-bottom:4px;}
.intro-stat span{color:var(--muted); font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;}

.member-overview-band{padding:20px 22px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); gap:18px;}
.member-overview-copy{padding:10px 2px;}
.member-overview-kicker{display:inline-flex; align-items:center; min-height:30px; padding:0 12px; border-radius:999px; background:rgba(220,161,95,.12); border:1px solid rgba(220,161,95,.24); color:#ffd8b1; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;}
.member-overview-copy h1{margin:14px 0 10px; font-size:clamp(28px, 3.4vw, 40px); line-height:1.06; letter-spacing:-.05em;}
.member-overview-copy p{margin:0; max-width:720px; color:#c2cde6; line-height:1.7;}
.member-quick-actions{display:grid; grid-template-columns:1fr; gap:12px; align-content:stretch;}
.member-quick-card{display:grid; gap:6px; padding:18px; border-radius:20px; background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.03)); border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow-soft);}
.member-quick-card:hover{transform:translateY(-1px); border-color:rgba(220,161,95,.22);}
.member-quick-card strong{font-size:18px; line-height:1.2;}
.member-quick-card span{color:var(--muted); line-height:1.5; font-size:14px;}
.member-sidebar{top:118px;}
.member-card,.member-panel,.side-card,.post-card{backdrop-filter:blur(8px);}
.member-card-head{padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,.05);}
.member-list-item{transition:.2s ease;}
.member-list-item:hover{background:rgba(255,255,255,.05); box-shadow:0 10px 20px rgba(0,0,0,.14);}
.member-suggestion{transition:.2s ease;}
.member-suggestion:hover{transform:translateY(-1px); border-color:rgba(220,161,95,.18);}

@media (max-width: 1080px){
  .home-intro-card, .member-overview-band{grid-template-columns:1fr;}
}
@media (max-width: 780px){
  .brand-logo-full{height:48px;}
  .header-actions .btn{min-width:unset; width:100%;}
  .home-intro-card{padding:18px;}
  .home-intro-points span{width:100%; justify-content:center;}
  .member-overview-band{padding:18px;}
}

/* ===== PREMIUM PASS 2 : SIDEBAR / EMPTY STATES / MOBILE ===== */
.header-shell{gap:12px; padding:12px 0 14px;}
.header-topline{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center;}
.header-slogan-wrap{min-width:0;}
.search-form{width:100%; max-width:none;}
.search-form input{height:50px; padding:0 18px; border-radius:18px; background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.035));}
.header-actions{gap:10px;}
.header-actions .btn{min-width:118px;}
.notif-dropdown{max-width:min(360px, calc(100vw - 24px));}

.home-description-band{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
    gap:18px;
    margin-bottom:20px;
    padding:20px 22px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(15,27,52,.96), rgba(9,18,35,.96));
    border:1px solid rgba(255,255,255,.07);
    box-shadow:var(--shadow-soft);
}
.home-description-kicker{
    display:inline-flex; align-items:center; min-height:30px; padding:0 12px; border-radius:999px;
    background:rgba(77,141,255,.12); border:1px solid rgba(77,141,255,.2); color:#cfe0ff;
    font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
}
.home-description-copy h2{margin:14px 0 10px; font-size:clamp(24px, 3vw, 34px); line-height:1.08; letter-spacing:-.04em;}
.home-description-copy p{margin:0; color:#c0cce6; line-height:1.72;}
.home-description-features{display:grid; grid-template-columns:1fr; gap:12px; align-content:center;}
.home-feature-pill{
    padding:16px 18px; border-radius:18px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06);
    box-shadow:var(--shadow-soft);
}
.home-feature-pill strong{display:block; margin-bottom:4px; font-size:16px;}
.home-feature-pill span{color:var(--muted); line-height:1.45; font-size:14px;}

.side-card-compact{padding:14px; border-radius:22px;}
.premium-head{padding:0 2px 10px; border-bottom:1px solid rgba(255,255,255,.05); margin-bottom:12px;}
.side-card-kicker{
    display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:999px;
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06); color:#dce7ff;
    font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
}
.premium-head h3{margin:10px 0 0; font-size:20px; line-height:1.1;}
.compact-list{gap:10px;}
.compact-item,.compact-comment-preview{
    border-radius:18px; background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.06); transition:.2s ease;
}
.compact-item:hover,.compact-comment-preview:hover{transform:translateY(-1px); border-color:rgba(220,161,95,.18); box-shadow:var(--shadow-soft);}
.trend-item.compact-item{display:grid; grid-template-columns:26px 64px minmax(0,1fr); gap:10px; align-items:center; padding:10px;}
.trend-rank{
    display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%;
    background:rgba(220,161,95,.14); color:#ffd8b1; font-size:12px; font-weight:900;
}
.compact-thumb{width:64px; height:64px; border-radius:14px;}
.compact-thumb img{width:100%; height:100%; object-fit:cover;}
.trend-copy strong{font-size:14px; line-height:1.3;}
.trend-copy span{font-size:12px;}
.compact-random-post{display:grid; gap:12px; padding:10px; border-radius:20px; background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)); border:1px solid rgba(255,255,255,.06); transition:.2s ease;}
.compact-random-post:hover{transform:translateY(-1px); border-color:rgba(220,161,95,.18); box-shadow:var(--shadow-soft);}
.compact-random-media{aspect-ratio:16/9; border-radius:16px; overflow:hidden;}
.compact-random-media img{width:100%; height:100%; object-fit:cover;}
.compact-random-body{padding:0 4px 4px;}
.compact-random-body p{margin:8px 0 10px; color:var(--muted); line-height:1.55; font-size:14px;}
.comment-preview-top{display:grid; gap:2px; margin-bottom:8px;}
.compact-comment-preview{padding:12px;}
.compact-comment-preview p{margin:0; color:#dce6fb; font-size:13px; line-height:1.55;}
.comment-preview-post{font-size:12px; color:var(--muted);}

.empty-state-card{display:grid; gap:10px; align-items:start; text-align:left;}
.empty-state-icon{
    width:46px; height:46px; border-radius:16px; display:inline-flex; align-items:center; justify-content:center;
    background:rgba(77,141,255,.12); border:1px solid rgba(77,141,255,.18); font-size:22px;
}
.empty-state-card h3,.empty-state-card h4{margin:0; color:#fff;}
.empty-state-card p{margin:0; line-height:1.6; color:var(--muted);}
.empty-state-large{padding:24px; min-height:260px; align-content:center;}
.empty-state-side{padding:16px; border-style:dashed;}
.empty-state-actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:4px;}

.member-overview-band{
    grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
    padding:18px 20px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(15,27,52,.96), rgba(10,18,35,.96));
    border:1px solid rgba(255,255,255,.07);
}
.member-overview-copy h1{font-size:clamp(24px, 3vw, 34px); margin:12px 0 8px;}
.member-overview-copy p{font-size:15px; line-height:1.7;}
.compact-quick-actions{grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px;}
.compact-quick-actions .member-quick-card{padding:16px; border-radius:18px;}
.member-sidebar{top:112px;}
.member-profile{gap:16px;}
.member-avatar{box-shadow:0 14px 28px rgba(0,0,0,.18);}
.member-stat-card strong{font-size:26px;}
.member-empty{display:grid; gap:8px; padding:16px; border-radius:18px; background:rgba(255,255,255,.03); border:1px dashed rgba(255,255,255,.12);}
.member-empty strong{font-size:15px;}
.member-empty p{margin:0; color:var(--muted); line-height:1.55; font-size:14px;}
.member-list-item strong{display:block; margin-bottom:6px;}
.member-list-item p{display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;}

@media (max-width: 1080px){
  .home-description-band,.member-overview-band{grid-template-columns:1fr;}
  .compact-quick-actions{grid-template-columns:1fr 1fr 1fr;}
}

@media (max-width: 860px){
  .header-shell{gap:10px;}
  .header-topline{grid-template-columns:minmax(0,1fr) auto; gap:12px;}
  .header-slogan-wrap{grid-column:1 / -1; order:3;}
  .header-slogan-bar{min-height:40px; padding:8px 14px;}
  .header-slogan{font-size:14px;}
  .header-bottom{grid-template-columns:1fr; gap:12px;}
  .header-actions{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); width:100%;}
  .header-actions .btn,.header-notif-wrap .btn{width:100%; min-width:0;}
  .home-description-band{padding:18px;}
  .content-grid{grid-template-columns:1fr;}
  .sidebar{order:2;}
  .trend-item.compact-item{grid-template-columns:24px 58px minmax(0,1fr);}
  .compact-thumb{width:58px; height:58px;}
  .member-layout{grid-template-columns:1fr;}
  .member-sidebar{position:static; top:auto;}
}

@media (max-width: 640px){
  .container{width:min(100% - 20px, 1240px);}
  .brand-logo-full{height:44px;}
  .menu-toggle{width:42px; height:42px; border-radius:12px;}
  .search-form input{height:46px; font-size:15px;}
  .header-actions{grid-template-columns:1fr;}
  .home-intro-card,.home-description-band,.member-overview-band{padding:16px; border-radius:20px;}
  .home-intro-copy h1{font-size:clamp(24px, 8vw, 34px);}
  .home-description-copy h2{font-size:clamp(22px, 7vw, 30px);}
  .home-intro-points span{justify-content:flex-start; width:100%;}
  .compact-quick-actions{grid-template-columns:1fr;}
  .member-stats-grid{grid-template-columns:1fr 1fr;}
  .member-menu a{padding:13px 14px;}
  .premium-head h3{font-size:18px;}
}
