﻿/**
 * AstionComunidades — dashboard.css
 * Design alinhado ao AstionLiterário | RemixIcon | Cinzel
 * Prefixo de componentes: dash-  /  comun-  (compartilhado)
 */

/* Variáveis de tema vindas de css/config/themes.css */

/* ═══════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    transition: background 0.3s, color 0.3s;
}

/* ═══════════════════════════════════════════════════
   NAVBAR MOBILE
═══════════════════════════════════════════════════ */
.navbar-mobile {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
}
.navbar-btn {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: none; border: none;
    font-size: 1.2rem; color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.navbar-btn:hover { background: var(--bg-hover); }
.navbar-logo { display: flex; align-items: center; gap: 8px; }
.navbar-logo-img { width: 28px; height: 28px; object-fit: contain; }
.navbar-logo-name {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ═══════════════════════════════════════════════════
   OVERLAY
═══════════════════════════════════════════════════ */
.menu-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 149;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}
.menu-overlay.is-open { display: block; }

/* ═══════════════════════════════════════════════════
   CONTAINER 3 COLUNAS
═══════════════════════════════════════════════════ */
.container {
    display: grid;
    grid-template-columns: 260px 1fr 280px;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

/* ─── Coluna 1: Menu ─── */
.col-menu {
    position: sticky; top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto; overflow-x: hidden;
    padding: 20px 12px 32px;
    border-right: 1px solid var(--border);
    background: var(--bg-card);
    display: flex; flex-direction: column; gap: 14px;
    scrollbar-width: thin;
}
.col-menu::-webkit-scrollbar { width: 4px; }

.menu-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 8px 12px;
    border-bottom: 1px solid var(--border);
}
.menu-logo-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.menu-logo-name {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Usuário logado no menu (idêntico ao AstionLiterário) ── */
.menu-user { display: flex; flex-direction: column; padding: 8px 0; margin-bottom: 4px; }
.menu-user-content { display: flex; align-items: center; gap: 12px; width: 100%; }
.menu-user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.menu-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.menu-user-info { flex: 1; min-width: 0; }
.menu-user-name { font-size: 0.84rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-user-link { font-size: 0.72rem; color: var(--primary); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; font-family: inherit; }
.menu-user-link:hover { text-decoration: underline; }
/* Skeleton */
.menu-user.loading .menu-user-content { display: none; }
.menu-user:not(.loading) .menu-user-skeleton { display: none; }
.menu-user-skeleton { display: flex; align-items: center; gap: 12px; width: 100%; }
.skel-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--border); animation: skelPulse 1.5s infinite; }
.skel-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skel-line { height: 10px; border-radius: 4px; background: var(--border); animation: skelPulse 1.5s infinite; }
.skel-line:first-child { width: 80%; }
.skel-line:last-child { width: 50%; }
@keyframes skelPulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* Título de grupo */
.menu-section-title {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--text-muted);
    padding: 0 10px; margin-bottom: -6px;
}

/* Itens do menu */
.menu-nav { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    font-size: 0.84rem; font-weight: 500; color: var(--text-muted);
    cursor: pointer; transition: all 0.18s;
    text-decoration: none; position: relative;
}
.menu-item:hover { background: var(--bg-hover); color: var(--text); }
.menu-item.active { background: var(--primary-tint); color: var(--primary); font-weight: 700; }
.menu-item i { font-size: 1.05rem; flex-shrink: 0; }
.menu-item span { flex: 1; }
.menu-badge {
    padding: 2px 7px; border-radius: 20px;
    font-size: 0.66rem; font-weight: 700;
    background: var(--primary-tint); color: var(--primary);
}
.menu-item.active .menu-badge { background: var(--primary); color: #fff; }
.menu-separator { height: 1px; background: var(--border); margin: 6px 12px; }

/* Mini-lista de comunidades no menu */
.menu-community-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px;
    font-size: 0.81rem; color: var(--text-muted);
    cursor: pointer; transition: all 0.18s;
    text-decoration: none;
}
.menu-community-item:hover { background: var(--bg-hover); color: var(--text); }
.menu-community-item__avatar {
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--gradient); color: #fff;
    font-size: 0.62rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-community-item__nome { flex: 1; font-weight: 500; }
.menu-community-item__badge {
    font-size: 0.62rem; font-weight: 700;
    background: var(--primary); color: #fff;
    border-radius: 10px; padding: 1px 6px;
}

/* ─── Coluna 2: Conteúdo ─── */
.col-content {
    padding: 24px 24px 48px;
    min-width: 0;
    overflow-y: auto; overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════
   BOAS-VINDAS
═══════════════════════════════════════════════════ */
.dash-welcome {
    background: var(--gradient);
    border-radius: 20px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    position: relative; overflow: hidden;
}
.dash-welcome::before {
    content: '';
    position: absolute; top: -40px; right: -30px;
    width: 180px; height: 180px; border-radius: 50%;
    background: rgba(255,255,255,0.08); pointer-events: none;
}
.dash-welcome__greeting {
    font-size: 0.8rem; font-weight: 600; opacity: 0.8;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px;
}
.dash-welcome__title {
    font-family: 'Cinzel', serif;
    font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin-bottom: 8px;
}
.dash-welcome__sub { font-size: 0.84rem; opacity: 0.85; max-width: 400px; line-height: 1.5; }
.dash-welcome__btn {
    flex-shrink: 0;
    padding: 12px 24px; border-radius: 20px;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
    color: #fff; font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s; white-space: nowrap;
    display: flex; align-items: center; gap: 7px; text-decoration: none;
}
.dash-welcome__btn:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════ */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; margin-bottom: 28px;
}
.dash-stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow 0.2s;
}
.dash-stat-card:hover { box-shadow: var(--shadow); }
.dash-stat-card__header { display: flex; align-items: center; justify-content: space-between; }
.dash-stat-card__icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary-tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.dash-stat-card__trend {
    font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
    background: rgba(34,197,94,0.12); color: #16a34a;
}
.dash-stat-card__value {
    font-family: 'Cinzel', serif; font-size: 1.55rem; font-weight: 700;
    color: var(--text); line-height: 1;
}
.dash-stat-card__label { font-size: 0.77rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   SEÇÃO GENÉRICA
═══════════════════════════════════════════════════ */
.dash-section { margin-bottom: 28px; }
.dash-section__header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.dash-section__title {
    font-family: 'Cinzel', serif; font-size: 0.97rem; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.dash-section__link {
    font-size: 0.78rem; color: var(--primary); text-decoration: none; font-weight: 600;
    display: flex; align-items: center; gap: 3px;
}
.dash-section__link:hover { text-decoration: underline; }

/* Feed com largura alinhada ao inicial/comunidade */
#dashFeedLista {
    max-width: 680px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   CARDS DE COMUNIDADE
═══════════════════════════════════════════════════ */
.dash-communities-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.dash-community-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none; display: flex; flex-direction: column; cursor: pointer;
}
.dash-community-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dash-community-card__banner {
    width: 100%; height: 72px;
    background-size: cover; background-position: center; position: relative;
}
.dash-community-card__banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15,10,30,0.5) 100%);
}
.dash-community-card__body {
    position: relative;
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dash-community-card__avatar {
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--gradient); color: #fff;
    font-size: 0.88rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: -28px; border: 3px solid var(--bg-card);
    flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
}
.dash-community-card__badge-wrap {
    margin-top: -18px;
    margin-bottom: 4px;
    min-height: 18px;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}
.dash-community-card__nome {
    font-family: 'Cinzel', serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.dash-community-card__autor { font-size: 0.71rem; color: var(--text-muted); }
.dash-community-card__meta {
    display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}
.dash-community-card__stat {
    display: flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--text-muted);
}
.dash-community-card__stat i { font-size: 0.82rem; color: var(--primary); }
.dash-community-card__badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid transparent;
    line-height: 1.2;
    position: static;
}
.dash-community-card__badge.is-criador {
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
    color: #92400e;
}
.dash-community-card__badge.is-admin {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.35);
    color: #1e40af;
}
.dash-community-card__badge.is-moderador {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
    color: #065f46;
}
.dash-community-card__badge.is-membro {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.3);
    color: #4338ca;
}
.dash-community-card__btn-delete {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.dash-community-card__btn-delete:hover {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.22);
    transform: translateY(-1px);
}

.dash-community-card__btn-delete:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 4px 10px rgba(220, 38, 38, 0.2);
}

.dash-community-card__btn-delete:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Feed de posts (cards reutilizados do AstionLiterário) ─── */
.feed-post {
    background: var(--bg-card); border-radius: 12px; padding: 16px;
    margin-bottom: 16px; border: 1px solid var(--border);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.feed-post:last-child { margin-bottom: 0; }
.post-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.post-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.post-user-info {
    flex: 1; min-width: 0;
}
.post-user-name {
    font-weight: 600; font-size: 0.9rem; line-height: 1.3;
    display: flex; align-items: center; gap: 6px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%;
}
.post-user-meta {
    font-size: 0.75rem; color: var(--text-muted);
    display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 2px;
}
.post-content { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.5; }
/* Emoji Noto inline nos posts */
.noto-emoji { width: 36px; height: 36px; line-height: 1; }
.post-content .noto-emoji,
.comun-post__text .noto-emoji { width: 1.9rem; height: 1.9rem; vertical-align: -0.5rem; display: inline-block; margin: 0 1px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.18)); }
.post-content p:has(.noto-emoji),
.comun-post__text p:has(.noto-emoji) { line-height: 2.6rem; }
.post-titulo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin: 0 0 8px;
}
.post-content.collapsed { max-height: 220px; overflow: hidden; position: relative; }
.post-content.collapsed::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 50px; background: linear-gradient(transparent, var(--bg-card));
}
.post-ver-mais {
    display: inline-block; color: var(--primary); cursor: pointer;
    font-size: 0.85rem; font-weight: 500; margin-top: 4px;
}
.post-ver-mais:hover { text-decoration: underline; }
.post-actions { display: flex; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-btn-deletar {
    margin-left: auto;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: .85rem;
    transition: color .15s, background .15s;
}
.post-btn-deletar:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.post-btn-deletar:disabled { opacity: .4; cursor: default; }
.post-action {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px; background: none; border: none; color: var(--text-muted);
    cursor: pointer; border-radius: 8px; font-size: 0.85rem; transition: all 0.2s;
}
.post-action:hover { background: var(--bg-hover); color: var(--primary); }
.post-action i { font-size: 1.1rem; }
.post-action-count { font-size: 0.8rem; font-weight: 600; line-height: 1; }
.post-btn-curtir.ativo { color: #ef4444; }
.post-btn-curtir.ativo:hover { color: #dc2626; background: rgba(239,68,68,0.08); }
.post-btn-curtir.ativo i { animation: pulse-heart 0.35s ease; }
@keyframes pulse-heart { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
.post-btn-favoritar.ativo { color: var(--primary); }
.post-btn-compartilhar:hover { color: #3b82f6; background: rgba(59,130,246,0.08); }
.post-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.7rem; padding: 2px 8px; border-radius: 10px;
    background: var(--bg-hover); color: var(--primary);
}
.post-respostas-area {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border);
}
/* Mídia: mesmo padrão do inicial/comunidade */
.post-media {
    margin: 6px 0 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    aspect-ratio: 9 / 10;
}
.post-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-media--youtube {
    aspect-ratio: 16 / 9;
}

.post-media--youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─── Coluna 3: Lateral ─── */
.col-rankings {
    padding: 20px 14px 32px;
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 16px;
    overflow-y: auto; height: 100vh; height: 100dvh; position: sticky; top: 0;
    scrollbar-width: thin; background: var(--bg-card);
}
.col-rankings::-webkit-scrollbar { width: 4px; }

.rank-bloco {
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.rank-bloco__titulo {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 16px; font-size: 0.82rem; font-weight: 700; color: var(--text);
    border-bottom: 1px solid var(--border); background: var(--bg-hover);
}
.rank-bloco__corpo { padding: 12px 16px; }

/* Autor em Destaque */
.dash-author-card { display: flex; flex-direction: column; gap: 10px; }
.dash-author-card__top { display: flex; align-items: center; gap: 10px; }
.dash-author-card__avatar {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--gradient); color: #fff; font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-author-card__name { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.dash-author-card__genre { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.dash-author-card__bio { font-size: 0.79rem; color: var(--text-muted); line-height: 1.5; }
.dash-author-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dash-author-card__stat {
    background: var(--bg-hover); border-radius: 10px; padding: 8px 6px; text-align: center;
}
.dash-author-card__stat-val {
    width: 100%; padding: 9px; border-radius: 20px;
    background: var(--gradient); color: #fff; font-size: 0.8rem; font-weight: 700; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity 0.2s;
}
.dash-author-card__stat-label { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }
.dash-author-card__btn {
    width: 100%; padding: 9px; border-radius: 20px;
    background: var(--gradient); color: #fff; font-size: 0.8rem; font-weight: 700; border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: opacity 0.2s;
}
.dash-author-card__btn:hover { opacity: 0.88; }
.dash-suggestion-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    text-decoration: none;
}
.dash-suggestion-item:last-child { border-bottom: none; }
.dash-suggestion-item__avatar {
    width: 36px; height: 36px; border-radius: 999px;
    background: var(--gradient); color: #fff; font-size: 0.82rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    overflow: hidden;
}
.dash-suggestion-item__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.dash-suggestion-item__info { min-width: 0; }
.dash-suggestion-item__nome {
    font-size: 0.8rem; color: var(--text); font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dash-suggestion-item__meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 1px; }
.dash-suggestion-item__btn {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    background: none; cursor: pointer; white-space: nowrap; transition: all 0.18s; flex-shrink: 0;
}
.dash-suggestion-item__btn:hover { background: var(--primary); color: #fff; }

.dash-vazio {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 28px 16px; gap: 8px; color: var(--text-muted);
}
.dash-vazio i  { font-size: 1.5rem; color: var(--primary); opacity: 0.5; }
.dash-vazio p  { font-size: 0.8rem; line-height: 1.5; }

/* Feed vazio — CTA centralizado */
.dash-feed-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 52px 24px; gap: 14px;
}
.dash-feed-vazio__visual {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    opacity: 0.6;
    background: var(--primary-tint); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.dash-feed-vazio__titulo {
    font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--text);
}
.dash-feed-vazio__texto {
    font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; max-width: 370px;
}
.dash-feed-vazio__btn {
    margin-top: 4px;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 22px; border-radius: 20px;
    background: var(--gradient); color: #fff;
    font-size: 0.84rem; font-weight: 700; text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.dash-feed-vazio__btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Descoberta de gêneros — embaixo do grid de comunidades quando vazio */
.dash-descobrir { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.dash-descobrir__texto { font-size: 0.79rem; color: var(--text-muted); }
.dash-descobrir__pills { display: flex; flex-wrap: wrap; gap: 7px; }
.dash-genre-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-size: 0.78rem; font-weight: 600; text-decoration: none;
    transition: all 0.18s;
}
.dash-genre-pill:hover {
    background: var(--primary-tint); border-color: var(--primary); color: var(--primary);
    transform: translateY(-1px);
}
.dash-genre-pill i { font-size: 0.88rem; }

/* Sidebar vazio — compacto com link */
.dash-sidebar-vazio {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 16px 8px; gap: 6px;
}
.dash-sidebar-vazio > i    { font-size: 1.5rem; color: var(--primary); opacity: 0.45; }
.dash-sidebar-vazio p      { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.dash-sidebar-vazio__link  {
    font-size: 0.75rem; font-weight: 700; color: var(--primary); text-decoration: none;
    display: inline-flex; align-items: center; gap: 2px; margin-top: 4px;
}
.dash-sidebar-vazio__link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .container { grid-template-columns: 230px 1fr 250px; }
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-communities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .container { grid-template-columns: 220px 1fr; }
    .col-rankings { display: none; }
    .dash-communities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .navbar-mobile { display: flex; }
    .container { grid-template-columns: 1fr; }
    .col-menu {
        position: fixed; left: 0; top: 52px;
        height: calc(100vh - 52px); height: calc(100dvh - 52px); width: min(82vw, 300px);
        z-index: 150;
        transform: translateX(-105%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        padding-bottom: calc(104px + env(safe-area-inset-bottom));
        overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    }
    .col-menu.is-open { transform: translateX(0); }
    body:has(.col-menu.is-open), body:has(.col-rankings.is-open) { overflow: hidden; }
    .col-content { padding: 14px 14px calc(104px + env(safe-area-inset-bottom)); }
    /* Coluna lateral como painel deslizante à direita em mobile */
    .col-rankings {
        display: flex;
        position: fixed;
        right: 0;
        top: 52px;
        height: calc(100vh - 52px);
        height: calc(100dvh - 52px);
        width: min(86vw, 320px);
        z-index: 150;
        transform: translateX(105%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        border-left: 1px solid var(--border);
        padding: 20px 14px calc(104px + env(safe-area-inset-bottom));
        padding-right: max(14px, env(safe-area-inset-right));
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .col-rankings.is-open { transform: translateX(0); }
    .dash-welcome { flex-direction: column; align-items: flex-start; gap: 14px; }
    .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-communities-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-modal__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dash-communities-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   HEADER SECTION AÇÕES (Criar + Ver todas)
═══════════════════════════════════════════════════ */
.dash-section__header-actions {
    display: flex; align-items: center; gap: 10px;
}
.dash-section__btn-criar {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 700;
    background: var(--gradient); color: #fff;
    border: none; cursor: pointer;
    box-shadow: 0 2px 8px var(--primary-glow);
    transition: opacity 0.2s, transform 0.2s;
}
.dash-section__btn-criar:hover { opacity: 0.9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════
   CARD "CRIAR COMUNIDADE"
═══════════════════════════════════════════════════ */
.dash-community-card--criar {
    border: 2px dashed var(--primary);
    background: var(--primary-tint);
    border-radius: 16px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    padding: 28px 16px; cursor: pointer;
    transition: all 0.2s;
    color: var(--primary);
    min-height: 130px; width: 100%;
}
.dash-community-card--criar:hover {
    background: var(--gradient); color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.dash-community-card--criar i { font-size: 1.9rem; }
.dash-community-card--criar span { font-size: 0.83rem; font-weight: 700; }

/* ═══════════════════════════════════════════════════
   MODAL CRIAR COMUNIDADE
═══════════════════════════════════════════════════ */
.dash-modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    align-items: flex-start; justify-content: center;
    overflow-y: auto; padding: 40px 16px;
}
.dash-modal-overlay.is-open { display: flex; }

.dash-modal {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%; max-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: dash-modal-in 0.22s ease-out;
    margin: auto;
}
@keyframes dash-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.dash-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-hover);
}
.dash-modal__header-title { display: flex; align-items: center; gap: 12px; }
.dash-modal__header-title > i { font-size: 1.5rem; color: var(--primary); flex-shrink: 0; }
.dash-modal__header-title h2 {
    font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700;
    color: var(--text); margin-bottom: 2px;
}
.dash-modal__header-title p { font-size: 0.77rem; color: var(--text-muted); }
.dash-modal__close {
    width: 34px; height: 34px; border-radius: 10px;
    background: none; border: 1px solid var(--border);
    font-size: 1.1rem; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.18s; flex-shrink: 0;
}
.dash-modal__close:hover { background: var(--bg-card); color: var(--text); border-color: var(--primary); }

/* Banner + Avatar */
.dash-modal__banner-wrap {
    position: relative;
    height: 118px;
    background: var(--bg-hover);
    margin-bottom: 46px;
}
.dash-modal__banner-preview {
    width: 100%; height: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: opacity 0.2s;
}
.dash-modal__banner-preview:hover { opacity: 0.82; }
.dash-modal__banner-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    color: var(--text-muted); pointer-events: none;
}
.dash-modal__banner-placeholder i { font-size: 1.6rem; }
.dash-modal__banner-placeholder span { font-size: 0.76rem; }
.dash-modal__file-hidden { display: none; }
.dash-modal__avatar-wrap {
    position: absolute; bottom: -36px; left: 24px;
}
.dash-modal__avatar-preview {
    width: 64px; height: 64px; border-radius: 14px;
    background: var(--gradient); color: #fff;
    border: 3px solid var(--bg-card);
    font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: opacity 0.18s; overflow: hidden;
}
.dash-modal__avatar-preview:hover { opacity: 0.82; }
.dash-modal__avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Formulário */
.dash-modal__form { padding: 6px 24px 24px; }
.dash-modal__field { margin-bottom: 16px; position: relative; }
.dash-modal__label {
    display: block; font-size: 0.75rem; font-weight: 700;
    color: var(--text-muted); margin-bottom: 5px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.dash-modal__required { color: #ef4444; }
.dash-modal__input {
    width: 100%; padding: 10px 13px;
    background: var(--bg-hover); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: 0.88rem;
    font-family: inherit; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dash-modal__input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.dash-modal__input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.dash-modal__textarea { resize: vertical; min-height: 80px; line-height: 1.55; }
.dash-modal__select {
    appearance: none; cursor: pointer; padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.dash-modal__char-count {
    position: absolute; right: 2px; bottom: -17px;
    font-size: 0.67rem; color: var(--text-dim);
}
.dash-modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Privacidade */
.dash-modal__privacy-group { display: flex; gap: 8px; }
.dash-modal__privacy-opt { flex: 1; cursor: pointer; }
.dash-modal__privacy-opt input { display: none; }
.dash-modal__privacy-opt span {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 8px; border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-hover); color: var(--text-muted);
    font-size: 0.82rem; font-weight: 500;
    transition: all 0.18s; cursor: pointer;
}
.dash-modal__privacy-opt input:checked + span {
    border-color: var(--primary); background: var(--primary-tint);
    color: var(--primary); font-weight: 700;
}
.dash-modal__privacy-opt span:hover { border-color: var(--primary); color: var(--primary); }

/* Ações */
.dash-modal__actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
}
.dash-modal__btn {
    padding: 10px 22px; border-radius: 20px;
    font-size: 0.84rem; font-weight: 700;
    border: none; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; gap: 6px;
}
.dash-modal__btn--cancel {
    background: none; border: 1px solid var(--border); color: var(--text-muted);
}
.dash-modal__btn--cancel:hover { border-color: var(--primary); color: var(--primary); }
.dash-modal__btn--primary {
    background: var(--gradient); color: #fff;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.dash-modal__btn--primary:hover { opacity: 0.9; transform: translateY(-1px); }
.dash-modal__btn--primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Spinner no botão submit */
@keyframes dash-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.dash-modal__btn--primary .ri-loader-4-line { animation: dash-spin 0.8s linear infinite; }

/* Overlay de processamento (conversão/upload) */
.dash-modal__processing {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(2px);
    z-index: 20;
}
.dash-modal__processing.is-active {
    display: flex;
}
.dash-modal__processing-card {
    min-width: 240px;
    max-width: 84%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 600;
}
.dash-modal__processing-card i {
    font-size: 1.2rem;
    color: var(--primary);
    animation: dash-spin 0.8s linear infinite;
}
.dash-modal__processing-content {
    width: 100%;
}
.dash-modal__processing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.dash-modal__processing-head strong {
    font-size: 0.88rem;
    color: var(--text);
}
.dash-modal__processing-head span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}
#modalProcessingText {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
}
.dash-modal__progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-hover);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}
.dash-modal__progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--gradient);
    transition: width 0.2s ease;
}
#modalProcessingDetail {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.35;
}

/* ═══════════════════════════════════════════════════
   EVENTO — Card Rico no Feed (compartilhado dashboard/inicial)
═══════════════════════════════════════════════════ */
.comun-evento-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .25s;
}
.comun-evento-feed:hover { box-shadow: var(--shadow); }
.comun-evento-feed--live { border-color: #22c55e; }
.comun-evento-feed--encerrado { opacity: .7; }
.comun-evento-feed--cancelado { opacity: .55; }

.comun-evento-feed__banner {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 12px;
}
.comun-evento-feed__date-chip {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.comun-evento-feed__date-day {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.comun-evento-feed__date-month {
    font-size: .66rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.comun-evento-feed__body { padding: 14px 16px 12px; }
.comun-evento-feed__top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.comun-evento-feed__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 700;
}
.comun-evento-feed__status--agendado { background: var(--primary-tint); color: var(--primary); }
.comun-evento-feed__status--live { background: rgba(34,197,94,.12); color: #22c55e; }
.comun-evento-feed__status--encerrado { background: rgba(148,163,184,.12); color: #94a3b8; }
.comun-evento-feed__status--cancelado { background: rgba(239,68,68,.12); color: #ef4444; }

.comun-evento-feed__type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .69rem;
    font-weight: 600;
    color: var(--text-muted);
}
.comun-evento-feed__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.comun-evento-feed__desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comun-evento-feed__date-inline {
    font-size: .78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}
.comun-evento-feed__countdown {
    font-size: .76rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    padding: 4px 10px;
    background: var(--primary-tint);
    border-radius: 6px;
    width: fit-content;
}
.comun-evento-feed__countdown--live { background: rgba(34,197,94,.12); color: #22c55e; }
.comun-evento-feed__countdown--encerrado { background: rgba(148,163,184,.12); color: #94a3b8; }
.comun-evento-feed__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.comun-evento-feed__info-item {
    font-size: .76rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.comun-evento-feed__info-item a { color: var(--primary); text-decoration: none; }
.comun-evento-feed__info-item a:hover { text-decoration: underline; }
.comun-evento-feed__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.comun-evento-feed__participants {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    color: var(--text-muted);
}
.comun-evento-feed__btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--gradient);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.comun-evento-feed__btn:hover { opacity: .88; }
.comun-evento-feed__btn--live { background: #22c55e; }
.comun-evento-feed__btn.is-member { background: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   CARD BASE — .comun-post (compartilhado dashboard/inicial para eventos)
═══════════════════════════════════════════════════ */
.comun-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.comun-post:hover {
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    border-color: var(--primary-tint, var(--border));
}
.comun-post__header {
    display: flex; align-items: flex-start;
    gap: 10px; margin-bottom: 12px;
}
.comun-post__special-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ── Sidebar: rank-event-item (eventos próximos sidebar dashboard/inicial) ─ */
.rank-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.rank-event-item:last-child { border-bottom: none; }
.rank-event-item[data-evento-id]:hover,
.rank-event-item[data-slug]:hover { background: var(--primary-tint); border-radius: 8px; }
.rank-event-item__date {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-tint);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-event-item__day {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.rank-event-item__month { font-size: 0.52rem; color: var(--text-muted); text-transform: uppercase; }
.rank-event-item__nome { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.rank-event-item__tipo { font-size: 0.69rem; color: var(--text-muted); margin-top: 2px; display: flex; align-items: center; gap: 3px; }