body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1220;
    color: #e8eefc;
    margin: 0;
}
a {
    color: #8ab4ff;
    text-decoration: none;
}
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}
.card {
    background: #121a2c;
    border: 1px solid #1f2a44;
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
}
.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #243252;
    background: #0e1628;
    color: #e8eefc;
}
textarea {
    min-height: 90px;
}
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #2a3b63;
    background: #16213a;
    color: #e8eefc;
    cursor: pointer;
}
.btn:hover {
    filter: brightness(1.05);
}
.btn-danger {
    border-color: #7b2b2b;
    background: #2a1212;
}
.btn-ok {
    border-color: #2c6b3a;
    background: #112417;
}
.small {
    opacity: 0.85;
    font-size: 12px;
}
.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}
img.photo {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #233254;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #2a3b63;
    font-size: 12px;
    opacity: 0.9;
}
hr {
    border: 0;
    border-top: 1px solid #1f2a44;
    margin: 12px 0;
}

.muted {
    opacity: 0.7;
}

/* ===== Navbar padrão (PescaLog) ===== */
.navwrap {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f2a44;
}
.navinner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand__link {
    color: #e8eefc;
    text-decoration: none;
    font-size: 16px;
}
.brand__tag {
    font-size: 11px;
    opacity: 0.75;
    border: 1px solid #2a3b63;
    padding: 2px 8px;
    border-radius: 999px;
}

.navlinks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.navlink {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #cfe0ff;
    text-decoration: none;
    font-size: 14px;
    background: transparent;
}
.navlink:hover {
    border-color: #2a3b63;
    background: #0e1628;
}
.navlink.active {
    border-color: #2c6b3a;
    background: #112417;
    color: #e8eefc;
}

.navbtn {
    border: 1px solid #2c6b3a !important;
    background: #112417 !important;
    color: #e8eefc !important;
}

.navuser {
    display: flex;
    align-items: center;
    gap: 10px;
}
.navuser__profile {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e8eefc;
}
.navuser__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #233254;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.navuser__avatar--ph {
    background: #0e1628;
}
.navuser__name {
    font-size: 13px;
    opacity: 0.92;
}
.navuser__logout {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #7b2b2b;
    background: #2a1212;
    color: #e8eefc;
    text-decoration: none;
}
.navuser__logout:hover {
    filter: brightness(1.05);
}

/* ===== Perfil (PescaLog) ===== */
.profile-cover {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.profile-cover__bg {
    height: 120px;
    background: linear-gradient(
        135deg,
        rgba(138, 180, 255, 0.25),
        rgba(44, 107, 58, 0.25)
    );
    border-bottom: 1px solid #1f2a44;
}
.profile-head {
    padding: 14px;
    gap: 14px;
}

/* Avatar menor */
.profile-avatar {
    width: 64px;
    height: 64px;
    margin-top: -38px;
    flex: 0 0 64px;
}
.profile-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid #121a2c;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.profile-avatar__placeholder {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid #121a2c;
    background: #0e1628;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.profile-meta {
    flex: 1;
    min-width: 240px;
}
.profile-name {
    margin: 0;
    font-size: 26px;
    line-height: 1.1;
}

.profile-stats {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.stat {
    border: 1px solid #1f2a44;
    background: #0e1628;
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 110px;
}
.stat__num {
    font-size: 18px;
    font-weight: 700;
}
.stat__label {
    font-size: 12px;
    opacity: 0.8;
}

.profile-bio {
    padding: 0 14px 14px 14px;
    border-top: 1px solid #1f2a44;
    margin-top: 6px;
}

.info-card h3 {
    font-size: 16px;
}
.linkrow {
    margin: 6px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
@media (max-width: 920px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    border: 1px solid #1f2a44;
    background: #0e1628;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.post-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px 8px 10px;
}
.post-card__img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    border-top: 1px solid #1f2a44;
    border-bottom: 1px solid #1f2a44;
}
.post-card__badges {
    padding: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.post-card__caption {
    padding: 0 10px 10px 10px;
    font-size: 14px;
}
.post-card__actions {
    padding: 10px;
    border-top: 1px solid #1f2a44;
}
/* ===== Topbar padrão (fix) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f2a44;
}
.topbar__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar__brand {
    color: #e8eefc;
    text-decoration: none;
    font-size: 16px;
}
.topbar__links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
/* ===== Tabs do perfil ===== */
.profile-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px 14px;
    border-top: 1px solid #1f2a44;
    flex-wrap: wrap;
}
.profile-tabs .tab {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2a3b63;
    background: #0e1628;
    color: #e8eefc;
    text-decoration: none;
    font-size: 13px;
}
.profile-tabs .tab:hover {
    filter: brightness(1.05);
}
.profile-tabs .tab.active {
    border-color: #2c6b3a;
    background: #112417;
}
/* ===== Capa com imagem ===== */
.profile-cover__bgimg {
    background-size: cover;
    background-position: center;
}
.profile-cover__bgimg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08),
        rgba(11, 18, 32, 0.88)
    );
}

/* stats clicáveis */
.stat--link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.stat--link:hover {
    filter: brightness(1.05);
}

/* ===== Lista de usuários (seguidores/seguindo) ===== */
.userlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.userrow {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #1f2a44;
    background: #0e1628;
    text-decoration: none;
    color: #e8eefc;
}
.userrow:hover {
    filter: brightness(1.05);
}
.userrow__av {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #233254;
    display: flex;
    align-items: center;
    justify-content: center;
}
.userrow__av--ph {
    background: #121a2c;
}
.userrow__name {
    font-weight: 700;
}
/* ===== Linha de usuário + botão compacto ===== */
.userrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #1f2a44;
    background: #0e1628;
}
.userrow__left {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #e8eefc;
    min-width: 0;
    flex: 1;
}
.userrow__meta {
    min-width: 0;
}
.userrow__name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}
.userrow__btn {
    flex: 0 0 auto;
}

.btn-sm {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}
/* Botão ícone (seguir / seguindo) */
.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

/* estilo “ghost” pro ✓ não ficar pesado */
.btn-ghost {
    border-color: #2a3b63;
    background: #0e1628;
}
.btn-ghost:hover {
    filter: brightness(1.07);
}
/* ===== Avatar com ação (seguir/desseguir) ===== */
.userrow__avwrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.userrow__av {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #233254;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121a2c;
}

/* botão flutuante */
.av-action {
    position: absolute;
    bottom: -4px;
    right: -4px;
}

.av-btn {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #2c6b3a;
    background: #112417;
    color: #e8eefc;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.av-btn:hover {
    filter: brightness(1.15);
}

.av-btn--on {
    background: #0e1628;
    border-color: #2a3b63;
}
.av-btn[data-loading="1"] {
    opacity: 0.6;
    pointer-events: none;
}
/* FIX: overlay da capa não pode bloquear cliques */
.profile-cover__bgimg {
    position: relative; /* essencial */
    background-size: cover;
    background-position: center;
}

.profile-cover__bgimg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08),
        rgba(11, 18, 32, 0.88)
    );
    pointer-events: none; /* essencial: libera cliques */
}

/* garante que conteúdo do perfil fique acima da capa */
.profile-head,
.profile-bio,
.profile-tabs {
    position: relative;
    z-index: 2;
}
/* ===== Perfil (layout upgrade) ===== */

/* Card do topo mais bonito e com overflow correto */
.profile-cover {
    padding: 0;
    overflow: hidden;
}

/* Capa menor e com visual mais “premium” */
.profile-cover__bg {
    height: 170px; /* antes 120 – aqui fica mais proporcional */
    border-bottom: 1px solid #1f2a44;
    position: relative;
}

/* imagem da capa */
.profile-cover__bgimg {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* overlay suave + vinheta */
.profile-cover__bgimg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            1200px 300px at 50% 0%,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.55)
        ),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(11, 18, 32, 0.86));
}

/* Cabeçalho: aproxima do topo e organiza colunas */
.profile-head {
    padding: 14px 14px 10px 14px;
    gap: 14px;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

/* Avatar “flutuando” por cima da capa */
.profile-avatar {
    width: 96px;
    height: 96px;
    margin-top: -58px; /* sobe sobre a capa */
    flex: 0 0 96px;
}
.profile-avatar img,
.profile-avatar__placeholder {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid #121a2c;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}
.profile-avatar__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: #0e1628;
}

/* Nome e user mais alinhados */
.profile-name {
    margin: 0;
    font-size: 28px;
    line-height: 1.05;
}

/* Meta e stats */
.profile-meta {
    flex: 1;
    min-width: 260px;
}

/* Stats mais compactos e alinhados em linha */
.profile-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.stat {
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(14, 22, 40, 0.65);
    border: 1px solid #1f2a44;
}
.stat__num {
    font-size: 18px;
    font-weight: 800;
}
.stat__label {
    font-size: 12px;
    opacity: 0.8;
}

/* Ações (botões) em linha e mais consistentes */
.profile-meta .nav {
    margin-top: 10px;
    gap: 8px;
}
.profile-meta .btn {
    padding: 9px 12px;
    border-radius: 12px;
}

/* Bio com mais respiro */
.profile-bio {
    padding: 10px 14px 14px 14px;
    margin-top: 0;
    border-top: 1px solid #1f2a44;
    position: relative;
    z-index: 2;
}

/* Tabs mais “clean” */
.profile-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px 14px 14px;
    border-top: 1px solid #1f2a44;
    position: relative;
    z-index: 2;
}
.profile-tabs .tab {
    padding: 9px 12px;
    border-radius: 999px; /* pill */
    border: 1px solid #2a3b63;
    background: rgba(14, 22, 40, 0.7);
    color: #e8eefc;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.profile-tabs .tab:hover {
    filter: brightness(1.07);
}
.profile-tabs .tab.active {
    border-color: #2c6b3a;
    background: #112417;
}

/* Grid das publicações: mais “cards” */
.posts-grid {
    margin-top: 12px;
    gap: 14px;
}
.post-card {
    border-radius: 16px;
    background: #0e1628;
}
.post-card__img img {
    height: 230px; /* imagem maior */
}

/* Mobile: empilha bem */
@media (max-width: 640px) {
    .profile-cover__bg {
        height: 150px;
    }
    .profile-avatar {
        width: 84px;
        height: 84px;
        margin-top: -52px;
        flex-basis: 84px;
    }
    .profile-avatar img,
    .profile-avatar__placeholder {
        width: 84px;
        height: 84px;
    }
    .profile-name {
        font-size: 24px;
    }
    .stat {
        min-width: 104px;
    }
}
/* === PATCH perfil: avatar sobre a capa + gradiente melhor === */

/* Garante que o card seja referência */
.profile-cover {
    position: relative;
    overflow: hidden;
}

/* Capa com mais “cara” */
.profile-cover__bg {
    height: 170px;
    position: relative;
    border-bottom: 0; /* tira linha dura */
}

/* Se tiver imagem, garante cover */
.profile-cover__bgimg {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Overlay mais bonito e com “fade” no final */
.profile-cover__bgimg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.25) 45%,
            rgba(11, 18, 32, 0.95) 100%
        ),
        radial-gradient(
            900px 240px at 50% 0%,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.5)
        );
}

/* A área do header sobe um pouco pra “entrar” na capa */
.profile-head {
    position: relative;
    z-index: 2;
    padding: 12px 14px 10px 14px;
    margin-top: -34px; /* <- isso cria o efeito “sobre a capa” */
    align-items: flex-end;
}

/* Avatar maior e sobrepondo */
.profile-avatar {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    margin-top: 0; /* evita ficar empurrado */
}
.profile-avatar img,
.profile-avatar__placeholder {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #121a2c;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

/* Fundo do bloco de conteúdo (pra não ficar “chapado”) */
.profile-meta {
    background: rgba(18, 26, 44, 0.7);
    border: 1px solid rgba(31, 42, 68, 0.75);
    border-radius: 16px;
    padding: 12px 12px 10px 12px;
    backdrop-filter: blur(8px);
}

/* Bio e tabs ficam “coladas” visualmente */
.profile-bio {
    margin-top: 8px;
    border-top: 1px solid #1f2a44;
}
.profile-tabs {
    border-top: 1px solid #1f2a44;
}

/* Mobile */
@media (max-width: 640px) {
    .profile-cover__bg {
        height: 150px;
    }
    .profile-head {
        margin-top: -26px;
    }
    .profile-avatar,
    .profile-avatar img,
    .profile-avatar__placeholder {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }
}
/* === Perfil: alinhamento final + layout app === */

/* deixa o header em grid: avatar fixo + conteúdo */
.profile-head {
    display: grid !important;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    align-items: end;
    margin-top: -34px;
}

/* garante que o avatar fique DENTRO do card e alinhado */
.profile-avatar {
    width: 96px;
    height: 96px;
    margin-left: 12px; /* puxa pra dentro */
    justify-self: start;
}

/* “glass card” não pode ocupar a tela toda: limita largura */
.profile-meta {
    max-width: 720px; /* evita espaço vazio gigante */
    width: 100%;
}

/* stats mais compactos e em linha */
.profile-stats {
    gap: 8px;
}
.stat {
    min-width: 108px;
    padding: 9px 10px;
    border-radius: 14px;
}
.stat__num {
    font-size: 17px;
}
.stat__label {
    font-size: 12px;
}

/* botões mais compactos */
.profile-meta .btn {
    padding: 8px 11px;
    border-radius: 12px;
}

/* bio mais “card” e alinhada com o meta */
.profile-bio {
    padding: 12px 14px;
}

/* tabs coladas e alinhadas */
.profile-tabs {
    padding-top: 10px;
}
.profile-tabs .tab {
    padding: 8px 12px;
    border-radius: 999px;
}

/* Ajuste da capa: não deixa bordas estranhas */
.profile-cover__bg {
    border-bottom: 1px solid rgba(31, 42, 68, 0.65);
}

/* Mobile */
@media (max-width: 760px) {
    .profile-head {
        grid-template-columns: 92px 1fr;
        margin-top: -26px;
    }
    .profile-avatar {
        width: 84px;
        height: 84px;
        margin-left: 10px;
    }
    .profile-avatar img,
    .profile-avatar__placeholder {
        width: 84px;
        height: 84px;
    }
    .profile-meta {
        max-width: 100%;
    }
}
/* ===== PERFIL — AJUSTE FINAL (central + integrado) ===== */

/* limita a área do perfil ao centro */
.profile-cover {
    max-width: 1100px;
    margin: 0 auto;
}

/* capa respeita o container */
.profile-cover__bg {
    border-radius: 18px 18px 0 0;
}

/* header centralizado */
.profile-head {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    margin-top: -48px;
    padding: 0 18px;
}

/* avatar realmente integrado ao card */
.profile-avatar {
    width: 96px;
    height: 96px;
    margin-left: 0;
    justify-self: center;
}
.profile-avatar img,
.profile-avatar__placeholder {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 4px solid #0e1628;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

/* bloco glass bem central, não “esticado” */
.profile-meta {
    max-width: 620px;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    background: rgba(18, 26, 44, 0.75);
    border: 1px solid rgba(31, 42, 68, 0.8);
    backdrop-filter: blur(10px);
}

/* stats mais equilibrados */
.profile-stats {
    margin-top: 10px;
    gap: 10px;
}
.stat {
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 14px;
}

/* botões alinhados e compactos */
.profile-meta .nav {
    margin-top: 10px;
    gap: 8px;
}

/* bio alinhada com o card */
.profile-bio {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 18px;
}

/* tabs alinhadas com o perfil */
.profile-tabs {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 18px 14px 18px;
}

/* mobile: tudo empilhado e central */
@media (max-width: 720px) {
    .profile-head {
        grid-template-columns: 1fr;
        justify-items: center;
        margin-top: -40px;
        text-align: center;
    }

    .profile-meta {
        max-width: 100%;
    }

    .profile-stats {
        justify-content: center;
    }
}
/* ===== Feed Reddit: botões discretos ===== */

/* Botões padrão ficam menores no feed */
.rpost .btn {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(18, 26, 44, 0.6);
    border-color: #24345c;
}
.rpost .btn:hover {
    filter: brightness(1.08);
}

/* Botões de ação viram links discretos */
.raction {
    gap: 10px;
}
.raction .btn {
    padding: 0;
    background: transparent;
    border: none;
    color: #8fb6ff;
    font-size: 12px;
}
.raction .btn:hover {
    text-decoration: underline;
    filter: none;
}

/* Ícones de voto mais leves */
.rvote .pill {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0.85;
}
.rvote .count {
    font-size: 12px;
    opacity: 0.7;
}

/* Badges menores */
.rbadges .badge {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 999px;
    opacity: 0.9;
}

/* Flair menor */
.flair {
    padding: 3px 8px;
    font-size: 11px;
}

/* Sidebar botões mais discretos */
.reddit-side .btn {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 12px;
}

/* ===== Ações só aparecem no hover (desktop) ===== */
@media (min-width: 900px) {
    .rpost .raction {
        opacity: 0;
        transition: opacity 0.15s ease;
    }
    .rpost:hover .raction {
        opacity: 1;
    }
}

/* Mobile: sempre visível */
@media (max-width: 899px) {
    .rpost .raction {
        opacity: 1;
    }
}
/* Autocomplete de localização (estilo Facebook) */
.loc-suggest {
    margin-top: 6px;
    border: 1px solid #233254;
    background: #0e1628;
    border-radius: 14px;
    overflow: hidden;
    max-height: 280px;
}
.loc-item {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #e8eefc;
    cursor: pointer;
    font-size: 13px;
}
.loc-item:hover {
    background: #121a2c;
}
/* ===== Navbar minimalista ===== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    text-decoration: none;
    color: #e8eefc;
}
.brand span {
    letter-spacing: 0.3px;
}

/* Menu */
.topnav {
    display: flex;
    gap: 16px;
}
.topnav a {
    text-decoration: none;
    font-size: 14px;
    color: #9fb3d9;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
}
.topnav a:hover {
    color: #fff;
}
.topnav a.active {
    color: #fff;
    border-color: #4aa3ff;
}

/* Ações */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-actions a {
    text-decoration: none;
    font-size: 13px;
    color: #9fb3d9;
}
.topbar-actions a:hover {
    color: #fff;
}

/* botão pequeno (ex: criar conta) */
.btn-mini {
    padding: 6px 10px;
    border-radius: 999px;
    background: #12244a;
    color: #fff !important;
    border: 1px solid #2a3b63;
}

/* logout discreto */
.logout {
    color: #ff9a9a !important;
}

/* Mobile */
@media (max-width: 860px) {
    .topnav {
        gap: 10px;
    }
    .topnav a {
        font-size: 13px;
    }
    .brand span {
        display: none;
    }
}
/* ===== Navbar compacto + responsivo ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 14, 26, 0.78);
    border-bottom: 1px solid #1f2a44;
    backdrop-filter: blur(10px);
}
.topbar__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* marca */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #e8eefc;
    font-weight: 900;
}
.brand__icon {
    font-size: 18px;
}
.brand__name {
    font-size: 16px;
    letter-spacing: 0.2px;
}

/* links desktop */
.navlinks {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}
.navlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #dfe8ff;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #233254;
    background: rgba(18, 26, 44, 0.45);
}
.navicon {
    font-size: 14px;
    line-height: 1;
}
.navtxt {
    line-height: 1;
}
.navlink:hover {
    filter: brightness(1.08);
}
.navlink.is-active {
    border-color: #2c6b3a;
    background: #112417;
}

/* lado direito */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* “chip” do usuário */
.mechip {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #dfe8ff;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #233254;
    background: rgba(18, 26, 44, 0.45);
}
.mechip:hover {
    filter: brightness(1.08);
}
.mechip__avatar {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid #233254;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mechip__ph {
    background: #0e1628;
}
.mechip__name {
    font-size: 12px;
    font-weight: 800;
}
.mechip__caret {
    opacity: 0.8;
    font-size: 12px;
}

/* dropdown do usuário (desktop) */
.udrop {
    position: relative;
}
.udrop .mechip {
    cursor: pointer;
}
.usermenu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    width: 220px;
    background: #0e1628;
    border: 1px solid #233254;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.usermenu.open {
    display: block;
}
.umitem {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #e8eefc;
    font-size: 14px;
    border-bottom: 1px solid #1f2a44;
}
.umitem:hover {
    background: #121a2c;
}
.umitem.danger {
    color: #ffb4b4;
}
.usermenu .umitem:last-child {
    border-bottom: none;
}

/* burger */
.burger {
    width: 40px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #233254;
    background: rgba(18, 26, 44, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #e8eefc;
    opacity: 0.9;
    border-radius: 2px;
}

/* menu mobile */
.mobilemenu {
    display: none;
    position: absolute;
    right: 14px;
    top: 58px;
    width: min(92vw, 320px);
    background: #0e1628;
    border: 1px solid #233254;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.mobilemenu.open {
    display: block;
}
.mitem {
    display: block;
    padding: 12px 14px;
    text-decoration: none;
    color: #e8eefc;
    font-size: 14px;
    border-bottom: 1px solid #1f2a44;
}
.mitem:hover {
    background: #121a2c;
}
.mitem.danger {
    color: #ffb4b4;
}
.mobilemenu .mitem:last-child {
    border-bottom: none;
}

/* responsivo (mobile-first robusto) */
.topbar__inner{ position: relative; }

/* Base: mobile */
.navlinks{ display:none; }
.udrop{ display:none; }
.burger{ display:flex; }

/* Desktop/Tablet */
@media (min-width: 861px){
  .navlinks{ display:flex; }
  .udrop{ display:block; }
  .burger{ display:none; }
}

/* Compactar textos em telas médias */
@media (max-width: 1020px){
  .navtxt{ display:none; }
  .brand__name{ display:none; }
  .mechip__name{ display:none; }
  .mechip{ padding: 6px 8px; }
}


/* =========================
   Pagebar + Chips (Feed/Minhas)
   ========================= */

.pagebar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  margin: 6px 0 10px;
}

.pagebar-left{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.pagebar-right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pagebar-sub{ margin-left:2px; }

@media (max-width: 720px){
  .pagebar{
    flex-direction:column;
    align-items:stretch;
  }
  .pagebar-right{
    justify-content:flex-start;
  }
}

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

.chip{
  padding:6px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color:#cfd8ff;
  font-size:13px;
  text-decoration:none;
  transition: all .2s ease;
}
.chip:hover{ background: rgba(120,160,255,0.12); }
.chip.active{
  background: linear-gradient(135deg,#1f8cff,#22c55e);
  color:#fff;
  border-color: transparent;
}

/* Minhas: remover inline styles */
.myitem-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.myitem-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.myitem-photo{ margin-top:10px; }

.myitem-badges{
  margin-top:8px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

/* =========================
   Navbar - busca
   ========================= */
.navsearch{
  display:flex;
  align-items:center;
  margin-right:10px;
}
.navsearch__input{
  width:260px;
  max-width:32vw;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #e8eefc;
  outline: none;
}
.navsearch__input::placeholder{ color: rgba(232,238,252,0.60); }
.navsearch__input:focus{
  border-color: rgba(31,140,255,0.55);
  box-shadow: 0 0 0 4px rgba(31,140,255,0.15);
}
@media (max-width: 860px){
  .navsearch{ display:none; }
}

/* =========================
   Busca (search.php)
   ========================= */
.searchbar{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.searchbar__input{
  flex:1 1 320px;
  min-width: 220px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #e8eefc;
  outline: none;
}
.searchbar__input:focus{
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

.chipn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 18px;
  height: 18px;
  padding:0 6px;
  margin-left:6px;
  border-radius:999px;
  background: rgba(255,255,255,0.10);
  font-size:12px;
}

.searchgrid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sectionhead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.slist{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.srow{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  text-decoration:none;
  color: inherit;
}
.srow:hover{ background: rgba(120,160,255,0.08); }

.savatar{
  width:36px;
  height:36px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.12);
}
.savatar--ph{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.06);
}

.smeta{ min-width:0; flex:1; }
.sname{ font-weight:900; }
.sdesc{ margin-top:6px; opacity:.92; }

.sactions{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }

.stags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #cfd8ff;
  text-decoration:none;
  font-size:13px;
}
.tag:hover{ background: rgba(34,197,94,0.10); }

.link{ color: #9ecbff; text-decoration:none; }
.link:hover{ text-decoration:underline; }




/* =========================
   FEED (Reddit-like) - PescaLog
   ========================= */

.reddit-wrap{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:16px;
  align-items:start;
}
@media (max-width: 980px){
  .reddit-wrap{grid-template-columns:1fr}
  .reddit-side{order:2}
}

.reddit-main{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.reddit-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* Filtros enxutos (chips) */
.feed-filters{
  margin-top:6px;
  margin-bottom:2px;
}

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

.chip{
  padding:6px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  color:#cfd8ff;
  font-size:13px;
  text-decoration:none;
  transition:all .2s ease;
}
.chip:hover{
  background: rgba(120,160,255,0.12);
}
.chip.active{
  background: linear-gradient(135deg,#1f8cff,#22c55e);
  color:#fff;
  border-color: transparent;
}

.divider{
  width:1px;
  height:20px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
}

.chips-spacer{flex:1 1 auto;}
.chips-meta{white-space:nowrap;}

/* Cards do feed */
.rpost{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  padding:12px;
  border-radius:14px;
  background:#0e1628;
  border:1px solid #1f2a44;
}
.rpost:hover{filter:brightness(1.06);}

.rvote{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding-top:6px;
  opacity:.95;
}
.rvote .pill{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #2a3b63;
  background:#121a2c;
  user-select:none;
}
.rvote .count{
  font-weight:800;
  font-size:13px;
  opacity:.9;
}

.rhead{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.rauthor{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.rauthor img{
  width:34px;
  height:34px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid #233254;
}
.rauthor-text{min-width:0;}
.rauthor .name{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rauthor .meta{font-size:12px;opacity:.8;}

.flair{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid #2a3b63;
  background:rgba(18,26,44,.65);
  font-size:12px;
  opacity:.95;
}

.rbadges{
  margin-top:10px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.rimg{
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #233254;
}
.rimg img{
  display:block;
  width:100%;
  max-height:420px;
  object-fit:cover;
}

.rcontent{margin-top:10px;}
.rcontent .caption{margin:0;font-size:14px;opacity:.95;}

.raction{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  opacity:.95;
}

/* Sidebar */
.reddit-side .card{
  position:sticky;
  top:72px;
}
.side-title{font-weight:900;font-size:16px;margin:0 0 8px 0;}
.side-item{display:flex;justify-content:space-between;gap:10px;margin:8px 0;}

.pager{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:12px;
}
