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

:root {
    --bg: #07080d;
    --surface: #0e1018;
    --surface-2: #131622;
    --surface-3: #191c29;
    --border: #242838;
    --text: #f5f5f7;
    --muted: #858999;
    --muted-2: #5d6272;
    --purple: #8272ff;
    --purple-light: #b46cff;
    --pink: #ff6c9c;
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient( circle at 50% -20%, rgba(111, 92, 255, .13), transparent 40% ), var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    min-height: 100vh;
}

button,
textarea,
input {
    font: inherit;
}

button {
    cursor: pointer;
}
.follow-request-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #171522 !important;
    color: #ffffff !important;
    border: 1px solid #343047 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

    .follow-request-actions button:last-child {
        background: #8272ff !important;
        border-color: #8272ff !important;
        color: #ffffff !important;
    }

    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible {
        outline: 2px solid var(--purple);
        outline-offset: 2px;
    }


/* ================= LAYOUT ================= */

.app {
    width: min(1380px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: 220px minmax(400px, 650px) 290px;
    gap: 30px;
    padding: 28px 24px;
}


/* ================= SIDEBAR ================= */

.sidebar {
    position: sticky;
    top: 28px;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.brand {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 42px;
}

    .brand b {
        color: var(--purple);
    }

.navigation {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 14px;
    border-radius: 13px;
    text-align: left;
    transition: .2s;
}

    .nav-item span {
        width: 22px;
        text-align: center;
        font-size: 20px;
    }

    .nav-item label {
        font-size: 14px;
    }

    .nav-item:hover,
    .nav-item.active {
        background: var(--surface-2);
        color: white;
    }

.create-button {
    margin-top: 24px;
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 13px;
    color: white;
    font-weight: 700;
    background: linear-gradient( 135deg, var(--purple), var(--purple-light) );
    box-shadow: 0 10px 30px rgba(130, 114, 255, .16);
    transition: .2s;
}

    .create-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 35px rgba(130, 114, 255, .25);
    }

    .create-button span {
        margin-right: 5px;
    }

.sidebar-footer {
    margin-top: auto;
    color: var(--muted-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
}

    .sidebar-footer span {
        color: var(--muted);
    }


/* ================= MAIN ================= */

.main {
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.eyebrow {
    color: var(--purple);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.topbar h1 {
    font-size: 25px;
    margin-top: 4px;
}

.mobile-create {
    display: none;
}


/* ================= COMPOSER ================= */

.composer-card {
    display: flex;
    gap: 13px;
    background: linear-gradient( 145deg, rgba(19,22,34,.95), rgba(12,14,23,.95) );
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.composer-avatar,
.profile-avatar,
.mini-avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.composer-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient( 135deg, #7466ff, #cf75ff );
}

.composer-content {
    flex: 1;
    min-width: 0;
}

    .composer-content textarea {
        width: 100%;
        min-height: 65px;
        resize: none;
        border: 0;
        outline: 0;
        background: transparent;
        color: white;
        line-height: 1.5;
        font-size: 15px;
    }

        .composer-content textarea::placeholder {
            color: var(--muted-2);
        }

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

.vibes {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .vibes::-webkit-scrollbar {
        display: none;
    }

.vibe {
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 20px;
    font-size: 12px;
    transition: .2s;
}

    .vibe:hover,
    .vibe.active {
        color: white;
        border-color: #4b427d;
        background: #282344;
    }

.publish {
    border: 0;
    color: white;
    background: var(--purple);
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s;
}

    .publish:hover {
        background: #9385ff;
        transform: translateY(-1px);
    }


/* ================= FEED ================= */

.feed-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 3px;
}

    .feed-header h2 {
        font-size: 16px;
    }

    .feed-header span {
        display: block;
        margin-top: 4px;
        color: var(--muted-2);
        font-size: 12px;
    }


/* ================= POSTS ================= */

.post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    animation: postIn .3s ease;
}

@keyframes postIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 135deg, #7567ff, #d27cff );
    font-weight: bold;
}

.post-info {
    flex: 1;
}

    .post-info strong {
        display: block;
        font-size: 14px;
    }

    .post-info small {
        color: var(--muted-2);
        font-size: 11px;
    }

.post-vibe {
    color: var(--muted);
    font-size: 11px;
}

.post-text {
    margin: 17px 0;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.music {
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 13px;
    color: #c4c7d3;
    font-size: 13px;
}

.actions {
    border-top: 1px solid var(--border);
    padding-top: 9px;
    display: flex;
    gap: 3px;
}

.action {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 12px;
    transition: .2s;
}

    .action:hover {
        background: var(--surface-2);
        color: white;
    }

    .action.liked {
        color: var(--pink);
    }


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

.comments {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

    .comments.open {
        display: block;
    }

.comment {
    color: #c9cbd4;
    font-size: 13px;
    margin: 9px 0;
}

    .comment b {
        color: white;
    }

.comment-input {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

    .comment-input input {
        min-width: 0;
        flex: 1;
        border: 1px solid var(--border);
        background: var(--surface-2);
        color: white;
        padding: 9px 10px;
        border-radius: 9px;
        outline: 0;
    }

    .comment-input button {
        border: 0;
        background: var(--purple);
        color: white;
        padding: 0 13px;
        border-radius: 9px;
    }


/* ================= RIGHT BAR ================= */

.rightbar {
    position: sticky;
    top: 28px;
    height: max-content;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 15px;
}

    .search-wrapper span {
        color: var(--muted);
    }

    .search-wrapper input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: white;
        font-size: 13px;
    }

        .search-wrapper input::placeholder {
            color: var(--muted-2);
        }

.side-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 15px;
}

.side-title {
    margin-bottom: 13px;
}

    .side-title h3 {
        font-size: 14px;
    }

.person {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
}

.mini-avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.purple {
    background: linear-gradient(135deg,#7668ff,#d077ff);
}

.blue {
    background: linear-gradient(135deg,#477cff,#54c5ff);
}

.pink {
    background: linear-gradient(135deg,#ff5f91,#ff9d6c);
}

.person-info {
    flex: 1;
    min-width: 0;
}

    .person-info strong {
        display: block;
        font-size: 12px;
    }

    .person-info span {
        color: var(--muted-2);
        font-size: 10px;
    }

.follow {
    border: 1px solid #41396c;
    background: #211d39;
    color: #b8b1db;
    padding: 6px 9px;
    border-radius: 8px;
    font-size: 10px;
}

    .follow.following {
        background: transparent;
        color: var(--muted);
    }

.trend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 0;
    border-bottom: 1px solid #191c27;
}

    .trend:last-child {
        border-bottom: 0;
    }

    .trend small {
        color: var(--muted-2);
        font-size: 10px;
    }

    .trend strong {
        color: #c8cad4;
        font-size: 12px;
    }

.prototype-note {
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.5;
    padding: 3px;
}

    .prototype-note strong {
        color: var(--muted);
        display: block;
        margin-bottom: 4px;
    }


/* ================= PROFILE ================= */

.hidden {
    display: none !important;
}

.profile-cover {
    height: 170px;
    border-radius: var(--radius);
    background: radial-gradient( circle at 70% 20%, rgba(193,110,255,.35), transparent 30% ), linear-gradient( 135deg, #171433, #392355, #15111f );
}

.profile-card {
    margin-top: -35px;
    position: relative;
    padding: 0 25px;
}

.profile-avatar {
    width: 78px;
    height: 78px;
    border: 5px solid var(--bg);
    background: linear-gradient( 135deg, #7567ff, #d27cff );
    font-size: 25px;
}

.profile-main h2 {
    margin-top: 12px;
    font-size: 22px;
}

.profile-main > span {
    color: var(--muted-2);
    font-size: 12px;
}

.profile-main p {
    color: var(--muted);
    margin-top: 9px;
    font-size: 13px;
}

.profile-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

    .profile-stats div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .profile-stats strong {
        font-size: 16px;
        color: white;
    }

    .profile-stats span {
        color: var(--muted-2);
        font-size: 10px;
    }


/* ================= NOTIFICATIONS ================= */

.empty-card {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 60px 25px;
    text-align: center;
}

.empty-icon {
    font-size: 40px;
    color: var(--purple);
    margin-bottom: 15px;
}

.empty-card h2 {
    font-size: 20px;
}

.empty-card p {
    max-width: 380px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


/* ================= MODAL ================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}

    .modal.open {
        display: flex;
    }

.modal-box {
    width: min(560px, 100%);
    background: #10121b;
    border: 1px solid #303448;
    border-radius: 20px;
    padding: 21px;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .modal-header h2 {
        margin-top: 5px;
        font-size: 18px;
    }

    .modal-header button {
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 25px;
        height: 30px;
    }

.modal-box > textarea {
    width: 100%;
    min-height: 160px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-2);
    color: white;
    padding: 13px;
    outline: 0;
    line-height: 1.5;
}

    .modal-box > textarea:focus {
        border-color: #514990;
    }

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

    .modal-footer > span {
        color: var(--muted-2);
        font-size: 10px;
    }

.cancel {
    border: 0;
    background: var(--surface-3);
    color: white;
    padding: 9px 13px;
    border-radius: 9px;
    margin-right: 6px;
}


/* ================= TOAST ================= */

.toast {
    position: fixed;
    z-index: 200;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 20px);
    display: flex;
    align-items: center;
    gap: 9px;
    background: #171a25;
    border: 1px solid #303448;
    padding: 11px 15px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: .25s;
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .toast span {
        color: #7dffb2;
    }

    .toast p {
        font-size: 12px;
    }


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

.mobile-nav {
    display: none;
}

@media(max-width: 1050px) {

    .app {
        grid-template-columns: 80px minmax(400px, 1fr);
    }

    .rightbar {
        display: none;
    }

    .brand {
        font-size: 18px;
        letter-spacing: 3px;
        text-align: center;
    }

    .nav-item {
        justify-content: center;
    }

        .nav-item label {
            display: none;
        }

    .create-button {
        font-size: 0;
    }

        .create-button span {
            font-size: 22px;
            margin: 0;
        }
}


@media(max-width: 650px) {

    body {
        padding-bottom: 70px;
    }

    .app {
        display: block;
        padding: 15px 12px 80px;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        margin-bottom: 18px;
    }

        .topbar h1 {
            font-size: 21px;
        }

    .mobile-create {
        display: block;
        border: 1px solid var(--border);
        background: var(--surface);
        color: white;
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 20px;
    }

    .composer-card {
        padding: 14px;
        gap: 10px;
    }

    .composer-avatar {
        width: 36px;
        height: 36px;
    }

    .composer-bottom {
        align-items: flex-end;
    }

    .publish {
        padding: 8px 13px;
    }

    .post {
        padding: 15px;
    }

    .actions {
        overflow-x: auto;
    }

    .profile-cover {
        height: 125px;
    }

    .profile-card {
        padding: 0 14px;
    }

    .profile-stats {
        gap: 20px;
    }

    .mobile-nav {
        position: fixed;
        display: flex;
        z-index: 90;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(10,11,18,.96);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(12px);
        justify-content: space-around;
        align-items: center;
    }

        .mobile-nav button {
            border: 0;
            background: transparent;
            color: var(--muted);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
        }

            .mobile-nav button span {
                font-size: 20px;
            }

            .mobile-nav button small {
                font-size: 8px;
            }

        .mobile-nav .mobile-plus {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: var(--purple);
            color: white;
            font-size: 24px;
        }
}
/* =========================================================
   AFTER — AUTENTICAÇÃO
   ========================================================= */

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient( circle at 20% 20%, rgba(124, 92, 255, 0.18), transparent 35% ), radial-gradient( circle at 80% 80%, rgba(89, 55, 255, 0.12), transparent 35% ), #090911;
}

    .auth-screen.hidden {
        display: none;
    }

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 42px 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(18, 18, 29, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(20px);
}

.auth-logo {
    text-align: center;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 6px;
    color: #ffffff;
}

    .auth-logo span {
        color: #755cff;
    }

.auth-subtitle {
    margin-top: 8px;
    margin-bottom: 32px;
    text-align: center;
    font-size: 14px;
    color: #8c8c9c;
}


/* ===== ABAS ===== */

.auth-tabs {
    display: flex;
    margin-bottom: 28px;
    padding: 4px;
    border-radius: 12px;
    background: #0c0c14;
}

.auth-tab {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #777787;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

    .auth-tab:hover {
        color: #ffffff;
    }

    .auth-tab.active {
        background: #1b1929;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }


/* ===== FORMULÁRIOS ===== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .auth-form.hidden {
        display: none;
    }

    .auth-form input {
        width: 100%;
        padding: 15px 16px;
        border: 1px solid #292938;
        border-radius: 12px;
        outline: none;
        background: #0d0d16;
        color: #ffffff;
        font-size: 15px;
        transition: 0.2s;
    }

        .auth-form input::placeholder {
            color: #656575;
        }

        .auth-form input:focus {
            border-color: #755cff;
            box-shadow: 0 0 0 3px rgba(117, 92, 255, 0.12);
        }


    /* ===== BOTÃO PRINCIPAL ===== */

    .auth-form > button {
        margin-top: 5px;
        padding: 15px;
        border: none;
        border-radius: 12px;
        background: linear-gradient( 135deg, #755cff, #5940e8 );
        color: #ffffff;
        font-size: 15px;
        font-weight: 800;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .auth-form > button:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 25px rgba(117, 92, 255, 0.25);
        }

        .auth-form > button:active {
            transform: scale(0.98);
        }


/* ===== MENSAGENS ===== */

.auth-message {
    min-height: 20px;
    margin-top: 18px;
    margin-bottom: 0;
    text-align: center;
    color: #a6a6b5;
    font-size: 13px;
}


/* ===== CELULAR ===== */

@media (max-width: 520px) {

    .auth-card {
        padding: 32px 22px;
        border-radius: 20px;
    }

    .auth-logo {
        font-size: 32px;
    }
}

/* ===== AFTER V0.2 â€” dados reais ===== */
.profile-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-top:12px; }
.profile-heading-row h2 { margin-top:0; }
.logout-button { border:1px solid var(--border); background:var(--surface-2); color:var(--muted); padding:8px 12px; border-radius:10px; }
.logout-button:hover { color:white; border-color:#4b427d; }
.profile-posts-title { margin-top:26px; }
.side-empty { color:var(--muted-2); font-size:12px; line-height:1.5; padding:5px 0; }
.person.real-person .mini-avatar { background:linear-gradient(135deg,#7567ff,#d27cff); }
.person.real-person { padding:2px 0; }
.trend-count { color:var(--muted-2); font-size:10px; }
.feed-empty { border:1px solid var(--border); background:var(--surface); border-radius:var(--radius); padding:42px 20px; text-align:center; color:var(--muted); }
.feed-empty strong { display:block; color:white; margin-bottom:6px; }
.post-time { color:var(--muted-2); }
/* =========================================================
   AFTER DIRECT V0.1
   ========================================================= */

.messages-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 680px;
    height: calc(100vh - 110px);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(13, 14, 24, 0.72);
}


/* ================= LISTA DE CONVERSAS ================= */

.conversations-panel {
    border-right: 1px solid var(--border);
    background: rgba(10, 11, 19, 0.72);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.messages-heading {
    padding: 24px 22px 15px;
}

    .messages-heading h2 {
        margin: 5px 0 0;
        color: white;
        font-size: 22px;
    }

.message-search {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 16px 16px;
    padding: 0 13px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: rgba(17, 18, 30, 0.9);
}

    .message-search span {
        color: var(--muted-2);
    }

    .message-search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: white;
        font: inherit;
    }

        .message-search input::placeholder {
            color: var(--muted-2);
        }

.conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 3px 10px 15px;
}

.conversation-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

    .conversation-item:hover {
        background: rgba(139, 92, 246, 0.10);
    }

    .conversation-item.active {
        background: rgba(139, 92, 246, 0.16);
    }

.conversation-avatar,
.chat-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #7457ff, #bd5cff);
    color: white;
    font-weight: 800;
    font-size: 17px;
}

.conversation-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .conversation-info strong {
        color: white;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .conversation-info span {
        color: var(--muted-2);
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.messages-empty-small {
    color: var(--muted-2);
    font-size: 13px;
    padding: 20px 14px;
    line-height: 1.5;
}


/* ================= PAINEL DO CHAT ================= */

.chat-panel {
    position: relative;
    min-width: 0;
    background: radial-gradient( circle at 50% 0%, rgba(113, 92, 255, 0.07), transparent 38% ), rgba(7, 8, 15, 0.72);
}

.empty-chat {
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.empty-chat-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    margin-bottom: 18px;
    color: #a78bfa;
    font-size: 28px;
    background: rgba(139, 92, 246, 0.08);
}

.empty-chat h2 {
    color: white;
    margin: 0 0 7px;
    font-size: 21px;
}

.empty-chat p {
    margin: 0;
    color: var(--muted-2);
    font-size: 13px;
}


/* ================= CONVERSA ATIVA ================= */

.active-chat {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

    .active-chat.hidden {
        display: none;
    }

.chat-header {
    min-height: 76px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 12, 21, 0.85);
}

    .chat-header .chat-avatar {
        width: 43px;
        height: 43px;
    }

.chat-user-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .chat-user-info strong {
        color: white;
        font-size: 14px;
    }

    .chat-user-info span {
        color: var(--muted-2);
        font-size: 12px;
    }


/* ================= MENSAGENS ================= */

.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-start-message {
    margin: auto;
    color: var(--muted-2);
    text-align: center;
    font-size: 13px;
}

    .chat-start-message span {
        display: block;
        font-size: 30px;
        margin-bottom: 8px;
    }

.message-row {
    display: flex;
    width: 100%;
}

    .message-row.mine {
        justify-content: flex-end;
    }

    .message-row.theirs {
        justify-content: flex-start;
    }

.message-bubble {
    max-width: min(72%, 520px);
    padding: 10px 13px 7px;
    border-radius: 17px;
    word-break: break-word;
}

.message-row.mine .message-bubble {
    background: linear-gradient(135deg, #7657ff, #a855f7);
    border-bottom-right-radius: 5px;
    color: white;
}

.message-row.theirs .message-bubble {
    background: #181a27;
    border: 1px solid var(--border);
    border-bottom-left-radius: 5px;
    color: white;
}

.message-bubble p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.message-bubble span {
    display: block;
    margin-top: 4px;
    text-align: right;
    font-size: 9px;
    opacity: 0.65;
}


/* ================= ESCREVER MENSAGEM ================= */

.chat-composer {
    padding: 13px 15px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    gap: 9px;
    background: rgba(11, 12, 21, 0.92);
}

    .chat-composer textarea {
        flex: 1;
        min-height: 43px;
        max-height: 130px;
        resize: none;
        border: 1px solid var(--border);
        outline: none;
        border-radius: 17px;
        padding: 11px 15px;
        background: #11131e;
        color: white;
        font: inherit;
        line-height: 1.4;
    }

        .chat-composer textarea:focus {
            border-color: rgba(139, 92, 246, 0.7);
        }

        .chat-composer textarea::placeholder {
            color: var(--muted-2);
        }

.chat-media-button,
.chat-send-button {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.chat-media-button {
    background: #181a27;
    color: #a78bfa;
    border: 1px solid var(--border);
}

    .chat-media-button:hover {
        background: #202231;
    }

.chat-send-button {
    color: white;
    background: linear-gradient(135deg, #7657ff, #ae58f8);
    transition: transform 0.15s ease;
}

    .chat-send-button:hover {
        transform: scale(1.05);
    }


/* ================= SCROLLBAR ================= */

.chat-messages::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.28);
    border-radius: 20px;
}


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

@media (max-width: 900px) {

    .messages-layout {
        grid-template-columns: 1fr;
        height: calc(100vh - 145px);
        min-height: 560px;
    }

    .conversations-panel {
        border-right: 0;
    }

    .chat-panel {
        min-height: 420px;
        border-top: 1px solid var(--border);
    }
}


@media (max-width: 600px) {

    .messages-layout {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .messages-heading {
        padding: 18px 15px 12px;
    }

    .chat-messages {
        padding: 18px 12px;
    }

    .message-bubble {
        max-width: 84%;
    }
}
/* =========================================================
   BOTÃO SEGUIR — AFTER
   ========================================================= */

.follow-button {
    min-width: 78px;
    height: 34px;
    padding: 0 15px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.10);
    color: #b89cff;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}


    .follow-button:hover {
        background: rgba(139, 92, 246, 0.20);
        border-color: rgba(167, 139, 250, 0.75);
        color: white;
        transform: translateY(-1px);
    }


    .follow-button:active {
        transform: scale(0.96);
    }


    /* Quando você já estiver seguindo */

    .follow-button.following {
        background: rgba(255, 255, 255, 0.04);
        border-color: var(--border);
        color: var(--muted-2);
    }


        .follow-button.following:hover {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.35);
            color: #f87171;
        }
/* =========================================================
   BOTÃO SEGUIR — AFTER
   ========================================================= */

.follow-btn {
    min-width: 82px;
    height: 34px;
    padding: 0 15px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    color: #b89cff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .follow-btn:hover {
        background: rgba(139, 92, 246, 0.25);
        border-color: rgba(167, 139, 250, 0.8);
        color: #ffffff;
        transform: translateY(-1px);
    }


    /* JÁ ESTÁ SEGUINDO */

    .follow-btn.following {
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--border);
        color: var(--muted);
    }

        .follow-btn.following:hover {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.4);
            color: #f87171;
        }
/* =====================================================
   AFTER — UPLOAD DE MÍDIA
   ===================================================== */

.media-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.media-button {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #b8b8c8;
    padding: 8px 13px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .media-button:hover {
        background: rgba(139, 92, 246, 0.12);
        border-color: rgba(139, 92, 246, 0.45);
        color: #ffffff;
        transform: translateY(-1px);
    }

#mediaFileName {
    max-width: 130px;
    color: #8d8da0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ===== AFTER MEDIA BUTTON ===== */

button.media-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 34px !important;
    padding: 0 14px !important;
    background: #151521 !important;
    color: #b9b9ca !important;
    border: 1px solid #2d2d42 !important;
    border-radius: 999px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

    button.media-button:hover {
        background: #201b35 !important;
        color: #ffffff !important;
        border-color: #7657ff !important;
    }

.media-upload {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#mediaFileName {
    color: #8d8da0 !important;
    font-size: 11px !important;
}
body {
   
}
/* ===== BOTÃO DE MÍDIA DO AFTER ===== */

.media-upload {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.media-button {
    width: auto !important;
    min-width: 118px;
    height: 34px;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    background: transparent;
    color: #b8b8c8;
    border: 1px solid #2d2d42;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .media-button:hover {
        background: rgba(139, 92, 246, 0.12);
        border-color: #7657ff;
        color: white;
    }
/* ===== MÍDIA DOS POSTS ===== */

.post-media {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #07070c;
    border: 1px solid #252536;
}

    .post-media img,
    .post-media video {
        display: block;
        width: 100%;
        max-height: 620px;
    }

    .post-media img {
        object-fit: cover;
    }

    .post-media video {
        object-fit: contain;
        background: #000;
    }
/* =====================================================
   AFTER — VIBE LIVRE
   ===================================================== */

.vibe-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vibe-input {
    width: 125px;
    height: 34px;
    padding: 0 12px;
    background: #151521;
    color: #ffffff;
    border: 1px solid #2d2d42;
    border-radius: 999px;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    transition: 0.2s ease;
}

    .vibe-input::placeholder {
        color: #77778c;
    }

    .vibe-input:focus {
        width: 155px;
        border-color: #7657ff;
        background: #191827;
    }

.vibe-suggestions {
    display: flex;
    align-items: center;
    gap: 5px;
}

button.vibe-suggestion {
    appearance: none;
    -webkit-appearance: none;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: transparent;
    color: #a9a9bb;
    border: 1px solid #29293b;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}

    button.vibe-suggestion:hover {
        color: #ffffff;
        background: rgba(139, 92, 246, 0.12);
        border-color: #7657ff;
    }
/* ===== AJUSTE DO COMPOSER / VIBES ===== */

.composer-bottom {
    flex-wrap: wrap;
    gap: 10px;
}

.vibe-picker {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.vibe-input {
    width: 135px;
    flex-shrink: 0;
}

.vibe-suggestions {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-left: 2px;
}

button.vibe-suggestion {
    flex-shrink: 0;
}

/* =====================================================
   AFTER DIRECT — MÍDIA NAS MENSAGENS
   ===================================================== */

.message-bubble.has-media {
    padding: 7px;
    overflow: hidden;
}

.direct-message-image,
.direct-message-video {
    display: block;
    width: min(340px, 100%);
    max-height: 420px;
    border-radius: 12px;
    object-fit: contain;
    background: #090a10;
}

.direct-message-audio {
    display: block;
    width: min(300px, 100%);
    max-width: 100%;
}

.message-bubble.has-media p {
    padding: 8px 6px 2px;
}

.message-bubble.has-media > span {
    padding: 0 5px 2px;
}

.chat-send-button:disabled {
    opacity: .55;
    cursor: wait;
    transform: none;
}

/* =========================================================
   AFTER DIRECT — MENU DA MENSAGEM
   ========================================================= */

.message-bubble {
    position: relative;
}

.message-options {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(20, 20, 30, 0.55);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.message-bubble:hover .message-options {
    opacity: 1;
}

.message-options:hover {
    background: rgba(20, 20, 30, 0.9);
}


/* MENU */

.message-menu {
    display: none;
    position: absolute;
    top: 38px;
    left: 8px;
    min-width: 135px;
    padding: 6px;
    background: #15151f;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 50;
}

    .message-menu.active {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .message-menu button {
        width: 100%;
        padding: 9px 12px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #f5f5f7;
        text-align: left;
        font-size: 13px;
        cursor: pointer;
        transition: background 0.15s ease;
    }

        .message-menu button:hover {
            background: rgba(255, 255, 255, 0.08);
        }

        .message-menu button.delete {
            color: #ff6b7a;
        }

            .message-menu button.delete:hover {
                background: rgba(255, 80, 100, 0.10);
            }
/* =========================================================
   AFTER DIRECT — EDITAR MENSAGEM
   ========================================================= */

.message-edit-box {
    width: 100%;
    min-width: 220px;
    padding-top: 4px;
}

.message-edit-input {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    box-sizing: border-box;
    resize: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    outline: none;
    background: rgba(15, 12, 25, 0.32);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.15s ease, background 0.15s ease;
}

    .message-edit-input:focus {
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(15, 12, 25, 0.45);
    }


/* BOTÕES */

.message-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 7px;
}

    .message-edit-actions button {
        border: none;
        border-radius: 9px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.1s ease;
    }

        .message-edit-actions button:active {
            transform: scale(0.96);
        }


/* CANCELAR */

.message-edit-cancel {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
}

    .message-edit-cancel:hover {
        background: rgba(255, 255, 255, 0.17);
    }


/* SALVAR */

.message-edit-save {
    background: #ffffff;
    color: #6f35d9;
}

    .message-edit-save:hover {
        background: #eeeeff;
    }

    .message-edit-save:disabled {
        opacity: 0.55;
        cursor: default;
    }
/* =========================================================
   AFTER DIRECT — VISUAL V0.2
   Chat mais amplo / estilo social moderno
   ========================================================= */


/* ----- ÁREA GERAL DO DIRECT ----- */

.messages-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    width: 100%;
}


/* ----- ÁREA DAS MENSAGENS ----- */

.chat-messages {
    padding: 30px 24px 22px;
    gap: 10px;
}


/* ----- LINHA DE CADA MENSAGEM ----- */

.message-row {
    width: 100%;
    display: flex;
}

    .message-row.mine {
        justify-content: flex-end;
    }

    .message-row.theirs {
        justify-content: flex-start;
    }


/* ----- BOLHAS ----- */

.message-bubble {
    position: relative;
    width: fit-content;
    max-width: min(78%, 620px);
    padding: 11px 15px 8px;
    border-radius: 21px;
    word-break: break-word;
    overflow-wrap: anywhere;
}


/* MINHAS */

.message-row.mine .message-bubble {
    background: linear-gradient( 135deg, #7657ff, #a855f7 );
    border-bottom-right-radius: 7px;
    color: white;
}


/* OUTRA PESSOA */

.message-row.theirs .message-bubble {
    background: #181a27;
    border: 1px solid var(--border);
    border-bottom-left-radius: 7px;
    color: white;
}


/* TEXTO */

.message-bubble p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    white-space: pre-wrap;
}


/* HORÁRIO */

.message-bubble > span {
    display: block;
    margin-top: 5px;
    text-align: right;
    font-size: 10px;
    opacity: 0.68;
}


/* =========================================================
   MÍDIA
   ========================================================= */

.message-bubble.has-media {
    padding: 6px;
    max-width: min(82%, 390px);
    overflow: visible;
}


.direct-message-image,
.direct-message-video {
    display: block;
    width: min(360px, 100%);
    max-width: 100%;
    max-height: 500px;
    border-radius: 17px;
    object-fit: contain;
    background: #090a10;
}


.direct-message-audio {
    display: block;
    width: 320px;
    max-width: 100%;
}


/* Texto enviado junto da mídia */

.message-bubble.has-media p {
    padding: 9px 8px 3px;
}


/* horário da mídia */

.message-bubble.has-media > span {
    padding: 0 7px 3px;
}


/* =========================================================
   EDITAR MENSAGEM
   ========================================================= */

.message-edit-box {
    width: min(360px, 100%);
    min-width: 0;
    padding: 2px 0 0;
}


.message-edit-input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 76px;
    max-height: 180px;
    padding: 11px 13px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 14px;
    outline: none;
    background: rgba(13, 10, 24, .38);
    color: white;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
}


    .message-edit-input:focus {
        border-color: rgba(255,255,255,.65);
        background: rgba(13,10,24,.50);
        box-shadow: 0 0 0 3px rgba(255,255,255,.07);
    }


/* BOTÕES DO EDITOR */

.message-edit-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
}


    .message-edit-actions button {
        appearance: none;
        border: none;
        border-radius: 10px;
        padding: 7px 12px;
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }


.message-edit-cancel {
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.85);
}


    .message-edit-cancel:hover {
        background: rgba(255,255,255,.17);
    }


.message-edit-save {
    background: white;
    color: #7041db;
}


    .message-edit-save:hover {
        background: #f0edff;
    }


/* =========================================================
   BOTÃO ⋯
   ========================================================= */

/*
   Nas mensagens próprias, deixa o ⋯ do lado de fora da bolha.
   Assim ele não fica em cima do texto.
*/

.message-row.mine .message-options {
    left: auto;
    right: calc(100% + 7px);
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--muted);
    opacity: 0;
}


.message-row.mine .message-bubble:hover .message-options {
    opacity: 1;
}


.message-row.mine .message-options:hover {
    color: white;
    background: rgba(255,255,255,.06);
}


/* MENU abre para a esquerda */

.message-row.mine .message-menu {
    left: auto;
    right: calc(100% + 8px);
    top: 25px;
}


/* =========================================================
   COMPOSER
   ========================================================= */

.chat-composer {
    padding: 14px 18px;
    gap: 10px;
}


    .chat-composer textarea {
        min-height: 46px;
        padding: 12px 16px;
        border-radius: 23px;
        font-size: 14px;
    }


.chat-media-button,
.chat-send-button {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .chat-messages {
        padding: 18px 11px;
    }

    .message-bubble {
        max-width: 86%;
    }

        .message-bubble.has-media {
            max-width: 88%;
        }

    .direct-message-image,
    .direct-message-video {
        width: min(310px, 100%);
    }

    .message-edit-box {
        width: 100%;
    }
}
body.direct-mode .rightbar {
    display: none !important;
}

body.direct-mode .app {
    grid-template-columns: 220px minmax(0, 1fr) !important;
}

body.direct-mode .main {
    width: 100%;
    max-width: none;
}

body.direct-mode #messagesPage {
    width: 100%;
    max-width: none;
}
/* =========================================================
   AFTER — NOTIFICAÇÕES V0.1
   ========================================================= */


/* ----- PÁGINA ----- */

#notificationsPage {
    width: 100%;
}


/* ----- CABEÇALHO ----- */

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


    .notifications-header h2 {
        margin: 3px 0 0;
        font-size: 24px;
        line-height: 1.15;
        color: white;
    }


/* ----- MARCAR TODAS COMO LIDAS ----- */

.mark-read-button {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


    .mark-read-button:hover {
        color: white;
        border-color: rgba(139, 92, 246, 0.55);
        background: rgba(139, 92, 246, 0.10);
    }


/* ----- LISTA ----- */

.notifications-list {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(13, 14, 24, 0.72);
}


/* ----- CADA NOTIFICAÇÃO ----- */

.notification-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.18s ease;
    cursor: pointer;
}


    .notification-item:last-child {
        border-bottom: none;
    }


    .notification-item:hover {
        background: rgba(255, 255, 255, 0.035);
    }


    /* Não lida */

    .notification-item.unread {
        background: rgba(126, 87, 255, 0.08);
    }


        .notification-item.unread:hover {
            background: rgba(126, 87, 255, 0.13);
        }


/* ----- AVATAR ----- */

.notification-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #7657ff, #a855f7 );
    color: white;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 5px 18px rgba(118, 87, 255, 0.20);
}


/* ----- TEXTO ----- */

.notification-content {
    flex: 1;
    min-width: 0;
}


    .notification-content p {
        margin: 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: 14px;
        line-height: 1.4;
    }


    .notification-content strong {
        color: white;
        font-weight: 800;
    }


    .notification-content > span {
        display: block;
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
    }


/* ----- BOLINHA NÃO LIDA ----- */

.notification-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.65);
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.notifications-empty,
.notifications-loading {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    text-align: center;
    color: var(--muted);
}


    .notifications-empty .empty-icon {
        width: 58px;
        height: 58px;
        display: grid;
        place-items: center;
        margin-bottom: 15px;
        border: 1px solid rgba(139, 92, 246, 0.30);
        border-radius: 50%;
        background: rgba(139, 92, 246, 0.08);
        color: #9b74ff;
        font-size: 27px;
    }


    .notifications-empty strong {
        color: white;
        font-size: 17px;
    }


    .notifications-empty p {
        max-width: 330px;
        margin: 7px 0 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
    }


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

@media (max-width: 600px) {

    .notifications-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .mark-read-button {
        width: 100%;
    }


    .notification-item {
        padding: 12px 14px;
    }


    .notification-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}
/* =========================================================
   AFTER — MENU DOS POSTS
   ========================================================= */

.post-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-menu-wrapper {
    position: relative;
}

.post-menu-button {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #a6a6b5;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .post-menu-button:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #ffffff;
    }

.post-menu {
    position: absolute;
    top: 38px;
    right: 0;
    min-width: 145px;
    padding: 6px;
    background: #15151d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 50;
}

    .post-menu.active {
        display: block;
    }

    .post-menu button {
        width: 100%;
        padding: 10px 12px;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: #f2f2f5;
        text-align: left;
        font: inherit;
        cursor: pointer;
    }

        .post-menu button:hover {
            background: rgba(255, 255, 255, 0.07);
        }

        .post-menu button.danger {
            color: #ff6b7a;
        }

/* =========================================================
   AFTER — EDITAR PERFIL
   ========================================================= */

.profile-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-profile-button {
    border: 1px solid #41396c;
    background: #211d39;
    color: #d8d4ff;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.edit-profile-button:hover {
    background: #2b2649;
    border-color: #5b50a0;
    color: white;
    transform: translateY(-1px);
}

.edit-profile-box {
    width: min(540px, 100%);
}

.edit-profile-avatar-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-2);
}

.edit-profile-avatar-preview {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #7567ff, #d27cff);
    color: white;
    font-size: 24px;
    font-weight: 800;
}

.edit-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-profile-avatar-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.edit-profile-avatar-copy strong {
    font-size: 14px;
}

.edit-profile-avatar-copy span {
    color: var(--muted);
    font-size: 11px;
}

.edit-profile-photo-button {
    margin-top: 7px;
    border: 1px solid var(--border);
    background: var(--surface-3);
    color: white;
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 11px;
}

.edit-profile-photo-button:hover {
    border-color: #514990;
}

.edit-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edit-profile-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.edit-profile-field > span {
    color: #d8dae3;
    font-size: 12px;
    font-weight: 700;
}

.edit-profile-field input,
.edit-profile-field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: 0;
    background: var(--surface-2);
    color: white;
    padding: 11px 12px;
}

.edit-profile-field textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

.edit-profile-field input:focus,
.edit-profile-field textarea:focus {
    border-color: #5b50a0;
}

.edit-profile-field small {
    align-self: flex-end;
    color: var(--muted-2);
    font-size: 10px;
}

.edit-profile-message {
    min-height: 18px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.edit-profile-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

@media (max-width: 600px) {
    .profile-heading-row {
        align-items: flex-start;
        gap: 12px;
    }

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

    .edit-profile-avatar-area {
        align-items: flex-start;
    }
}
/* =========================================================
   AFTER — POSTS COMPACTOS
   ========================================================= */

.post {
    padding: 16px 18px;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-info {
    min-width: 0;
}

.post-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-text {
    margin: 14px 0;
    padding: 0;
    line-height: 1.45;
}

.post-media {
    margin: 14px 0;
    width: 100%;
}

    .post-media img,
    .post-media video {
        display: block;
        width: 100%;
        height: auto;
        max-height: 620px;
        object-fit: contain;
        border-radius: 14px;
    }

.actions {
    margin-top: 12px;
    padding-top: 10px;
}
/* =========================================================
   AFTER — EXPLORAR
   ========================================================= */

.explore-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

    .explore-search span {
        color: var(--muted);
        font-size: 18px;
    }

    .explore-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-size: 14px;
    }

        .explore-search input::placeholder {
            color: var(--muted-2);
        }

    .explore-search:focus-within {
        border-color: var(--purple);
    }

.explore-heading {
    margin-bottom: 14px;
    padding: 0 3px;
}

    .explore-heading h2 {
        font-size: 17px;
    }

    .explore-heading span {
        display: block;
        margin-top: 4px;
        color: var(--muted-2);
        font-size: 12px;
    }

.explore-people-list {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.explore-person {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--border);
}

    .explore-person:last-child {
        border-bottom: 0;
    }

.explore-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient( 135deg, #7567ff, #d27cff );
    color: white;
    font-weight: 700;
}

    .explore-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.explore-person-info {
    flex: 1;
    min-width: 0;
}

    .explore-person-info strong {
        display: block;
        font-size: 14px;
    }

    .explore-person-info span {
        display: block;
        margin-top: 2px;
        color: var(--muted-2);
        font-size: 11px;
    }

    .explore-person-info p {
        margin-top: 6px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.4;
    }

.explore-empty {
    padding: 50px 20px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}
/* =========================================================
   AFTER — PERFIL PÚBLICO
   ========================================================= */

#publicProfilePage {
    width: 100%;
}

/* VOLTAR */

.public-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    .public-profile-back:hover {
        color: var(--text);
        border-color: var(--purple);
        background: var(--surface-2);
    }


/* CARD PRINCIPAL */

.public-profile-card {
    position: relative;
    margin-top: -34px;
}


/* AVATAR */

#publicProfileAvatar {
    overflow: hidden;
}

    #publicProfileAvatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


/* CABEÇALHO */

.profile-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.profile-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* BOTÃO SEGUIR */

#publicProfileFollowButton {
    min-width: 90px;
    padding: 10px 17px;
    border: 1px solid rgba(139, 110, 255, 0.45);
    border-radius: 11px;
    background: rgba(124, 92, 255, 0.16);
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

    #publicProfileFollowButton:hover {
        background: rgba(124, 92, 255, 0.28);
        border-color: var(--purple);
    }


/* BOTÃO MENSAGEM */

#publicProfileMessageButton {
    padding: 10px 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

    #publicProfileMessageButton:hover {
        color: var(--text);
        border-color: var(--purple);
    }


/* ÁREA DE PUBLICAÇÕES */

.profile-posts-title {
    margin-top: 22px;
}

#publicProfileFeed {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}


/* PERFIL PRIVADO — USAREMOS LOGO DEPOIS */

.public-profile-private {
    margin-top: 20px;
    padding: 55px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

    .public-profile-private > div {
        margin-bottom: 12px;
        font-size: 30px;
    }

    .public-profile-private strong {
        font-size: 16px;
    }

    .public-profile-private span {
        max-width: 360px;
        margin-top: 7px;
        color: var(--muted-2);
        font-size: 12px;
        line-height: 1.5;
    }


/* RESPONSIVO */

@media (max-width: 700px) {

    .profile-heading-row {
        flex-direction: column;
    }

    .profile-heading-actions {
        width: 100%;
    }

    #publicProfileFollowButton,
    #publicProfileMessageButton {
        flex: 1;
    }
}
/* =========================================================
   V0.3 — SOLICITAÇÕES PARA SEGUIR
   ========================================================= */

.follow-request-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

    .follow-request-item .notification-content {
        flex: 1;
        min-width: 0;
    }

.follow-request-actions {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
    margin-left: auto !important;
}


    /* BOTÕES */

    .follow-request-actions button {
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        padding: 8px 15px;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    }


        /* RECUSAR */

        .follow-request-actions button:first-child {
            background: transparent;
            color: #a9a9b8;
        }

            .follow-request-actions button:first-child:hover {
                background: rgba(255, 255, 255, 0.06);
                color: #ffffff;
                border-color: rgba(255, 255, 255, 0.20);
            }


        /* ACEITAR */

        .follow-request-actions button:last-child {
            background: linear-gradient( 135deg, #765cff, #a855f7 );
            color: #ffffff;
            border-color: transparent;
            box-shadow: 0 4px 18px rgba(139, 92, 246, 0.22);
        }

            .follow-request-actions button:last-child:hover {
                transform: translateY(-1px);
                box-shadow: 0 6px 22px rgba(139, 92, 246, 0.32);
            }


        /* CLIQUE */

        .follow-request-actions button:active {
            transform: scale(0.97);
        }


/* CELULAR */

@media (max-width: 650px) {

    .follow-request-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .follow-request-actions {
        width: 100%;
        margin-left: 58px !important;
    }

        .follow-request-actions button {
            flex: 1;
        }
}