*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f5f7fb;color:#18202a}a{color:#4f46e5;text-decoration:none}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#eef2ff,#f8fafc)}.auth-card{width:min(430px,100%);background:#fff;border-radius:18px;padding:32px;box-shadow:0 15px 45px rgba(15,23,42,.12)}h1{margin:0 0 8px}.muted{color:#667085}.alert{background:#fef2f2;color:#b42318;border:1px solid #fecaca;padding:12px;border-radius:10px;margin:18px 0}label{display:block;font-weight:600;font-size:14px;margin:16px 0 7px}input{width:100%;padding:12px 13px;border:1px solid #d0d5dd;border-radius:10px;font-size:15px;outline:none}input:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12)}button{width:100%;border:0;border-radius:10px;padding:13px;margin-top:20px;background:#4f46e5;color:#fff;font-weight:700;font-size:15px;cursor:pointer}.center{text-align:center;margin-top:20px}.topbar{height:64px;background:#fff;border-bottom:1px solid #e4e7ec;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.topbar nav{display:flex;gap:20px}.container{width:min(1050px,calc(100% - 32px));margin:40px auto}.welcome{background:#fff;border-radius:16px;padding:28px;border:1px solid #eaecf0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.card{background:#fff;border:1px solid #eaecf0;border-radius:16px;padding:24px}@media(max-width:650px){.grid{grid-template-columns:1fr}.auth-card{padding:24px}}
textarea{width:100%;padding:12px 13px;border:1px solid #d0d5dd;border-radius:10px;font-size:15px;font-family:inherit;resize:vertical;outline:none}textarea:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12)}.narrow{width:min(720px,calc(100% - 32px))}.success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6;padding:12px;border-radius:10px;margin:18px 0}.alert ul{margin:0;padding-left:20px}.button{display:inline-block;border-radius:10px;padding:10px 14px;font-weight:700;font-size:14px}.button.secondary{background:#eef2ff;color:#4338ca}.profile-card{background:#fff;border:1px solid #eaecf0;border-radius:18px;overflow:hidden}.profile-cover{height:240px;background:#e9edf5;overflow:hidden}.profile-cover img{display:block;width:100%;height:100%;object-fit:cover}.profile-main{position:relative;padding:0 30px 30px}.avatar-wrap{margin-top:-64px;position:relative;width:128px;height:128px}.avatar-wrap img,.avatar-placeholder{width:128px;height:128px;border-radius:50%;border:5px solid #fff;object-fit:cover;box-shadow:0 5px 18px rgba(15,23,42,.14)}.avatar-placeholder{display:grid;place-items:center;background:#e0e7ff;color:#4338ca;font-size:44px;font-weight:800}.profile-actions{position:absolute;right:30px;top:24px}.profile-main h1{margin:18px 0 2px;font-size:30px}.username{margin:0;color:#667085}.profile-bio{margin:20px 0 14px;line-height:1.6}.profile-meta{display:flex;gap:18px;flex-wrap:wrap;color:#667085;font-size:14px}.profile-meta a{color:#4f46e5}@media(max-width:650px){.profile-cover{height:170px}.profile-main{padding:0 18px 24px}.profile-actions{position:static;margin-top:14px}.avatar-wrap{width:100px;height:100px;margin-top:-50px}.avatar-wrap img,.avatar-placeholder{width:100px;height:100px}.profile-main h1{font-size:26px}}
hr{border:0;border-top:1px solid #eaecf0;margin:30px 0}.media-editor{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.media-editor-block{border:1px solid #eaecf0;border-radius:14px;padding:18px}.media-editor-block h2{font-size:18px;margin:0 0 15px}.avatar-preview{display:grid;place-items:center;height:150px}.avatar-placeholder.large{width:120px;height:120px;border-radius:50%;display:grid;place-items:center;background:#e0e7ff;color:#4338ca;font-size:42px;font-weight:800}.avatar-preview img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 4px 16px rgba(15,23,42,.12)}.cover-preview{height:150px;border-radius:10px;background:#eef1f6;overflow:hidden;margin-bottom:15px;display:grid;place-items:center}.cover-preview img{display:block;width:100%;height:100%;object-fit:cover}.cover-empty{color:#667085;font-size:14px}.upload-form input[type=file]{padding:10px;background:#f8fafc}.upload-form small{display:block;color:#667085;margin-top:7px;line-height:1.4}.upload-form button{margin-top:14px}.remove-form{margin-top:8px}.button.danger{background:#fef2f2;color:#b42318;border:1px solid #fecaca;width:auto;margin-top:0}.button.danger:hover{background:#fee2e2}@media(max-width:700px){.media-editor{grid-template-columns:1fr}}

select{width:100%;padding:12px 13px;border:1px solid #d0d5dd;border-radius:10px;font-size:15px;background:#fff;outline:none}select:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.12)}.settings-section{padding-top:26px;margin-top:26px;border-top:1px solid #eaecf0}.settings-section:first-of-type{border-top:0;padding-top:10px;margin-top:10px}.settings-section h2{font-size:20px;margin:0 0 5px}.small{font-size:13px}.field-help{display:block;color:#667085;font-size:13px;margin-top:6px}.checkbox-row{display:flex;align-items:center;gap:10px;font-weight:500}.checkbox-row input{width:18px;height:18px;margin:0}.danger-section{border-top-color:#fecaca}.danger-form{padding:18px;border:1px solid #fecaca;border-radius:12px;margin-top:14px;background:#fffafa}.danger-button{background:#b42318}.danger-button:hover{background:#912018}

.feed-container{max-width:760px}.composer{margin-bottom:20px}.composer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.composer-head span{font-size:13px;color:#667085}.feed-list{display:grid;gap:16px}.post-card{padding:20px}.post-head{display:flex;justify-content:space-between;gap:15px}.post-author{display:flex;align-items:center;gap:12px;color:inherit}.post-author img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#eef1f6}.post-author span{display:flex;flex-direction:column}.post-author small{color:#667085;margin-top:2px}.post-content{font-size:16px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;margin:18px 0}.post-actions{display:flex;align-items:center;gap:14px;border-top:1px solid #eaecf0;padding-top:12px}.post-actions form{margin:0}.action-button,.icon-button{border:0;background:transparent;color:#667085;width:auto;padding:7px 10px;margin:0;font-size:14px;font-weight:600;cursor:pointer}.action-button.liked{color:#dc2626}.icon-button{font-size:13px}.comment-count{color:#667085;font-size:14px}.empty-state{text-align:center;padding:45px 20px}.pagination{display:flex;justify-content:center;gap:12px;margin:22px 0}.pagination .button{width:auto;margin:0}.composer button{width:auto;padding:11px 24px;margin-top:12px}.composer textarea{min-height:110px}.post-card.card{border-radius:14px}
@media(max-width:650px){.topbar{height:auto;min-height:64px;align-items:flex-start;padding:16px;gap:12px}.topbar nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.post-card{padding:16px}}
/* =========================================
   FINAL MOBILE FEED OVERFLOW FIX
   ========================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container,
.feed-container {
    box-sizing: border-box;
    min-width: 0;
}

/* Feed wrapper */
.feed-container {
    width: min(760px, calc(100% - 32px));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Post card */
.post-card,
.post-card.card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Everything inside post */
.post-card > *,
.post-card form,
.post-card input,
.post-card textarea,
.post-card button {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

/* Post header */
.post-head,
.post-author {
    min-width: 0;
    max-width: 100%;
}

.post-author {
    overflow: hidden;
}

.post-author span {
    min-width: 0;
    overflow: hidden;
}

.post-author strong,
.post-author small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Post content */
.post-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Actions */
.post-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
}

/* Comments */
.comments,
.comment-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Every comment form */
.post-card form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Comment inputs */
.post-card form input,
.post-card form textarea,
.post-card .comment-input,
.post-card .post-comment-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Comment buttons */
.post-card form button {
    box-sizing: border-box;
    max-width: 100%;
}

/* =========================================
   MOBILE ONLY
   ========================================= */

@media (max-width: 768px) {

    .container.feed-container,
    .feed-container {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .post-card,
    .post-card.card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 16px;
        overflow: hidden;
    }

    .post-head {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .post-author {
        flex: 1 1 auto;
        min-width: 0;
    }

    .post-author span {
        min-width: 0;
    }

    .post-actions {
        gap: 8px;
    }

    .post-actions .action-button,
    .post-actions .icon-button {
        max-width: 100%;
        white-space: nowrap;
    }

    .post-card form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .post-card form input,
    .post-card form textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .post-card form button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .container.feed-container,
    .feed-container {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .post-card,
    .post-card.card {
        padding: 14px;
        border-radius: 14px;
    }

    .post-author {
        gap: 9px;
    }

    .post-author img {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .post-content {
        font-size: 15px;
    }

    .post-actions {
        gap: 4px;
    }

    .action-button,
    .icon-button {
        padding: 6px 7px;
        font-size: 13px;
    }
}
/* =========================================================
   FINAL MOBILE FEED / POST OVERFLOW FIX
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Main feed */
.container.feed-container {
    width: min(760px, calc(100% - 32px));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

/* Every post must stay inside viewport */
.post-card.card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Prevent flex/grid children from forcing width */
.post-card,
.post-card *,
.post-head,
.post-author,
.post-content,
.post-actions,
.comment-section,
.comment-list,
.comment,
.comment-body {
    min-width: 0;
    max-width: 100%;
}

/* Long text must wrap */
.post-content,
.comment-text,
.comment-meta,
.post-author span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.comment-form input,
.comment-form textarea {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.comment-form button {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container.feed-container {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .composer.card,
    .post-card.card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .composer {
        padding: 18px;
    }

    .post-card {
        padding: 16px;
    }

    /* Post header */
    .post-head {
        width: 100%;
        max-width: 100%;
    }

    .post-author {
        flex: 1 1 auto;
        min-width: 0;
    }

    .post-author img {
        flex: 0 0 48px;
    }

    .post-author span {
        min-width: 0;
    }

    /* Post actions */
    .post-actions {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    /* Comment section */
    .comment-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /*
       IMPORTANT:
       On mobile put comment input and button
       one below another.
    */
    .comment-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .comment-form input,
    .comment-form textarea {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }

    .comment-form button {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }

    /* Composer */
    .composer textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .composer button {
        width: auto;
        max-width: 100%;
    }
}

/* Smaller phones */
@media (max-width: 380px) {

    .container.feed-container {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .composer {
        padding: 15px;
    }

    .post-card {
        padding: 14px;
    }

    .post-author {
        gap: 9px;
    }

    .post-author img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
/* =========================================
   TRIBBBLE POST / COMMENT MENUS
   ========================================= */

.post-head {
    position: relative;
}


/* POST MENU */

.post-menu {
    position: relative;
    flex-shrink: 0;
}

.post-menu-trigger {
    width: 40px !important;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #667085;

    font-size: 26px;
    font-weight: 700;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.post-menu-trigger:hover {
    background: #f2f4f7;
    color: #344054;
}


/* POST DROPDOWN */

.post-menu-dropdown {
    display: none;

    position: absolute;
    top: 46px;
    right: 0;

    width: 190px;

    background: #fff;

    border: 1px solid #eaecf0;
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);

    padding: 6px;

    z-index: 9999;
}

.post-menu.open .post-menu-dropdown {
    display: block;
}


/* IMPORTANT:
   Override global button width:100%
*/

.post-menu-dropdown form {
    margin: 0;
    width: 100%;
}

.post-menu-delete {
    width: 100% !important;

    display: flex;
    align-items: center;

    margin: 0 !important;
    padding: 12px 13px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: #b42318 !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-align: left;

    cursor: pointer;
}

.post-menu-delete:hover {
    background: #fef2f2 !important;
}


/* =========================================
   COMMENT MENU
   ========================================= */

.comment {
    position: relative;
    min-width: 0;
}

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

.comment-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 20;
}

.comment-menu-trigger {
    width: 34px !important;
    height: 34px;

    margin: 0 !important;
    padding: 0 !important;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #667085;

    font-size: 22px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.comment-menu-trigger:hover {
    background: #f2f4f7;
}


/* COMMENT DROPDOWN */

.comment-menu-dropdown {
    display: none;

    position: absolute;

    top: 38px;
    right: 0;

    width: 180px;

    background: #fff;

    border: 1px solid #eaecf0;
    border-radius: 12px;

    padding: 6px;

    box-shadow: 0 12px 30px rgba(15, 23, 42, .15);

    z-index: 9999;
}

.comment-menu.open .comment-menu-dropdown {
    display: block;
}

.comment-menu-dropdown form {
    margin: 0;
    width: 100%;
}

.comment-menu-delete {
    width: 100% !important;

    display: flex;
    align-items: center;

    margin: 0 !important;
    padding: 11px 12px !important;

    border: 0 !important;
    border-radius: 8px !important;

    background: transparent !important;
    color: #b42318 !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-align: left;

    cursor: pointer;
}

.comment-menu-delete:hover {
    background: #fef2f2 !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

    .post-menu-trigger {
        width: 38px !important;
        height: 38px;
        font-size: 24px;
    }

    .post-menu-dropdown {
        width: 175px;
        right: 0;
    }

    .comment-menu-dropdown {
        width: 165px;
    }

}
/* =========================================================
   FINAL TRIBBBLE FEED FIX
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Feed */
.container.feed-container {
    width: min(760px, calc(100% - 32px));
    max-width: 760px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

/* Post card */
.post-card.card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px;
    overflow: visible;
}

/* Post header */
.post-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-width: 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.post-author img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 48px;
}

.post-author span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.post-author strong,
.post-author small {
    overflow-wrap: anywhere;
}

/* IMPORTANT:
   Only comment form gets flexible width.
   Delete/like forms must NOT become 100%.
*/
.post-head > form {
    width: auto;
    max-width: none;
    min-width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.post-actions {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    border-top: 1px solid #eaecf0;
    padding-top: 12px;
}

.post-actions form {
    width: auto;
    max-width: none;
    min-width: auto;
    margin: 0;
    flex: 0 0 auto;
}

.post-actions .action-button {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 7px 10px;
}

/* Post content */
.post-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 18px 0;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* =========================================================
   COMMENTS
   ========================================================= */

.comment-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
    border-top: 1px solid #eaecf0;
    padding-top: 14px;
}

.comment-list {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-avatar {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    position: relative;
    background: #f8fafc;
    border-radius: 12px;
    padding: 9px 12px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.comment-meta strong,
.comment-meta small,
.comment-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-text {
    margin-top: 4px;
    line-height: 1.45;
}

/* Comment delete button */
.comment-body > form {
    width: auto;
    max-width: none;
    margin: 5px 0 0;
}

.comment-delete {
    width: auto !important;
    max-width: none !important;
    background: transparent;
    border: 0;
    color: #667085;
    padding: 0;
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   COMMENT FORM
   ========================================================= */

.comment-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.comment-form input,
.comment-form textarea {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.comment-form button {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
    padding: 11px 16px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container.feed-container {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin-left: auto;
        margin-right: auto;
    }

    .post-card.card {
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .post-head {
        gap: 8px;
    }

    .post-author {
        gap: 9px;
    }

    .post-author img {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        flex-basis: 44px;
    }

    .post-actions {
        gap: 5px;
    }

    /* Mobile comment form stays inside card */
    .comment-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .comment-form input,
    .comment-form textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .comment-form button {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    /* Comment avatar remains SMALL */
    .comment-avatar {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        flex-basis: 36px !important;
    }
}

@media (max-width: 380px) {

    .container.feed-container {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }

    .post-card.card {
        padding: 14px;
    }
}

.admin-sidebar .nav-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-sidebar .nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-sidebar .admin-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-sidebar .admin-nav a:hover .nav-icon,
.admin-sidebar .admin-nav a.active .nav-icon {
    color: inherit;
}

/* =========================================================
   MODERN TRIBBBLE POST CARD DESIGN
   ========================================================= */
.post-card.card{
    position:relative;
    padding:22px !important;
    border:1px solid #e6e9f2;
    border-radius:18px !important;
    background:#fff;
    box-shadow:0 6px 22px rgba(31,41,55,.035);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.post-card.card:hover{
    transform:translateY(-1px);
    border-color:#dfe2f0;
    box-shadow:0 10px 28px rgba(31,41,55,.065);
}
.post-head{
    align-items:center;
    gap:16px;
    padding-bottom:2px;
}
.post-author{
    gap:11px;
    text-decoration:none;
}
.post-author img{
    width:50px;
    height:50px;
    min-width:50px;
    max-width:50px;
    border:1px solid #edf0f6;
    box-shadow:0 2px 8px rgba(15,23,42,.06);
}
.post-author strong{
    color:#182230;
    font-size:14px;
    font-weight:800;
    line-height:1.35;
}
.post-author small{
    color:#8a94a6;
    font-size:12px;
    line-height:1.45;
}
.post-head > form .icon-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:7px 11px;
    border:1px solid #eceef5;
    border-radius:9px;
    background:#fff;
    color:#8a94a6;
    font-size:12px;
    font-weight:700;
    transition:background .18s,color .18s,border-color .18s;
}
.post-head > form .icon-button:hover{
    background:#fff1f2;
    border-color:#fecdd3;
    color:#e11d48;
}
.post-content{
    margin:20px 0 17px;
    color:#344054;
    font-size:15px;
    line-height:1.75;
}
.post-content a{
    color:#5146e5;
    font-weight:650;
    text-decoration:none;
    overflow-wrap:anywhere;
}
.post-content a:hover{text-decoration:underline}
.post-media{margin:16px 0 18px}
.post-media img{
    width:100%;
    max-width:100%;
    max-height:620px;
    border:1px solid #edf0f5;
    border-radius:15px;
    background:#f8f9fc;
}
.post-actions{
    display:flex;
    align-items:center;
    gap:8px;
    padding:13px 0 0;
    border-top:1px solid #edf0f5;
}
.post-actions form{display:flex;align-items:center}
.post-actions .action-button{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:34px;
    padding:7px 11px;
    border-radius:9px;
    color:#7b8497;
    font-size:13px;
    font-weight:700;
    transition:background .18s,color .18s;
}
.post-actions .action-button:hover{background:#f5f3ff;color:#5146e5}
.post-actions .action-button.liked{background:#fff1f2;color:#e11d48}
.comment-count{font-size:13px;color:#7b8497}
.comment-section{
    margin-top:15px;
    padding-top:15px;
    border-top:1px solid #edf0f5;
}
.comment-list{gap:10px}
.comment-body{
    padding:10px 12px;
    border:1px solid #edf0f5;
    border-radius:13px;
    background:#f8f9fc;
}
.comment-meta strong{font-size:12px;color:#344054}
.comment-meta small{font-size:11px;color:#98a2b3}
.comment-text{font-size:13px;color:#475467;line-height:1.55}
.comment-delete{
    color:#98a2b3;
    transition:color .18s;
}
.comment-delete:hover{color:#e11d48}
.comment-form{gap:9px;margin-top:15px}
.comment-form input,.comment-form textarea{
    min-height:42px;
    padding:10px 13px;
    border:1px solid #e1e6f0;
    border-radius:11px;
    background:#fafbfe;
    color:#344054;
    font-size:13px;
}
.comment-form input:focus,.comment-form textarea:focus{
    background:#fff;
    border-color:#8b83f5;
    box-shadow:0 0 0 4px rgba(99,102,241,.09);
}
.comment-form button{
    min-height:42px;
    border:0;
    border-radius:11px;
    background:linear-gradient(135deg,#5b52e8,#4f46e5);
    color:#fff;
    font-size:13px;
    font-weight:800;
    box-shadow:0 4px 10px rgba(79,70,229,.14);
}
.comment-form button:hover{background:linear-gradient(135deg,#4f46e5,#4338ca)}
@media(max-width:650px){
    .post-card.card{padding:17px !important;border-radius:16px !important}
    .post-author img{width:44px;height:44px;min-width:44px;max-width:44px}
    .post-head{gap:9px}
    .post-content{font-size:14px;line-height:1.65;margin:17px 0 15px}
    .post-actions{gap:4px}
    .post-actions .action-button{padding:7px 8px}
}


/* =========================================================
   TRIBBBLE FEED: KEEP ALL THREE COLUMNS IN THE SAME ROW
   Fixes sidebar dropping below the feed as more posts render.
   ========================================================= */
.feed-container.container {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    min-width: 0 !important;
}

.tb-home-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) 280px !important;
    grid-template-rows: auto !important;
    grid-template-areas: "left main right" !important;
    align-items: start !important;
    column-gap: 24px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.tb-home-layout > .tb-left-sidebar,
.tb-home-layout > .tb-sidebar-left {
    grid-area: left !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0 !important;
}

.tb-home-layout > .tb-main-column {
    grid-area: main !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0 !important;
    width: 100% !important;
}

.tb-home-layout > .tb-right-sidebar {
    grid-area: right !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
}

.tb-main-column > .feed-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
}

@media (max-width: 1050px) {
    .tb-home-layout {
        grid-template-columns: 220px minmax(0, 1fr) !important;
        grid-template-areas: "left main" !important;
        column-gap: 18px !important;
    }

    .tb-home-layout > .tb-right-sidebar {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .feed-container.container {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .tb-home-layout {
        display: block !important;
    }

    .tb-home-layout > .tb-left-sidebar,
    .tb-home-layout > .tb-sidebar-left,
    .tb-home-layout > .tb-right-sidebar {
        display: none !important;
    }

    .tb-home-layout > .tb-main-column {
        width: 100% !important;
    }
}
