/* ==========================================================================
    RESET BÁSICO E CONFIGURAÇÕES GLOBAIS
    ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.auth-body {
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
    ESTILOS DAS PÁGINAS DE LOGIN E REGISTRO
    ========================================================================== */
body.auth-body .navbar-auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.auth-container {
    text-align: center;
    width: 100%;
    max-width: 380px;
    padding: 20px;
    margin-top: 60px;
}

.auth-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-box {
    background-color: white;
    border: 2px solid #4087e1;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.auth-box h2 {
    margin-top: 0;
    margin-bottom: 28px;
    color: #4087e1;
    font-size: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

.birthdate-container {
    display: flex;
    gap: 10px;
}

.birthdate-container select {
    flex: 1;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background-color: #4087e1;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2f6bc4;
}

.switch-auth {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

body.theme-dark .switch-auth {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.switch-auth span {
    display: block;
    color: #666;
    margin-bottom: 12px;
}

/* Rodapé de copyright e seletor de idioma nas páginas de login/registro -
   estilo Instagram: uma faixa só embaixo, com linha divisória em cima,
   copyright e idioma lado a lado */
.auth-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-size: 12px;
    color: #999;
}

body.theme-dark .auth-footer-bar {
    background-color: #121212;
    border-top-color: rgba(255, 255, 255, 0.12);
    color: #777;
}

.auth-language-select {
    font-size: 12px;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
}

body.theme-dark .auth-language-select {
    color: #ccc;
    background: transparent;
}

body.theme-dark .auth-language-select option {
    background-color: #1e1e1e;
}

/* ==========================================================================
    ESTILOS DO MENU SUPERIOR (NAVBAR)
    ========================================================================== */
.navbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 12px 12px 20px; 
    background-color: #ffffff;
    color: #111111;
    font-size: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 55px; 
}

.navbar .logo {
    font-weight: 800;
    font-size: 24px; 
    letter-spacing: 0.5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #111111;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.navbar .logo:hover {
    transform: translateX(-50%) scale(1.15);
}

.logo-img {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    display: block;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1;
}

.nav-icon-top {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-icon-top:hover {
    transform: scale(1.15);
}

.nav-icon-top-img {
    height: 30px !important;
    max-height: 30px !important;
    width: 30px !important;
    max-width: 30px !important;
    object-fit: contain;
    display: block;
}

.nav-avatar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-avatar {
    width: 38px; 
    height: 38px; 
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s;
}

.nav-avatar:hover {
    transform: scale(1.05);
}

/* ==========================================================================
    ESTILOS DO MINI MENU FLUTUANTE (DROPDOWN) 
    ========================================================================== */
.profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.navbar-left-icons {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-left-icons .mini-dropdown {
    left: 0;
    right: auto;
}

.mini-dropdown {
    display: none;
    position: absolute;
    top: 100%; 
    right: 0;   
    margin-top: 8px; 
    padding: 6px 0;
    background-color: #f0f0f0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 170px; 
    z-index: 1000;
}

.mini-dropdown.show {
    display: block;
    animation: fadeInDropdown 0.15s ease-out;
}

.dropdown-item {
    display: block;
    margin: 4px 6px;
    padding: 13px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    border-radius: 8px;
    transition: background-color 0.15s;
}

.dropdown-item-icon {
    display: inline-block;
    height: 20px;
    width: 20px;
    object-fit: contain;
    vertical-align: -3px;
    margin-right: 10px;
}

.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

body.theme-dark .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background-color: #cbd5e1;
    margin: 4px 0;
}

.dropdown-item.logout-item {
    color: #ef4444;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
    ÁREA DE CONTEÚDO PRINCIPAL
    ========================================================================== */
.main-content-area {
    flex: 1;
}

.home-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 15px;
    width: 100%;
}

/* ==========================================================================
    LAYOUT DE 3 COLUNAS DA HOME (foto | publicações | amigos)
    ========================================================================== */
.home-layout {
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    grid-template-areas: "profile status friends" "profile feed friends";
    gap: 20px;
    align-items: start;
}

/* O agrupador de perfil+amigos é só um recurso pro celular reorganizar -
   no PC ele "desaparece" (display:contents), deixando os dois virarem
   itens diretos do grid de novo, exatamente como antes */
.home-mobile-top-row {
    display: contents;
}

.home-profile-card {
    grid-area: profile;
}

.home-sidebar-right {
    grid-area: friends;
}

.home-status-bar-wrap {
    grid-area: status;
}

.home-feed-column {
    grid-area: feed;
}

.home-profile-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.home-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.home-bio-text {
    font-size: 13px;
    color: #333;
    margin-top: 15px;
    text-align: left;
    line-height: 1.4;
}

.home-feed {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    min-width: 0;
}

.home-sidebar-right {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.home-sidebar-right h3 {
    margin-top: 0;
    font-size: 1em;
    color: #000;
}

.home-empty-text {
    font-size: 13px;
    color: #777;
}

body.theme-dark .home-profile-card,
body.theme-dark .home-feed,
body.theme-dark .home-sidebar-right {
    background-color: #111111 !important;
    color: #fff !important;
}
body.theme-dark .home-bio-text {
    color: #fff !important;
}
body.theme-dark .home-sidebar-right h3 {
    color: #fff !important;
}
body.theme-dark .home-empty-text {
    color: #aaa !important;
}

.main-content {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.section-title {
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 10px;
    margin-top: 0;
}

.profile-edit-layout {
    display: flex;
    gap: 36px;
    margin-top: 24px;
    align-items: flex-start;
}

.profile-pic-section {
    text-align: center;
    width: 200px;
    flex-shrink: 0;
    background-color: #f7f8fa;
    border-radius: 18px;
    padding: 28px 16px;
}

body.theme-dark .profile-pic-section {
    background-color: #1a1a1a;
}

.profile-data-section {
    flex: 1;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    cursor: pointer;
}

.round-pic {
    border-radius: 50%;
    overflow: hidden;
}

.round-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.profile-pic-container:hover .avatar-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    padding: 0 8px;
}

.profile-name-display {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 12px;
    color: #111;
}

.profile-username-display {
    font-weight: 500;
    margin-top: 2px;
    color: #666;
    font-size: 0.9em;
}

.profile-location-display {
    font-size: 13px;
    font-weight: normal;
    color: #475569;
    margin: 10px 0 15px;
    word-break: break-word;
}

.location-link {
    color: #4087e1;
    text-decoration: none;
}

.location-link:hover {
    text-decoration: underline;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-count {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.stat-label {
    font-size: 11px;
    color: #000;
    text-transform: none;
    letter-spacing: 0.5px;
}

.edit-group {
    margin-bottom: 18px;
}

.edit-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

body.theme-dark .edit-group label {
    color: #ccc;
}

.edit-group input, .edit-group textarea, .edit-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f2f3f5;
    font-family: inherit;
    color: inherit;
    transition: background-color 0.15s, box-shadow 0.15s;
}

body.theme-dark .edit-group input,
body.theme-dark .edit-group textarea,
body.theme-dark .edit-group select {
    background-color: #262626;
}

.edit-group input:focus, .edit-group textarea:focus, .edit-group select:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .edit-group input:focus,
body.theme-dark .edit-group textarea:focus,
body.theme-dark .edit-group select:focus {
    background-color: #1a1a1a;
}

.mini-emoji {
    font-size: 21px; 
    line-height: 1;
}

img[data-icon="PáginaInicial"] {
    filter: brightness(0);
}
body.theme-dark img[data-icon="PáginaInicial"] {
    filter: brightness(0) invert(1);
}

textarea {
    resize: none;
}

/* ==========================================================================
    CONFIGURAÇÃO DO MODO ESCURO (ÚNICO TEMA ALTERNATIVO)
    ========================================================================== */
body.theme-dark {
    background-color: #121212 !important;
    color: #ffffff;
}
body.theme-dark .navbar {
    background-color: #121212 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}
body.theme-dark .main-content {
    background-color: #111111 !important;
    color: #fff !important;
}
body.theme-dark .mini-dropdown {
    background-color: #1e1e1e !important;
    border: none !important;
    color: #fff !important;
}
body.theme-dark .auth-box {
    background-color: #111111 !important;
    border-color: #333 !important;
    color: #fff !important;
}
body.theme-dark h2, body.theme-dark h3, body.theme-dark h4, body.theme-dark label, body.theme-dark p, body.theme-dark .dropdown-item {
    color: #fff !important;
}
body.theme-dark .dropdown-item.logout-item {
    color: #ef4444 !important;
}
body.theme-dark input, body.theme-dark select, body.theme-dark textarea {
    background-color: #1e1e1e !important;
    border-color: #444 !important;
    color: #fff !important;
}
body.theme-dark select option {
    background-color: #1e1e1e;
    color: #fff;
}
body.theme-dark .section-title {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}
body.theme-dark .switch-auth {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}
body.theme-dark .profile-stats {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}
body.theme-dark .profile-name-display {
    color: #fff !important;
}
body.theme-dark .profile-username-display {
    color: #ccc !important;
}
body.theme-dark .stat-count,
body.theme-dark .stat-label {
    color: #fff !important;
}
body.theme-dark .profile-location-display {
    color: #fff !important;
}
body.theme-dark .logo {
    color: #4087e1 !important;
}

body.theme-dark .bottom-nav {
    background-color: #111111 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    body.theme-dark .bottom-nav {
        background: rgba(30, 30, 30, 0.55) !important;
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }
}

/* ==========================================================================
    PAINEL DE NOTIFICAÇÕES
    ========================================================================== */
.notif-dropdown {
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    padding: 8px;
}

.notif-empty {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin: 10px 0;
}

body.theme-dark .notif-empty {
    color: #aaa;
}

/* ==========================================================================
    MODAL DE CRIAR PUBLICAÇÃO
    ========================================================================== */
.post-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.post-modal-overlay.show {
    display: flex;
}

.post-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

body.theme-dark .post-modal-box {
    background: #1e1e1e;
    color: #fff;
}

.post-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.post-modal-close:hover {
    opacity: 1;
}

.post-modal-box h3 {
    margin: 0 0 4px;
}

.post-modal-subtitle {
    font-size: 13px;
    color: #777;
    margin: 0 0 20px;
}

body.theme-dark .post-modal-subtitle {
    color: #aaa;
}

.post-modal-options {
    display: flex;
    gap: 12px;
}

.post-modal-option {
    flex: 1;
    padding: 18px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.post-modal-option:hover {
    background: #f0f0f0;
}

body.theme-dark .post-modal-option {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.theme-dark .post-modal-option:hover {
    background: #333;
}

.post-modal-note {
    font-size: 12px;
    color: #cc0000;
    margin: 14px 0 0;
}

/* ==========================================================================
    CAIXA DE POSTAR (usada no "Comentar", embaixo do feed)
    ========================================================================== */
.x-feed-empty {
    text-align: center;
    opacity: 0.7;
    margin-top: 40px;
}

.x-compose-box {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.theme-dark .x-compose-box {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.x-compose-box textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.x-compose-box textarea:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .x-compose-box textarea {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .x-compose-box textarea:focus {
    background-color: #1a1a1a;
}

.x-compose-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.x-compose-attach-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    line-height: 1;
}

.x-compose-attach-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .x-compose-attach-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.comentar-attach-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 10px;
    margin-top: 10px;
    display: block;
}

.x-compose-actions #comentarPostBtn {
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.x-compose-actions #comentarPostBtn:hover {
    background-color: #2f6bc4;
}



/* ==========================================================================
    FEED DE VÍDEOS: rolagem vertical, um vídeo por tela (estilo Reels), 9:16
    ========================================================================== */
.videos-feed {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
    overscroll-behavior-x: none;
}

body.pagina-videos {
    background-color: #000;
    overscroll-behavior: none;
}

.videos-feed::-webkit-scrollbar {
    display: none;
}

.video-slide {
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

body.theme-dark .video-slide {
    background-color: #121212;
}

.video-slide-inner {
    height: 100%;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: relative;
    overflow: hidden;
}

body.theme-dark .video-slide-inner {
    background-color: #1e1e1e;
    color: #fff;
}

.video-slide-inner video,
.video-slide-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
    PUBLICAÇÕES (fotos na Home, comentários no "Comentar"): data + apagar
    ========================================================================== */
.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 16px;
}

.post-item {
    position: relative;
}

.post-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: pointer;
}

.post-item-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 8px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}

.post-item:hover .post-item-meta {
    opacity: 1;
}

.post-item-delete {
    pointer-events: auto;
}

.post-item-delete,
.comment-item-action {
    background: none;
    border: none;
    color: #4087e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.post-item-delete:hover,
.comment-item-action:hover {
    text-decoration: underline;
}

.comment-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .comment-item {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.comment-item-text {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #777;
}

body.theme-dark .comment-item-footer {
    color: #aaa;
}

.comment-item-actions {
    display: flex;
    gap: 12px;
}

.comment-item textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
}

body.theme-dark .comment-item textarea {
    background-color: #1e1e1e;
    border-color: #444;
    color: #fff;
}

/* ==========================================================================
    MENU LATERAL (à direita, em todas as páginas)
    ========================================================================== */
body {
    padding-right: 220px;
    box-sizing: border-box;
}

body.auth-body {
    padding-right: 0;
}

/* ==========================================================================
    MOBILE: barra inferior estilo Instagram, em vez da barra lateral
    ========================================================================== */
@media (max-width: 768px) {
    body {
        padding-right: 0 !important;
        padding-bottom: 82px;
    }

    .side-nav {
        display: none !important;
    }

    .mobile-top-bar {
        display: flex !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    .main-content-area {
        padding-top: 52px;
    }

    .videos-feed {
        padding-top: 0;
    }

    /* O sino de notificações mobile abre o painel logo embaixo do
       próprio ícone (não mais um painel de largura total) */
    .notif-dropdown.show {
        position: fixed !important;
        top: 52px !important;
        right: 50px !important;
        left: auto !important;
        bottom: auto !important;
        width: 300px !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 70px) !important;
    }

    /* Mesma lógica pro menu de Salvos/Configurações/Sair, aberto pela
       fotinho no canto ESQUERDO da barra de cima - abre pra baixo e
       pra direita, saindo de onde a foto está */
    .side-nav-bottom-wrap .mini-dropdown.show {
        position: fixed !important;
        top: 52px !important;
        left: 14px !important;
        right: auto !important;
        bottom: auto !important;
        width: 200px !important;
    }
}

.mobile-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background-color: #ffffff;
    z-index: 950;
    transition: transform 0.25s ease;
}

.mobile-top-bar.escondida {
    transform: translateY(-100%);
}

/* Na página de Vídeos não tem papel de parede nem precisa de "caixa" -
   a barra de cima fica vazada, flutuando por cima do vídeo (igual
   Instagram/TikTok), pra dar pra ver o vídeo inteiro atrás dela */
body.pagina-videos .mobile-top-bar {
    background: transparent !important;
}

body.pagina-videos .mobile-top-bar-avatar {
    border: 1.5px solid #fff;
}

@media (max-width: 768px) {
    body.pagina-videos .mobile-top-bar-icons img,
    body.pagina-videos .mobile-top-bar-logo img {
        filter: brightness(0) invert(1);
    }

    /* Em Vídeos, só o ícone de Pesquisar fica visível na barra de cima -
       logo, notificações e menu de perfil somem (menos poluição visual
       por cima do vídeo) */
    body.pagina-videos .mobile-top-bar-avatar-link,
    body.pagina-videos .mobile-top-bar-logo,
    body.pagina-videos [data-mobile-notif-trigger] {
        display: none !important;
    }

    body.pagina-videos .mobile-top-bar-icons {
        margin-left: auto;
    }
}

.mobile-top-bar-avatar-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
}

body.theme-dark .mobile-top-bar {
    background-color: #121212;
}

.mobile-top-bar-logo {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mobile-top-bar-logo img {
    height: 34px;
}

.mobile-top-bar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.mobile-top-bar-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

.mobile-top-bar-icons img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 14px;
    right: 14px;
    left: auto;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    background-color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 950;
}

body.theme-dark .mobile-bottom-nav {
    background-color: #1e1e1e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.mobile-bottom-nav-link img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.mobile-bottom-nav-link.active img {
    transform: scale(1.1);
}

/* Botão flutuante de Mensagens (igual o Instagram no navegador) - só
   aparece no celular, fixo em cima da barra de baixo, do lado direito */
.mobile-messages-fab {
    display: none;
    position: fixed;
    right: 14px;
    bottom: 78px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4087e1;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 940;
}

.mobile-messages-fab img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .mobile-messages-fab {
        display: flex;
    }

    body.pagina-videos .mobile-messages-fab {
        display: none !important;
    }

    /* Deixa espaço embaixo da legenda pra ela não ficar atrás do dock
       flutuante (que fica no canto inferior direito) */
    .video-bottom-caption {
        padding-bottom: 84px !important;
        right: 90px !important;
    }
}

/* Mensagens e Grupos no celular: mostra só UMA tela por vez (lista OU
   conversa), nunca as duas espremidas juntas - igual Instagram. Um botão
   de "voltar" aparece dentro da conversa pra retornar pra lista. */
@media (max-width: 768px) {
    .groups-layout {
        display: block !important;
        max-width: 100% !important;
        height: calc(100vh - 82px) !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .groups-list {
        width: 100% !important;
        height: 100% !important;
    }

    .groups-side-panel {
        display: none !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }

    .groups-layout.mostrando-chat .groups-list {
        display: none !important;
    }

    .groups-layout.mostrando-chat .groups-side-panel {
        display: flex !important;
    }

    .voltar-lista-mobile-btn {
        display: inline-flex !important;
    }
}

.voltar-lista-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 4px;
}

.voltar-lista-mobile-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .voltar-lista-mobile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* O papel de parede usa "background-attachment: fixed", que tem
   comportamento quebrado/instável no Safari do celular - força "scroll"
   no lugar, que funciona direito em qualquer navegador mobile */
@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
        background-size: cover !important;
    }

    /* "Meu Perfil" no celular - empilha ao invés de lado a lado (que
       ficava cortado numa tela estreita) */
    .profile-preview-box {
        width: 94% !important;
        max-width: 94% !important;
        padding: 20px !important;
        max-height: 90vh !important;
    }

    .profile-edit-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .profile-pic-section {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Esconde a barrinha de rolagem visual no celular (mantém a rolagem
   funcionando normal) - fica com sensação de app de verdade, não de site */
@media (max-width: 768px) {
    html {
        scrollbar-width: none;
    }
    html::-webkit-scrollbar {
        display: none;
    }

    /* Mesma lógica de "caixa invisível" (sem borda/sombra) nas páginas de
       Grupos, Mensagens e Feed/Comentar */
    .groups-list,
    .groups-side-panel,
    .cfeed-tabs,
    .cfeed-dock,
    .cpost {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Home no celular: cartão de perfil e amigos lado a lado (2 colunas), com
   a barra de status em cima e o feed de fotos embaixo, ocupando a largura
   toda - layout pedido especificamente pro mobile */
@media (max-width: 768px) {
    /* Caixas invisíveis por padrão no celular - o fundo delas já é a
       mesma cor do fundo da página, então não aparece nada até a pessoa
       colocar um papel de parede atrás (aí sim a caixa cria contraste
       natural, sem precisar de borda nem sombra pra "desenhar" ela) */
    .home-profile-card,
    .home-sidebar-right,
    .home-status-bar-wrap,
    .home-feed,
    .home-feed-column,
    .donate-box,
    .snp-card-wrap {
        box-shadow: none !important;
        border: none !important;
        border-radius: 14px !important;
        background-color: #ffffff !important;
    }

    body.theme-dark .home-profile-card,
    body.theme-dark .home-sidebar-right,
    body.theme-dark .home-status-bar-wrap,
    body.theme-dark .home-feed,
    body.theme-dark .home-feed-column,
    body.theme-dark .donate-box {
        box-shadow: none !important;
        border: none !important;
        background-color: #121212 !important;
    }

    .home-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .home-status-bar-wrap {
        order: 0 !important;
    }

    .home-mobile-top-row {
        order: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .home-mobile-top-row > .home-status-bar-wrap,
    .home-mobile-top-row > .home-sidebar-right {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .home-mobile-profile-doacao-row {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        align-items: flex-start !important;
        width: calc(100vw - 40px) !important;
        margin: 0 auto !important;
    }

    .home-mobile-profile-doacao-row > .home-profile-card,
    .home-mobile-profile-doacao-row > .donate-box {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
    }

    .home-profile-card {
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* A caixa de doação segue a MESMA lógica visual das outras (invisível
       até ter papel de parede, cantos arredondados, sem sombra) - e fica
       compacta, só com o botão e os selos de pagamento (o texto grande
       de explicação não cabe bem numa coluna estreita no celular) */
    .donate-box {
        margin: 0 !important;
        padding: 12px 8px !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .donate-box-text {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .donate-box-details {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }

    .donate-box-btn {
        margin-bottom: 8px !important;
    }

    /* Trava GERAL: não importa o que seja (texto, imagem, div, qualquer
       coisa), nada dentro da caixa de perfil pode passar da largura dela.
       Isso resolve o problema não importa qual elemento específico esteja
       causando o alargamento. */
    .home-profile-card * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Trava TODO nível da cadeia do card "Ouvindo Spotify" pra nunca
       deixar o texto da música empurrar a largura da caixa - sem isso,
       em telas pequenas o flexbox às vezes ignora o overflow:hidden do
       card e deixa crescer mesmo assim */
    #homeSpotifyNowPlaying,
    .snp-card,
    .snp-body,
    .snp-info {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* Card do Spotify: nunca fica menor que esse tamanho, não importa se
       o nome é curto ou longo - mas SEM cortar nada (sem overflow:hidden
       aqui), então se precisar de mais espaço, ele ainda cresce, só não
       encolhe menor que isso */
    .snp-card {
        box-sizing: border-box !important;
    }

    .snp-body {
        align-items: center !important;
    }

    .snp-info {
        text-align: left !important;
    }

    /* O card do Spotify agora é uma caixa de verdade, separada, logo
       abaixo do perfil (o JS move ele pra fora da caixa de perfil só no
       celular - no PC continua dentro, como sempre foi) */
    #homeSpotifyNowPlaying {
        order: 2 !important;
        width: 280px !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .snp-title,
    .snp-artist {
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: left !important;
        display: block !important;
        word-break: normal !important;
    }

    /* Mesma proteção pra QUALQUER texto dentro da caixa de perfil - nome,
       @usuário e biografia também podem ter uma palavra grande sem
       espaço (tipo um link, ou uma palavra colada) e empurrar a largura
       da caixa igual a música fazia */
    .home-profile-card .profile-name-display,
    .home-profile-card .profile-username-display,
    .home-profile-card .home-bio-text {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .home-feed-column {
        order: 3 !important;
    }

    .home-profile-card,
    .home-sidebar-right {
        min-width: 0 !important;
        width: auto !important;
    }

    /* Caixa de Amigos no celular: em vez de uma lista alta e vertical,
       vira uma fileira compacta que arrasta pro lado - igual a barra de
       Status. Do jeito que ficou, dá pra ver umas 2 fotos de amigos sem
       precisar arrastar (o resto só arrastando), já que essa caixa
       divide a largura da tela com o cartão de perfil ao lado */
    .home-sidebar-right {
        padding: 14px 12px;
        max-height: none;
    }

    .home-sidebar-right h3 {
        font-size: 13px;
        margin: 0 0 8px;
    }

    #homeFriendsItems {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    #homeFriendsItems::-webkit-scrollbar {
        display: none;
    }

    #homeFriendsItems .friend-item {
        flex-shrink: 0;
        width: 52px;
        text-align: center;
    }

    #homeFriendsItems .friend-item img {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    #homeFriendsItems .friend-item span {
        display: block;
        font-size: 10px;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #homeFriendsEmptyText {
        font-size: 12px;
    }
}

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 220px;
    height: 100vh;
    height: 100dvh;
    padding: 14px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    overflow: hidden;
    z-index: 900;
}

body.theme-dark .side-nav {
    background-color: #121212;
    border-left-color: rgba(255, 255, 255, 0.12);
}

.side-nav-logo {
    display: flex;
    justify-content: flex-start;
    width: fit-content;
    margin: 0 0 2px;
}

.side-nav-logo img {
    height: 24px;
    width: auto;
}

.side-nav-bottom-wrap {
    margin-top: auto;
}

.side-nav-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
}

.side-nav-bottom:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .side-nav-bottom:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.side-nav-bottom img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.side-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
}

.side-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: inherit;
    font-size: 15.5px;
    font-weight: 400;
    letter-spacing: 0.1px;
    transition: background-color 0.15s;
}

.side-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .side-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.side-nav-link img {
    height: 22px;
    width: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.side-nav-link.active {
    font-weight: 700;
}

.side-nav-profile-name {
    font-size: 14px;
    font-weight: 700;
}

.side-nav-profile-username {
    font-size: 13px;
    color: #777;
}

body.theme-dark .side-nav-profile-username {
    color: #aaa;
}

.side-nav-bottom-wrap .mini-dropdown {
    left: 0;
    right: auto;
    bottom: 100%;
    top: auto;
    margin-top: 0;
    margin-bottom: 8px;
}

.side-nav-links .mini-dropdown {
    left: auto;
    right: 0;
}

@media (max-width: 900px) {
    body {
        padding-right: 70px;
    }
    .side-nav {
        width: 70px;
        align-items: center;
        padding: 20px 8px;
    }
    .side-nav-link span,
    .side-nav-profile-name,
    .side-nav-profile-username {
        display: none;
    }
    .side-nav-link {
        justify-content: center;
    }
}

/* ==========================================================================
    POSTS DO "COMENTAR" (estilo linha do tempo: cabeçalho, texto, foto, ações)
    ========================================================================== */
.cpost {
    position: relative;
    width: 100%;
    padding: 14px 16px;
    background-color: #ffffff;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

.cpost::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .cpost {
    background-color: #121212;
}

body.theme-dark .cpost::after {
    background-color: rgba(255, 255, 255, 0.07);
}

.cpost:last-child::after {
    display: none;
}

.cpost-row {
    display: flex;
    gap: 10px;
}

.cpost-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cpost-body {
    flex: 1;
    min-width: 0;
}

.cpost-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.cpost-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.cpost-name {
    font-weight: 600;
    font-size: 14.5px;
}

.cpost-username,
.cpost-time {
    font-size: 13px;
    color: #777;
}

body.theme-dark .cpost-username,
body.theme-dark .cpost-time {
    color: #aaa;
}

.cpost-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
    padding: 4px 8px;
    border-radius: 999px;
}

.cpost-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .cpost-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cpost-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 140px;
    z-index: 50;
}

body.theme-dark .cpost-menu-dropdown {
    background-color: #1e1e1e;
}

.cpost-menu-dropdown.show {
    display: block;
}

.cpost-text {
    margin: 0;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.cpost-photo {
    margin: 10px 0 0 0;
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.cpost-actions {
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cpost-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 8px;
    margin: -5px -8px;
    transition: background-color 0.15s, color 0.15s;
    font-size: 13px;
    color: #777;
}

.cpost-action-btn:hover {
    background-color: rgba(64, 135, 225, 0.1);
    color: #4087e1;
}

body.theme-dark .cpost-action-btn {
    color: #aaa;
}

.cpost-action-btn.liked {
    color: #4087e1;
}

.cpost-action-btn .cpost-action-icon {
    font-size: 16px;
}

.cpost-edit-box {
    display: block;
    width: 100%;
    margin: 4px 0 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cpost-edit-box:focus {
    outline: none;
    border-color: #4087e1;
    box-shadow: 0 0 0 3px rgba(64, 135, 225, 0.15);
}

body.theme-dark .cpost-edit-box {
    background-color: #1e1e1e;
    border-color: #444;
    color: #fff;
}

/* ==========================================================================
    LIGHTBOX: foto + legenda + comentários (abre ao clicar na foto)
    ========================================================================== */
.lightbox-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    width: 92%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Lightbox estilo Instagram: foto grande na esquerda, tudo mais na
   direita (cabeçalho, legenda, comentários, ações, campo de comentar) */
.lightbox-box-ig {
    display: flex;
    max-width: 950px;
    width: 95%;
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.lightbox-ig-left {
    flex: 1 1 55%;
    min-width: 0;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-ig {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    margin-bottom: 0;
    display: block;
}

.lightbox-ig-right {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 14px;
    overflow: visible;
}

.lightbox-ig-right .lightbox-post-header {
    flex-shrink: 0;
}

.lightbox-ig-right .lightbox-caption {
    flex-shrink: 0;
}

.lightbox-ig-right .lightbox-comments {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    margin: 10px 0 0;
    padding: 10px 6px 0;
}

.lightbox-ig-right .lightbox-post-actions {
    flex-shrink: 0;
}

.lightbox-ig-right .lightbox-comment-row {
    flex-shrink: 0;
    margin-top: 10px;
}

.lightbox-box-ig .post-modal-close {
    z-index: 5;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 10px;
    right: 10px;
}

@media (max-width: 700px) {
    .lightbox-box-ig {
        flex-direction: column;
        height: 90vh;
        max-height: 90vh;
        width: 92%;
    }
    .lightbox-ig-left {
        flex: 0 0 45%;
    }
    .lightbox-ig-right {
        flex: 1;
    }
}

body.theme-dark .lightbox-box {
    background: #1e1e1e;
    color: #fff;
}

.lightbox-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 60vh;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 12px;
    background-color: #000;
}

.lightbox-caption {
    font-size: 14px;
    margin: 0 0 14px;
}

.lightbox-comments {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

body.theme-dark .lightbox-comments {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.lightbox-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lightbox-post-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lightbox-post-header .cpost-name {
    display: block;
}

.lightbox-like-btn {
    padding: 4px 0;
}

.lightbox-comment {
    display: flex;
    gap: 10px;
    font-size: 12px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .lightbox-comment {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.lightbox-comment-body {
    flex: 1;
    min-width: 0;
}

.lightbox-comment-head {
    margin-bottom: 2px;
    font-size: 12px;
}

.lightbox-comment-text {
    margin: 2px 0 6px;
    font-size: 14px;
}

.lightbox-comment-footer {
    display: flex;
    gap: 16px;
}

.lightbox-comment-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.lightbox-comment-row input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.lightbox-comment-row input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .lightbox-comment-row input {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .lightbox-comment-row input:focus {
    background-color: #1a1a1a;
}

.lightbox-comment-row button {
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.lightbox-comment-row button:disabled {
    opacity: 0.4;
    cursor: default;
}

.post-modal-option-danger {
    background-color: #ffe5e5 !important;
    color: #cc0000 !important;
    border-color: #ffa3a3 !important;
}

.post-modal-option-primary {
    background-color: #4087e1 !important;
    color: #ffffff !important;
    border-color: #4087e1 !important;
}

.post-modal-option-primary:hover {
    background-color: #2f6bc4 !important;
}

body.theme-dark .post-modal-option-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #ff6b6b !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.x-compose-actions-single-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.post-modal-preview-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px 0;
    display: block;
}

/* ==========================================================================
    ABAS DO "COMENTAR" (Explorar / Seguindo / Amigos)
    ========================================================================== */
.cfeed-panel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.cfeed-scroll {
    order: 2;
    width: 100%;
    background-color: #ffffff;
}

body.theme-dark .cfeed-scroll {
    background-color: #121212;
}

.cfeed-dock {
    order: 3;
    position: relative;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.cfeed-dock::before {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .cfeed-dock {
    background-color: #121212;
}

body.theme-dark .cfeed-dock::before {
    background-color: rgba(255, 255, 255, 0.07);
}

.cfeed-dock.x-compose-box {
    margin-top: 0;
}

.cfeed-tabs {
    order: 1;
    position: relative;
    display: flex;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.cfeed-tabs::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .cfeed-tabs {
    background-color: #121212;
}

body.theme-dark .cfeed-tabs::after {
    background-color: rgba(255, 255, 255, 0.07);
}

.cfeed-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

body.theme-dark .cfeed-tab {
    color: #aaa;
}

.cfeed-tab:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

body.theme-dark .cfeed-tab:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.cfeed-tab.active {
    color: #111;
    border-bottom-color: #4087e1;
}

body.theme-dark .cfeed-tab.active {
    color: #fff;
}

/* ==========================================================================
    COMENTÁRIOS E RESPOSTAS DO LIGHTBOX (foto de perfil, indentação, caixa
    de resposta) — essas classes tinham ficado de fora do arquivo, causando
    a foto aparecer gigante (sem largura/altura definida) e o layout quebrado
    ========================================================================== */
.lightbox-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lightbox-replies {
    margin: 8px 0 0 0;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
    padding-left: 10px;
}

body.theme-dark .lightbox-replies {
    border-left-color: rgba(255, 255, 255, 0.15);
}

.lightbox-reply {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.lightbox-reply-avatar {
    width: 24px;
    height: 24px;
}

.lightbox-reply-header-text {
    font-size: 11px;
    font-weight: 600;
}

.lightbox-reply-tag {
    font-size: 11px;
    font-weight: 600;
    color: #4087e1;
}

.lightbox-reply-box {
    display: flex;
    gap: 6px;
    margin: 8px 0 0 28px;
    min-width: 0;
}

.lightbox-reply-box input {
    flex: 1;
    min-width: 0;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    background-color: #f2f3f5;
}

body.theme-dark .lightbox-reply-box input {
    background-color: #262626;
    color: #fff;
}

.lightbox-reply-box button {
    flex-shrink: 0;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
    GRUPOS: 3 colunas, estilo Discord (rail de ícones | lista | painel direito)
    ========================================================================== */
.groups-layout {
    display: flex;
    max-width: 900px;
    height: 80vh;
    max-height: 640px;
    margin: 24px auto 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.groups-list {
    width: 280px;
    flex-shrink: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .groups-list {
    background-color: #121212;
    border-right-color: rgba(255, 255, 255, 0.1);
}

.groups-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.theme-dark .groups-list-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.groups-search {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    box-sizing: border-box;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.groups-search:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .groups-search {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .groups-search:focus {
    background-color: #1a1a1a;
}

.groups-add-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: #4087e1;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.groups-add-btn:hover {
    background-color: #2f6bc4;
}

.groups-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.groups-side-panel {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0;
}

body.theme-dark .groups-side-panel {
    background-color: #121212;
}

.groups-side-panel h3 {
    margin-top: 0;
    font-size: 15px;
}

.groups-empty-text {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 24px;
}

body.theme-dark .groups-empty-text {
    color: #aaa;
}

@media (max-width: 900px) {
    .groups-list {
        width: 220px;
    }
}

/* ==========================================================================
    MODAL DE CRIAR GRUPO
    ========================================================================== */
.group-modal-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 380px;
    text-align: left;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
}

.group-modal-box::-webkit-scrollbar {
    width: 8px;
}

.group-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.group-modal-box::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

.group-modal-box::-webkit-scrollbar-thumb:hover {
    background-color: rgba(64, 135, 225, 0.7);
}

body.theme-dark .group-modal-box {
    background: #1e1e1e;
    color: #fff;
    scrollbar-color: rgba(64, 135, 225, 0.5) transparent;
}

.group-modal-box h3 {
    margin: 0 0 16px;
    text-align: center;
}

.group-modal-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.group-modal-photo-trigger {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.group-modal-photo-trigger img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.group-modal-photo-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.group-modal-photo-trigger:hover .group-modal-photo-overlay {
    opacity: 1;
}

.group-modal-photo-overlay span {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.group-photo-remove-link {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.group-photo-remove-link:hover {
    text-decoration: underline;
}

.group-private-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    margin: 4px 0 20px;
    cursor: pointer;
}

body.theme-dark .group-private-toggle {
    color: #aaa;
}

.group-private-toggle input {
    flex-shrink: 0;
}

/* ==========================================================================
    ITENS DA LISTA DE GRUPOS (foto + nome)
    ========================================================================== */
.group-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.group-list-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .group-list-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.group-list-item-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.group-list-item-photo-wrap img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.group-list-item-lock {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body.theme-dark .group-list-item-lock {
    background-color: #121212;
}

.group-list-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.group-list-item-name {
    font-size: 14px;
    font-weight: 600;
}

.group-list-item-category {
    font-size: 12px;
    color: #777;
}

body.theme-dark .group-list-item-category {
    color: #aaa;
}

.group-list-item.active {
    background-color: rgba(64, 135, 225, 0.12);
}

body.theme-dark .group-list-item.active {
    background-color: rgba(64, 135, 225, 0.2);
}

/* ==========================================================================
    CHAT DO GRUPO (painel da direita, quando um grupo está selecionado)
    ========================================================================== */
.groups-side-panel > h3 {
    margin: 0;
    padding: 20px 20px 0;
}

.groups-side-panel > p.groups-empty-text {
    padding: 0 20px;
}

.group-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

.group-chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.group-chat-name {
    font-weight: 600;
    font-size: 15px;
    flex: 1;
}

.group-chat-settings-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.15s;
}

.group-chat-settings-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

body.theme-dark .group-chat-settings-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.group-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.group-chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.group-chat-message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.group-chat-message-body {
    flex: 1;
    min-width: 0;
}

.group-chat-message-head {
    margin-bottom: 2px;
}

.group-chat-message-text {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

.group-chat-message-actions {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.group-chat-input-row {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .group-chat-input-row {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.group-chat-input-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.group-chat-input-row input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .group-chat-input-row input {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .group-chat-input-row input:focus {
    background-color: #1a1a1a;
}

.group-chat-input-row button {
    flex-shrink: 0;
    padding: 8px 18px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.group-chat-input-row button:hover {
    background-color: #2f6bc4;
}

/* ==========================================================================
    PESQUISAR: barra de busca, histórico, resultados e grade de explorar
    ========================================================================== */
.search-page {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.search-bar-row {
    position: relative;
    margin-bottom: 16px;
}

.search-input-box {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.search-input-box:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .search-input-box {
    background-color: #262626 !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.theme-dark .search-input-box:focus {
    background-color: #1a1a1a !important;
}

.search-history {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-bottom: 16px;
}

body.theme-dark .search-history {
    background-color: #1e1e1e;
}

.search-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 10px;
    font-size: 13px;
    font-weight: 700;
}

.search-history-header button {
    background: none;
    border: none;
    color: #4087e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.search-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.search-history-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.search-history-profile-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.search-history-profile-info small {
    color: #777;
    font-weight: normal;
}

body.theme-dark .search-history-profile-info small {
    color: #aaa;
}

.search-history-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .search-history-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.search-history-item button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 12px;
}

.search-history-item button:hover {
    color: #ef4444;
}

.search-results {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 8px;
    margin-bottom: 16px;
}

body.theme-dark .search-results {
    background-color: #1e1e1e;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.search-result-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-size: 14px;
    font-weight: 700;
}

.search-result-username {
    font-size: 13px;
    color: #777;
}

body.theme-dark .search-result-username {
    color: #aaa;
}

/* Grade "Explorar": vídeos aleatórios, cada um numa caixa arredondada,
   igual às caixas da Home */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.explore-card {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background-color: #000;
}

.explore-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-card-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

@media (max-width: 700px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
    PREVIEW DE PERFIL (abre ao clicar num resultado de busca)
    ========================================================================== */
.profile-preview-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 32px;
    width: 96%;
    max-width: 1200px;
    max-height: 94vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
}

.profile-preview-box::-webkit-scrollbar {
    width: 8px;
}

.profile-preview-box::-webkit-scrollbar-track {
    background: transparent;
}

.profile-preview-box::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

.profile-preview-box::-webkit-scrollbar-thumb:hover {
    background-color: rgba(64, 135, 225, 0.7);
}

body.theme-dark .profile-preview-box {
    background-color: #121212;
    color: #fff;
    scrollbar-color: rgba(64, 135, 225, 0.5) transparent;
}

/* ==========================================================================
    MENSAGENS: estado vazio (igual Instagram) e avatar da lista de conversas
    ========================================================================== */
.dm-list-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dm-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.dm-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

body.theme-dark .dm-status-dot {
    border-color: #121212;
}

.dm-status-dot.online {
    background-color: #4087e1;
}

.dm-status-dot.offline {
    background-color: #9ca3af;
}

.dm-list-status {
    font-size: 12px;
    color: #777;
}

body.theme-dark .dm-list-status {
    color: #aaa;
}

.dm-list-delete-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s;
}

.group-list-item:hover .dm-list-delete-btn {
    opacity: 1;
}

.dm-list-delete-btn:hover {
    color: #ef4444;
}

/* ==========================================================================
    ITENS DE NOTIFICAÇÃO (dentro do sino, no menu)
    ========================================================================== */
.notif-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    position: relative;
}

.notif-item.unread {
    background-color: rgba(64, 135, 225, 0.1);
}

body.theme-dark .notif-item.unread {
    background-color: rgba(64, 135, 225, 0.18);
}

.notif-item-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-name {
    font-weight: 700;
}

.notif-item-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
}

.notif-item-time {
    font-size: 11px;
    color: #777;
}

body.theme-dark .notif-item-time {
    color: #aaa;
}

/* Miniatura do post envolvido (tipo Instagram) */
.notif-item-thumb {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Menu "..." pra apagar a notificação */
.notif-item-menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.notif-item-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #777;
    padding: 4px 6px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.15s, background-color 0.15s;
}

.notif-item:hover .notif-item-menu-btn {
    opacity: 1;
}

.notif-item-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

body.theme-dark .notif-item-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.notif-item-menu-wrap .cpost-menu-dropdown {
    right: 0;
    left: auto;
}

/* ==========================================================================
    ROLAGEM MODERNA: barra fina e azulada em toda caixa que rola no site
    (mesmo estilo usado nos selects de Estado/Cidade)
    ========================================================================== */
.lightbox-comments,
.group-chat-messages,
.cfeed-scroll,
.lightbox-box:not(.lightbox-box-ig),
.groups-list-body,
.notif-dropdown,
.followers-modal-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.lightbox-comments::-webkit-scrollbar,
.group-chat-messages::-webkit-scrollbar,
.cfeed-scroll::-webkit-scrollbar,
.lightbox-box:not(.lightbox-box-ig)::-webkit-scrollbar,
.groups-list-body::-webkit-scrollbar,
.notif-dropdown::-webkit-scrollbar,
.followers-modal-list::-webkit-scrollbar {
    width: 8px;
}

.lightbox-comments::-webkit-scrollbar-track,
.group-chat-messages::-webkit-scrollbar-track,
.cfeed-scroll::-webkit-scrollbar-track,
.lightbox-box:not(.lightbox-box-ig)::-webkit-scrollbar-track,
.groups-list-body::-webkit-scrollbar-track,
.notif-dropdown::-webkit-scrollbar-track,
.followers-modal-list::-webkit-scrollbar-track {
    background: transparent;
}

.lightbox-comments::-webkit-scrollbar-thumb,
.group-chat-messages::-webkit-scrollbar-thumb,
.cfeed-scroll::-webkit-scrollbar-thumb,
.lightbox-box:not(.lightbox-box-ig)::-webkit-scrollbar-thumb,
.groups-list-body::-webkit-scrollbar-thumb,
.notif-dropdown::-webkit-scrollbar-thumb,
.followers-modal-list::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

.lightbox-comments::-webkit-scrollbar-thumb:hover,
.group-chat-messages::-webkit-scrollbar-thumb:hover,
.cfeed-scroll::-webkit-scrollbar-thumb:hover,
.lightbox-box:not(.lightbox-box-ig)::-webkit-scrollbar-thumb:hover,
.groups-list-body::-webkit-scrollbar-thumb:hover,
.notif-dropdown::-webkit-scrollbar-thumb:hover,
.followers-modal-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(64, 135, 225, 0.7);
}

body.theme-dark .lightbox-comments,
body.theme-dark .group-chat-messages,
body.theme-dark .cfeed-scroll,
body.theme-dark .lightbox-box:not(.lightbox-box-ig),
body.theme-dark .groups-list-body,
body.theme-dark .notif-dropdown,
body.theme-dark .followers-modal-list {
    scrollbar-color: rgba(64, 135, 225, 0.5) transparent;
}

body.theme-dark .lightbox-comments::-webkit-scrollbar-thumb,
body.theme-dark .group-chat-messages::-webkit-scrollbar-thumb,
body.theme-dark .cfeed-scroll::-webkit-scrollbar-thumb,
body.theme-dark .lightbox-box:not(.lightbox-box-ig)::-webkit-scrollbar-thumb,
body.theme-dark .groups-list-body::-webkit-scrollbar-thumb,
body.theme-dark .notif-dropdown::-webkit-scrollbar-thumb,
body.theme-dark .followers-modal-list::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.5);
}

/* Caixa de resposta (dentro dos comentários): visual mais moderno também */
.lightbox-reply-box input {
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lightbox-reply-box input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .lightbox-reply-box input:focus {
    background-color: #1a1a1a;
}

/* ==========================================================================
    LEGENDA AO POSTAR FOTO: visual mais moderno
    ========================================================================== */
.post-caption-input {
    width: 100%;
    min-height: 80px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    resize: none;
    box-sizing: border-box;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.post-caption-input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .post-caption-input {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .post-caption-input:focus {
    background-color: #1a1a1a;
}

/* ==========================================================================
    MODAL DE SEGUIDORES/SEGUINDO (duas abas)
    ========================================================================== */
.followers-modal-box {
    max-width: 400px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.followers-modal-box .post-modal-close {
    z-index: 2;
}

.followers-modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.theme-dark .followers-modal-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.followers-modal-tabs .cfeed-tab {
    padding: 16px 8px;
}

.followers-modal-search {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 14px 16px;
}

/* Estatísticas clicáveis da Home (Seguidores/Seguindo) */
.stat-item[role="button"] {
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
    transition: background-color 0.15s;
}

.stat-item[role="button"]:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .stat-item[role="button"]:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
    ESTADO "VAZIO" MAIS BONITO (abas Seguindo/Amigos do Comentar)
    ========================================================================== */
#cfeedTabEmptyText,
#comentarEmptyText {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 50px 30px !important;
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
}

body.theme-dark #cfeedTabEmptyText,
body.theme-dark #comentarEmptyText {
    background-color: #121212;
}

.cfeed-empty-icon {
    font-size: 32px;
    margin-bottom: 4px;
}

#cfeedTabEmptyText strong,
#comentarEmptyText strong {
    font-size: 15px;
}

#cfeedTabEmptyText span:not(.cfeed-empty-icon),
#comentarEmptyText span:not(.cfeed-empty-icon) {
    font-size: 13px;
    color: #777;
    max-width: 280px;
}

body.theme-dark #cfeedTabEmptyText span:not(.cfeed-empty-icon),
body.theme-dark #comentarEmptyText span:not(.cfeed-empty-icon) {
    color: #aaa;
}

/* ==========================================================================
    BOLINHA DE MENSAGENS NÃO LIDAS (no ícone "Mensagens" do menu)
    ========================================================================== */
.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: auto;
    background-color: #4087e1;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

/* ==========================================================================
    CAIXA DE DOAÇÃO (menu lateral, entre os links e o cartão de perfil)
    ========================================================================== */
.donate-box {
    margin: 20px 4px 20px;
    padding: 8px;
    border-radius: 12px;
    background-color: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-dark .donate-box {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
}

.donate-box-text {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.3;
    color: #555;
    text-align: justify;
}

body.theme-dark .donate-box-text {
    color: #bbb;
}

.donate-box-details {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    color: #4087e1;
    text-decoration: none;
}

.donate-box-details:hover {
    text-decoration: underline;
}

.donate-box-btn {
    display: block;
    width: 100%;
    padding: 6px;
    margin-bottom: 8px;
    border: none;
    border-radius: 999px;
    background-color: #4087e1;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s;
}

.donate-box-btn:hover {
    background-color: #2f6bc4;
}

.donate-box-flags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.donate-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #ffffff;
    flex-shrink: 0;
    white-space: nowrap;
}

.donate-flag-pix {
    background-color: #32bcad;
}

.donate-flag-visa {
    background-color: #1a1f71;
    font-style: italic;
}

.donate-flag-elo {
    background-color: #000000;
    text-transform: lowercase;
}

.donate-flag-paypal {
    background-color: #003087;
    font-style: italic;
}

.donate-flag-master {
    background-color: #f0f0f0;
    width: 30px;
    padding: 0;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

body.theme-dark .donate-flag-master {
    background-color: #2a2a2a;
}

.donate-flag-master-c1,
.donate-flag-master-c2 {
    position: absolute;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.donate-flag-master-c1 {
    background-color: #eb001b;
    left: 6px;
    z-index: 1;
}

.donate-flag-master-c2 {
    background-color: #f79e1b;
    left: 13px;
    z-index: 2;
    opacity: 0.85;
}

/* ==========================================================================
    PÁGINA DE CONFIGURAÇÕES
    ========================================================================== */
.settings-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-section:last-child {
    border-bottom: none;
}

body.theme-dark .settings-section {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.settings-section h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

.settings-section-danger {
    background-color: #fff5f5;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 10px;
}

body.theme-dark .settings-section-danger {
    background-color: rgba(239, 68, 68, 0.08);
}

.settings-section-danger h3 {
    color: #cc0000;
}

.settings-danger-text {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
}

body.theme-dark .settings-danger-text {
    color: #ccc;
}

/* ==========================================================================
    CONFIGURAÇÕES: lista estilo Instagram (ícone + nome + seta), categorias
    ========================================================================== */
.settings-category-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #8a8a8a;
    margin: 32px 4px 10px;
}

.settings-category-title:first-of-type {
    margin-top: 8px;
}

body.theme-dark .settings-category-title {
    color: #9a9a9a;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    cursor: pointer;
    border-radius: 14px;
    transition: background-color 0.15s;
}

.settings-row:hover {
    background-color: rgba(0, 0, 0, 0.045);
}

body.theme-dark .settings-row:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.settings-row-icon {
    font-size: 20px;
    width: 24px;
    height: 24px;
    text-align: center;
    flex-shrink: 0;
    object-fit: contain;
}

.settings-row-label {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.settings-row-arrow {
    font-size: 19px;
    color: #b0b0b0;
    transition: transform 0.15s;
}

.settings-row.active .settings-row-arrow {
    transform: rotate(90deg);
}

.settings-panel {
    display: none;
    padding: 2px 10px 26px;
}

.settings-panel.show {
    display: block;
}

.settings-em-breve {
    font-size: 13px;
    color: #777;
    margin: 4px 0 0;
}

body.theme-dark .settings-em-breve {
    color: #aaa;
}

/* ==========================================================================
    CAMPOS EXTRAS AO POSTAR (música, localização)
    ========================================================================== */
.post-extra-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #f2f3f5;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.post-extra-field:focus-within {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .post-extra-field {
    background-color: #262626;
}

body.theme-dark .post-extra-field:focus-within {
    background-color: #1a1a1a;
}

.post-extra-icon {
    font-size: 15px;
    flex-shrink: 0;
}

.post-extra-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: none;
    font-size: 13px;
    color: #111;
    font-family: inherit;
}

.post-extra-field input[readonly] {
    background: none;
    border: none;
    box-shadow: none;
}

body.theme-dark .post-extra-field input {
    color: #fff;
}

/* ==========================================================================
    VÍDEOS: visual estilo Reels (Instagram)
    ========================================================================== */
.video-slide-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Topo: @usuário */
.video-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 16px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent);
    display: flex;
    align-items: center;
    z-index: 2;
}

.video-username {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.video-follow-btn {
    margin-left: 10px;
    padding: 5px 14px;
    border-radius: 999px;
    border: none;
    background-color: #4087e1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.video-follow-btn.seguindo {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
}

.video-slide-inner img.video-username-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Curtida: embaixo do usuário, centralizada */
/* Lateral direita: curtir (topo), comentários, salvar, música */
.video-side-actions {
    position: absolute;
    right: 12px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.video-side-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.video-side-icon {
    font-size: 24px;
}

.video-side-count {
    font-size: 12px;
    font-weight: 700;
}

.video-side-music {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 16px;
    max-width: 30px;
}

.video-side-music-text {
    display: none;
}

/* Legenda embaixo, expande ao clicar */
.video-bottom-caption {
    position: absolute;
    left: 0;
    right: 70px;
    bottom: 0;
    padding: 16px 16px 18px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.video-caption-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.video-bottom-caption.expanded .video-caption-text {
    white-space: normal;
}

.video-caption-extra {
    display: none;
    margin-top: 8px;
}

.video-caption-date {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 12px;
}

.video-caption-hashtags {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-bottom-caption.expanded .video-caption-extra {
    display: block;
}

.video-caption-date {
    font-size: 11px;
    opacity: 0.85;
}

.video-caption-hashtags {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #9ecbff;
}

/* Setinhas de navegação (pra cima/baixo) */
.video-nav-arrows {
    position: fixed;
    right: 240px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 950;
}

.video-nav-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s;
}

.video-nav-arrow-btn:hover {
    background-color: rgba(0, 0, 0, 0.75);
}

@media (max-width: 900px) {
    .video-nav-arrows {
        right: 90px;
    }
}

/* Ícones de pagamento de verdade (imagens, não mais feitos em CSS) */
.donate-flag-img {
    height: 16px;
    width: auto;
    object-fit: contain;
}

.post-modal-option-icon {
    height: 26px;
    width: 26px;
    object-fit: contain;
}

/* Ícone de Curtir/Salvar (imagem) dentro dos botões de ação dos posts */
.cpost-action-img {
    height: 20px;
    width: 20px;
    object-fit: contain;
    vertical-align: -3px;
}

/* Mesma imagem, mas nos ícones do vídeo (maiores, brancos por cima do vídeo) */
.video-like-icon img,
.video-side-icon img {
    height: 24px;
    width: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==========================================================================
    ANIMAÇÃO DE CLIQUE (Curtir, Salvar, Compartilhar, Comentar) - aquele
    "pulinho" que o Instagram faz quando você aperta esses botões
    ========================================================================== */
@keyframes icon-pop {
    0% { transform: scale(1); }
    30% { transform: scale(1.35); }
    55% { transform: scale(0.9); }
    75% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.icon-pop-animar {
    display: inline-block;
    animation: icon-pop 0.35s ease-out;
}

/* Ícone "recortado" e pintado de azul quando curtido/salvo - funciona
   igual não importa se o desenho original era preto ou branco */
.cpost-action-img-blue {
    display: inline-block;
    background-color: #4087e1;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Botão de "Mídia" no Comentar - sem caixa/fundo, só o ícone mesmo,
   do lado do botão Postar */
.x-compose-attach-btn-plain {
    background: none;
    border: none;
    outline: none;
    padding: 6px;
    margin: -6px 4px -6px 0;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    border-radius: 50%;
    transition: background-color 0.15s;
}

.x-compose-attach-btn-plain:focus,
.x-compose-attach-btn-plain:active {
    outline: none;
    box-shadow: none;
}

.x-compose-attach-btn-plain:hover {
    background-color: rgba(64, 135, 225, 0.1);
}

.x-compose-attach-btn-plain img {
    height: 22px;
    width: 22px;
    object-fit: contain;
    transition: transform 0.15s ease-out;
}

.x-compose-attach-btn-plain:hover img {
    transform: scale(1.2);
}

/* "Postar" fica escurecido/desativado enquanto não tiver nada escrito,
   igual o botão de postar do X */
.x-compose-actions #comentarPostBtn:disabled {
    background-color: #c7d9f2;
    color: #ffffff;
    cursor: default;
}

body.theme-dark .x-compose-actions #comentarPostBtn:disabled {
    background-color: #2a3b52;
    color: #8a9bb5;
}

/* Rolagem mais fina/discreta dentro dos selects de Estado/Cidade (só
   funciona em navegadores baseados em Chrome, como o Brave - navegadores
   nativos limitam bastante o que dá pra estilizar num <select>) */
#mpEstadoSelect,
#mpCidadeSelect {
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
}

#mpEstadoSelect::-webkit-scrollbar,
#mpCidadeSelect::-webkit-scrollbar {
    width: 8px;
}

#mpEstadoSelect::-webkit-scrollbar-track,
#mpCidadeSelect::-webkit-scrollbar-track {
    background: transparent;
}

#mpEstadoSelect::-webkit-scrollbar-thumb,
#mpCidadeSelect::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

#mpEstadoSelect::-webkit-scrollbar-thumb:hover,
#mpCidadeSelect::-webkit-scrollbar-thumb:hover {
    background-color: rgba(64, 135, 225, 0.7);
}

/* Botões "de perigo" e secundário - compartilhados em qualquer página
   (antes só existiam soltos dentro do profile.html) */
.btn-danger {
    background-color: #fdeaea;
    color: #d92626;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.15s;
}

.btn-danger:hover {
    background-color: #fbd9d9;
}

body.theme-dark .btn-danger {
    background-color: rgba(217, 38, 38, 0.15);
    color: #ff6b6b;
}

body.theme-dark .btn-danger:hover {
    background-color: rgba(217, 38, 38, 0.25);
}

.btn-secondary {
    background-color: #eef0f3;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.15s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #e2e5ea;
}

body.theme-dark .btn-secondary {
    background-color: #262626;
    color: #eee;
}

body.theme-dark .btn-secondary:hover {
    background-color: #333;
}

/* ==========================================================================
    CAMPOS DE MÚSICA/LOCALIZAÇÃO AO POSTAR - com sugestões, estilo Instagram
    ========================================================================== */
.post-extra-field-wrap {
    position: relative;
    margin-top: 10px;
}

.post-extra-field-wrap .post-extra-field {
    margin-top: 0;
}

.post-extra-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 12px;
    padding: 4px;
    flex-shrink: 0;
}

.post-extra-clear:hover {
    color: #555;
}

.post-extra-suggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 220px;
    overflow-y: auto;
    z-index: 20;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
}

.post-extra-suggestions.show {
    display: block;
}

body.theme-dark .post-extra-suggestions {
    background-color: #1e1e1e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.post-extra-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
}

.post-extra-suggestion-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .post-extra-suggestion-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Rolagem fina nas sugestões, mesmo padrão do resto do site */
.post-extra-suggestions::-webkit-scrollbar {
    width: 6px;
}

.post-extra-suggestions::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

/* #Hashtags azuis e clicáveis dentro de qualquer legenda */
.hashtag-link {
    color: #4087e1;
    cursor: pointer;
    font-weight: 600;
}

.hashtag-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
    MODAL DE POSTAR: passo da legenda em duas colunas (foto na esquerda,
    legenda/música/localização na direita) - estilo Instagram
    ========================================================================== */
.post-modal-box-wide {
    max-width: 1100px !important;
    text-align: left !important;
    padding: 0 !important;
    overflow: hidden;
}

.post-modal-step2-horizontal {
    display: flex;
    align-items: stretch;
}

.post-modal-step2-left {
    flex: 1 1 50%;
    min-width: 0;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
}

.post-modal-preview-img-h {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.post-modal-step2-right {
    flex: 1 1 50%;
    min-width: 0;
    padding: 24px;
    overflow-y: auto;
    max-height: 80vh;
}

.post-modal-step2-right h3 {
    margin-top: 0;
}

@media (max-width: 700px) {
    .post-modal-box-wide {
        max-width: 94% !important;
    }
    .post-modal-step2-horizontal {
        flex-direction: column;
    }
    .post-modal-step2-left {
        max-height: 260px;
    }
    .post-modal-preview-img-h {
        max-height: 260px;
    }
}

/* ==========================================================================
    CABEÇALHO DO POST: localização e música ao lado/embaixo do nome,
    estilo Instagram
    ========================================================================== */
.post-header-text {
    flex: 1;
    min-width: 0;
}

.post-header-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.post-location-inline {
    font-size: 12px;
    color: #4087e1;
    text-decoration: none;
}

.post-location-inline:hover {
    text-decoration: underline;
}

.post-location-line {
    display: block;
    font-size: 12px;
    color: #4087e1;
    text-decoration: none;
    margin-top: 1px;
}

.post-location-line:hover {
    text-decoration: underline;
}

.post-music-line {
    font-size: 12px;
    color: #777;
    margin-top: 1px;
}

body.theme-dark .post-music-line {
    color: #aaa;
}

/* ==========================================================================
    CAIXA GRANDE DE ESCOLHER MÚSICA (busca + lista com capa/nome/autor)
    ========================================================================== */
.music-picker-box {
    background-color: #ffffff;
    border-radius: 16px;
    width: 92%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

body.theme-dark .music-picker-box {
    background-color: #1e1e1e;
}

.music-picker-header {
    display: flex;
    align-items: center;
    padding: 16px;
    position: relative;
}

.music-picker-header h3 {
    margin: 0 auto;
    font-size: 15px;
}

.music-picker-close {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: inherit;
    opacity: 0.6;
}

.music-picker-close:hover {
    opacity: 1;
}

.music-picker-search {
    margin: 0 16px 12px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: #f2f3f5;
    font-size: 14px;
    font-family: inherit;
    color: #111;
}

body.theme-dark .music-picker-search {
    background-color: #262626;
    color: #fff;
}

.music-picker-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px #4087e1;
}

.music-picker-list {
    overflow-y: auto;
    padding: 0 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 135, 225, 0.4) transparent;
}

.music-picker-list::-webkit-scrollbar {
    width: 6px;
}

.music-picker-list::-webkit-scrollbar-thumb {
    background-color: rgba(64, 135, 225, 0.4);
    border-radius: 999px;
}

.music-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
}

.music-picker-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.theme-dark .music-picker-row:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.music-picker-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #4087e1, #8ab6f2);
}

.music-picker-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.music-picker-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-picker-artist {
    font-size: 12px;
    color: #777;
}

body.theme-dark .music-picker-artist {
    color: #aaa;
}

/* Menu "..." (Editar/Apagar) no cabeçalho do post, dentro do lightbox */
.lightbox-post-menu-wrap {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
    margin-right: 22px;
}

/* Foto de perfil da Home: passa o mouse mostra "Meu Perfil", clica leva
   pra página de editar perfil */
.home-avatar-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.home-avatar-tooltip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    white-space: nowrap;
    text-align: center;
}

.home-avatar-link:hover .home-avatar-tooltip {
    opacity: 1;
}

.home-avatar-link:hover .home-profile-photo {
    filter: brightness(0.85);
}

/* Fileira de Curtir + Salvar (post principal) dentro do lightbox */
.lightbox-post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 4px 0 14px;
    padding-left: 8px;
}

/* Select de fonte na caixa de Meu Perfil - mesmo visual moderno dos
   outros campos (sem borda dura) */
.mp-font-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: #f2f3f5;
    font-size: 14px;
    font-family: inherit;
    color: inherit;
}

.mp-font-select:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .mp-font-select {
    background-color: #262626;
    color: #fff;
}

.mp-wallpaper-hint {
    font-size: 0.85em;
    color: #777;
    margin: 0 0 15px 0;
}

body.theme-dark .mp-wallpaper-hint {
    color: #aaa;
}

/* ==========================================================================
    PAPEL DE PAREDE E TEMA (editar perfil) - antes só existia dentro do
    profile.html, agora compartilhado pra funcionar em qualquer lugar
    (como a caixa "Meu Perfil" flutuante)
    ========================================================================== */
.wallpaper-section {
    background: #f7f8fa;
    border: none;
    border-radius: 18px;
    padding: 20px;
    margin-top: 24px;
    transition: all 0.3s ease;
}

body.theme-dark .wallpaper-section {
    background-color: #1a1a1a;
}

.wallpaper-preview-box {
    width: 100%;
    height: 120px;
    border: 1.5px dashed #c8c8c8;
    border-radius: 14px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #888;
    font-size: 0.9em;
    overflow: hidden;
    position: relative;
}

body.theme-dark .wallpaper-preview-box {
    border-color: #444;
    color: #999;
}

.wallpaper-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.theme-btn {
    padding: 16px 8px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #eef0f3;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.theme-btn:hover {
    background: #e2e5ea;
}

body.theme-dark .theme-btn {
    background: #262626;
    color: #fff;
}

body.theme-dark .theme-btn:hover {
    background: #333;
}

.theme-btn.selecionado {
    border-color: #4087e1;
    background-color: rgba(64, 135, 225, 0.1);
}

/* Cabeçalho da "página da música" (capa + nome + artista) */
.music-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.music-page-cover {
    width: 64px;
    height: 64px;
    border-radius: 12px;
}

.music-page-name {
    margin: 0 0 2px;
    font-size: 17px;
}

.music-page-artist {
    margin: 0;
    color: #777;
    font-size: 13px;
}

body.theme-dark .music-page-artist {
    color: #aaa;
}

/* Link de remover foto de perfil */
.mp-avatar-remove-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #d92626;
    text-decoration: none;
}

.mp-avatar-remove-link:hover {
    text-decoration: underline;
}

/* Ícone de play sobreposto nos vídeos dentro de grades (hashtag, música) */
.post-item-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 22px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.post-item video {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    background-color: #000;
}

/* ==========================================================================
    STATUS (estilo WhatsApp/Instagram) - barra de círculos + visualizador
    ========================================================================== */
.status-bar {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    margin-bottom: 16px;
    scrollbar-width: none;
}

.status-bar::-webkit-scrollbar {
    display: none;
}

.status-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    width: 66px;
}

/* "Esqueleto" de carregamento - uma bolinha cinza que pulsa suavemente,
   igual o efeito que o Instagram usa enquanto os dados de verdade não
   chegaram ainda. Aparece na hora (sem esperar o servidor), some assim
   que o conteúdo real estiver pronto. */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.status-skeleton {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.08);
    animation: skeleton-pulse 1.2s ease-in-out infinite;
}

body.theme-dark .status-skeleton {
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-count-skeleton {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.08);
    animation: skeleton-pulse 1.2s ease-in-out infinite;
    vertical-align: middle;
}

body.theme-dark .stat-count-skeleton {
    background-color: rgba(255, 255, 255, 0.1);
}

.status-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.status-ring.has-status {
    background: #4087e1;
    padding: 3px;
}

.status-ring.has-status img {
    border: 3px solid #ffffff;
}

body.theme-dark .status-ring.has-status img {
    border-color: #000000;
}

.status-ring.no-status {
    background: transparent;
}

.status-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.status-ring.no-status img {
    border: none;
}

body.theme-dark .status-ring.no-status img {
    border: none;
}

.status-add-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4087e1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

body.theme-dark .status-add-icon {
    border-color: #121212;
}

.status-bar-name {
    font-size: 11px;
    text-align: center;
    max-width: 66px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-create-options {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.status-create-options .btn-secondary {
    flex: 1;
}

/* --- Visualizador de status (estilo Instagram Stories) --- */
.status-viewer-overlay {
    background-color: rgba(0, 0, 0, 0.9);
}

.status-viewer-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 90vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-viewer-content {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-viewer-bars {
    display: flex;
    gap: 4px;
    padding: 10px 10px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.status-viewer-bar {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
}

.status-viewer-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff;
}

.status-viewer-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    z-index: 3;
    color: #fff;
    transition: opacity 0.15s;
}

.status-viewer-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.status-viewer-header span:first-of-type {
    font-weight: 700;
    font-size: 13px;
}

.status-viewer-media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-viewer-media img,
.status-viewer-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.status-viewer-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 30px 14px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    font-size: 13px;
    text-align: center;
    z-index: 3;
}

.status-viewer-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: #fff;
    z-index: 4;
}

.status-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-viewer-prev {
    left: -50px;
}

.status-viewer-next {
    right: -50px;
}

@media (max-width: 600px) {
    .status-viewer-prev {
        left: 4px;
    }
    .status-viewer-next {
        right: 4px;
    }
}

/* Barra de status flutuando por cima do feed de vídeos (Reels) */
.videos-status-bar-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 220px;
    z-index: 15;
    padding: 10px 10px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.videos-status-bar-wrap .status-bar {
    pointer-events: auto;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.videos-status-bar-wrap .status-bar-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Coluna central (status + feed) - fica alinhada com "Bem-vindo..." */
.home-feed-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.home-status-bar-wrap {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.theme-dark .home-status-bar-wrap {
    background-color: #121212;
}

.home-status-bar-wrap .status-bar {
    padding: 14px 12px 10px;
    margin-bottom: 0;
    box-shadow: none;
    justify-content: center;
}

.status-viewer-caption-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-viewer-caption-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    max-height: 200px;
    overflow-y: auto;
}

.status-viewer-caption-more {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0 0;
}

.status-viewer-caption-more:hover {
    opacity: 1;
}

/* Anel cinza quando já viu todos os status daquela pessoa */
.status-ring.seen {
    background: #c4c8cc;
    padding: 3px;
}

body.theme-dark .status-ring.seen {
    background: #4a4a4a;
}

.status-ring.seen img {
    border: 3px solid #ffffff;
}

body.theme-dark .status-ring.seen img {
    border-color: #000000;
}

/* Quando segura o botão do mouse pra pausar, esconde a barrinha de
   progresso e o cabeçalho (nome/hora), igual o WhatsApp faz */
.status-viewer-content.paused .status-viewer-bars,
.status-viewer-content.paused .status-viewer-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
}

/* Menu "..." (Apagar) dentro do visualizador de status, só pro dono */
.status-viewer-menu-wrap {
    position: relative;
    margin-left: auto;
}

.status-viewer-menu-btn {
    color: #fff;
}

.status-viewer-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.status-viewer-menu-wrap .cpost-menu-dropdown {
    right: 0;
    left: auto;
}

/* Campos de texto dentro das caixas de grupo (criar/editar grupo) -
   antes ficavam sem estilo nenhum (borda padrão do navegador) */
.group-modal-box input[type="text"],
.group-modal-box textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background-color: #f2f3f5;
    font-size: 14px;
    font-family: inherit;
    color: inherit;
    box-sizing: border-box;
    margin-top: 10px;
    transition: background-color 0.15s, box-shadow 0.15s;
}

.group-modal-box input[type="text"]:focus,
.group-modal-box textarea:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #4087e1;
}

body.theme-dark .group-modal-box input[type="text"],
body.theme-dark .group-modal-box textarea {
    background-color: #262626;
    color: #fff;
}

body.theme-dark .group-modal-box input[type="text"]:focus,
body.theme-dark .group-modal-box textarea:focus {
    background-color: #1a1a1a;
}

/* ==========================================================================
    ANEL DE STATUS EM QUALQUER FOTO DE PERFIL PEQUENA (comentários, busca,
    notificações, etc) - usa box-shadow, então funciona em qualquer <img>
    sem precisar mudar a estrutura HTML
    ========================================================================== */
.avatar-has-status {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #4087e1;
}

body.theme-dark .avatar-has-status {
    box-shadow: 0 0 0 2px #121212, 0 0 0 4px #4087e1;
}

/* Anel azul de status - funciona em cima de qualquer foto redonda do
   site, sem precisar de uma "caixinha" extra ao redor (usa box-shadow) */
.avatar-status-ring {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #4087e1;
}

body.theme-dark .avatar-status-ring {
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #4087e1;
}

/* Anel cinza - mesma pessoa tem status, mas eu já vi tudo (igual a
   barrinha de status fica cinza depois de vista) */
.avatar-status-ring-seen {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #c4c8cc;
}

body.theme-dark .avatar-status-ring-seen {
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #4a4a4a;
}

/* Emblema de "Apoiador" (quem doou) ao lado do nome */
.apoiador-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #4087e1;
    background-color: rgba(64, 135, 225, 0.1);
    padding: 3px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

/* ==========================================================================
    CONFIGURAÇÕES: interruptor (toggle) usado em Privacidade/Acessibilidade
    ========================================================================== */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
}

.settings-toggle-row strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.settings-toggle-desc {
    display: block;
    font-size: 12px;
    color: #777;
    margin-top: 2px;
    line-height: 1.4;
}

body.theme-dark .settings-toggle-desc {
    color: #aaa;
}

.settings-toggle-row input[type="checkbox"] {
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background-color: #d5d8dc;
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s;
}

.settings-toggle-row input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffffff;
    transition: transform 0.15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.settings-toggle-row input[type="checkbox"]:checked {
    background-color: #4087e1;
}

.settings-toggle-row input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

body.theme-dark .settings-toggle-row input[type="checkbox"] {
    background-color: #333;
}

/* ==========================================================================
    ACESSIBILIDADE: tamanho de texto e alto contraste (aplica no site todo)
    ========================================================================== */
body.texto-pequeno {
    font-size: 13px;
}

body.texto-grande {
    font-size: 17px;
}

/* O filtro precisa ficar SÓ na área de conteúdo, nunca direto no <body> -
   um filter num ancestral quebra o "position:fixed" da barra lateral
   (vira relativo a esse ancestral, não mais à tela toda), o que fazia a
   barra ficar pequena/estranha especificamente em páginas com pouco
   conteúdo, como Configurações */
body.alto-contraste .main-content-area,
body.alto-contraste .videos-feed {
    filter: contrast(1.25) saturate(1.1);
}

body.alto-contraste .cpost-time,
body.alto-contraste .cpost-username,
body.alto-contraste .home-empty-text,
body.alto-contraste .settings-em-breve,
body.alto-contraste .settings-toggle-desc {
    color: #555 !important;
}

body.theme-dark.alto-contraste .cpost-time,
body.theme-dark.alto-contraste .cpost-username,
body.theme-dark.alto-contraste .home-empty-text,
body.theme-dark.alto-contraste .settings-em-breve,
body.theme-dark.alto-contraste .settings-toggle-desc {
    color: #ddd !important;
}

/* ==========================================================================
    SELOS DE PAGAMENTO: não dá pra selecionar/copiar o texto, funciona
    quase como se fosse uma imagem
    ========================================================================== */
.donate-flag {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    pointer-events: none;
}

/* ==========================================================================
    COMENTAR: cantos arredondados nos posts, mas continuam grudados um no
    outro (só a pontinha de cima do primeiro e a de baixo do último ficam
    arredondadas, como se o feed inteiro fosse uma faixa só)
    ========================================================================== */
.cpost:first-child {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.cpost:last-child {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

.cfeed-tabs {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
}

.cfeed-dock {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
}

/* Quando não tem caixa de postar depois (como em Salvos), a própria área
   de rolagem assume os cantos de baixo arredondados */
.cfeed-panel > .cfeed-scroll:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
}

/* Se não tiver post nenhum (só a mensagem de vazio), ela assume os cantos
   de baixo no lugar do post */
#cfeedTabEmptyText:last-child,
#comentarEmptyText:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* ==========================================================================
    SALVOS: layout mais organizado, com abas (Publicações/Comentários) bem
    separadas visualmente, igual o resto do site
    ========================================================================== */
.salvos-page {
    max-width: 700px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.salvos-header {
    text-align: center;
    margin-bottom: 20px;
}

.salvos-header h2 {
    margin: 0 0 4px;
}

.salvos-header p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

body.theme-dark .salvos-header p {
    color: #aaa;
}

.salvos-tabs {
    display: flex;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

body.theme-dark .salvos-tabs {
    background-color: #121212;
}

.salvos-content {
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    min-height: 200px;
    padding: 4px 0;
}

body.theme-dark .salvos-content {
    background-color: #121212;
}

.salvos-content .home-feed-grid {
    padding: 16px;
    margin-top: 0;
}

.salvos-content .comment-item {
    padding: 16px 20px;
}

/* Indicador de "lida"/"enviada" nas próprias mensagens (Mensagens diretas) */
.dm-read-status {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.dm-read-status.lida {
    color: #4087e1;
    font-weight: 600;
}

.dm-typing-bubble {
    display: none;
    align-items: center;
    gap: 4px;
    width: fit-content;
    padding: 12px 16px;
    margin: 0 16px 12px;
    background-color: #f0f0f0;
    border-radius: 18px;
}

body.theme-dark .dm-typing-bubble {
    background-color: #262626;
}

.dm-typing-bubble span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #999;
    animation: dm-typing-bounce 1.2s infinite ease-in-out;
}

.dm-typing-bubble span:nth-child(2) {
    animation-delay: 0.15s;
}

.dm-typing-bubble span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dm-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Banner/papel de parede no topo da prévia de perfil de outras pessoas */
.ppm-banner {
    width: 100%;
    max-width: 1100px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

body.theme-dark .ppm-banner {
    background-color: #1a1a1a;
}

/* Texto "Online" na lista de conversas (Mensagens) */
.dm-list-status.online-text {
    color: #4087e1;
    font-weight: 600;
}

/* Barra de progresso de upload (fotos/vídeos) */
.upload-progress-wrap {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 8px;
}

body.theme-dark .upload-progress-wrap {
    background-color: rgba(255, 255, 255, 0.15);
}

.upload-progress-bar {
    height: 100%;
    background-color: #4087e1;
    border-radius: 999px;
    width: 0%;
    transition: width 0.15s ease-out;
}

.upload-progress-text {
    font-size: 12px;
    color: #4087e1;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

/* Botão flutuante de postar vídeo novo (estilo TikTok/Reels) */
.video-upload-fab {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #4087e1;
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(64, 135, 225, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background-color 0.15s;
}

/* Versão do botão "+" que fica DENTRO da coluna de setinhas (em cima da
   seta pra cima), em vez de flutuando solto - antes ele sumia da tela em
   telas com zoom alto porque a posição fixa não acompanhava o layout */
.video-upload-fab-inline {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #4087e1;
    color: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, background-color 0.15s;
}

.video-upload-fab-inline:hover {
    background-color: #2f6bc4;
    transform: scale(1.06);
}

.video-upload-fab:hover {
    background-color: #2f6bc4;
    transform: scale(1.06);
}

/* Botão de mudo/som nos vídeos */
.video-mute-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
}

/* Ícone que "pisca" bem no meio da tela por um instante (mute/pausa),
   igual Instagram */
.video-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    font-size: 64px;
    opacity: 0;
    pointer-events: none;
    z-index: 8;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.video-center-icon.mostrando {
    animation: video-center-icon-pop 0.55s ease-out;
}

@keyframes video-center-icon-pop {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    70% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* O ícone de som fica um pouco mais acima do que o de pausar/tocar,
   pra não se confundirem quando os dois aparecem em momentos próximos */
.video-center-icon.video-center-icon-som {
    top: 30%;
    font-size: 44px;
}

/* Barra de progresso do vídeo - dá pra segurar e arrastar, igual
   TikTok/Instagram */
.video-progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 8;
    cursor: pointer;
}

.video-progress-bar {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    width: 0%;
    background-color: #fff;
    border-radius: 999px;
}

/* Bolinha de carregamento enquanto o vídeo ainda não deu pra tocar */
.video-loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    z-index: 3;
    animation: video-spinner-spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes video-spinner-spin {
    to { transform: rotate(360deg); }
}

/* Comentários do vídeo - abre de baixo, igual TikTok */
.video-comments-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2500;
}

.video-comments-overlay.show {
    display: block;
}

.video-comments-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 500px;
    margin: 0 auto;
    height: 65vh;
    background-color: #ffffff;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
}

body.theme-dark .video-comments-sheet {
    background-color: #1a1a1a;
}

.video-comments-sheet.show {
    transform: translateY(0);
}

.video-comments-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .video-comments-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.video-comments-header .post-modal-close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.video-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

.video-comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    align-items: flex-start;
}

.video-comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.video-comment-body {
    flex: 1;
    min-width: 0;
}

.video-comment-body strong {
    font-size: 13px;
}

.video-comment-body p {
    margin: 2px 0 0;
    font-size: 14px;
    word-break: break-word;
}

.video-comment-delete {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    flex-shrink: 0;
}

.video-comments-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .video-comments-input-row {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.video-comments-input-row input {
    flex: 1;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    background: transparent;
    color: inherit;
}

body.theme-dark .video-comments-input-row input {
    border-color: rgba(255, 255, 255, 0.2);
}

.video-comments-input-row button {
    background-color: #4087e1;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

/* Ações do comentário do vídeo (curtir, responder, editar, apagar) */
.video-comment-footer {
    display: flex;
    gap: 14px;
    margin-top: 4px;
}

.video-comment-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    padding: 0;
    font-weight: 600;
}

.video-comment-action.liked {
    color: #e0245e;
}

body.theme-dark .video-comment-action {
    color: #aaa;
}

.video-comment-replies {
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
}

body.theme-dark .video-comment-replies {
    border-left-color: rgba(255, 255, 255, 0.1);
}

/* Menu "···" (editar/apagar) do próprio vídeo, embaixo de salvar */
.video-side-menu-wrap {
    position: relative;
}

.video-side-menu-dropdown {
    position: absolute;
    right: 45px;
    bottom: 0;
    left: auto;
    top: auto;
}

/* Emblema pequeno de Apoiador, ao lado do nome (posts, comentários, etc) */
.apoiador-badge-mini {
    font-size: 12px;
    margin: 0 2px;
    cursor: default;
}

/* Botões de Aceitar/Recusar pedido de seguir, direto na notificação */
.notif-item-request-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.notif-item-accept-btn,
.notif-item-decline-btn {
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.notif-item-accept-btn {
    background-color: #4087e1;
    color: #fff;
}

.notif-item-decline-btn {
    background-color: rgba(0, 0, 0, 0.08);
    color: inherit;
}

body.theme-dark .notif-item-decline-btn {
    background-color: rgba(255, 255, 255, 0.15);
}

/* "Sobre mim" (HTML personalizado) e player de música - sistema de
   customização estilo SpaceHey */
.profile-sobre-mim {
    position: relative;
    z-index: 1;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    word-break: break-word;
    overflow: hidden;
}

body.theme-dark .profile-sobre-mim {
    border-color: rgba(255, 255, 255, 0.1);
}

.profile-sobre-mim img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
    "OUVINDO SPOTIFY" - cartão estilo Discord (sempre escuro, igual a
    referência: capa + faixa/artista, barra de progresso com os tempos, e
    botão "Ouvir no Spotify"). Fica assim independente do tema do site.
    ========================================================================== */
.snp-card {
    display: block;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background-color: #18181b;
    color: #fff;
}

.snp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.snp-header-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.snp-header span {
    font-size: 12px;
    font-weight: 700;
    color: #b9bbbe;
}

.snp-body {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.snp-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.snp-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.snp-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snp-artist {
    font-size: 12px;
    color: #b9bbbe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.snp-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.snp-time {
    font-size: 10px;
    color: #b9bbbe;
    flex-shrink: 0;
}

.snp-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.snp-bar-fill {
    height: 100%;
    background-color: #ffffff;
    border-radius: 999px;
}

.snp-actions {
    margin-top: 12px;
}

.snp-listen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.15s;
}

.snp-listen-btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

.snp-listen-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Caixas da customização em "Meu Perfil" (Sobre Mim, CSS, Música, Spotify) */
.mp-custom-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-dark .mp-custom-card {
    background-color: #1c1c1c;
    border-color: rgba(255, 255, 255, 0.08);
}

.mp-custom-card h4 {
    margin: 0 0 4px;
    font-size: 0.95em;
}

.mp-custom-card .mp-wallpaper-hint {
    margin: 0 0 10px;
}

.mp-custom-textarea {
    width: 100%;
    box-sizing: border-box;
    height: 110px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-family: inherit;
    font-size: 13px;
    resize: none;
    background-color: #ffffff;
    color: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-custom-textarea:focus {
    border-color: #4087e1;
    box-shadow: 0 0 0 3px rgba(64, 135, 225, 0.15);
}

.mp-custom-textarea-code {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

body.theme-dark .mp-custom-textarea {
    background-color: #111;
    border-color: rgba(255, 255, 255, 0.12);
}

.mp-custom-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 13px;
    background-color: #ffffff;
    color: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-custom-input:focus {
    border-color: #4087e1;
    box-shadow: 0 0 0 3px rgba(64, 135, 225, 0.15);
}

body.theme-dark .mp-custom-input {
    background-color: #111;
    border-color: rgba(255, 255, 255, 0.12);
}

/* Botões de conectar/desconectar do Spotify */
.spotify-connect-btn {
    background-color: #1db954;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.spotify-connect-btn:hover {
    background-color: #17a34a;
}

.spotify-connect-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
}

.spotify-connect-box-active {
    background-color: rgba(29, 185, 84, 0.1);
}

.spotify-connect-status {
    color: #1db954;
    font-weight: 700;
    font-size: 13px;
}

.spotify-disconnect-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
}

body.theme-dark .spotify-disconnect-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Lista de "Conexões" (Spotify, e outros no futuro), igual o Discord */
.mp-connections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mp-connection-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-dark .mp-connection-row {
    background-color: #1c1c1c;
    border-color: rgba(255, 255, 255, 0.08);
}

.mp-connection-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.mp-connection-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.mp-connection-name {
    font-size: 13px;
    font-weight: 700;
}

.mp-connection-status {
    font-size: 12px;
    opacity: 0.6;
}

.mp-connection-status.conectado {
    color: #1db954;
    opacity: 1;
    font-weight: 600;
}

/* Página de perfil (profile.html) - mais larga que a Home, coluna lateral
   maior pra caber o "Sobre Mim", conexões e player de música sem ficar
   apertado */
.pf-layout {
    max-width: 1100px;
}

.pf-layout .home-profile-card {
    width: auto;
}

.pf-layout .profile-sobre-mim {
    padding: 20px 24px;
}