/* ===================================================================
   BASE
=================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050509;
    color: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===================================================================
   LAYOUT GERAL
=================================================================== */

.site-header {
    background: #0d0d11;
    border-bottom: 1px solid #1f1f29;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
}

.main-nav a {
    margin: 0 10px;
    font-size: 14px;
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.btn {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: #2b7bff;
    color: #fff;
}

.btn-primary:hover {
    background: #2260c7;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #333642;
    color: #f5f5f5;
}

.btn-ghost:hover {
    border-color: #2b7bff;
}

.notif-badge {
    position: relative;
    font-size: 14px;
}

.notif-badge .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #f55252;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    opacity: 0.9;
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* ===================================================================
   HOMEPAGE - HERO
=================================================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 26px;
    margin-bottom: 26px;
    border-radius: 14px;
    background: radial-gradient(circle at left top, #262a5a 0, #0b0b12 40%, #050509 100%);
}

.hero-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 15px;
    opacity: 0.82;
    margin-bottom: 16px;
}

.hero-actions .btn {
    margin-right: 10px;
}

/* ===================================================================
   HOME - POSTS DA ADMIN
=================================================================== */

.admin-highlight {
    margin-bottom: 26px;
}

.admin-highlight h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.admin-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.admin-post-card {
    background: #17171e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.admin-media img,
.admin-media video {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.admin-post-info {
    padding: 10px 12px 12px;
    font-size: 13px;
}

.admin-post-info h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

/* slider horizontal */
.admin-slider {
    overflow-x: auto;
    padding-bottom: 4px;
}
.admin-slider-track {
    display: flex;
    gap: 12px;
}
.admin-post-card {
    min-width: 260px;
}

/* ===================================================================
   HOME - GRID DE PROJETOS
=================================================================== */

.projects-section {
    margin-top: 10px;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.projects-header h2 {
    font-size: 18px;
}

.projects-filters {
    display: flex;
    gap: 8px;
}

.filter-link {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    opacity: 0.8;
}

.filter-link.active {
    border-color: #2b7bff;
    background: #2b7bff;
    color: #fff;
    opacity: 1;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.project-card {
    background: #15151b;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    background: #191923;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
}

.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #222;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    font-size: 13px;
}

.thumb-blur img {
    filter: blur(10px);
}

.lock-overlay-small {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,0.7);
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 16px;
}

.project-info {
    padding: 9px 12px 12px;
}

.project-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.project-author {
    font-size: 12px;
    opacity: 0.7;
}

/* Avatar do autor nos cards da home */
.project-author-avatar {
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.7);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.project-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================================================
   FOOTER
=================================================================== */

.site-footer {
    border-top: 1px solid #1f1f29;
    background: #0d0d11;
    margin-top: 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 12px;
    opacity: 0.7;
}

/* ===================================================================
   AUTH (LOGIN / REGISTER)
=================================================================== */

.auth-section {
    max-width: 480px;
    margin: 20px auto 0;
}

.auth-section h1 {
    font-size: 26px;
    margin-bottom: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form label {
    font-size: 13px;
    opacity: 0.85;
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #2c2c35;
    background: #0c0c12;
    color: #f5f5f5;
    font-size: 14px;
}

.auth-form textarea {
    resize: vertical;
}

/* ===================================================================
   DASHBOARD
=================================================================== */

.dashboard {
    margin-top: 8px;
}

.dashboard h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.card {
    background: #18181f;
    border-radius: 10px;
    padding: 12px 14px;
}

.card h2 {
    font-size: 15px;
    margin-bottom: 4px;
}

.wallet-balance {
    font-size: 22px;
    margin: 6px 0 10px;
}

.big-number {
    font-size: 26px;
    margin-top: 8px;
}

/* ===================================================================
   PERFIL (ANTIGO SIMPLES + NOVO COMPLETO)
=================================================================== */

.profile-header {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.profile-avatar img,
.avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.profile-info h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.profile-username {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    opacity: 0.86;
    margin-bottom: 8px;
}

.profile-actions {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.donate-input {
    width: 90px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #101015;
    color: #fff;
    font-size: 13px;
}

.tag {
    font-size: 12px;
    padding: 4px 8px;
    background: #222;
    border-radius: 999px;
    opacity: 0.8;
}

.profile-wallet {
    margin-top: 10px;
    font-size: 14px;
}

.profile-plans,
.profile-projects {
    margin-top: 24px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.plan-card {
    background: #18181f;
    border-radius: 10px;
    padding: 10px 12px;
}

.plan-card h3 {
    font-size: 15px;
}

.plan-description {
    font-size: 13px;
    opacity: 0.8;
    margin: 6px 0;
}

.plan-price {
    font-size: 16px;
    margin: 8px 0 10px;
}

.plan-price span {
    font-size: 12px;
    opacity: 0.7;
}

/* ===================================================================
   PÁGINA DO PROJETO (LEGADO – ALGUMAS CLASSES AINDA USADAS)
=================================================================== */

.locked-banner {
    padding: 10px 12px;
    background: #22151a;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ===================================================================
   UPLOAD / FORM DE PROJETO
=================================================================== */

.auth-form input[type="file"] {
    padding: 4px 6px;
    background: transparent;
}

fieldset {
    border: 1px solid #2c2c35;
    border-radius: 6px;
    padding: 8px 10px;
}

legend {
    padding: 0 4px;
    font-size: 13px;
    opacity: 0.9;
}

/* ===================================================================
   ADMIN LAYOUT
=================================================================== */

.admin-wrapper {
    display: flex;
    min-height: calc(100vh - 52px);
}

.admin-sidebar {
    width: 220px;
    background: #101017;
    border-right: 1px solid #262635;
    padding: 16px 14px;
    font-size: 14px;
}

.admin-sidebar h2 {
    font-size: 16px;
    margin-bottom: 10px;
}

.admin-sidebar a {
    display: block;
    padding: 5px 2px;
    opacity: 0.9;
}

.admin-main {
    flex: 1;
    padding: 16px 20px 24px;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.admin-card {
    background: #18181f;
    border-radius: 8px;
    padding: 10px 12px;
}

.admin-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.admin-card .big {
    font-size: 22px;
}

table.admin-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

table.admin-table th,
table.admin-table td {
    padding: 6px;
    border-bottom: 1px solid #262635;
    text-align: left;
}

.label {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #222;
}

.label-danger { background:#7a1f2b; }
.label-ok { background:#1f7a3b; }

/* ===================================================================
   RESPONSIVO GERAL
=================================================================== */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 28px 18px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #262635;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-sidebar a {
        display: inline-block;
        margin-right: 8px;
    }
}

/* ===================================================================
   PERFIL COMPLETO (CAPA, AVATAR, STATS, ABAS)
=================================================================== */

.profile-page {
    margin-top: 8px;
}

/* capa */

.profile-cover {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #14141c;
    margin-bottom: 12px;
}

.profile-cover img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.profile-cover-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(90deg, #23233a, #121219);
}

/* barra sobre a capa */

.profile-header-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px 14px;
    background: linear-gradient(to bottom, rgba(5,5,9,0.0), rgba(5,5,9,0.9));
}

.profile-header-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: #252535;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large span {
    font-size: 28px;
}

.profile-header-left h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-bio-short {
    font-size: 13px;
    opacity: .8;
    margin-top: 4px;
    max-width: 420px;
}

/* header direita */

.profile-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* stats */

.profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-stat-item {
    background: #15151f;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 120px;
}

.profile-stat-item .stat-number {
    font-size: 18px;
}

.profile-stat-item .stat-label {
    font-size: 11px;
    opacity: .8;
}

/* abas */

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #252535;
    padding-bottom: 4px;
}

.profile-tab-link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    opacity: .8;
}

.profile-tab-link.active {
    opacity: 1;
    border-color: #2b7bff;
    background: #2b7bff;
    color: #fff;
}

.profile-tab-content {
    margin-top: 4px;
}

/* sobre */

.profile-about h2 {
    font-size: 18px;
    margin-bottom: 8px;
}

.profile-about p {
    font-size: 14px;
}

.profile-links {
    list-style: none;
    margin-top: 6px;
    font-size: 14px;
}

.profile-links li a {
    color: #7ab4ff;
}

/* header mini */

.profile-header-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-username-mini {
    font-size: 12px;
    opacity: 0.7;
}

.profile-avatar-mini {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #272732;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

@media (max-width: 900px) {
    .profile-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .profile-header-right {
        align-items: flex-start;
    }
}

/* ===================================================================
   LISTA DE USUÁRIOS (SEGUIDORES/SEGUINDO)
=================================================================== */

.user-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.user-card {
    background: #18181f;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.user-card-bio {
    font-size: 13px;
    opacity: .85;
    margin-bottom: 6px;
}

/* ===================================================================
   BUSCA
=================================================================== */

.search-form {
    margin-top: 10px;
    margin-bottom: 12px;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-row input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #2c2c35;
    background: #0c0c12;
    color: #f5f5f5;
    font-size: 14px;
}

.search-row select {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #2c2c35;
    background: #0c0c12;
    color: #f5f5f5;
    font-size: 13px;
}

/* ===================================================================
   MENSAGENS PRIVADAS
=================================================================== */

.messages-thread {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.message-item {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.message-item.mine {
    margin-left: auto;
    background: #2b7bff;
    color: #fff;
}

.message-item.theirs {
    margin-right: auto;
    background: #18181f;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    opacity: .8;
    margin-bottom: 4px;
}

.message-body {
    white-space: pre-wrap;
}

/* ===================================================================
   PAGINAÇÃO
=================================================================== */

.pagination {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #2c2c35;
    font-size: 13px;
    opacity: 0.85;
}

.page-link.active {
    background: #2b7bff;
    border-color: #2b7bff;
    color: #fff;
    opacity: 1;
}

.page-link:hover {
    border-color: #2b7bff;
}

/* ===================================================================
   COMENTÁRIOS (GENÉRICOS)
=================================================================== */

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comment-item {
    background: #18181f;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 11px;
    opacity: 0.7;
}

.comment-delete-form {
    margin-top: 4px;
    text-align: right;
}

.comment-delete-form button {
    background: transparent;
    border: none;
    color: #f36b6b;
    font-size: 11px;
    cursor: pointer;
}

/* ===================================================================
   PÁGINA DO PROJETO – GALERIA ESQ / INFO DIR
=================================================================== */

/* LAYOUT GERAL */
.project-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* COLUNA ESQUERDA = GALERIA */
.project-left {
    flex: 2.4;
    min-width: 0;
}

/* COLUNA DIREITA = CARDS */
.project-right {
    flex: 1.2;
    min-width: 260px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 90px;
}

/* CARDS DA COLUNA DIREITA */
.project-side-card {
    background: #18181f;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

/* GALERIA - CONTAINER */
.project-media-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MÍDIA PRINCIPAL */
.project-main-media {
    width: 100%;
    background: #0f0f14;
    border-radius: 12px;
    overflow: hidden;
}

.project-main-media img,
.project-main-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* THUMBS */
.project-thumbs-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.project-thumb-btn {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.7;
}

.project-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-btn.active {
    outline: 2px solid #2b7bff;
    opacity: 1;
}

.thumb-video-icon {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0.8;
}

/* COMENTÁRIOS (se ainda não tiver, mantém aqui também) */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.comment-item {
    background: #18181f;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 11px;
    opacity: 0.7;
}

.comment-delete-form {
    margin-top: 4px;
    text-align: right;
}

.comment-delete-form button {
    background: transparent;
    border: none;
    color: #f36b6b;
    font-size: 11px;
    cursor: pointer;
}

/* RESPONSIVO: MOBILE = 1 COLUNA, AUTOR/INFO ACIMA, GALERIA ABAIXO */
@media (max-width: 900px) {
    .project-layout {
        flex-direction: column;
    }

    .project-left,
    .project-right {
        position: static;
        max-width: 100%;
    }
}

/* ============================
   MOBILE = ORDEM PERSONALIZADA
   ============================ */
@media (max-width: 900px) {

    .project-layout {
        flex-direction: column;
        gap: 14px;
    }

    /* 1️⃣ Card do autor no topo */
    .project-author-card {
        order: 1;
    }

    /* 2️⃣ Galeria logo abaixo */
    .project-left {
        order: 2;
    }

    /* 3️⃣ Cards (curtir, doar, info, descrição, comentários) */
    .project-right {
        order: 3;
        position: static;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================
   POST: AUTOR MOBILE x DESKTOP
============================ */

/* por padrão, card do topo (mobile) fica escondido no desktop */
.project-author-card-top {
    display: none;
}

/* MOBILE: mostra card do topo e esconde o do sidebar */
@media (max-width: 900px) {

    /* layout vira coluna */
    .project-layout {
        flex-direction: column;
        gap: 14px;
    }

    .project-left,
    .project-right {
        position: static;
        max-width: 100%;
    }

    /* card do autor no topo visível */
    .project-author-card-top {
        display: block;
        margin-bottom: 8px;
    }

    /* esconde o primeiro card da coluna direita (autor lá) */
    .project-right .project-side-card:first-child {
        display: none;
    }
}

/* ===== ÍCONE DE NOTIFICAÇÃO NO HEADER ===== */

.notif-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #333642;
    background: #101018;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 4px;
}

.notif-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: #f5f5f5;
}

.notif-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4b4b;
    color: #fff;
    border-radius: 999px;
    padding: 1px 5px;
    font-size: 10px;
}

/* ===== AVATAR E DROPDOWN NO HEADER ===== */

.header-user-wrapper {
    position: relative;
}

.header-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.header-avatar-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;        /* deixa a inicial visível */
}

/* Dropdown */

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 46px;
    min-width: 220px;
    background: #15151f;
    border-radius: 12px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.6);
    padding: 10px;
    display: none;
    z-index: 50;
}

.user-menu-dropdown.open {
    display: block;
}

.user-menu-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #252535;
}

.user-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #272732;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-avatar span {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;        /* mesma coisa dentro do menu */
}


.user-menu-name {
    font-size: 14px;
}

.user-menu-username {
    font-size: 12px;
    opacity: .7;
}

.user-menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}

.user-menu-links a {
    padding: 4px 0;
}

.user-menu-links a:hover {
    opacity: 1;
}

.user-menu-footer {
    border-top: 1px solid #252535;
    padding-top: 6px;
    font-size: 13px;
}

.user-menu-footer a {
    color: #ff6b6b;
}

.header-avatar-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #fff; /* AGORA A LETRA APARECE */
}
