/* ================================================
   LiberalVibe.com — Layout Principal (Grid 3 colunas)
   Estrutura idêntica ao HTML de referência
   ================================================ */

/* Layout Container */
.layout-container {
    display: grid;
    grid-template-columns: var(--sidebar-left-width) var(--feed-center-width) var(--sidebar-right-width);
    width: var(--layout-total-width);
    height: 100%;
    background-color: var(--bg-main);
}

html.app-shell, .app-shell body {
    height: 100%;
    overflow: hidden;
}

.post-detail-page > .settings-header,
.notifications-page > .settings-header {
    display: none;
}

.app-shell body {
    display: flex;
    justify-content: center;
}

/* =============================
   1. SIDEBAR ESQUERDA (310px)
============================= */
.sidebar-left {
    height: 100%;
    padding: 20px 20px 20px 30px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-main);
}

.sidebar-left::-webkit-scrollbar { display: none; }

.logo-full {
    width: 260px;
    height: auto;
    margin-bottom: 20px;
    align-self: center;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-buttons {
    display: flex;
    gap: 6px;
}

.theme-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition-fast);
}

.theme-btn.active {
    background: var(--accent-color);
    color: var(--bg-main);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition-base);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.menu-item:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.menu-item.active {
    font-weight: 700;
}

.menu-icon {
    width: 35px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.menu-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-divider-solid {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 6px 15px;
}

.menu-divider-dashed {
    border: 0;
    border-top: 1px dashed var(--border-dashed);
    margin: 6px 15px;
}

/* Custom Premium Icon */
.custom-shield {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-dollar {
    position: absolute;
    color: #000000;
    font-size: 12px;
    font-weight: 900;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
}

/* Wallet Box */
.wallet-item {
    flex-direction: column;
    justify-content: center;
    padding: 12px 10px;
    border-radius: 20px;
    margin: 5px 15px;
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: linear-gradient(135deg, #0a2e1a 0%, #0f4a28 55%, #0a3318 100%);
    text-decoration: none;
    display: flex;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 2px 14px rgba(52, 211, 153, 0.15);
}

.wallet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.3), 0 0 0 1px rgba(250,204,21,0.15) inset;
    border-color: rgba(250, 204, 21, 0.4);
}

.wallet-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wallet-label {
    color: rgba(110, 231, 183, 0.85);
    font-size: 18px;
    font-weight: 700;
}

.wallet-value {
    color: #fbbf24;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Botão PUBLICAR — Sidebar Esquerda */
.btn-publish-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 30px);
    margin: 4px 15px;
    padding: 7px 0;
    background: linear-gradient(135deg, #1a9e52, #17b85f);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(29,185,84,.3);
}

.btn-publish-left:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Rodapé da Sidebar Esquerda */
.sidebar-left-footer {
    margin-top: auto;
    padding: 12px 15px 4px;
    display: flex;
    justify-content: center;
}

.btn-logout-left {
    display: inline-block;
    padding: 7px 22px;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-logout-left:hover {
    background: #fff;
    color: #000;
}

/* =============================
   2. FEED CENTRAL (610px)
============================= */
.feed-center {
    height: 100%;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: var(--bg-feed);
}

.feed-center::-webkit-scrollbar { display: none; }

/* Pull to refresh */
.ptr-indicator {
    height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: height 0.2s ease;
    background-color: var(--bg-main);
}

/* Feed Header (sticky tabs) */
.feed-header {
    position: sticky;
    top: -1px;
    background-color: var(--bg-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.light-mode .feed-header {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Desktop Tabs */
.feed-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}

.feed-tabs::-webkit-scrollbar { display: none; }

.tab-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 6px 0;
    background-color: #000000;
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-base), color var(--transition-base);
}

.tab-desktop.active {
    background-color: #ffffff;
    color: #000000;
}

.tab-desktop:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.15);
}

/* ── Mobile Tabs — estilo Windows folder tabs ── */
.feed-tabs-mobile {
    display: none;
    align-items: flex-end;        /* abas crescem de baixo para cima */
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 3px 0 0;             /* barra visual: 43px da guia + 3px no topo */
    border-bottom: none;
    box-sizing: border-box;
    background-color: #000000;
    position: relative;
}

.tab-box {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1px;
    padding: 7px 4px 6px;
    box-sizing: border-box;
    min-height: 50px;
    background: linear-gradient(90deg, #f7235e 0%, #ff7a3d 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px 8px 0 0;      /* arredondado só no topo */
    font-size: clamp(9px, 2.4vw, 11px);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    position: relative;
    bottom: 0;
    overflow: hidden;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    letter-spacing: 0.2px;
}

.tab-icon {
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
}

.tab-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.tab-icon-img--light {
    display: none;
}

.light-mode .tab-icon-img--dark {
    display: none;
}

.light-mode .tab-icon-img--light {
    display: block;
}

.tab-box-menu .tab-icon i,
.feed-tabs-mobile .tab-icon i,
.m-nav-feed-icon {
    color: #ffffff !important;
}

.tab-label {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 11px;
    font-size: clamp(8px, 2.2vw, 10px);
    font-weight: 600;
    line-height: 11px;
    color: #ffffff;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.tab-box--ads-jobs .tab-label {
    font-size: clamp(8px, 2.2vw, 10px);
    line-height: 11px;
}

.tab-box:hover:not(.active) {
    background: linear-gradient(90deg, #f7235e 0%, #ff7a3d 100%);
    color: #ffffff;
}

.tab-box.active {
    background: linear-gradient(90deg, #004225 0%, #12a150 100%);
    color: #ffffff;
    font-weight: 800;
    border-color: #12a150;
    border-bottom: 2px solid #12a150;
    box-shadow: 0 -3px 10px rgba(18, 161, 80, 0.35);
    transform: none;
    z-index: 1;
    overflow: hidden;
}

.tab-box.active::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: tabShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tabShine {
    0%   { left: -60%; }
    50%  { left: 130%; }
    100% { left: 130%; }
}

/* ── Sub-filtros — interruptores liga/desliga ── */
.feed-subtabs-mobile {
    display: none;
    align-items: center;
    width: 100%;
    gap: 4px;
    padding: 7px 6px 11px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    background-color: var(--bg-main);
    overflow: hidden;
}

.sub-tab-pill {
    flex: 1 1 0;          /* divide espaço igualmente */
    min-width: 0;         /* permite encolher abaixo do conteúdo */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
    /* DESLIGADO: cinza escuro */
    background-color: #1e2028;
    color: #5a5f72;
    border: 1.5px solid #2a2d3a;
    border-radius: 999px;
    font-size: clamp(9px, 3vw, 11px);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    transition: all 0.22s ease;
    position: relative;
    letter-spacing: 0.2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

/* Bolinha indicadora (⬤ desligado = cinza) */
.sub-tab-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background-color: #3a3d4a;
    flex-shrink: 0;
    transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

/* Telas muito pequenas: esconde a bolinha para ganhar espaço */
@media (max-width: 360px) {
    .sub-tab-pill::before { display: none; }
    .sub-tab-pill { gap: 0; font-size: 9px; }
}

.sub-tab-pill:hover {
    background-color: #252830;
    color: #8a8fa8;
    border-color: #3a3d4a;
}

/* LIGADO: verde */
.sub-tab-pill.active {
    background-color: #14532d;
    color: #4ade80;
    border-color: #22c55e;
    font-weight: 800;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35), inset 0 1px 3px rgba(0,0,0,0.2);
}

.sub-tab-pill.active::before {
    background-color: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.8);
}

/* =============================
   3. SIDEBAR DIREITA (250px)
============================= */
.sidebar-right {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-main);
    position: relative;
}

.sidebar-right::-webkit-scrollbar { display: none; }

/* ── Cabeçalho da sidebar direita (3 abas por ícone) ── */
.inbox-header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 4px;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 5;
    gap: 0;
}

.inbox-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 1px 8px;
    min-width: 0;
    cursor: pointer;
    position: relative;
    transition: opacity var(--transition-fast);
    opacity: 0.45;
}

.inbox-tab.active {
    opacity: 1;
}

.inbox-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: var(--btn-pink);
    border-radius: 2px;
}

/* Ícone Font Awesome da aba */
.inbox-tab-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: inherit;
}

.inbox-tab-label {
    display: block;
    width: 100%;
    color: inherit;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Badge de contagem sobre o ícone da aba */
.inbox-tab-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 21px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--btn-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid var(--bg-main);
}

/* ── Painéis das abas ── */
.sr-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.sr-panel .chat-list {
    overflow-y: auto;
    flex: 1;
    padding: 8px 4px;
}

/* ── Marcadores de respondido / não respondido ── */
.sr-status-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

/* Respondido — círculo verde com ✓ */
.sr-replied {
    background: rgba(29, 185, 84, .18);
    color: #1db954;
    border: 1.5px solid rgba(29, 185, 84, .5);
}

/* Não respondido — ponto rosa pulsante */
.sr-unread {
    background: var(--btn-pink);
    box-shadow: 0 0 0 0 rgba(233, 30, 99, .5);
    animation: srPulse 1.8s infinite;
}

@keyframes srPulse {
    0%   { box-shadow: 0 0 0 0   rgba(233, 30, 99, .55); }
    70%  { box-shadow: 0 0 0 6px rgba(233, 30, 99, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(233, 30, 99, 0);   }
}

/* Linha inferior do chat-item com status + badge */
.chat-bottom-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

/* ── Notificações ── */

/* Bolinha colorida com ícone FA sobre o avatar */
.sr-notif-type-icon {
    position: absolute;
    bottom: -3px;
    right: -5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-main);
    box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.sr-notif-type-icon i {
    font-size: 8px;
    color: #fff;
    line-height: 1;
}

/* Notificação não lida — fundo destacado */
.sr-notif-unread {
    position: relative;
    background: linear-gradient(90deg, rgba(233, 30, 99, .18), rgba(233, 30, 99, .055));
    border-left: 3px solid var(--btn-pink);
    border-radius: var(--radius-md);
    box-shadow:
        inset 0 0 0 1px rgba(233, 30, 99, .20),
        0 0 18px rgba(233, 30, 99, .12);
}

.sr-notif-unread .chat-name {
    color: #fff;
    font-weight: 900;
}

.sr-notif-unread .chat-msg {
    color: #f1f5f9;
    font-weight: 700;
}

.sr-notif-archived-unread {
    margin: 4px 5px;
}

/* Hint "Toque para responder" abaixo da mensagem */
.sr-notif-reply-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--btn-pink);
    font-weight: 700;
    margin-top: 4px;
    opacity: .85;
    letter-spacing: .2px;
}
.sr-notif-reply-hint i { font-size: 10px; }

.sr-archive-btn {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 82px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #d6d8e1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.sr-notif-item .chat-top-row {
    justify-content: flex-start;
    gap: 6px;
}

.sr-notif-item .chat-name {
    min-width: 0;
    flex: 1 1 auto;
}

.sr-notif-item .chat-time {
    order: 2;
}

.sr-notif-item .sr-archive-btn {
    order: 3;
}

.sr-notif-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
    white-space: nowrap;
}

.sr-notif-meta .chat-time {
    font-size: 11px;
}

.sr-archive-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sr-archive-btn.is-unarchive {
    border-color: rgba(34,197,94,.35);
    background: rgba(34,197,94,.12);
    color: #8ff0b2;
}

.sr-archive-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.sr-archive-btn i {
    font-size: 11px;
}

@media (max-width: 420px) {
    .sr-archive-btn {
        min-width: 74px;
        height: 26px;
        padding: 0 7px;
        font-size: 10px;
    }
}

.chat-list {
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    gap: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.chat-item:hover {
    background-color: var(--hover-bg);
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.chat-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.chat-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-name i {
    color: var(--btn-green);
    font-size: 10px;
}

.chat-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.chat-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.chat-msg {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.chat-badge {
    background-color: var(--btn-pink);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Botão PUBLICAR Sidebar Direita */
.btn-publicar-right-container {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-publish-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--btn-green);
    color: #ffffff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: 0 4px 15px rgba(27, 181, 97, 0.35);
}

.btn-publish-circle:hover {
    background-color: #159c52;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(27, 181, 97, 0.5);
}

/* ============================
   MOBILE HEADER
   ============================ */
.mobile-new-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    --m-header-control-h: clamp(44px, 12vw, 52px);
    padding: 4px 5px 4px 10px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

/* Centro — botão de toggle entre logo e saldo */
.m-h-center {
    flex: 0 0 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
}

.m-h-left {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--m-header-control-h);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    overflow: hidden;
}

.m-h-btn-inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.m-h-btn-inicio i {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.m-h-btn-inicio span {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.m-h-text-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(var(--m-header-control-h) - 10px);
    padding-top: 4px;
    padding-bottom: 4px;
    width: 100%;
    max-width: 100%;
    transform: none;
}

.m-h-logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.m-h-logo-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42em;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    color: var(--text-primary);
    font-family: var(--font-brand-script);
    font-size: min(clamp(30px, 7.4vw, 42px), calc(var(--m-header-control-h) - 11px));
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.m-h-logo-title .white { color: #fff; }
.m-h-logo-title .pink { color: #f7235e; }

.m-nav-badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.m-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 3px 5px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-primary);
    cursor: pointer;
}

.m-badge-grey { background-color: var(--m-badge-bg-grey); }
.m-badge-red { background-color: var(--m-badge-bg-red); }
.m-badge-olive { background-color: var(--m-badge-bg-olive); }

.m-h-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.m-h-menu-btn {
    flex: 0 0 auto;
    width: clamp(38px, 10.5vw, 46px);
    height: var(--m-header-control-h);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.m-h-menu-btn i {
    font-size: clamp(18px, 5vw, 22px);
    line-height: 1;
}

.m-h-menu-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-size: clamp(8px, 2.1vw, 9px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.m-h-menu-btn:hover {
    opacity: 0.9;
}

.m-h-menu-btn:active {
    transform: translateY(1px) scale(0.98);
}

.m-h-gear {
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ============================
   MOBILE BOTTOM NAV
   ============================ */
:root {
    --mobile-bottom-nav-h: clamp(50px, 12.8vw, 54px);
    --mobile-feed-tabs-h: 41px;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #161620 !important;
    border-top: 1px solid var(--border-color);
    z-index: var(--z-mobile-nav);
    align-items: center;
    justify-content: space-evenly;
    min-height: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

/* Item do rodapé mobile — ícone + label */
.m-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    padding: 1px 0;
    min-width: 0;
    position: relative;
}

/* Label abaixo do ícone */
.m-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(8px, 2.1vw, 9px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    opacity: 0.85;
}

/* Wrapper de altura fixa — alinha todos os ícones na mesma linha */
.m-nav-icon-wrap {
    height: clamp(30px, 8vw, 34px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ícones FA do rodapé mobile — mesmo tamanho visual do ícone do PUBLICAR */
.m-nav-item > .m-nav-icon-wrap > i {
    font-size: clamp(19px, 5.4vw, 22px);
    color: var(--text-primary);
    line-height: 1;
}

/* Foto de perfil — mesma altura do .m-plus-circle (38px) */
.m-nav-item > .m-nav-icon-wrap > .m-nav-profile-pic {
    width: clamp(30px, 8vw, 34px);
    height: clamp(30px, 8vw, 34px);
}

.m-h-wallet {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a2e1a 0%, #0f4a28 55%, #0a3318 100%);
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 14px;
    padding: clamp(5px, 1.5vw, 7px) clamp(8px, 2.5vw, 14px);
    min-width: clamp(110px, 30vw, 150px);
    max-width: 160px;
    height: var(--m-header-control-h);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 2px 16px rgba(52, 211, 153, 0.22), 0 0 0 1px rgba(250,204,21,0.08) inset;
    margin-left: 10px;
}

/* Brilho sutil animado */
.m-h-wallet::before {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250,204,21,0.12), transparent);
    animation: walletShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes walletShine {
    0%   { left: -60%; }
    50%  { left: 130%; }
    100% { left: 130%; }
}

.m-h-wallet:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(52, 211, 153, 0.38), 0 0 0 1px rgba(250,204,21,0.2) inset;
    border-color: rgba(250, 204, 21, 0.55);
}

.m-h-wallet:active {
    transform: translateY(0);
}

.m-h-wallet-title {
    font-size: clamp(8px, 2.2vw, 10px);
    font-weight: 700;
    color: rgba(110, 231, 183, 0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.m-h-wallet-val {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 900;
    color: #fbbf24;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Ícone de engrenagem inline */
.mhw-gear, .srw-gear {
    font-size: 0.85em;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Telas muito pequenas ≤ 380px */
@media (max-width: 380px) {
    .m-h-wallet {
        min-width: 90px;
        padding: 4px 8px;
        border-radius: 10px;
    }
    .m-h-wallet-title {
        font-size: 7px;
        letter-spacing: 0;
    }
    .m-h-wallet-val {
        font-size: 12px;
    }
}

.m-nav-center-icons {
    /* não usado — mantido para compatibilidade */
    display: none;
}

.m-nav-center-icons i {
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

.m-nav-actions-new {
    display: flex;
    align-items: center;
    gap: 24px;
}

.m-plus-circle {
    background-color: var(--btn-pink);
    color: white;
    width: clamp(32px, 8.6vw, 36px);
    height: clamp(32px, 8.6vw, 36px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(16px, 4.8vw, 19px);
    box-shadow: 0 4px 10px rgba(233, 30, 99, 0.3);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.m-plus-circle:hover {
    transform: scale(1.1);
}

.m-nav-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* =============================
   TELA DINÂMICA CONTENT AREA
============================= */
#dynamicContent {
    min-height: 200px;
}

/* Chat-room: desativar min-height/padding do wrapper quando cr-wrap estiver ativo */
#dynamicContent:has(.cr-wrap) {
    min-height: 0;
    flex: 1;              /* preenche o espaço restante no flex-column */
    height: auto;         /* não forçar 100% no contexto flex */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* feed-center vira flex column para ceder toda a altura ao cr-wrap */
.feed-center:has(.cr-wrap) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

/* =============================
   RESPONSIVIDADE (≤ 900px)
============================= */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
    }

    .layout-container {
        display: block;
        width: 100vw;
        max-width: 100%;
        overflow-x: hidden;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .feed-center {
        width: 100%;
        border: none;
        padding-bottom: calc(195px + env(safe-area-inset-bottom));
        overflow-x: hidden;
    }

    /* Chat-room: sem padding-bottom (barra de envio é flex filho) */
    .feed-center:has(.jobs-feed-wrap.is-detail-view),
    .feed-center:has(.class-feed-wrap.is-detail-view) {
        padding-bottom: calc(124px + env(safe-area-inset-bottom));
    }

    .feed-center:has(.cr-wrap) {
        padding-bottom: 0;
        overflow: hidden;
        height: 100dvh; /* ocupa viewport inteiro no mobile */
        max-height: 100dvh;
    }

    /* Esconder nav mobile quando chat room estiver ativo
       — o cr-input-bar ocupa o rodapé */
    body:has(.cr-wrap) .mobile-bottom-nav {
        display: none !important;
    }

    .feed-header {
        background-color: #161620 !important;
        border-bottom: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
        background-color: #161620 !important;
    }

    .feed-tabs {
        display: none;
    }

    .mobile-new-header {
        display: flex;
        gap: 8px;
    }

    /* ── Barras de tabs e sub-tabs fixas acima do rodapé ── */
    .feed-tabs-mobile {
        display: grid;
        align-items: end;
        position: fixed;
        bottom: calc(var(--mobile-bottom-nav-h) + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        z-index: 199;
        background-color: #000000;
        border-top: none;
        border-bottom: none;
    }

    /* Mantem todas as abas com a mesma altura visual. */
    .feed-tabs-mobile .tab-box {
        height: var(--mobile-feed-tabs-h);
        min-height: var(--mobile-feed-tabs-h);
        padding: 4px 3px 5px;
    }

    .feed-subtabs-mobile {
        display: flex;
        position: fixed;
        bottom: calc(var(--mobile-bottom-nav-h) + var(--mobile-feed-tabs-h) + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        z-index: 198;
        background-color: #161620;
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: none;
    }

    .m-h-text-logo {
        height: calc(var(--m-header-control-h) - 10px);
    }

    .m-badge {
        font-size: clamp(10px, 3vw, 12px);
        padding: 4px clamp(5px, 1.5vw, 8px);
    }
}
@media (max-width: 900px) { .sidebar-left.active { display: block !important; position: fixed !important; top: 0; left: 0; bottom: 0; width: 280px; z-index: 9999; background-color: var(--bg-main, #12122a); box-shadow: 2px 0 10px rgba(0,0,0,0.5); overflow-y: auto; transition: transform 0.3s ease; } }

@media (max-width: 420px) {
    .mobile-new-header {
        --m-header-control-h: clamp(44px, 12vw, 50px);
        gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .m-h-center {
        flex-basis: 62px;
    }

    .m-h-text-logo {
        height: calc(var(--m-header-control-h) - 10px);
        transform: none;
    }
}

/* ============================================================
   COMMENTS BOTTOM-SHEET GLOBAL (CommentsSheet)
   Padrão idêntico ao visualizar-midia.php
   ============================================================ */
.cs-overlay {
    position: fixed;
    inset: 0;
    z-index: 8500;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cs-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cs-panel {
    width: 100%;
    max-width: 600px;
    height: min(72vh, calc(var(--cs-viewport-height, 100dvh) - 18px));
    max-height: calc(var(--cs-viewport-height, 100dvh) - 18px);
    background: #1a1a2e;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.55);
}
.cs-overlay.active .cs-panel {
    transform: translateY(0);
}
.cs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.cs-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cs-count-badge {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 600;
}
.cs-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.cs-close-btn:hover { background: rgba(255,255,255,0.15); }
.cs-list {
    flex: 1;
    flex-basis: 0;
    overflow-y: auto;
    padding: 12px 16px;
    min-height: 0;
    overscroll-behavior: contain;
}
.cs-empty {
    text-align: center;
    padding: 32px 16px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.cs-owner-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    line-height: 1.45;
}
.cs-owner-empty i {
    color: #fbbf24;
    font-size: 22px;
}
.cs-owner-empty strong {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
}
.cs-owner-empty span {
    display: block;
    max-width: 340px;
}
.cs-error { color: #f87171; }
.cs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.cs-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #f7235e;
    border-radius: 50%;
    animation: csSpinAnim 0.7s linear infinite;
}
@keyframes csSpinAnim { to { transform: rotate(360deg); } }

/* Itens de comentário */
.cs-comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.cs-reply {
    margin-left: 0;
}
.cs-replies {
    margin-left: 40px;
    border-left: 2px solid rgba(255,255,255,0.07);
    padding-left: 10px;
    margin-top: 4px;
}
.cs-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cs-reply .cs-comment-avatar { width: 26px; height: 26px; }
.cs-comment-body { flex: 1; min-width: 0; }
.cs-comment-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.cs-comment-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.cs-comment-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.cs-comment-text {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.45;
    word-break: break-word;
    margin: 0 0 2px;
}
.cs-del-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}
.cs-del-btn:hover { color: #ef4444; }
.cs-reply-btn {
    background: none;
    border: none;
    color: #e91e8c;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Área de input */
.cs-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #141424;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.cs-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 42px;
    line-height: 20px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    color: #fff;
    outline: none;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cs-input:focus { border-color: #e91e63; }
.cs-input::placeholder { color: rgba(255,255,255,0.35); }
.cs-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7235e, #ff4777);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.cs-send-btn:active { transform: scale(0.9); }

/* ============================================================
   PREMIUM GATE POPUP GLOBAL (PremiumGate)
   ============================================================ */
.pg-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0,0,0,0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.pg-overlay.active {
    opacity: 1;
    visibility: visible;
}
.pg-card {
    background: linear-gradient(160deg, #1e1a2e 0%, #1a1630 60%, #12102a 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px 28px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(247,35,94,0.15) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.pg-overlay.active .pg-card {
    transform: scale(1) translateY(0);
}
/* Brilho decorativo no topo */
.pg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f7235e 40%, #ff9900 60%, transparent);
    border-radius: 24px 24px 0 0;
}
.pg-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7235e22, #ff990022);
    border: 2px solid rgba(247,35,94,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pg-icon-wrap i {
    font-size: 30px;
    background: linear-gradient(135deg, #f7235e, #ff9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Pulso animado */
.pg-icon-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(247,35,94,0.2);
    animation: pgPulse 2s ease-in-out infinite;
}
@keyframes pgPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.12); opacity: 0.4; }
}
.pg-title {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.pg-plan-tag {
    font-size: 13px;
    font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.pg-msg {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0 0 28px;
    padding: 0 4px;
}
.pg-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pg-btn-premium {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #f7235e, #ff4777);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(247,35,94,0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pg-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(247,35,94,0.55);
}
.pg-btn-premium:active { transform: scale(0.97); }
.pg-btn-back {
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid rgba(255,255,255,0.14);
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.pg-btn-back:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
}


