/* Componentes Reutilizáveis */

.card-section {
    background-color: var(--card-bg);
    padding: 18px 16px;
    margin-bottom: 22px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--text-color) 6%, transparent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
}
.card-section h2, .card-section h3, .card-section h4 {
    color: var(--text-color);
    margin-bottom: 20px;
}
.card-section h2 {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}
/* Título de seção (ex.: "Últimas Divulgações") com barra de acento à esquerda. */
.card-section > h3 {
    text-align: left;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1.25;
    padding-left: 12px;
    border-left: 4px solid var(--link-color);
    margin-bottom: 16px;
}
/* Variante com ícone: mantém borda esquerda, alinha ícone + texto */
.card-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-section-title i {
    color: var(--link-color);
    font-size: 0.95em;
    flex-shrink: 0;
}
.card-section > p {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 20px;
}

.card-section a {
    text-decoration: none;
}

.card-section a:visited {
    text-decoration: none;
}

.btn-wap {
    background: var(--primary-color);
    color: var(--primary-text-color);
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95em;
    text-transform: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background 0.3s ease-in-out, filter 0.2s;
    width: auto;
    max-width: 350px;
    margin: 15px auto;
}
.btn-wap:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(121, 121, 121, 0.2);
    color: var(--primary-text-color);
    filter: brightness(110%);
}
.btn-wap:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    color: var(--primary-text-color);
    text-decoration: none;
}
.btn-wap i { font-size: 1em; line-height: 1; }
.btn-wap a { color: inherit; text-decoration: none; }
/* Variante largura-cheia — ex.: botão de login em telas de auth, onde o
   .btn-wap precisa ocupar a mesma largura dos campos do formulário. */
.btn-wap-block { width: 100%; max-width: none; margin: 0; }
.btn-wap:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-wap:disabled:hover {
    transform: none;
    box-shadow: none;
    filter: none;
}
.btn-wap-small {
    padding: 8px 12px;
    font-size: 0.9em;
    text-decoration: none;
    color: var(--link-color);
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== Visualizador/cronômetro de áudio (Hall e Mensagens Privadas) ===== */
.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
    margin-right: 15px;
}
.visualizer-bar {
    width: 3px;
    height: 100%;
    background-color: var(--danger);
    border-radius: 2px;
    animation: wave-animation 1s ease-in-out infinite;
}
.visualizer-bar:nth-child(1) { animation-delay: 0.1s; height: 40%; }
.visualizer-bar:nth-child(2) { animation-delay: 0.3s; height: 80%; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; height: 50%; }
.visualizer-bar:nth-child(4) { animation-delay: 0.4s; height: 90%; }
.visualizer-bar:nth-child(5) { animation-delay: 0.1s; height: 60%; }
@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.5); }
}
.recording-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-weight: bold;
    color: var(--danger);
    background: #ffebee;
    border-radius: 24px;
    height: 48px;
    flex-grow: 1;
    border: 1px solid #f8d7da;
}

/* ===== Modal de mídias (GIFs & figurinhas) — Hall e Mensagens Privadas ===== */
.media-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100dvh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    pointer-events: none;
    /* visibility (não só transparência) tira o overlay do pipeline de pintura
       enquanto fechado — sem isso, esse fixed full-screen fica sempre
       composto/pintado (só invisível por opacidade), e é vulnerável a um
       glitch de repaint do Chrome/Edge Android: durante a animação de
       recolher a barra de endereço, o navegador pode pintar um frame do
       .media-modal-content (arredondado, encostado embaixo) antes do
       transform que o esconde — a "barra branca" reportada durante a
       rolagem. O delay na transition de visibility é só pra não cortar a
       animação de saída (transform 0.32s) do conteúdo. */
    visibility: hidden;
    transition: background-color 0.28s ease, visibility 0s linear 0.32s;
}
.media-modal-overlay.is-active {
    background-color: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    visibility: visible;
    transition: background-color 0.28s ease, visibility 0s linear;
}

/* Painel deslizante de baixo para cima no mobile */
.media-modal-content {
    background-color: var(--card-bg);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 480px;
    height: 72vh;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.media-modal-overlay.is-active .media-modal-content {
    transform: translateY(0);
}

/* ── Cabeçalho — variante bottom-sheet (estende .modal-header) ─── */
.media-modal-overlay .modal-header {
    padding: 14px 14px 0;
    background-color: var(--card-bg);
    flex-shrink: 0;
    gap: 8px;
}
.media-modal-tabs {
    display: flex;
    flex: 1;
    gap: 4px;
}
.tab-link {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.55;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: opacity 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.tab-link:hover { opacity: 0.8; }
.tab-link.is-active {
    color: var(--link-color);
    opacity: 1;
    border-bottom-color: var(--link-color);
}
/* Botão fechar — variante bottom-sheet (estende .close-modal-button) */
.media-modal-overlay .close-modal-button {
    width: 32px; height: 32px;
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
    margin-bottom: 2px;
}
.media-modal-overlay .close-modal-button:hover {
    background: color-mix(in srgb, var(--text-color) 18%, transparent);
}
.media-modal-overlay .modal-title { flex: 1; min-width: 0; }

/* ── Barra de pesquisa ───────────────────────────────── */
.media-modal-search {
    position: relative;
    padding: 10px 14px 8px;
    flex-shrink: 0;
}
.media-search-icon {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted-color, #aaa);
    font-size: 0.8rem;
    pointer-events: none;
}
.search-bar {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--text-color) 14%, transparent);
    background-color: color-mix(in srgb, var(--text-color) 5%, transparent);
    color: var(--text-color);
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.search-bar:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 15%, transparent);
}

/* ── Área de conteúdo rolável ────────────────────────── */
.media-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 12px;
    overscroll-behavior: contain;
}
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* ── Grids de GIFs e figurinhas ─────────────────────── */
.gif-grid, .sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.gif-grid img, .sticker-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.3s;
    background-color: color-mix(in srgb, var(--text-color) 6%, transparent);
}
.gif-grid img:hover, .sticker-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* ── Estados vazios e loading ────────────────────────── */
.modal-empty, .modal-loading {
    text-align: center;
    padding: 28px 12px;
    color: var(--text-muted-color, #888);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.modal-empty i, .modal-loading i { font-size: 1.6rem; opacity: 0.4; }

/* ── Barra de categorias de GIF ──────────────────────── */
.gif-categories-bar {
    display: flex;
    gap: 6px;
    padding: 0 12px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    flex-shrink: 0;
}
.gif-categories-bar::-webkit-scrollbar { display: none; }
.gif-categories-bar[hidden] { display: none; }
.gif-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--text-color) 18%, transparent);
    background: transparent;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    opacity: 0.75;
}
.gif-cat-chip:hover {
    background-color: color-mix(in srgb, var(--link-color) 10%, transparent);
    border-color: var(--link-color);
    color: var(--link-color);
    opacity: 1;
}
.gif-cat-chip.is-active {
    background-color: var(--link-color);
    border-color: var(--link-color);
    color: #fff;
    opacity: 1;
}
.gif-cat-chip i { font-size: 0.75rem; }

/* ===== Toolbar de formatação de mensagens (hall + mensagens privadas) ===== */
.gemini-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.toolbar-section {
    display: flex;
    align-items: center;
    gap: 4px;
}
.toolbar-button, .file-upload-label {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    opacity: 0.7;
}
.toolbar-button:hover, .file-upload-label:hover {
    background-color: color-mix(in srgb, var(--text-color) 8%, transparent);
    opacity: 1;
}
.btn-format.is-active {
    background-color: color-mix(in srgb, var(--text-color) 8%, transparent);
    color: var(--primary-color);
    opacity: 1;
}
#color-picker, .toolbar-color-picker {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}
#char-counter, .char-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    pointer-events: none;
    background-color: transparent;
    z-index: 5;
}
#char-counter.limit-reached, .char-counter.limit-reached {
    color: var(--danger);
    font-weight: bold;
}

/* ===== Botão "ver mais / enviar" — pílula moderna unificada (home, hall, listagens) ===== */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--link-color) 10%, transparent);
    color: var(--link-color);
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid color-mix(in srgb, var(--link-color) 25%, transparent);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-see-more:hover {
    background: var(--link-color);
    color: #fff;
    transform: translateY(-1px);
}
.btn-see-more i { font-size: 0.9em; }

/* Link de @menção dentro de textos (filtro render_mentions) */
.mention {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.mention:hover {
    text-decoration: underline;
}

/* --- Autocomplete de @menções (mention-autocomplete.js) --- */
.mention-dropdown {
    position: absolute;
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    background: var(--card-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 6px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.mention-item.active,
.mention-item:hover {
    background-color: var(--primary-color);
    color: var(--primary-text-color, #fff);
}

.mention-item-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
}

.mention-item-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.mention-item-name {
    font-weight: 600;
    font-size: 0.92em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mention-item-username {
    font-size: 0.8em;
    color: var(--text-muted-color, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* No estado ativo/hover o username silenciado precisa herdar o contraste. */
.mention-item.active .mention-item-username,
.mention-item:hover .mention-item-username {
    color: inherit;
    opacity: 0.85;
}

/* --- Mensagens do Sistema (Flash Messages) --- */
/* Cores semânticas mantidas para consistência (sucesso=verde, erro=vermelho) */
.messages-list { list-style: none; padding: 15px; margin: 0; border-radius: 8px; font-weight: bold; text-align: center; margin-bottom: 20px; }
.messages-list li { padding: 10px 15px; border-radius: 5px; }
.messages-list li.success { background-color: #d4edda; color: #155724; border: 1px solid var(--success); }
.messages-list li.error { background-color: #f8d7da; color: #721c24; border: 1px solid var(--danger); display: block; }
.messages-list li.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #17a2b8; }
/* Nick personalizado dentro do alerta (nick_message): sem a bolinha de status. */
.messages-list .presence-dot { display: none; }

.helptext { display: block; font-size: 0.8em; color: var(--text-color); opacity: 0.7; margin-top: 5px; }
.errorlist { list-style: none; padding: 0; margin: 5px 0; color: var(--danger); font-size: 0.9em; }

/* Formulários de postagem.
   Base (.post-form-section): card inline, usado também pelo form de comentário.
   Modificador (.post-form-sheet): transforma em bottom-sheet modal deslizante. */
.post-form-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
    backdrop-filter: blur(2px);
}
.post-form-backdrop.is-active { display: block; }
/* Usado só pelo sheet de prévia de anexo em PMs — mantém o fundo escurecido,
   sem o desfoque, para não turvar a prévia de imagem/vídeo por baixo. */
.post-form-backdrop.post-form-backdrop--no-blur { backdrop-filter: none; }
body.post-form-open { overflow: hidden; }

.post-form-section {
    background-color: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px 16px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Modificador bottom-sheet: fixa na base da tela e desliza com .is-active.
   max-height desconta a topbar (55 px) para o topo nunca ficar atrás dela. */
.post-form-sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    z-index: 950;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.18);
    padding: 0 16px 32px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.post-form-sheet.is-active { transform: translateY(0); }

/* Handle de arrasto visual no topo (só no bottom-sheet) */
.post-form-sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: color-mix(in srgb, var(--text-color) 20%, transparent);
    border-radius: 2px;
    margin: 12px auto 4px;
    flex-shrink: 0;
}

/* Cabeçalho do bottom-sheet — sticky para o botão fechar nunca sair da tela */
.post-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
    padding-top: 4px;
}
.post-form-header h3 {
    font-size: 1.1em;
    color: var(--text-color);
    margin: 0;
    border: none;
    padding: 0;
}
.post-form-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted-color, #888);
    font-size: 1.1em;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-form-close-btn:hover {
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
    color: var(--text-color);
}

.post-form-section h3 { font-size: 1.1em; color: var(--text-color); margin-bottom: 0; border: none; padding: 0; }
.post-form-section p { font-size: 0.9em; color: var(--text-muted-color, #888); margin-bottom: 4px; }
.post-form-section .form-field { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 0; width: 100%; }
.post-form-section .form-field label { font-size: 0.9em; font-weight: 600; color: var(--text-color); margin-bottom: 6px; margin-top: 2px; text-align: left; }
.post-form-section .form-field input[type="text"],
.post-form-section .form-field input[type="url"],
.post-form-section .form-field textarea,
.post-form-section .form-field select {
    width: 100%; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
    border-radius: 8px; font-size: 1em; color: var(--text-color); background-color: var(--card-bg);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.post-form-section .form-field input:focus, .post-form-section .form-field textarea:focus, .post-form-section .form-field select:focus {
    outline: none; border-color: var(--link-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.post-form-section .form-field textarea { min-height: 100px; resize: vertical; }
.post-form-section .captcha { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.post-form-section .captcha img.captcha { border: 1px solid #ccc; border-radius: 4px; }
.post-form-section .captcha .captcha-text { width: 120px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 5px; }
.post-form-section .captcha a { font-size: 0.85em; color: var(--link-color); text-decoration: none; }
.form-cor { max-width: 50px; padding: 0; }
.auth-form {
    display: flex; text-align: left; flex-direction: column; gap: 15px; padding: 20px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: var(--card-bg); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.content-form textarea { flex-grow: 1; border: none; resize: none; padding: 8px 0; font-size: 1em; background-color: transparent; }
.content-form textarea:focus { outline: none; box-shadow: none; }
.content-form .send-button { background-color: var(--link-color); color: white; border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 1.2em; transition: filter 0.2s ease-in-out; flex-shrink: 0; }
.content-form .send-button:hover { filter: brightness(90%); }
.content-form input[type="file"] { display: none; }
.auth-form p, .content-form p { margin-bottom: 0; }
.auth-form label, .content-form label { color: var(--text-color); font-weight: bold; font-size: 0.95em; margin-bottom: 5px; text-align: left; width: 100%; }
.auth-form input, .auth-form select, .content-form input, .content-form input[type="file"] {
    width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 5px; background-color: var(--card-bg); color: var(--text-color); font-size: 1em; box-sizing: border-box;
}
.auth-form input:focus, .auth-form select:focus, .content-form input:focus, .content-form input[type="file"]:focus {
    outline: none; border-color: var(--link-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.form-field { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 0; }
.form-field textarea {
    width: 100%; min-height: 120px; padding: 12px 16px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--card-bg); color: var(--text-color); transition: border-color 0.3s, box-shadow 0.3s; resize: vertical; box-sizing: border-box;
}
.form-field textarea:focus { outline: none; border-color: var(--link-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent); }
.form-field-switch { display: block; align-items: center; text-align: center; justify-content: flex-start; gap: 15px; margin-bottom: 10px; width: 90px; margin-left: auto; margin-right: auto; }
.form-field-switch label { flex-grow: 1; font-weight: bold; color: var(--text-color); }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--link-color); }
input:focus + .slider { box-shadow: 0 0 1px var(--link-color); }
input:checked + .slider:before { transform: translateX(26px); }
.captcha { margin-top: 5px; margin-bottom: 5px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 10px; }
.captcha p { margin-bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.captcha label { margin-bottom: 0; }
.captcha img.captcha { margin-bottom: 0; }
.form-field-inline { display: flex; gap: 15px; align-items: flex-end; width: 100%; }
.form-field-inline .form-field { flex-grow: 1; margin-bottom: 0; }
.form-field-inline .form-field:last-child { flex-grow: 0; min-width: 100px; }
.form-field-inline input, .form-field-inline select { width: 100%; }

/* Formulário de Busca */
.search-form-container { text-align: center; align-items: center; margin-top: 0; }
.search-form { display: flex; justify-content: center; align-items: center; gap: 10px; max-width: 600px; margin: 0 auto; }
.search-input { flex-grow: 1; padding: 10px 15px; border: 1px solid #cccccc; border-radius: 8px; background-color: var(--card-bg); color: var(--text-color); font-size: 1em; box-sizing: border-box; height: 48px; vertical-align: middle; line-height: 1; }
.search-btn {
    padding: 12px 20px; background: var(--primary-color); color: var(--primary-text-color); border: none; border-radius: 8px; cursor: pointer; font-size: 1.5em; font-weight: bold; transition: filter 0.3s; height: 48px; display: flex; align-items: center; justify-content: center; vertical-align: middle; line-height: 1; transform: translateY(-7.5px);
}
.search-btn:hover { filter: brightness(110%); }
.search-btn i.fas { vertical-align: middle; line-height: 1; }

/* Paginação */
/* ===== Conversa privada: rolagem normal da página (não mais interna) =====
   Sem padding extra aqui: a barra de envio é sticky (chat.css), último
   filho do .card-section — ela mesma reserva o próprio espaço no fluxo
   normal, não precisa de compensação. */
.pm-thread-top { text-align: center; padding: 4px 0; }

/* ===== Campo de busca padrão (DRY) ===== */
.search-box { display: flex; gap: 8px; margin-bottom: 12px; align-items: stretch; }
.search-box input[type="search"] {
  flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
  border-radius: 10px; background: var(--card-bg); color: var(--text-color);
  font-size: 0.95rem;
}
.search-box input[type="search"]:focus {
  outline: none; border-color: var(--link-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.search-box .btn-wap.search-box-go { min-width: 48px; height: 44px; padding: 0; margin: 0; flex-shrink: 0; }
/* Selects de filtro padronizados com .search-box (override do estilo legado de cada página) */
.album-filter-bar .album-filter-row select {
  height: 44px; padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
}

/* Paginação mobile: Anterior / contador / Próxima — uma linha, alvos ≥44px, sem hover */
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 20px 0; flex-wrap: nowrap; }
.btn-pagination {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; border-radius: 10px;
    background: var(--primary-color); color: var(--primary-text-color);
    text-decoration: none; font-size: 1.1rem; border: 1px solid transparent;
    transition: filter .15s ease, transform .05s ease;
}
.btn-pagination:active { transform: scale(.95); }
.btn-pagination.is-disabled { opacity: .35; pointer-events: none; }
.current-page { color: var(--text-color); font-weight: bold; font-size: 0.95rem; min-width: 64px; text-align: center; }

@media (min-width: 768px) { .search-form { flex-direction: row; gap: 15px; } .search-input { max-width: 400px; } }

.btn-wap-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--link-color);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}

.btn-wap-link:hover {
    text-decoration: none;
}

/* Botão "Voltar" usado no topo das páginas de configuração */
.btn-back {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
}
.btn-back:hover {
    text-decoration: underline;
}
.btn-back i {
    margin-right: 5px;
}

/* --- Toggle Switch (estilo iOS) --- */
.toggle-switch {
    display: none;
}

.toggle-switch + label {
    position: relative;
    display: inline-block;
    min-height: 22px;
    line-height: 22px;
    padding-right: 50px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch + label::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 22px;
    background-color: #ccc;
    border-radius: 11px;
    transition: background-color 0.2s ease-in-out;
}

.toggle-switch + label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    transition: right 0.2s ease-in-out;
}

.toggle-switch:checked + label::before {
    background-color: var(--link-color);
}

.toggle-switch:checked + label::after {
    right: 2px;
}

/* --- Formulário de Configurações de Notificação (legado crispy) --- */
.notification-settings-form .form-check {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.notification-settings-form .form-check:last-of-type {
    border-bottom: none;
}
.notification-settings-form .form-check label {
    flex: 1;
    margin-bottom: 0;
    color: var(--text-color);
}

/* --- Página de Configurações de Notificação (cards) --- */
/* Cabeçalho empilhado e centralizado (mobile-first): título acima, link
   "Voltar" abaixo — evita o overflow do layout lado a lado em telas estreitas. */
.settings-page .settings-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-bottom: 10px;
}
.settings-page .settings-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.settings-page .settings-header .btn-back {
    margin-bottom: 0;
}
.settings-page .settings-intro {
    color: var(--text-muted-color, #888);
    text-align: center;
    margin: 0 0 22px;
    font-size: 0.95em;
}

.settings-group {
    margin-bottom: 26px;
}
.settings-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--link-color);
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* Cancela a barra lateral de .card-section > h3 quando o título
   usa a classe settings-group-title — ela tem identidade própria. */
.card-section > h3.settings-group-title {
    border-left: none;
    padding-left: 0;
}

.settings-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.settings-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.settings-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--link-color);
    color: #fff;
    font-size: 1.05em;
}
.settings-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.settings-card-title {
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}
.settings-card-desc {
    font-size: 0.85em;
    color: var(--text-muted-color, #888);
    line-height: 1.35;
}
.settings-card-status {
    font-size: 0.8em;
    margin-top: 4px;
    color: var(--text-muted-color, #888);
}
.settings-card-status.ok { color: var(--success); }
.settings-card-status.warn { color: var(--danger); }
.push-device-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    background: color-mix(in srgb, var(--link-color) 12%, transparent);
    color: var(--link-color);
    border-radius: 20px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.push-device-badge.hidden { display: none; }
.settings-card-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.settings-card--push {
    border-style: dashed;
    flex-wrap: wrap;
}
/* Linha própria embaixo do cartão, com o botão centralizado. */
.push-test-row {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
}
.push-test-row.hidden { display: none; }

/* Blocos de resumo/estatística (grid de .card-section discretos) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 10px;
}
.stats-grid .card-section {
    margin: 0;
    padding: 16px 12px;
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 1.7em;
    font-weight: 700;
    color: var(--link-color);
    line-height: 1.1;
}
.stat-caption {
    display: block;
    font-size: 0.8em;
    color: var(--text-muted-color, #888);
    margin-top: 4px;
}

/* Banner de tempo online — página de estatísticas */
.stat-uptime {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px 18px;
    background: color-mix(in srgb, var(--link-color) 8%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--link-color) 22%, transparent);
    border-radius: 12px;
}
.stat-uptime-icon {
    font-size: 1.5rem;
    color: var(--link-color);
    flex-shrink: 0;
}
.stat-uptime-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--link-color);
    line-height: 1.2;
}
.stat-uptime-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted-color, #888);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Investigador de IPs (sala de investigação da staff) */
.investigation-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 18px;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--danger) 10%, var(--card-bg));
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
    font-weight: 600;
    overflow: hidden;
    word-break: break-word;
}
.investigation-alert i {
    font-size: 1.3em;
    flex-shrink: 0;
}
/* Listagem do investigador: respiro do form, ações empilhadas e atalho de moderação */
.investigation-form {
    margin-bottom: 24px;
}
.investigation-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    align-items: stretch;
}
.investigation-actions .btn-wap-small {
    white-space: nowrap;
    text-align: center;
}
.btn-wap-small.btn-moderate {
    background: var(--danger);
    color: #fff;
}
.btn-wap-small.btn-moderate:hover {
    filter: brightness(92%);
}
/* Ação secundária (ex.: "Recusar") fica esmaecida ao lado da ação primária. */
.btn-wap-small.btn-secondary {
    color: var(--text-muted-color, #888);
}
.btn-wap-small.btn-secondary:hover {
    color: var(--danger);
}

.settings-page .btn-wap i,
.settings-footer-link .btn-wap-small i {
    margin-right: 6px;
}
.settings-footer-link {
    margin-top: 24px;
}

/* Cards clicáveis (página central de configurações) */
a.settings-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Card de parceiro: wrapper com borda única; o link interno e o rodapé de
   ações ficam DENTRO do card (botões não podem aninhar no <a> clicável). */
.partner-card-wrap {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-card-wrap:hover {
    border-color: var(--link-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.partner-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
/* Logo em círculo, não ícone sólido */
.partner-card-logo {
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    overflow: hidden;
}
.partner-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.partner-card-logo i { color: var(--link-color); }
.partner-clicks { margin-top: 2px; }

/* Rodapé de ações de staff, dentro do card */
.partner-card-actions {
    justify-content: flex-end;
    padding: 8px 12px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    background: color-mix(in srgb, var(--text-color) 2%, transparent);
}
.btn-wap-small.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}
.btn-wap-small.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

/* ===== Botões de ação em ícone (editar/excluir) — unificado em TODO o site ===== */
.item-actions-icons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
    align-items: center;
}
.item-actions-icons form { margin: 0; padding: 0; line-height: 0; }

.btn-icon {
    background-color: color-mix(in srgb, var(--text-color) 6%, transparent);
    color: var(--text-muted-color, #6c757d);
    border: 1px solid color-mix(in srgb, var(--text-color) 12%, transparent);
    border-radius: 8px;
    padding: 0;
    width: 34px;
    height: 34px;
    box-sizing: border-box;   /* inclui a borda no tamanho — <a> e <button> ficam iguais */
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-icon:hover {
    background-color: color-mix(in srgb, var(--text-color) 12%, transparent);
    color: var(--text-color);
}
/* Editar = cor de destaque; Excluir = vermelho semântico */
.btn-icon.btn-edit {
    color: var(--link-color);
    border-color: color-mix(in srgb, var(--link-color) 40%, transparent);
}
.btn-icon.btn-edit:hover {
    background-color: var(--link-color);
    color: #fff;
    border-color: var(--link-color);
}
.btn-icon.btn-delete,
.btn-icon.btn-delete-item {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
.btn-icon.btn-delete:hover,
.btn-icon.btn-delete-item:hover {
    background-color: var(--danger);
    color: #fff;
    border-color: var(--danger);
}
/* Fixar: neutro quando solto, preenchido com a cor de destaque quando fixado. */
.btn-icon.btn-pin.is-pinned {
    background-color: var(--link-color);
    color: #fff;
    border-color: var(--link-color);
}
.settings-card-chevron {
    flex: 0 0 auto;
    margin-left: 8px;
    color: var(--text-muted-color, #999);
    transition: transform 0.2s ease, color 0.2s ease;
}
a.settings-card:hover .settings-card-chevron {
    color: var(--link-color);
    transform: translateX(3px);
}

/* Formulário padrão das páginas de configuração (design system) */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-top: 6px;
}
.settings-form > p,
.settings-form > .settings-field,
.settings-field {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Linha de switch padrão: rótulo à esquerda, switch à direita.
   Especificidade 0-2-0 pra vencer `.settings-form > .settings-field`
   (que força flex-direction:column). */
.settings-field.settings-switch-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}
.settings-field.settings-switch-row > span {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--text-color);
}
.settings-field.settings-switch-row .switch { flex-shrink: 0; }

/* --- Assistente de cadastro em etapas (stepper) --- */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
}
.wizard-progress .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.wizard-progress .dot.active { background: var(--link-color); transform: scale(1.3); }
.wizard-progress .dot.done { background: var(--link-color); opacity: 0.5; }
.wizard-step-label {
    text-align: center;
    color: var(--text-muted-color, #888);
    font-size: 0.9em;
    margin: 0 0 18px;
}
.wizard-step-label strong { color: var(--text-color); }

.wizard-step { display: none; }
.wizard-step.active { display: flex; flex-direction: column; gap: 16px; }
.wizard-step.anim-next { animation: wizardInRight 0.28s ease; }
.wizard-step.anim-prev { animation: wizardInLeft 0.28s ease; }
@keyframes wizardInRight {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes wizardInLeft {
    from { opacity: 0; transform: translateX(-26px); }
    to   { opacity: 1; transform: translateX(0); }
}
.wizard-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}
.wizard-nav .btn-wap,
.wizard-nav .btn-wap-small { margin: 0; }

/* Uploader de avatar (passo de foto do cadastro) */
.avatar-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.avatar-preview-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--link-color);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.avatar-uploader .avatar-choose { margin: 0; cursor: pointer; }
.avatar-file-input { display: none; }

/* === Posicionador de imagem (arrastar para escolher o recorte) === */
.img-positioner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0;
}
.img-positioner-frame {
    position: relative;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
    background: #ddd;
}
.img-positioner-frame.dragging {
    cursor: grabbing;
}
.img-positioner-frame--circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--link-color);
}
.img-positioner-frame--cover {
    width: 100%;
    border-radius: 8px;
}
.img-positioner-img {
    position: absolute;
    max-width: none;
    max-height: none;
    -webkit-user-drag: none;
    user-select: none;
}
.img-positioner-hint {
    font-size: 0.85em;
    color: var(--text-muted-color, #888);
    text-align: center;
    margin: 0;
}

/* Prévia circular estática (sem drag-to-reposition — ver .img-positioner-frame
   pro caso com JS de arrastar). Usada onde só faz sentido cortar/centralizar
   a imagem via CSS puro, ex.: avatar de grupo (sem position_x/position_y). */
.static-avatar-preview {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--link-color);
    background: #ddd;
    margin: 10px auto;
}
.static-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Status de verificação de segurança (Turnstile) — passo final do cadastro */
.turnstile-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
    color: var(--text-muted-color, #888);
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
}
.turnstile-status--success {
    color: #155724;
    background-color: #d4edda;
}
.turnstile-status--error {
    color: #721c24;
    background-color: #f8d7da;
}

/* === Campo de senha com botão de mostrar/ocultar === */
.field-input-wrapper input.pw-input { flex: 1; min-width: 0; }
.pw-toggle {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-muted-color, #888);
    cursor: pointer;
    font-size: 1.05em;
    padding: 6px;
    line-height: 1;
    border-radius: 6px;
}
.pw-toggle:hover { color: var(--link-color); }
.pw-toggle:focus-visible { outline: 2px solid var(--link-color); }

/* === Barra de força de senha (cadastro) === */
.password-strength { margin-top: 8px; }
.password-strength.is-empty { display: none; }
.password-strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 5px;
}
.password-strength-bar span {
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.25s ease;
}
.password-strength-label {
    font-size: 0.82em;
    color: var(--text-muted-color, #888);
    margin: 0;
}
.password-strength--weak   .password-strength-bar span:nth-child(-n+1) { background: var(--danger); }
.password-strength--fair   .password-strength-bar span:nth-child(-n+2) { background: #e67e22; }
.password-strength--good   .password-strength-bar span:nth-child(-n+3) { background: #f1c40f; }
.password-strength--strong .password-strength-bar span:nth-child(-n+4) { background: var(--success); }
.password-strength--weak   .password-strength-label { color: var(--danger); }
.password-strength--fair   .password-strength-label { color: #e67e22; }
.password-strength--good   .password-strength-label { color: #c69500; }
.password-strength--strong .password-strength-label { color: var(--success); }

/* === Boas-vindas: escolha do tipo de conta === */
.welcome-roles {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 8px 0 4px;
}
.welcome-role-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 18px;
    border: 2px solid var(--border-color, rgba(0, 0, 0, 0.12));
    border-radius: 12px;
    background: var(--card-bg-color, #fff);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}
.welcome-role-card:hover { border-color: var(--link-color); transform: translateY(-1px); }
.welcome-role-card:active { transform: translateY(0); }
.welcome-role-card .welcome-role-icon {
    font-size: 1.6em;
    color: var(--link-color);
    flex-shrink: 0;
    width: 34px;
    text-align: center;
}
.welcome-role-card .welcome-role-title {
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 3px;
}
.welcome-role-card .welcome-role-desc {
    font-size: 0.88em;
    color: var(--text-muted-color, #888);
    margin: 0;
    line-height: 1.4;
}

/* === Banner de e-mail não verificado === */
.email-verify-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 11px 16px;
    margin: 0 0 14px;
    border-radius: 10px;
    background: #fff4d6;
    border: 1px solid #f0d27a;
    color: #6b5200;
    font-size: 0.9em;
}
.email-verify-banner i.evb-icon { font-size: 1.15em; flex-shrink: 0; }
.email-verify-banner .evb-text { flex: 1; min-width: 180px; }
.email-verify-banner form { margin: 0; }
/* O botão de ação fica SEMPRE abaixo do texto (largura total) — melhor no mobile. */
.email-verify-banner > form,
.email-verify-banner > .evb-action { flex-basis: 100%; }
.email-verify-banner .evb-action {
    background: #6b5200;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 7px;
    font-size: 0.92em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}
.email-verify-banner .evb-action:hover { background: #553f00; }

/* Variante do banner para a equipe (cadastros pendentes de aprovação) */
.staff-approval-banner {
    background: #e3f0ff;
    border-color: #9cc4f5;
    color: #0b3b6f;
}
.staff-approval-banner .evb-action { background: #0b5cc4; }
.staff-approval-banner .evb-action:hover { background: #084a9e; }
.settings-form label {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--text-color);
}
.settings-form input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),
.settings-form select,
.settings-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.settings-form .helptext {
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 2px;
}
.settings-form ul.errorlist {
    margin: 4px 0 0;
}

/* Linha de ações (botões) das páginas de configuração.
   Empilhada e centralizada em mobile; lado a lado a partir de telas maiores. */
.settings-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}
.settings-actions .btn-wap {
    margin: 0;
    width: 100%;
    max-width: 320px;
}
/* Quando um card de navegação segue uma linha de ações (ex.: listagem de
   figurinhas), garante respiro entre o botão e o card. */
.settings-actions + .settings-card,
.settings-actions + .settings-group {
    margin-top: 18px;
}
/* Mesmo respiro quando o que segue o botão de ação é uma barra de filtros
   (ex.: /gestao/quiz/perguntas/), não um card de navegação. */
.settings-actions + .entrevistas-toolbar {
    margin-top: 18px;
}
/* Em /figurinhas/ o bottom-sheet de envio fica entre o botão de ação e o card
   "Minhas Figurinhas"; quando ele está oculto, o seletor adjacente acima não
   dispara. Garante o mesmo respiro também após o sheet. */
.post-form-sheet + .settings-card {
    margin-top: 18px;
}

/* Área clicável (link) de um settings-card que também tem botões de ação ao
   lado (ex.: categorias de figurinhas com editar/excluir para a equipe). */
.settings-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.settings-card-main:hover .settings-card-chevron {
    color: var(--link-color);
    transform: translateX(3px);
}
@media (min-width: 768px) {
    .settings-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .settings-actions .btn-wap {
        width: auto;
    }
}

/* Botão Flutuante */
.floating-refresh-btn {
    position: fixed; bottom: 25px; right: 25px; z-index: 999; width: 55px; height: 55px; border-radius: 50%; background: var(--primary-color); color: var(--primary-text-color); border: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); display: flex; justify-content: center; align-items: center; font-size: 1.5em; cursor: pointer; transition: transform 0.2s ease-in-out, filter 0.2s;
}
.floating-refresh-btn:hover { filter: brightness(110%); transform: scale(1.1); }

/* Estilos para o Modal de Reagentes */
/* Bottom-sheet — mesmo padrão do media-modal-overlay e group-picker */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100dvh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    pointer-events: none;
    /* Ver comentário equivalente em .media-modal-overlay — tira o overlay do
       pipeline de pintura enquanto fechado, evita o glitch de repaint do
       Chrome/Edge Android que expunha o .modal-content por baixo da barra
       de endereço durante a rolagem. */
    visibility: hidden;
    transition: background-color 0.28s ease, visibility 0s linear 0.32s;
}
.modal-overlay.is-active {
    background-color: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    visibility: visible;
    transition: background-color 0.28s ease, visibility 0s linear;
}

.modal-overlay .modal-content {
    background-color: var(--card-bg);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.is-active .modal-content {
    transform: translateY(0);
}

/* Cabeçalho genérico de modal — compartilhado por todos os modais */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px 11px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
}
.modal-title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-title i { color: var(--link-color); }
.close-modal-button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted-color, #888);
    font-size: 0.85em;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.close-modal-button:hover {
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
    color: var(--text-color);
}

/* Estilos específicos para o modal de reagentes */
.reactors-modal {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.reactors-modal .modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
}
.reactors-modal-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.reactor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
}
.reactor-item:last-child {
    border-bottom: none;
}

/* Avatar do modal de reações: wrapper posicionado que hospeda o .avatar-container
   construído via JS (mesma estrutura do _avatar.html) e o badge de reação sobreposto.
   display:flex evita o espaço extra de linha-de-base do inline-block filho. */
.reactor-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
}
.reactor-avatar-wrap .avatar-container {
    width: 44px;
    height: 44px;
}
.reactor-avatar-wrap .avatar-orb {
    width: 38px;
    height: 38px;
}

/* Badge da reação: sem fundo, junto ao avatar com leve sobreposição */
.reactor-reaction-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}
.reactor-reaction-badge img {
    width: 20px;
    height: 20px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.reactor-info {
    flex-grow: 1;
    min-width: 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.reactor-info:hover { color: var(--link-color); }

/* Área de ações (lado direito do item) */
.reactor-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Botão social (seguir/deixar de seguir) — ícone circular, sem texto */
.reactor-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--link-color);
    background: transparent;
    color: var(--link-color);
    font-size: 0.82em;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
.reactor-follow-btn:hover:not(:disabled) {
    background: var(--link-color);
    color: #fff;
}
.reactor-follow-btn.is-following {
    border-color: color-mix(in srgb, var(--text-color) 30%, transparent);
    color: var(--text-muted-color, #888);
}
/* Troca check → minus no hover via dois <i> no DOM */
.reactor-follow-btn.is-following .icon-hover { display: none; }
.reactor-follow-btn.is-following:hover:not(:disabled) .icon-normal { display: none; }
.reactor-follow-btn.is-following:hover:not(:disabled) .icon-hover  { display: inline; }
.reactor-follow-btn.is-following:hover:not(:disabled) {
    border-color: var(--danger);
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 8%, transparent);
}
.reactor-follow-btn.is-pending {
    border-color: color-mix(in srgb, var(--text-color) 20%, transparent);
    color: var(--text-muted-color, #888);
    opacity: 0.55;
    cursor: default;
}
.reactor-follow-btn:disabled { cursor: default; }

/* Botão remover reação (staff) */
.reactor-remove-btn {
    background: transparent;
    border: none;
    color: var(--text-muted-color, #888);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.82em;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.reactor-remove-btn:hover {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

/* Botão delatar (staff) */
.reactor-delatar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-muted-color, #888);
    text-decoration: none;
    font-size: 0.82em;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.reactor-delatar-btn:hover {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

/* Abas de filtro do modal de reações */
.reactors-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    flex-shrink: 0;
}
/* Com um único tipo de reação o JS deixa o filtro vazio; sem isto a faixa
   (padding + border-bottom) continua visível como uma linha solta. */
.reactors-filter-tabs:empty {
    display: none;
}
.reactor-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
    background: transparent;
    color: var(--text-muted-color, #888);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.reactor-filter-btn:hover {
    background: color-mix(in srgb, var(--link-color) 10%, transparent);
    color: var(--link-color);
    border-color: var(--link-color);
}
.reactor-filter-btn.active {
    background: var(--link-color);
    color: #fff;
    border-color: var(--link-color);
}
.reactor-tab-icon { width: 18px; height: 18px; vertical-align: middle; }
.reactor-tab-count {
    font-size: 0.8em;
    opacity: 0.85;
}

/* Estados do modal */
.reactors-loading, .reactors-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted-color, #888);
    font-size: 0.9em;
}

/* Prompt de login para anônimos no modal de reações */
.reactors-modal .reactors-login-prompt {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted-color, #888);
}
.reactors-login-prompt i {
    font-size: 1.8em;
    color: var(--link-color);
    display: block;
    margin-bottom: 10px;
}
.reactors-login-prompt a { color: var(--link-color); font-weight: 600; }

/* Modal de menção do Hall (bottom-sheet, mesmo padrão do GMP) */
.mention-user-list {
    list-style: none;
    padding: 0 0 12px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mention-user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    cursor: pointer;
}
.mention-user-item:active { background: color-mix(in srgb, var(--text-color) 6%, transparent); }
.mention-user-avatar { flex: 0 0 auto; line-height: 0; }
.mention-user-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.mention-user-nick { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-user-handle { opacity: 0.6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* novo sistema de reacao - teste */
/* Esconde o botão 'Reagir' antigo */
.reaction-container {
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px; /* Espaço entre o display e o botão Reagir */
    position: relative; /* Para o posicionamento do options-bar */
    width: fit-content; /* Ajusta a largura ao conteúdo */
    margin: 0 auto;
}

/* Colapsa o container do display compacto quando NÃO há reações visíveis,
   evitando que um item flex vazio crie espaço extra acima/abaixo do botão Reagir. */
.reaction-container-2:not(:has(.compact-reactions-display:not(.hidden))) {
    display: none;
}

.reaction-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: transform 0.18s ease, background 0.18s ease;
    cursor: pointer;
}
.reaction-option:hover {
    transform: scale(1.25) translateY(-2px);
    background: color-mix(in srgb, var(--text-color) 8%, transparent);
}
.reaction-option img {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    pointer-events: none; /* evita conflitos de clique */
}

/* Botão "Reagir" moderno (pílula com fundo suave) */
.btn-react {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--link-color) 9%, transparent);
    color: var(--link-color);
    border: 1px solid color-mix(in srgb, var(--link-color) 22%, transparent);
    font-weight: 600;
    font-size: 0.88em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-react:hover {
    background: var(--link-color);
    color: #fff;
    transform: translateY(-1px);
}
.btn-react i { font-size: 1em; }

/* Barra com todas as opções de reação (oculta por padrão) — picker flutuante moderno */
.reaction-options-bar {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    border-radius: 999px;
    padding: 6px 8px;
    gap: 4px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    z-index: 50;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
    animation: reaction-bar-pop 0.18s ease;
}
@keyframes reaction-bar-pop {
    from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.9); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.reaction-options-bar.hidden {
    display: none !important; /* Inicia oculto */
}
/* Oculta a barra de rolagem para navegadores baseados em Webkit (Chrome, Safari) */
.reaction-options-bar::-webkit-scrollbar {
    display: none;
}

.btn-actions-modal {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
}
.btn-actions-modal i {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NOVO: Paleta de reações dentro do Modal de Ações */
.reaction-palette {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
}
.reaction-palette .reaction-option {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 50%;
}

.reaction-palette .reaction-option img {
    width: 32px;
    height: 32px;
}

/* NOVO: Display compacto de reações */
.compact-reactions-display {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    padding: 2px 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #eee;
}
.compact-reactions-display img {
    width: 16px;
    height: 16px;
    margin-right: -4px; /* Efeito de sobreposição */
}
.compact-reactions-display span {
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    color: #65676b;
}

/* ===== Avatar com indicador de presença (online/offline) =====
   Disponível globalmente (base.html carrega components.css) para manter
   consistência visual em todas as páginas, não só nas que carregam chat.css. */
.avatar-container {
    width: 56px;
    height: 56px;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}
.avatar-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 3px;
}
.avatar-orb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* O status (online/away/busy/dnd/offline) não decora mais o avatar — vive
   como um .presence-dot antes do nick (ver render_personalized_nickname_html
   em core/utils.py), padrão único em todo o site. Avatar fica sempre limpo,
   com ou sem moldura equipada. */
/* Avatar neutro para autores anônimos (sem foto/perfil). */
.avatar-orb-anon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text-color) 8%, transparent);
    color: var(--text-muted-color, #888);
    font-size: 1.5em;
}
/* Avatar padrão de grupo sem foto própria — ícone de pessoas em vez da
   silhueta de contato (.avatar-orb-anon), pra não parecer um DM sem foto. */
.avatar-orb-group {
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--link-color) 18%, transparent);
    color: var(--link-color);
    font-size: 1.3em;
}
/* Selo de grupo — sobreposto no canto do avatar (com ou sem foto própria),
   pra diferenciar DM de grupo à primeira vista na lista/cabeçalho. */
.avatar-group-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--link-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    border: 2px solid var(--card-bg, #fff);
    z-index: 3;
}
/* ===== Bolinha de status (antes do nick) =====
   Padrão único de status em todo o site: renderizada por
   render_personalized_nickname_html, sempre antes do nick, na mesma linha.
   Só "online" pulsa (indica presença ativa agora); os demais ficam estáticos.

   .nick-with-status agrupa dot+nick num único inline-flex: a posição do dot
   relativo ao nick fica garantida por align-items:center, em vez de depender
   de vertical-align (que calcula o meio pelo x-height do FONTE AO REDOR —
   variava visivelmente entre contextos, ex. dentro de <strong> no
   reply-preview do Hall vs. dentro de <a> no resto do site). padding-left
   reserva espaço pro anel de pulso não ser cortado por containers com
   overflow:hidden/text-overflow:ellipsis (nomes truncados). */
.nick-with-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-left: 3px;
    vertical-align: middle;
    max-width: 100%;
    min-width: 0;
}
/* Nick personalizado é semibold por padrão em TODO o site (decisão do Jonas).
   Contextos que precisam de outro peso continuam sobrepondo por especificidade
   (ex.: .dl-file-author .personalized-nickname). */
.personalized-nickname { font-weight: 600; }
/* Nome própio (presence-dot, não status-dot) pra não colidir com o
   .status-dot do menu de troca de status (13px, ver ~L3459) — mesmo nome de
   classe, cascata pega o que vier depois no arquivo e estourava o tamanho. */
.presence-dot {
    position: relative;
    display: inline-block;
    width: 7px;
    height: 7px;
    min-width: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-color) 35%, transparent); /* offline/padrão */
}
.presence-dot.online { background: #4CAF50; }
.presence-dot.away   { background: #FBC02D; }
.presence-dot.busy   { background: #E53935; }
.presence-dot.dnd    { background: #D32F2F; }
.presence-dot.online::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: presence-dot-pulse 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes presence-dot-pulse {
    0%   { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .presence-dot.online::before { animation: none; }
}

/* ===== Social / Hashtags / Trending Topics ===== */

/* Esconde a barra de rolagem mantendo o scroll (carrossel de pílulas) */
.hide-scrollbar {
    -ms-overflow-style: none; /* IE e Edge */
    scrollbar-width: none;    /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;            /* Chrome, Safari, Opera */
}

/* Utilitários (o projeto não usa Tailwind, então definimos o essencial) */
.flex { display: flex; }
.overflow-x-auto { overflow-x: auto; }
.whitespace-nowrap { white-space: nowrap; }
.gap-2 { gap: 8px; }
.pb-2 { padding-bottom: 8px; }
.mb-2 { margin-bottom: 8px; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--link-color); }

/* Seção de trending topics na Home */
.trending-section {
    margin-bottom: 18px;
}
.trending-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    opacity: 0.65;
}
.trending-header i {
    color: #ff6b35;
    opacity: 1;
}

/* Rail horizontal reutilizável da home (trending, destaques, parceiros).
   Substitui os utilitários Tailwind inline antigos por uma classe única. */
.home-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;   /* IE/Edge */
    scrollbar-width: none;      /* Firefox */
}
.home-rail::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.home-rail > * { flex: 0 0 auto; }

/* Destaques (home e /destaques/): membro do mês/semana/dia, vencedores de
   concurso e avulsos, cada um com sua etiqueta. Na home são 4 colunas fixas
   (cabem no celular sem arrastar); na página "Ver todos", quantas couberem. */
.destaques-grade {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px 8px;
    padding: 4px 0 8px;
}
.destaques-grade--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Área de um concurso fixo do site, embaixo dos membros: título + vencedores centralizados. */
* + .destaques-concurso {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.destaques-concurso-titulo {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
}
.destaques-concurso-titulo .fa-crown { color: var(--coin); }
.destaques-grade--concurso {
    grid-template-columns: repeat(auto-fit, minmax(0, 96px));
    justify-content: center;
}
.destaque-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
    color: var(--text-color);
    text-decoration: none;
}
.destaque-card .avatar-container { width: 64px; height: 64px; }
.destaque-card .avatar-orb { width: 58px; height: 58px; }
/* Foto de concurso no lugar do avatar, com aro dourado. */
.destaque-foto {
    display: block;
    object-fit: cover;
    width: 58px;
    height: 58px;
    margin: 3px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--coin);
}
.destaque-rotulo {
    max-width: 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0.7;
    white-space: normal;
    word-break: break-word;
}
.destaque-name {
    font-size: 13px;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.homenageado-headline { white-space: normal; word-break: break-word; }

/* Figurinhas pequenas e alinhadas ao texto quando usadas em destaques/homenagens
   (no chat elas continuam grandes — aqui o escopo é só estes cards). */
.destaque-rotulo .sticker-in-message,
.homenageado-headline .sticker-in-message,
.homenageado-desc .sticker-in-message,
.destaque-name .sticker-in-message {
    height: 1.5em;
    width: auto;
    max-width: none;
    max-height: none;
    vertical-align: middle;
    margin: 0 2px;
    border-radius: 4px;
}

/* Card do usuário homenageado — cabeçalho (avatar+nick+chamada) e, abaixo,
   o texto em largura total (igual ao detalhe da entrevista). Evita que um
   texto longo "espremesse"/escondesse o nick na disposição lado a lado. */
.homenageado-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-color);
    text-align: left;
}
.homenageado-head { display: flex; align-items: center; gap: 14px; }
.homenageado-avatar .avatar-container { width: 72px; height: 72px; flex-shrink: 0; }
/* O orb tem tamanho fixo no base; precisa crescer junto com o container,
   senão fica no canto e desalinha do nick/chamada. */
.homenageado-avatar .avatar-orb { width: 66px; height: 66px; }
.homenageado-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.homenageado-name { font-size: 16px; font-weight: 700; word-break: break-word; }
.homenageado-headline { font-size: 13px; color: var(--link-color); font-weight: 600; }
.homenageado-desc { font-size: 13px; opacity: 0.85; margin: 0; line-height: 1.5; word-break: break-word; }

/* Barra do carrossel (scroll horizontal, sem barra visível) */
.trending-pills-bar {
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px;
}

/* Pílula/badge de hashtag (touch-friendly, elegante) */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 12px 7px 14px;
    border-radius: 9999px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}
.tag-pill:active {
    transform: scale(0.97);
}
.tag-pill .tag-hash {
    color: var(--link-color);
    font-weight: 800;
}
.tag-pill .tag-name {
    color: var(--text-color);
    font-weight: 600;
}
.tag-pill .tag-count {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    padding: 2px 7px;
}

/* Variante "em alta" — gradiente quente + foguinho animado */
.tag-pill.hot {
    background: linear-gradient(135deg, #ff8008, #ff2e63);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(255, 80, 60, 0.35);
}
.tag-pill.hot .tag-hash,
.tag-pill.hot .tag-name {
    color: #fff;
}
.tag-pill.hot .tag-count {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}
.tag-pill.hot .tag-flame {
    color: #ffd54a;
    font-size: 13px;
    transform-origin: center bottom;
    animation: flame-flicker 1.1s ease-in-out infinite;
}
@keyframes flame-flicker {
    0%, 100% {
        transform: scale(1) rotate(-3deg);
        opacity: 1;
        filter: drop-shadow(0 0 2px rgba(255, 180, 0, 0.7));
    }
    50% {
        transform: scale(1.2) rotate(3deg);
        opacity: 0.85;
        filter: drop-shadow(0 0 6px rgba(255, 110, 0, 0.95));
    }
}
@media (prefers-reduced-motion: reduce) {
    .tag-pill.hot .tag-flame { animation: none; }
}

/* Foguinho em contextos sobre fundo claro (ex: lista de hashtags do Explorar) */
.tag-flame {
    color: #ff6b35;
    transform-origin: center bottom;
    animation: flame-flicker 1.1s ease-in-out infinite;
}
.explore-hashtag-link.hot .explore-hashtag-name {
    color: #ff4d2e;
}
@media (prefers-reduced-motion: reduce) {
    .tag-flame { animation: none; }
}

/* Link de hashtag dentro de textos (filtro render_hashtags) */
.hashtag-link {
    color: var(--link-color);
    font-weight: 700;
    text-decoration: none;
}
.hashtag-link:hover {
    text-decoration: underline;
}

/* ===== Página Explorar / Detalhe da Tag (mobile-first, empilhado) ===== */

/* Hero de busca — fica fora de qualquer card, direto na page bg */
.explore-hero { padding: 16px 0 4px; }
.explore-search-bar-wrap {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 2px 14px rgba(0,0,0,.11);
    border: 1.5px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    transition: box-shadow .2s, border-color .2s;
}
.explore-search-bar-wrap:focus-within {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 15%, transparent);
}
.explore-search-bar-wrap .esb-icon { color: var(--text-muted-color,#888); font-size:1rem; flex-shrink:0; }
.explore-search-bar-wrap input[type="search"] {
    flex: 1; border: none; background: none; outline: none;
    font-size: .95rem; color: var(--text-color); min-width: 0;
}
.explore-search-bar-wrap input[type="search"]::placeholder { color: var(--text-muted-color,#888); }

/* Mini-card de autor na atividade de usuário */
.author-activity-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    margin-bottom: 4px;
}
.author-activity-info { flex: 1; min-width: 0; }
.author-activity-name { font-weight: 600; font-size: .97rem; }
.author-activity-handle { font-size: .82rem; color: var(--text-muted-color,#888); }

.explore-search-card .search-bar {
    display: flex;
    gap: 8px;
}
.explore-search-card .search-bar .explore-search-btn {
    margin: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    max-width: none;
}
.explore-query-info {
    margin: 0 0 12px;
    padding: 0 4px;
    color: var(--text-color);
}

/* Bloco de Pessoas */
.explore-people-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.explore-person-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.explore-person-item:last-child {
    border-bottom: none;
}
.explore-person-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-color);
    flex: 1 1 auto;
    min-width: 0;
}
.explore-person-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.explore-follow-form {
    flex: 0 0 auto;
    margin: 0;
}
.explore-follow-btn {
    white-space: nowrap;
}
.explore-follow-badge {
    flex: 0 0 auto;
    font-size: 13px;
    color: #65676b;
    white-space: nowrap;
    padding: 0 4px;
}
.explore-follow-pending {
    color: #f0a020;
}
.explore-person-name {
    font-weight: 600;
}

/* Bloco de Hashtags */
.explore-hashtag-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.explore-hashtag-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.explore-hashtag-item:last-child {
    border-bottom: none;
}
.explore-hashtag-link {
    display: flex;
    flex-direction: column;
    padding: 12px 4px;
    text-decoration: none;
}
.explore-hashtag-name {
    color: var(--link-color);
    font-weight: 700;
    font-size: 16px;
}
.explore-hashtag-count {
    color: #65676b;
    font-size: 13px;
    margin-top: 2px;
}

/* Bloco de Publicações / Feed */
.explore-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.explore-feed-item {
    background: var(--mural-item-bg);
    border-radius: 8px;
    padding: 12px;
}
.explore-feed-item h4 {
    margin: 6px 0 8px;
}
.explore-feed-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--link-color);
}
.explore-empty {
    color: #65676b;
    padding: 4px;
}

/* ===== Separadores (Tabs) — Resultados de Busca / Detalhe da Hashtag =====
   Mobile-first: com 4 abas, o conteúdo pode não caber na largura da tela.
   Em vez de espremer os botões (flex: 1), permite rolagem horizontal
   suave (overflow-x) mantendo cada aba com sua largura natural. */
.hashtag-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.hashtag-tab-link {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 14px;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.6;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.hashtag-tab-link:hover {
    opacity: 0.85;
}
.hashtag-tab-link.is-active {
    opacity: 1;
    color: var(--link-color);
    border-bottom-color: var(--primary-color);
}

/* Botão de continuidade no fim do Hall (link para o chat completo) */
.hashtag-tab-footer {
    text-align: center;
    margin-top: 10px;
}

/* Utilitário de alinhamento */
.text-center { text-align: center; }

/* Links de rodapé das telas de autenticação (login/cadastro) */
.auth-links {
    text-align: center;
    margin: 14px 0 0;
    font-size: 0.95em;
    color: var(--text-muted-color, #888);
}
/* No gate social, o .auth-links vive dentro do .hero-section, cujo `p { margin:
   0 }` (mais específico por combinar classe+elemento) zerava essa margem. */
.hero-section .auth-links {
    margin: 14px 0 0;
}

/* Linha "rótulo do campo + link" nas telas de auth (login/gate) — ex.:
   "Senha" ao lado de "Esqueceu a senha?", em vez do link solto embaixo do
   formulário. */
.auth-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.auth-field-row a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 400;
}
.auth-field-row a:active { text-decoration: underline; }

/* Divisória "ou" entre login por senha e login social, nas telas de auth
   (login.html e gate/social_gate.html). */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    margin: 18px auto;
    color: var(--text-muted-color, #888);
    font-size: 0.85em;
}
.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Login social (Google/TikTok/X): um botão de largura cheia por
   provedor, cada um com a identidade visual da marca — mesma largura dos
   campos e do botão de login das telas de auth. */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95em;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--card-bg);
    color: var(--text-color);
}
.social-login-btn img { display: block; }
.social-login-btn i { font-size: 1.1em; line-height: 1; }
.social-login-btn:active { filter: brightness(0.92); }

/* Google fica com o botão neutro (fundo claro + borda) e o "G" oficial de
   4 cores carrega a identidade visual — é assim que a guideline deles pede
   pro botão "Sign in with Google". */
.social-login-btn--tiktok { background: var(--social-tiktok); border-color: var(--social-tiktok); color: #fff; }
.social-login-btn--x { background: var(--social-x); border-color: var(--social-x); color: #fff; }
/* Botão genérico (Hellō): logos das redes oferecidas, monocromáticos e
   pequenos — só indicação; cor de marca de terceiros fica de fora. */
.social-login-marcas { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05em; color: var(--text-muted-color); }
.social-login-marca-svg { width: 0.95em; height: 0.95em; display: block; }

/* Variante compacta (ícone-só, em círculo) do login social — usada onde o
   botão de largura cheia ocupa espaço demais, ex.: cadastro.html, que já
   tem um formulário longo em várias etapas. O rótulo é o único texto que
   diz explicitamente "dá pra usar Google/TikTok aqui" — os ícones
   sozinhos só têm isso no title/aria-label, invisível sem :hover. */
.social-login-label {
    text-align: center;
    margin: 0 0 10px;
    font-size: 0.9em;
    color: var(--text-muted-color, #888);
}

.social-login-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
}
.social-login-icon img { display: block; }
.social-login-icon i { font-size: 1em; line-height: 1; }
.social-login-icon:active { filter: brightness(0.92); }

/* Opção ainda indisponível (ex.: TikTok aguardando aprovação do app): o
   controle fica apagado e sem clique, com a etiqueta "Em breve" por cima. */
.em-breve {
    position: relative;
    display: flex;
}
.em-breve > [aria-disabled="true"] {
    flex: 1;
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
    cursor: default;
}
.em-breve-flag {
    position: absolute;
    top: -8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--primary-text-color);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
}
.em-breve--icon { display: inline-flex; }
.em-breve--icon .em-breve-flag { right: -14px; }

/* Google, TikTok e X usam a arte oficial (img) em vez de um glifo tingido
   via CSS — por isso ficam no círculo neutro padrão, sem regra de cor/fundo
   aqui: a própria imagem já carrega a identidade da marca. */

/* Prévia de imagem de figurinha (upload/edição) */
.sticker-image-preview {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 2px solid var(--link-color);
    background: #fff;
}

/* ===================================================================
   GESTÃO / MODERAÇÃO — refatoração das páginas antigas (Lava-Jato)
   Mobile-first: tudo empilhado; grids só a partir de telas maiores.
   =================================================================== */

/* --- Grade de dados (Informações da conta / rastreamento) --- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 10px;
    min-width: 0;
}
.info-label {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted-color, #888);
}
.info-value {
    font-weight: 600;
    color: var(--text-color);
    word-break: break-word;
}
/* Linha complementar dentro de .info-value (ex.: datas do login social). */
.info-detail {
    display: block;
    font-size: 0.82em;
    font-weight: 400;
    color: var(--text-muted-color, #888);
}
@media (min-width: 540px) {
    .info-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Selo de presença online/offline --- */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82em;
    font-weight: 600;
}
.badge-status i { font-size: 0.6em; }
.badge-status.online { color: var(--success); }
.badge-status.offline { color: var(--text-muted-color, #888); }

/* --- Zona de perigo (ações disciplinares) --- */
.settings-group.danger-zone .settings-group-title.danger {
    color: var(--danger);
    border-bottom-color: rgba(198, 40, 40, 0.25);
}
.danger-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--danger) 10%, var(--card-bg));
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}
.danger-status i { font-size: 1.2em; flex-shrink: 0; margin-top: 2px; }
.danger-reason { display: block; font-size: 0.88em; opacity: 0.9; margin-top: 3px; }
/* Forms dentro de danger-actions participam do flex como se fossem display:contents */
.danger-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.danger-actions form { display: contents; }

/* Variações semânticas de .btn-wap reaproveitando o botão do design system */
.btn-wap.btn-danger { background: var(--danger); color: #fff; }
.btn-wap.btn-danger:hover { filter: brightness(92%); }
.btn-wap.btn-warning { background: #e08600; color: #fff; }
.btn-wap.btn-warning:hover { filter: brightness(92%); }
.btn-wap.btn-success { background: var(--success); color: #fff; }
.btn-wap.btn-success:hover { filter: brightness(92%); }

/* --- Listagem de usuários (Gestão de Usuários) --- */
.user-search-form { gap: 12px; }
.user-search-bar {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.user-search-bar input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
}
.user-search-bar .user-search-by { flex: 0 0 auto; width: auto; }
.user-search-bar .user-search-go {
    flex: 0 0 auto;
    width: 48px;
    padding: 0;
    margin: 0;
}
.user-filters-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.user-filters-toggle .toggle-arrow { transition: transform 0.2s ease; }
.user-filters-toggle[aria-expanded="true"] .toggle-arrow { transform: rotate(180deg); }
.user-filters {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    margin-top: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
}
.user-filters.active { display: flex; }

.user-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 10px;
}
@media (min-width: 600px) {
    .user-grid { grid-template-columns: 1fr 1fr; }
}
.user-mod-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
}
.user-mod-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.user-mod-id {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.user-mod-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.user-mod-name {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    word-break: break-word;
}
.user-mod-username { font-size: 0.85em; color: var(--text-muted-color, #888); }
.user-mod-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 20px;
    /* Cor de fundo/texto vem inline (personalização por cargo — ver
       Role.badge_color em core/models.py e render_role_badge_html). */
}
/* Variante fixa para contas-bot (Estagiário): cor vem do tema, não de Role. */
.role-badge--bot {
    background: var(--primary-color);
    color: var(--primary-text-color);
}
/* Selo de verificado (identidade, via login social) — fixo, não
   personalizável por usuário, diferente do badge de cargo. */
.role-badge--verified {
    background: var(--success);
    color: #fff;
}
/* Selo de vencedor de concurso (temporário — dura o destaque da edição). */
.role-badge--concurso {
    background: color-mix(in srgb, var(--coin) 18%, transparent);
    color: var(--text-color);
}
.role-badge--concurso i { color: var(--coin); }

.user-mod-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88em;
}
.user-mod-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    min-width: 0;
}
.user-mod-detail i {
    flex: 0 0 16px;
    text-align: center;
    color: var(--text-muted-color, #999);
}
.user-mod-detail span,
.user-mod-detail a { word-break: break-word; }
.user-mod-actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.user-mod-actions .btn-wap-small {
    flex: 1 1 0;
    text-align: center;
    margin: 0;
}
/* Ações que disparam POST ficam dentro de <form>; o form precisa participar
   do flex para que o botão se estique igual aos links de ação. */
.user-mod-actions form {
    flex: 1 1 0;
    display: flex;
    margin: 0;
}
.user-mod-actions form .btn-wap-small {
    width: 100%;
}

/* --- Estado vazio (sem resultados) --- */
.empty-state {
    text-align: center;
    padding: 40px 16px;
    color: var(--text-muted-color, #888);
}
.empty-state i { font-size: 2.4em; opacity: 0.5; margin-bottom: 12px; display: block; }
.empty-state p { margin: 0; }

/* --- Feed de logs de atividade ("frase de ação") --- */
.log-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.log-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--card-bg-color, rgba(0, 0, 0, 0.02));
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-left: 4px solid var(--text-muted-color, #bbb);
}
.log-item.log-danger { border-left-color: var(--danger); }
.log-item.log-ok { border-left-color: var(--success); }
.log-item.log-neutral { border-left-color: var(--link-color); }

/* Avatar compacto dentro do feed */
.log-avatar { flex: 0 0 auto; }
.log-item .avatar-container { width: 42px; height: 42px; }
.log-item .avatar-orb { width: 38px; height: 38px; margin: 2px; }
.log-avatar-system {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted-color, #888);
}

.log-body { flex: 1; min-width: 0; }

/* Linha 1: ação (badge) e, abaixo, o horário — ambos alinhados à esquerda.
   Empilhar evita que o horário quebre para o lado quando o badge é largo. */
.log-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
}

/* Linha 2: autor → alvo */
.log-phrase {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
    font-size: 0.92em;
    color: var(--text-color);
}
.log-arrow { color: var(--text-muted-color, #aaa); font-size: 0.8em; }
.log-actor, .log-target {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}
.log-actor i { color: var(--link-color); }
.log-target i { color: var(--danger); }
.log-verb {
    background: color-mix(in srgb, var(--link-color) 12%, transparent);
    color: var(--link-color);
    font-weight: 600;
    font-size: 0.85em;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
/* O badge da ação herda a cor semântica do log (igual à borda esquerda) */
.log-item.log-danger .log-verb { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.log-item.log-ok .log-verb { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.log-prep { color: var(--text-muted-color, #888); }
.log-when {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted-color, #888);
    font-size: 0.85em;
    white-space: nowrap;
}
.log-desc {
    margin: 6px 0 0;
    font-size: 0.88em;
    color: var(--text-muted-color, #777);
    word-break: break-word;
}
.block-areas {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.block-area-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.block-area-item input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}
.log-details {
    margin: 6px 0 0;
    padding-left: 16px;
    list-style: disc;
    font-size: 0.84em;
    color: var(--text-muted-color, #777);
}
.log-details li {
    margin: 2px 0;
    word-break: break-word;
}
.log-ip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 0.82em;
}
.log-meta-shortcut { margin-left: 2px; }

/* --- Duração de banimento/bloqueio: nº + unidade alinhados lado a lado --- */
/* As duas colunas têm a mesma estrutura (label + campo), então alinham as
   caixas pelos rótulos; o help/erro fica fora do flex, abaixo da linha, para
   não desnivelar o select (causa do campo "torto"). */
.duration-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.duration-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.duration-col--value { flex: 1 1 auto; }
.duration-col--unit { flex: 0 0 auto; min-width: 120px; }
.duration-row input,
.duration-row select {
    width: 100%;
    height: 44px;
    margin: 0;
}

/* --- Configurações globais: salvamento parcial por seção --- */
.btn-wap.btn-sm {
    width: auto;
    padding: 7px 16px;
    font-size: 0.85em;
    margin: 0;
}
/* ── Usuários pendentes ── */
.pending-user-row {
    padding: 16px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 7%, transparent);
}
.pending-user-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.pending-user-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.pending-user-info { flex: 1; font-weight: 600; font-size: .95rem; }
.pending-user-display { font-weight: 400; color: var(--text-muted-color, #888); }
.pending-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .82rem;
    color: var(--text-muted-color, #888);
}
.pending-user-meta span { display: flex; align-items: center; gap: 8px; }
.pending-user-meta i { width: 14px; text-align: center; flex-shrink: 0; }
.badge-country-ok   { color: var(--success); font-weight: 600; }
.badge-country-warn { color: var(--danger); font-weight: 600; }

/* ── Banner de aviso (aprovação desativada, etc.) ── */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: .88rem;
}
.alert-banner--warning {
    background: color-mix(in srgb, var(--warning) 8%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
    color: var(--text-color);
}
.alert-banner--warning i { color: var(--warning); flex-shrink: 0; margin-top: 2px; }
.alert-banner-link {
    color: var(--link-color);
    font-weight: 600;
    margin-left: 4px;
}

/* ── settings-header com margin-bottom ── */
.settings-header--mb { margin-bottom: 16px; }

/* ── Itens de status de moderação automática (dashboard) ── */
.mod-auto-item {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text-color) 7%, transparent);
}
.mod-auto-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.mod-auto-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mod-auto-icon { width: 18px; text-align: center; flex-shrink: 0; margin-top: 2px; }
.mod-auto-label-group { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mod-auto-label { font-size: 0.9rem; font-weight: 500; }
.mod-auto-desc { font-size: 0.78rem; color: var(--text-muted-color, #888); line-height: 1.35; }
.text-on  { color: var(--success); }
.text-off { color: var(--text-muted-color, #aaa); }
.mod-auto-sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding-left: 28px;
}
.mod-auto-sub-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted-color, #999);
}
.mod-auto-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mod-auto-none {
    font-size: 0.8rem;
    color: var(--text-muted-color, #aaa);
    font-style: italic;
}
.mod-sub-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}
.mod-sub-chip.on {
    background: color-mix(in srgb, var(--success) 12%, var(--card-bg));
    color: var(--success);
    border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}

/* ── Cards de status de moderação automática (dentro do stats-grid) ── */
.mod-stat-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: filter 0.15s;
}
.mod-stat-card:hover { filter: brightness(96%); }
.mod-stat-icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
}
.mod-stat-on { border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }
.mod-stat-on .mod-stat-icon { color: var(--success); }
.mod-stat-off { border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent); }
.mod-stat-off .mod-stat-icon { color: var(--text-muted-color, #bbb); }

/* ── Linhas de regra com toggle (aprovação, moderação, etc.) ── */
.approval-rule {
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.approval-rule:last-of-type { border-bottom: none; padding-bottom: 4px; }
.approval-rule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.approval-rule-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1;
}
.approval-rule .helptext {
    display: block;
    margin-top: 6px;
    font-size: 0.83rem;
    color: var(--text-muted-color, #888);
    line-height: 1.45;
}
.approval-rule-sub {
    display: flex;
    gap: 1rem;
    margin-top: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}
.approval-rule-sub .settings-field { flex: 1; margin: 0; }
.approval-rule-sub label {
    font-size: 0.82rem;
    color: var(--text-muted-color, #888);
    margin-bottom: 4px;
    display: block;
}
.approval-status-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
}
.approval-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}
.approval-status-item i { width: 18px; text-align: center; flex-shrink: 0; }
.status-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 2px;
}
.status-badge.on  { background: #d4edda; color: #155724; }
.status-badge.off { background: #f8d7da; color: #721c24; }

.settings-section-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* --- Configurações globais: prévia de logo / linha de arquivo --- */
.settings-logo-preview {
    max-width: 150px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px;
}
.settings-file-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* ===================================================================
   EDITOR DE TEMA — estilos migrados do <style> inline (tokens)
   =================================================================== */
.theme-editor .radio-group {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 8px;
}
.theme-editor .radio-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s ease;
}
.theme-editor .radio-option.active {
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}
/* Esconde os inputs de rádio originais do Django (controle via .radio-option) */
.theme-editor .form-field input[type="radio"] { display: none; }
.theme-editor input[type="color"] {
    width: 100%;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px;
    background: var(--card-bg, #fff);
    cursor: pointer;
}
.theme-color-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.theme-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 16px 0;
}
.theme-field-centered { align-items: center; text-align: center; }
.theme-bg-preview {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 8px;
}

/* ==========================================================================
   Listagens (Home / Mural / Matérias): ações e mídia padronizadas
   Substitui estilos inline repetidos pelos templates dessas páginas.
   ========================================================================== */

/* Linha de ação centralizada (botões "Ver Mais", toggles de formulário,
   avisos de login). Empilhado e centralizado — mobile-first. */
.list-action-center {
    text-align: center;
    margin-top: 20px;
}

/* Botão "Voltar" no rodapé do detalhe da matéria. */
.materia-detail .btn-voltar {
    display: inline-block;
    margin-top: 20px;
}

/* Corpo do texto da matéria (detalhe) alinhado à esquerda para leitura. */
.materia-detail .materia-body {
    text-align: left;
}

/* Espaço acima do formulário de comentário. */
.comment-form-container {
    margin-top: 20px;
}

/* Wrapper da prévia da imagem (o display é alternado via JS). */
.materia-img-preview-wrap {
    margin-bottom: 10px;
    text-align: center;
}

/* Prévia da imagem de destaque no formulário de envio de matéria.
   max-width:100% garante que não estoure em telas pequenas. */
.materia-img-preview {
    max-width: 120px;
    max-height: 120px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--link-color);
    background: #fff;
}

/* ==========================================================================
   Home: seção "hero" (topo) — hierarquia visual destacada, SEM fundo de card.
   ========================================================================== */
.hero-section {
    background: transparent;
    padding: 18px 16px 10px;
    margin-bottom: 8px;
}
.hero-section .hero-logo-placeholder {
    display: block;
    font-size: 2.6em;
    color: var(--link-color);
    margin-bottom: 8px;
}
.hero-section h2 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 6px;
}
.hero-section p {
    color: var(--text-muted-color, #888);
    margin: 0;
}

/* Input de busca do modal de menção do Hall. */
.mention-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95em;
    box-sizing: border-box;
    background: var(--card-bg, #fff);
    color: var(--text-color);
}
.mention-search-input:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}

/* ==========================================================================
   Toast global (feedback rápido de ações AJAX, ex.: mudança de status)
   ========================================================================== */
.app-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #323232;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.95em;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 4000;
    max-width: 90vw;
    text-align: center;
}
.app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.app-toast.toast-ok { background: var(--success); }
.app-toast.toast-err { background: var(--danger); }

/* ==========================================================================
   Modal de Status de Atividade
   ========================================================================== */
.status-modal { padding: 0; overflow: hidden; }

.status-form { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 10px 12px 14px; }
.status-options { display: flex; flex-direction: column; gap: 2px; border: 0; margin: 0; padding: 0; }
.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background 0.15s;
}
.status-option:hover { background: color-mix(in srgb, var(--text-color) 6%, transparent); }
.status-option input[type="radio"] { display: none; }
.status-option:has(input:checked) { background: color-mix(in srgb, var(--link-color) 10%, transparent); }
.status-option-info { flex: 1; min-width: 0; }
.status-option-name { display: block; font-size: 0.93em; font-weight: 500; color: var(--text-color); }
.status-option-desc { display: block; font-size: 0.78em; color: var(--text-muted-color, #888); margin-top: 1px; }
.status-option-check { color: var(--link-color); opacity: 0; transition: opacity 0.15s; font-size: 0.85em; flex-shrink: 0; }
.status-option:has(input:checked) .status-option-check { opacity: 1; }

.status-dot { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 auto; display: inline-block; position: relative; }
.status-dot-online  { background: #4CAF50; }
.status-dot-away    { background: #FBC02D; }
.status-dot-busy    { background: #E53935; }
.status-dot-offline { background: #9E9E9E; }
.status-dot-dnd     { background: #E53935; }
.status-dot-dnd::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2.5px;
    right: 2.5px;
    height: 2px;
    background: #fff;
    transform: translateY(-50%);
    border-radius: 1px;
}
.status-form-actions { margin-top: 2px; }
.status-form-actions .btn-wap { width: 100%; justify-content: center; }

/* ==========================================================================
   Modal de Denúncia
   ========================================================================== */
.denuncia-form { padding: 14px 16px 16px; }
.denuncia-target-label { font-size: .82rem; color: var(--text-muted-color); margin: 0 0 10px; }
.field-required { color: var(--danger); }
.field-optional { font-weight: 400; color: var(--text-muted-color); }
.denuncia-feedback {
    margin-bottom: 10px;
    font-size: .83rem;
    padding: 8px 12px;
    border-radius: 8px;
}
.denuncia-feedback--ok   { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.denuncia-feedback--warn { background: color-mix(in srgb, var(--warning) 12%, transparent); color: #856404;         border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent); }
.denuncia-feedback--err  { background: color-mix(in srgb, var(--danger)  12%, transparent); color: var(--danger);  border: 1px solid color-mix(in srgb, var(--danger)  30%, transparent); }

/* Badges de status (away/busy/dnd complementam online/offline já existentes). */
.badge-status.away { color: #b26a00; }
.badge-status.busy { color: var(--danger); }
.badge-status.dnd  { color: var(--danger); }

/* Mensagem de status personalizada (perfil + cards da comunidade). */
.profile-status-message {
    margin: 6px auto 0;
    max-width: 90%;
    font-size: 0.95em;
    color: var(--text-muted-color, #888);
    font-style: italic;
    word-break: break-word;
}
.user-mod-status-msg {
    margin: 8px 0 0;
    font-size: 0.9em;
    color: var(--text-muted-color, #888);
    font-style: italic;
    word-break: break-word;
}

/* ==========================================================================
   Link de Solicitações (página de Conexões)
   ========================================================================== */
.request-links-container {
    margin-bottom: 20px;
}
.request-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--link-color) 8%, transparent);
    transition: background 0.15s;
}
.request-link:hover {
    background: color-mix(in srgb, var(--link-color) 16%, transparent);
}
.request-badge {
    font-size: 0.8em;
    font-weight: 700;
    background: var(--link-color);
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    line-height: 1.4;
}

/* ==========================================================================
   Abas do Hub da Comunidade (mobile-first; alterna via ui_tabs.js)
   ========================================================================== */
.community-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    margin-bottom: 16px;
}
.btn-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
    border: none;
    background: transparent;
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s;
}
.btn-tab:hover { opacity: 1; }
.btn-tab.is-active {
    opacity: 1;
    color: var(--link-color);
    border-bottom-color: var(--link-color);
}
.btn-tab .tab-count {
    font-size: 0.8em;
    font-weight: 700;
    background: color-mix(in srgb, var(--link-color) 15%, transparent);
    color: var(--link-color);
    border-radius: 999px;
    padding: 1px 7px;
}
.tab-panel[hidden] { display: none; }

.tab-panel.is-active {
    animation: tabPanelFade 0.18s ease;
}
@keyframes tabPanelFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.visitors-summary {
    text-align: center;
    color: var(--text-muted-color, #888);
    margin-bottom: 14px;
}

/* ===== FEEDBACK HOME BANNER ===== */
.feedback-home-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 16px;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--link-color) 8%, var(--card-bg));
    border: 1.5px solid color-mix(in srgb, var(--link-color) 25%, transparent);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-color);
    transition: background 0.2s ease, transform 0.15s ease;
}
.feedback-home-banner:active { transform: scale(0.98); }
.feedback-home-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--link-color) 15%, transparent);
    color: var(--link-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.feedback-home-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feedback-home-banner-text strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-color);
}
.feedback-home-banner-text span {
    font-size: 0.8rem;
    color: var(--text-muted-color, #888);
    line-height: 1.3;
}
.feedback-home-banner-arrow {
    color: var(--link-color);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* =========================================================================
   Sistema de Downloads (mobile-first, empilhado)
   ========================================================================= */
.downloads-page .dl-actions {
    margin-bottom: 18px;
}

/* Breadcrumb */
.dl-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    margin: 4px 0 16px;
    color: var(--text-muted-color, #888);
}
.dl-breadcrumb a {
    color: var(--link-color);
    text-decoration: none;
}
.dl-crumb-sep { opacity: 0.6; }
.dl-crumb-current { color: var(--text-color); font-weight: 600; }

/* Grid de categorias */
.dl-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Lista de arquivos ──────────────────────────────────────────── */
.dl-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dl-file-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.dl-file-card:hover {
    border-color: var(--link-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--link-color) 12%, transparent);
}
.dl-file-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--link-color) 14%, transparent);
    color: var(--link-color);
    font-size: 1.15rem;
    align-self: center;
}
.dl-file-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}
.dl-file-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dl-file-line {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted-color, #888);
    line-height: 1.4;
}
.dl-file-line i { margin-right: 3px; opacity: 0.75; }
.dl-file-author .personalized-nickname { color: var(--text-color); font-weight: 500; }
.dl-dot { margin: 0 4px; opacity: 0.4; }
.dl-file-chevron {
    flex-shrink: 0;
    color: var(--text-muted-color, #888);
    font-size: 0.8rem;
    align-self: center;
}

/* Contador de downloads em destaque */
.dl-counter {
    font-weight: 600;
    color: var(--link-color);
}

/* ── Detalhe do arquivo ─────────────────────────────────────────── */
.dl-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 6px;
}

/* Cabeçalho autor + categoria — abaixo do h2 */
.dl-detail-byline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: -4px;
}
.dl-detail-byline-author {
    font-size: 0.88rem;
    color: var(--text-muted-color, #888);
}
.dl-detail-byline-author a { color: var(--link-color); text-decoration: none; }
.dl-detail-byline-cat {
    font-size: 0.78rem;
    color: var(--text-muted-color, #888);
}
.dl-detail-byline-cat a { color: var(--text-muted-color, #888); text-decoration: none; }
.dl-detail-byline-cat a:hover { color: var(--link-color); }
.dl-detail-byline-date {
    font-size: 0.78rem;
    color: var(--text-muted-color, #888);
}

/* Barra de metadados: tamanho à esquerda, downloads à direita */
.dl-metadata-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--text-color) 4%, transparent);
    font-size: 0.8rem;
    color: var(--text-muted-color, #888);
}
.dl-metadata-bar span { display: inline-flex; align-items: center; gap: 5px; }
.dl-metadata-bar i { font-size: 0.85em; opacity: 0.8; }

/* Descrição */
.dl-detail-desc {
    margin: 0;
    line-height: 1.6;
    word-break: break-word;
    font-size: 0.92rem;
    color: var(--text-color);
}

/* Ação principal de download */
.dl-download-box { display: flex; flex-direction: column; gap: 0; }
.dl-download-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}
.dl-download-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Aviso de login */
.dl-login-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--link-color) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--link-color) 25%, transparent);
    color: var(--text-color);
    font-size: 0.92rem;
}
.dl-login-prompt i { font-size: 1.2rem; color: var(--link-color); flex-shrink: 0; }
.dl-login-prompt p { margin: 0; }
.dl-login-prompt a { color: var(--link-color); font-weight: 600; text-decoration: none; }
.dl-login-prompt a:hover { text-decoration: underline; }

/* Aviso de tamanho de arquivo no upload */
.dl-file-warning {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    background: color-mix(in srgb, #f0ad4e 18%, transparent);
    border: 1px solid #f0ad4e;
    color: var(--text-color);
}
.dl-file-warning--error {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    border-color: var(--danger);
}

/* Input de arquivo estilizado (upload de download) */
.downloads-page .settings-form input[type="file"] {
    width: 100%;
    font-size: 0.88rem;
    color: var(--text-color);
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
    border-radius: 8px;
    padding: 4px 8px 4px 4px;
    cursor: pointer;
    box-sizing: border-box;
}
.downloads-page .settings-form input[type="file"]:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.downloads-page .settings-form input[type="file"]::file-selector-button {
    background: var(--link-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: opacity 0.2s;
}
.downloads-page .settings-form input[type="file"]::file-selector-button:hover {
    opacity: 0.82;
}

/* ── Busca de downloads ──────────────────────────────────────────── */
.dl-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}
.dl-search-bar {
    display: flex;
    gap: 8px;
}
.dl-search-bar input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--text-color) 20%, transparent);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--card-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-search-bar input[type="search"]:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.dl-search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dl-search-filters select {
    flex: 1 1 140px;
    min-width: 130px;
    height: 44px; box-sizing: border-box; padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--card-bg);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dl-search-filters select:focus {
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.dl-search-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}
.dl-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--link-color) 14%, transparent);
    color: var(--link-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.dl-filter-tag:hover { background: color-mix(in srgb, var(--link-color) 24%, transparent); }
.dl-filter-tag i { font-size: 0.72rem; }
.dl-search-count {
    font-size: 0.82rem;
    color: var(--text-muted-color, #888);
    margin: 0 0 8px;
}

/* Card de download no painel de moderação */
.dl-mod-item {
    border: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
    border-radius: 12px;
    overflow: hidden;
}
.dl-mod-card {
    border: none;
    border-radius: 0;
    cursor: default;
}
.dl-mod-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}
.dl-mod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    background: color-mix(in srgb, var(--text-color) 3%, transparent);
}
.dl-mod-actions form { margin: 0; }
.dl-mod-desc { font-style: italic; opacity: 0.8; }

/* Estado vazio */
.dl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted-color, #888);
}
.dl-empty i { font-size: 1.6rem; opacity: 0.7; }

/* ═══════════════ Cartão de citação (Depoimento / prévia de Divulgação) ═══ */
/* Compartilhado por gate/social_gate.html, core/meu_depoimento.html e
   core/divulgacao_interna/lista.html — contém visualmente qualquer BBCode
   "espalhafatoso" (gradiente/tamanho grande) que o texto citado tenha. */
.gate-depoimento {
    background: color-mix(in srgb, var(--card-bg) 92%, var(--text-color) 4%);
    border-radius: 10px; padding: 14px 18px;
}
.gate-depoimento p { margin: 0 0 6px; color: var(--text-color); }
.gate-depoimento span { color: var(--text-muted-color); font-size: 0.85em; }

/* ═══════════════ Modal de Confirmação Global ═══════════════ */
.confirm-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.58);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: cmo-bg-in .15s ease;
}
.confirm-modal-overlay[hidden] { display: none !important; }
@keyframes cmo-bg-in { from { opacity: 0; } to { opacity: 1; } }
.confirm-modal-box {
    background: var(--card-bg); border-radius: 20px;
    padding: 28px 22px 20px; max-width: 300px; width: 100%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,.28);
    animation: cmo-box-in .15s ease;
}
@keyframes cmo-box-in {
    from { transform: scale(.88) translateY(14px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cmo-icon { font-size: 2.4rem; margin-bottom: 12px; }
.cmo-icon.warn   { color: var(--warning); }
.cmo-icon.danger { color: var(--danger); }
.cmo-title { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--text-color); }
.cmo-msg { font-size: .87rem; color: var(--text-muted-color,#888); margin: 0 0 22px; line-height: 1.55; }
.cmo-actions { display: flex; flex-direction: column; gap: 8px; }
.cmo-actions .btn-wap       { justify-content: center; }
.cmo-actions .btn-wap-small { width: 100%; justify-content: center; }
.cmo-actions .btn-wap.cmo-warn  { background: var(--warning); color: #fff; }
.cmo-actions .btn-wap.cmo-warn:hover { filter: brightness(92%); }

/* ═══════════════ Vinyl / Artist disc (perfil + edição de música) ════════════ */
.vinyl-disc, .artist-disc {
    width: 68px; height: 68px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; position: relative; cursor: pointer;
    box-shadow: 0 0 0 3px #1a1a1a, 0 4px 14px rgba(0,0,0,.35); background: #111;
}
.vinyl-disc img, .artist-disc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vinyl-disc.is-playing img,
.artist-disc.is-playing img { animation: vinyl-spin 3s linear infinite; }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
.vinyl-disc::after, .artist-disc::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 14px; height: 14px;
    border-radius: 50%; background: #111; border: 2px solid #444;
    z-index: 2; pointer-events: none;
}
.vinyl-disc-overlay {
    position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; background: rgba(0,0,0,.32); color: #fff;
    font-size: 1.3rem; opacity: 1; z-index: 3;
}

/* ===================================================================== */
/* Esportes (módulo Entretenimento — API ESPN)                            */
/* Mobile-first: tudo empilhado, sem scroll horizontal.                   */
/* ===================================================================== */

/* ── Lista de jogos / placares ── */
.esp-games { display: flex; flex-direction: column; gap: 10px; }

.esp-game {
    display: flex; align-items: center; gap: 8px;
    background: var(--mural-item-bg, #f8f9fa);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px; padding: 12px 10px;
    text-decoration: none; color: var(--text-color);
    transition: filter .15s ease;
}
.esp-game:hover { filter: brightness(.97); }
.esp-game.is-live { border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

.esp-game-side {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.esp-logo { width: 38px; height: 38px; object-fit: contain; }
.esp-team {
    font-size: .78rem; font-weight: 600; text-align: center;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.esp-team.win { color: var(--text-color); }

.esp-game-center {
    flex: 0 0 auto; display: flex; flex-direction: column;
    align-items: center; gap: 3px; min-width: 84px;
}
.esp-score {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.35rem; font-weight: 700; line-height: 1;
}
.esp-score .win { color: var(--link-color); }
.esp-score-sep { color: var(--text-muted-color, #888); font-weight: 400; font-size: 1rem; }
.esp-status {
    font-size: .68rem; color: var(--text-muted-color, #888);
    text-align: center; text-transform: uppercase; letter-spacing: .02em;
}
.esp-status.live { color: var(--danger); font-weight: 700; }
.esp-status.live i { font-size: .5rem; vertical-align: middle; animation: esp-blink 1.2s infinite; }
@keyframes esp-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ── Notícias ── */
.esp-news { display: flex; flex-direction: column; gap: 4px; }
.esp-news-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 4px; text-decoration: none; color: var(--text-color);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.esp-news-item:last-child { border-bottom: none; }
.esp-news-item:hover .esp-news-title { color: var(--link-color); }
.esp-news-img {
    width: 72px; height: 54px; object-fit: cover;
    border-radius: 8px; flex: 0 0 auto;
}
.esp-news-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.esp-news-title { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.esp-news-date { font-size: .72rem; color: var(--text-muted-color, #888); }

/* ── Classificação (tabela enxuta, sem scroll horizontal) ── */
/* overflow-x: auto de segurança — a página tem overflow-x: clip (base.css),
   então qualquer largura excedente precisa rolar aqui dentro */
.esp-table-wrap { width: 100%; overflow-x: auto; }
.esp-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.esp-table th, .esp-table td {
    padding: 9px 4px; text-align: center;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.esp-table thead th {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .03em;
    color: var(--text-muted-color, #888); font-weight: 700;
}
.esp-col-pos { width: 28px; color: var(--text-muted-color, #888); }
.esp-col-team { text-align: left !important; }
.esp-table td.esp-col-team {
    display: flex; align-items: center; gap: 8px;
}
.esp-logo-sm { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.esp-team-abbr {
    font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.esp-num { font-variant-numeric: tabular-nums; }
.esp-strong { font-weight: 700; color: var(--link-color); }

/* ── Estado vazio ── */
.esp-empty {
    text-align: center; color: var(--text-muted-color, #888);
    padding: 18px 8px; font-size: .88rem;
}
.esp-empty i { margin-right: 6px; }

/* ── Fase 2: jogo clicável + destaque ao vivo ── */
.esp-game { cursor: pointer; }
.esp-game:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; }

.esp-live-card { border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.esp-live-title { color: var(--danger) !important; }
.esp-live-dot { font-size: .6rem !important; animation: esp-blink 1.2s infinite; }

/* ── Standings agrupadas (grupos / conferências › divisões) ── */
.esp-standings-conf { margin-bottom: 18px; }
.esp-standings-conf-title {
    font-size: .92rem; font-weight: 700; color: var(--text-color);
    margin: 16px 0 6px; padding-bottom: 6px;
    border-bottom: 2px solid color-mix(in srgb, var(--link-color) 40%, transparent);
}
.esp-standings-group-title {
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: var(--text-muted-color, #888); margin: 14px 0 4px;
}
.esp-standings-group-title--lg {
    font-size: .95rem; text-transform: none; color: var(--link-color); letter-spacing: 0;
}
.esp-row-click { cursor: pointer; }
.esp-row-click:hover { background: color-mix(in srgb, var(--link-color) 7%, transparent); }

/* Aviso/contexto de mata-mata */
.esp-knockout-note {
    background: color-mix(in srgb, var(--link-color) 10%, transparent);
    color: var(--text-color); border-radius: 10px;
    padding: 10px 12px; font-size: .82rem; margin-bottom: 12px;
}
.esp-knockout-note i { color: var(--link-color); margin-right: 6px; }
.esp-game-note {
    font-size: .66rem; color: var(--text-muted-color, #888);
    text-align: center; margin-top: 2px; max-width: 110px; line-height: 1.2;
}
.esp-game-venue {
    font-size: .64rem; color: var(--text-muted-color, #888);
    text-align: center; margin-top: 3px; max-width: 120px; line-height: 1.2;
}
.esp-game-venue i { font-size: .9em; opacity: .8; }

/* ── Seletor de temporada (histórico) ── */
.esp-season-form {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px;
}
.esp-season-form label {
    font-size: .82rem; font-weight: 600; color: var(--text-muted-color, #888);
    white-space: nowrap;
}
.esp-season-form label i { margin-right: 5px; color: var(--link-color); }
.esp-season-form select {
    flex: 1; max-width: 200px; padding: 9px 12px; font-size: .9rem;
    border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
    border-radius: 10px; background: var(--card-bg); color: var(--text-color);
}
.esp-season-form select:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}

/* ── Chave de mata-mata ── */
.esp-round { margin-bottom: 18px; }
.esp-round-title {
    font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
    color: var(--link-color); margin: 0 0 8px;
    display: flex; align-items: center; gap: 8px;
}
.esp-round-count {
    background: color-mix(in srgb, var(--link-color) 14%, transparent);
    color: var(--link-color); border-radius: 10px; padding: 1px 8px; font-size: .72rem;
}
.esp-ties { display: flex; flex-direction: column; gap: 10px; }
.esp-tie {
    background: var(--mural-item-bg, #f8f9fa);
    border: 1px solid rgba(0,0,0,.06); border-radius: 12px;
    padding: 10px 12px;
}
.esp-tie-click { cursor: pointer; transition: filter .15s ease; }
.esp-tie-click:hover { filter: brightness(.97); }
.esp-tie-click:focus-visible { outline: 2px solid var(--link-color); outline-offset: 2px; }
.esp-tie-row {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0; font-size: .88rem;
}
.esp-tie-logo { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.esp-tie-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esp-tie-scores { display: flex; gap: 6px; font-variant-numeric: tabular-nums; color: var(--text-muted-color, #888); }
.esp-tie-scores span {
    min-width: 18px; text-align: center;
}
.esp-tie-win .esp-tie-name { font-weight: 700; color: var(--text-color); }
.esp-tie-win .esp-tie-scores { color: var(--link-color); font-weight: 700; }
.esp-tie-trophy { color: #d4a017; font-size: .8rem; }
.esp-tie-result {
    margin: 6px 0 0; padding-top: 6px; font-size: .72rem; color: var(--text-muted-color, #888);
    border-top: 1px dashed rgba(0,0,0,.08);
}

/* ====================== Modais de Esportes ====================== */
.esp-modal {
    max-width: 460px !important;
    max-height: 86vh;
    display: flex; flex-direction: column;
    position: relative;
}
.esp-modal-close {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: color-mix(in srgb, var(--text-color) 8%, transparent);
}
.esp-modal-body { display: flex; flex-direction: column; min-height: 0; }
.esp-modal-scroll { overflow-y: auto; padding: 18px 16px 16px; }
.esp-modal-loading, .esp-modal-error {
    padding: 40px 20px; text-align: center; color: var(--text-muted-color, #888);
}
.esp-modal-loading i { font-size: 1.6rem; }
.esp-modal-error i { color: var(--danger); margin-right: 6px; }

/* Cabeçalho do modal de jogo (placar) */
.esp-jm-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 6px 0 10px;
}
.esp-jm-team {
    flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    font-weight: 600; font-size: .8rem; text-align: center;
}
.esp-jm-team img { width: 46px; height: 46px; object-fit: contain; }
.esp-jm-center { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.esp-jm-score { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.esp-jm-score .win { color: var(--link-color); }
.esp-jm-status { font-size: .72rem; text-transform: uppercase; color: var(--text-muted-color, #888); }
.esp-jm-status.live { color: var(--danger); font-weight: 700; }
.esp-jm-status.live i { font-size: .5rem; animation: esp-blink 1.2s infinite; }
.esp-jm-venue { text-align: center; font-size: .76rem; color: var(--text-muted-color, #888); margin: 0 0 10px; }

/* Abas internas do modal */
.esp-tabs {
    display: flex; gap: 6px; margin: 4px 0 14px;
    background: var(--mural-item-bg, #f1f3f5); padding: 4px; border-radius: 10px;
}
.esp-tab-btn {
    flex: 1; border: none; background: transparent; cursor: pointer;
    padding: 8px 6px; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 600;
    color: var(--text-muted-color, #888); transition: background .15s, color .15s;
}
.esp-tab-btn.active { background: var(--card-bg); color: var(--link-color); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Destaques (leaders) */
.esp-leaders { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.esp-leader {
    display: flex; align-items: center; gap: 8px;
    background: var(--mural-item-bg, #f8f9fa); border-radius: 10px; padding: 8px 10px;
}
.esp-leader-cat { font-size: .72rem; text-transform: uppercase; color: var(--text-muted-color, #888); min-width: 72px; }
.esp-leader-name { flex: 1; font-size: .82rem; font-weight: 600; }
.esp-leader-name small { color: var(--text-muted-color, #888); font-weight: 400; }
.esp-leader-val { font-weight: 800; color: var(--link-color); font-variant-numeric: tabular-nums; }

/* Comparação de estatísticas (casa | label | visitante) */
.esp-cmp { display: flex; flex-direction: column; }
.esp-cmp-head, .esp-cmp-row {
    display: grid; grid-template-columns: 1fr 1.4fr 1fr; align-items: center;
    padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
.esp-cmp-head { font-weight: 700; color: var(--link-color); font-size: .8rem; }
.esp-cmp-head span:first-child { text-align: left; }
.esp-cmp-head span:last-child { text-align: right; }
.esp-cmp-row { font-size: .82rem; }
.esp-cmp-home { text-align: left; font-weight: 700; font-variant-numeric: tabular-nums; }
.esp-cmp-away { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.esp-cmp-label { text-align: center; font-size: .72rem; color: var(--text-muted-color, #888); }

/* Narração (play-by-play) */
.esp-plays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.esp-play {
    display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .82rem;
}
.esp-play.scoring { background: color-mix(in srgb, var(--link-color) 8%, transparent); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.esp-play-time { font-size: .68rem; color: var(--text-muted-color, #888); white-space: nowrap; font-variant-numeric: tabular-nums; }
.esp-play-text { line-height: 1.35; }
.esp-play-score { font-weight: 800; color: var(--link-color); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Modal de time */
.esp-tm-head { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.esp-tm-logo { width: 56px; height: 56px; object-fit: contain; }
.esp-tm-id { display: flex; flex-direction: column; gap: 4px; }
.esp-tm-name { font-size: 1.05rem; font-weight: 700; }
.esp-tm-standing { font-size: .8rem; color: var(--text-muted-color, #888); }
.esp-tm-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.esp-tm-stat {
    flex: 1; background: var(--mural-item-bg, #f8f9fa); border-radius: 12px;
    padding: 12px; text-align: center;
}
.esp-tm-stat-val { display: block; font-size: 1.3rem; font-weight: 800; color: var(--link-color); }
.esp-tm-stat-lbl { display: block; font-size: .7rem; text-transform: uppercase; color: var(--text-muted-color, #888); margin-top: 2px; }
.esp-tm-next {
    background: var(--mural-item-bg, #f8f9fa); border-radius: 12px; padding: 12px 14px;
}
.esp-tm-next h4 { margin: 0 0 8px; font-size: .82rem; color: var(--link-color); }
.esp-tm-next-name { margin: 0 0 4px; font-weight: 600; font-size: .9rem; }
.esp-tm-next-meta, .esp-tm-next-date { margin: 2px 0; font-size: .8rem; color: var(--text-muted-color, #888); }

/* ====================== Leitor interno de notícia ====================== */
.esp-article-title { font-size: 1.3rem; line-height: 1.3; margin: 6px 0 8px; color: var(--text-color); }
.esp-article-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .76rem; color: var(--text-muted-color, #888); margin: 0 0 14px; }
.esp-article-img { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.esp-article-body { font-size: .95rem; line-height: 1.65; color: var(--text-color); }
.esp-article-body p { margin: 0 0 14px; }
.esp-article-body a { color: var(--link-color); text-decoration: underline; }
.esp-article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 8px 0; }
.esp-article-body h2, .esp-article-body h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.esp-article-body blockquote {
    margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--link-color);
    color: var(--text-muted-color, #888); font-style: italic;
}
.esp-article-source { margin-top: 18px; font-size: .76rem; color: var(--text-muted-color, #888); }
.esp-article-fallback { text-align: center; padding: 30px 16px; }
.esp-article-fallback-icon { font-size: 2rem; color: var(--link-color); margin-bottom: 12px; }
.esp-article-fallback p { color: var(--text-muted-color, #888); margin-bottom: 16px; }
/* ============================ ENTREVISTAS ============================ */
/* Grade da vitrine */
.entrevistas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.entrevista-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    border-radius: 14px;
    overflow: hidden;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.entrevista-card-capa { position: relative; aspect-ratio: 16/9; background: color-mix(in srgb, var(--text-color) 6%, transparent); }
.entrevista-card-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entrevista-card-capa--placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2em; opacity: 0.4; }
.entrevista-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.entrevista-card-title { font-weight: 700; font-size: 14px; line-height: 1.25; }
.entrevista-card-user { display: flex; align-items: center; gap: 7px; min-width: 0; }
.entrevista-card-user .avatar-container { width: 32px; height: 32px; flex: 0 0 auto; }
.entrevista-card-user .avatar-orb { width: 27px; height: 27px; }
.entrevista-card-userinfo { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.entrevista-card-user .entrevista-hero-eyebrow { font-size: 9px; letter-spacing: 0.3px; }
.entrevista-card-nick { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--link-color); font-weight: 700; }
.entrevista-card-footer {
    margin-top: auto; padding: 8px 12px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    font-size: 11px; color: var(--text-muted-color, #888);
    display: flex; align-items: center; gap: 5px;
}

/* Badge de status */
.entrevista-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 3px 9px; border-radius: 9999px; color: #fff; background: #6c757d;
    white-space: nowrap;
}
.entrevista-badge i { font-size: 0.9em; }
.entrevista-card-capa .entrevista-badge {
    position: absolute; top: 6px; right: 6px;
    font-size: 10px; padding: 2px 7px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.entrevista-badge--open { background: var(--success); }
.entrevista-badge--closed { background: #6c757d; }
.entrevista-badge--draft { background: #b8860b; }

/* Card da entrevista em destaque (home) */
.entrevista-destaque-card {
    display: flex; flex-direction: column;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    border-radius: 14px; overflow: hidden; color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.entrevista-destaque-capa { position: relative; height: 140px; background: color-mix(in srgb, var(--text-color) 6%, transparent); }
.entrevista-destaque-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entrevista-destaque-body { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 8px; }
.entrevista-destaque-title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.entrevista-destaque-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.entrevista-destaque-user .avatar-container { width: 40px; height: 40px; flex: 0 0 auto; }
.entrevista-destaque-user .avatar-orb { width: 34px; height: 34px; }
.entrevista-destaque-userinfo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.entrevista-destaque-nick { font-size: 14px; font-weight: 700; color: var(--link-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.entrevista-destaque-sobre { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted-color, #888); }
.entrevista-destaque-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 14px; margin-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
}
.entrevista-destaque-count { font-size: 12px; color: var(--text-muted-color, #888); display: inline-flex; align-items: center; gap: 5px; }

/* Vitrine: barra de busca/ordenação e filtro por status */
.entrevistas-header-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.entrevistas-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.entrevistas-toolbar .search-box { margin-bottom: 0; }
.entrevistas-toolbar select {
    width: 100%;
    height: 44px; box-sizing: border-box; padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.entrevistas-toolbar select:focus {
    outline: none;
    border-color: var(--link-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--link-color) 20%, transparent);
}
.entrevistas-status-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.status-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 9999px;
    border: 1px solid color-mix(in srgb, var(--text-color) 14%, transparent);
    background: var(--card-bg); color: var(--text-color);
    font-size: 0.85em; font-weight: 600; cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.status-pill:hover { border-color: var(--link-color); }
.status-pill.is-active { background: var(--link-color); color: #fff; border-color: var(--link-color); }
.status-pill .pill-count {
    font-size: 0.85em; font-weight: 700; border-radius: 999px; padding: 0 6px;
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
}
.status-pill.is-active .pill-count { background: rgba(255,255,255,0.25); }

/* Detalhe */
.entrevista-header .btn-back { margin-bottom: 12px; }
.entrevista-arquivada-aviso {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    padding: 10px 12px; border-radius: 10px; font-size: 13px;
    background: color-mix(in srgb, #b8860b 14%, transparent);
    color: var(--text-color);
    border: 1px solid color-mix(in srgb, #b8860b 35%, transparent);
}
.entrevista-capa { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; display: block; }

/* Cabeçalho: hero (avatar + entrevistado em destaque) */
.entrevista-hero { display: flex; align-items: center; gap: 12px; text-align: left; }
.entrevista-hero-avatar { flex: 0 0 auto; }
.entrevista-hero-avatar .avatar-container { width: 56px; height: 56px; }
.entrevista-hero-avatar .avatar-orb { width: 50px; height: 50px; }
.entrevista-hero-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entrevista-hero-eyebrow {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted-color, #888); display: inline-flex; align-items: center; gap: 5px;
}
.entrevista-hero-nick { font-size: 18px; font-weight: 700; color: var(--link-color); overflow: hidden; text-overflow: ellipsis; }

.entrevista-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.entrevista-titulo { margin: 0; font-size: 1.25em; }

/* Bloco "Sobre" */
.entrevista-sobre-box {
    margin-top: 14px; padding: 12px 14px; border-radius: 12px; text-align: left;
    background: color-mix(in srgb, var(--text-color) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
}
.entrevista-sobre-label {
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted-color, #888);
}
.entrevista-sobre { line-height: 1.55; word-break: break-word; }

/* Rodapé do cabeçalho: stats em linha, data em linha própria (não quebra) */
.entrevista-meta { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; text-align: left; }
.entrevista-meta-stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-color); }
.entrevista-meta-stats span { display: inline-flex; align-items: center; gap: 5px; }
.entrevista-meta-date { font-size: 12px; color: var(--text-muted-color, #888); display: inline-flex; align-items: center; gap: 5px; }
.entrevista-staff-actions { margin-top: 14px; display: flex; gap: 8px; align-items: center; }

/* Filtro do Q&A — sempre em uma linha (sem quebra) */
.entrevista-qa-filtro { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.entrevista-qa-filtro .status-pill { flex: 1 1 0; min-width: 0; justify-content: center; padding: 7px 8px; white-space: nowrap; }

/* Q&A — cards (sem barras laterais), pergunta x resposta nítidas */
.eqa-list { display: flex; flex-direction: column; gap: 14px; }
.eqa-card {
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden; text-align: left;
}
.eqa-card--pending { border-color: color-mix(in srgb, var(--link-color) 35%, transparent); }
.eqa-question { padding: 12px 14px; }
.eqa-head { display: flex; align-items: center; gap: 10px; }
.eqa-head .avatar-container { width: 38px; height: 38px; flex: 0 0 auto; }
.eqa-head .avatar-orb { width: 32px; height: 32px; }
.eqa-head-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.eqa-author { font-size: 0.9em; font-weight: 700; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; }
.eqa-role { font-size: 0.72em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted-color, #888); display: inline-flex; align-items: center; gap: 4px; }
.eqa-role--answer { color: var(--link-color); }
.eqa-pending-tag {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 9999px;
    background: color-mix(in srgb, var(--link-color) 14%, transparent); color: var(--link-color);
}
.eqa-text { margin-top: 8px; line-height: 1.55; word-break: break-word; }
.eqa-text p { margin: 0 0 6px; }
.eqa-text p:last-child { margin-bottom: 0; }
/* Resposta: bloco destacado dentro do card, claramente separado da pergunta */
.eqa-answer {
    padding: 12px 14px;
    background: color-mix(in srgb, var(--link-color) 7%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
}
.eqa-answer-form { margin: 0; padding: 12px 14px; border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent); display: flex; flex-direction: column; gap: 8px; }
.eqa-answer-form textarea { width: 100%; }
.eqa-awaiting {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    font-size: 0.85em; font-style: italic; color: var(--text-muted-color, #888);
}
.eqa-mod { padding: 10px 14px; border-top: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent); }
.entrevista-pergunta-mod { margin: 0; }
.entrevista-ask-form textarea { width: 100%; }

/* CTA de login para visitantes não autenticados */
.entrevista-login-cta { text-align: center; color: var(--text-muted-color, #888); }
.entrevista-login-cta a { color: var(--link-color); font-weight: 600; }

/* Estado vazio (sem respostas / sem pendentes) */
.entrevista-empty { text-align: center; padding: 28px 14px; color: var(--text-muted-color, #888); }
.entrevista-empty i { display: block; font-size: 2em; opacity: 0.45; margin-bottom: 10px; }
.entrevista-empty p { margin: 0; }

/* Form: seção de destaque/agendamento + toggle */
.entrevista-agendamento-group { margin-top: 8px; }
.settings-toggle-row label { display: block; width: 100%; box-sizing: border-box; font-weight: 600; }

/* Estado e janela de itens da gestão (destaques antigos, quiz, divulgação). */
.destaque-admin-state { font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.destaque-admin-state.ok { color: var(--success); }
.destaque-admin-state.off { color: var(--text-muted-color, #888); }
.destaque-admin-window { font-size: 12px; color: var(--text-muted-color, #888); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* Gestão de Destaques da home: avatar no lugar do ícone do settings-card. */
.settings-card.is-off { opacity: 0.55; }
.destaque-gestao-avatar { flex: none; display: flex; }
.destaque-gestao-avatar .avatar-container { width: 44px; height: 44px; }
.destaque-gestao-avatar .avatar-orb { width: 42px; height: 42px; }
.destaque-gestao-ajuda {
    font-size: 0.85em;
    color: var(--text-muted-color);
    margin: 6px 0 10px;
    text-align: left;
}

/* "Como os destaques são escolhidos": regras em lista e tabela de pontos. */
.destaque-explica {
    margin: 0;
    padding-left: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}
.destaque-pontos {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    text-align: left;
    font-size: 0.92em;
}
.destaque-pontos li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.destaque-pontos li span:last-child { color: var(--text-muted-color); text-align: right; }

/* Gestão de perguntas do Quiz (admin) */
.quiz-admin-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.quiz-admin-item {
    display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 12px 14px;
    background: var(--card-bg); border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: left;
}
.quiz-admin-item.is-off { opacity: 0.65; }
.quiz-admin-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.quiz-admin-enunciado { font-weight: 700; word-break: break-word; }
.quiz-admin-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Gestão de Divulgação Interna (admin) — card reaproveita a estrutura do
   .mural-item (Mural de Recados) como base visual, com um badge de status
   de 3 cores (agendada/no ar/expirada) no lugar do avatar+ações no header. */
.divulgacao-admin-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.divulgacao-admin-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted-color, #888); }
.divulgacao-admin-filters select { padding: 6px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--text-color) 15%, transparent); background: var(--card-bg); color: var(--text-color); }
.divulgacao-admin-item { margin-bottom: 12px; }
.divulgacao-admin-item .mural-item-header { align-items: flex-start; }
.divulgacao-admin-footer { justify-content: space-between; }
.divulgacao-admin-item-actions { margin-left: auto; }

.divulgacao-status-badge {
    display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
    padding: 3px 10px; border-radius: 100px; white-space: nowrap;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.divulgacao-status-badge.upcoming { background: color-mix(in srgb, var(--warning) 18%, transparent); color: #b45309; }
.divulgacao-status-badge.live { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.divulgacao-status-badge.expired { background: color-mix(in srgb, var(--danger) 14%, transparent); color: #b02a37; }
@media (min-width: 520px) {
    .destaque-admin-actions { flex-basis: auto; margin-top: 0; align-self: center; }
}

/* ============================ PROMO (Parceiros/AdSense) ============================ */
.promo-banner {
    position: relative;
    display: block;
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 8%, transparent);
    border-radius: 14px;
    padding: 16px 14px 14px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.promo-label {
    position: absolute; top: 8px; right: 10px;
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
    opacity: 0.5;
}
.promo-banner--partner {
    display: flex; align-items: center; gap: 12px; color: var(--text-color);
}
.promo-partner-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; flex: 0 0 auto; }
.promo-partner-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-partner-name { font-size: 15px; }
.promo-partner-desc { font-size: 12px; opacity: 0.75; }
.promo-partner-arrow { margin-left: auto; opacity: 0.5; flex: 0 0 auto; }
.promo-banner--ad { min-height: 90px; text-align: center; }

/* ============================ AUTOCOMPLETE DE USUÁRIO ============================ */
.uac-wrap { position: relative; }
.uac-list {
    position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
    background: var(--card-bg);
    border: 1px solid color-mix(in srgb, var(--text-color) 14%, transparent);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden; max-height: 280px; overflow-y: auto;
}
.uac-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px;
    background: none; border: none; cursor: pointer; text-align: left;
    color: var(--text-color); font-size: 14px;
}
.uac-item:hover, .uac-item:focus { background: color-mix(in srgb, var(--link-color) 10%, transparent); }
.uac-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.uac-name { font-weight: 600; }
.uac-handle { margin-left: auto; opacity: 0.6; font-size: 12px; }
.uac-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 25%, transparent); }
.uac-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--danger); }
.uac-hint.hidden { display: none; }

/* ============================ PICKER DE MEMBROS DE GRUPO (bottom-sheet) ============================ */
.gmp-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 12px;
}
.gmp-avatar-slot { flex: 0 0 auto; line-height: 0; }
.gmp-body { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; flex: 1; }
.gmp-name { font-weight: 600; text-align: left; }
.gmp-handle { opacity: 0.6; font-size: 12px; text-align: left; }
.gmp-invite-btn { flex: 0 0 auto; }
.gmp-invite-btn[data-state="done"] { opacity: .6; pointer-events: none; }
.gmp-empty { padding: 20px 12px; text-align: center; opacity: .7; font-size: .9rem; }

.group-picker-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.group-picker-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 8px 4px 4px; border-radius: 16px;
    background: color-mix(in srgb, var(--link-color) 12%, transparent);
    font-size: 13px;
}
.group-picker-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.group-picker-chip button { border: none; background: none; cursor: pointer; opacity: .6; padding: 0; line-height: 1; }
.group-picker-chip button:hover { opacity: 1; }

/* ===== Tokens de ação de gestão — usados em staff_dashboard.css ===== */
:root {
    --mod-approve: var(--success);
    --mod-delete: var(--danger);
}

/* ===== Linha de ações de item (DRY) ===== */
/* Editar/Excluir REUTILIZAM .btn-icon (definido acima — mesmo do botão "denunciar").
   Aqui só: layout da linha, os botões preenchidos de aprovar/recusar, e os tamanhos por variante. */
.item-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.item-action-form { display: inline; margin: 0; padding: 0; line-height: 0; }
/* Em cards (categorias/subcategorias): ações inline à direita, sem encolher nem quebrar.
   O texto do card é que encolhe (settings-card-main tem min-width:0). */
.settings-card > .item-actions { flex: 0 0 auto; flex-wrap: nowrap; }
/* Aprovar/Recusar = preenchidos, ícone + texto, mesma altura do .btn-icon (34px) */
.btn-action-approve, .btn-action-reject {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; font-size: 0.85rem; line-height: 1; text-decoration: none;
  transition: filter .15s ease, transform .05s ease;
}
.btn-action-approve:active, .btn-action-reject:active { transform: scale(.96); }
.btn-action-approve { background: var(--success); color: #fff; }
.btn-action-reject  { background: var(--danger); color: #fff; }
/* Variante compacta — thumbnails / grids estreitos (ex.: figurinhas): tudo só ícone, menor */
.item-actions--compact { gap: 5px; }
.item-actions--compact .btn-icon { width: 30px; height: 30px; font-size: .85rem; }
.item-actions--compact .btn-action-approve,
.item-actions--compact .btn-action-reject { width: 30px; height: 30px; padding: 0; }
.item-actions--compact .btn-action-approve span,
.item-actions--compact .btn-action-reject span { display: none; }
/* Variante overlay (sobre thumbnail) */
.item-actions--overlay { position: absolute; top: 6px; right: 6px; gap: 6px; }
.item-actions--overlay .btn-icon { background: rgba(0,0,0,.55); color: #fff; border-color: transparent; }

/* --- Fórum --- */
/* body tem text-align:center global; .settings-card-text não sobrescreve e
   herda center. Nas páginas do fórum queremos os cards alinhados à esquerda. */
.forum-home .settings-card-text,
.forum-page .settings-card-text { text-align: left; }
/* Card de tópico destacado (is_pinned): faixa dourada à esquerda, leve tom de
   fundo e selo "Destacado" — mais forte que o antigo alfinete solto. */
.forum-topic-card--pinned {
    border-color: color-mix(in srgb, var(--warning) 45%, transparent);
    background: color-mix(in srgb, var(--warning) 9%, var(--card-bg, rgba(0,0,0,0.02)));
    box-shadow: inset 3px 0 0 var(--warning);
}
.forum-topic-card--pinned:hover {
    border-color: var(--warning);
    box-shadow: inset 3px 0 0 var(--warning), 0 2px 10px rgba(0, 0, 0, 0.06);
}
.forum-topic-card--pinned .settings-card-icon { background: var(--warning); color: #4a3600; }
.forum-destaque-pill {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.66em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #a97a00; background: color-mix(in srgb, var(--warning) 22%, transparent);
    padding: 2px 8px; border-radius: 999px; margin-bottom: 2px;
}
html[data-theme="dark"] .forum-destaque-pill { color: #f5c542; }
/* Card de categoria inativa (recuperação): visual apagado + botão reativar. */
.forum-inactive-card { opacity: 0.85; border-style: dashed; }
.forum-inactive-card .settings-card-icon { background: var(--text-muted-color, #888); }
.forum-inactive-card .btn-wap-small { flex: 0 0 auto; }
.forum-post--original { border-left: 3px solid var(--accent-color, #6a5acd); padding-left: 10px; }
.forum-post--pinned { border-left: 3px solid var(--warning); }
/* Respiro inferior hierárquico: card mais raso (resposta ao tópico) é maior e
   termina mais embaixo; a resposta a resposta é menor e termina antes, e assim
   por diante — reforça a hierarquia. A linha de thread é o ::before de
   .comment-replies (mural_listagens.css); aqui não há border-left. */
.comment-replies.forum-replies { gap: 0; padding-right: 10px; }
.forum-replies-root > .forum-post { margin-bottom: 18px; }
.comment-replies > .forum-post { margin-bottom: 11px; }
.comment-replies .comment-replies > .forum-post { margin-bottom: 6px; }
.forum-search-tabs a.is-active, .btn-wap-small.is-active { background: var(--accent-color, #6a5acd); color: #fff; }

/* Links de navegação da home do fórum (rascunhos/arquivados/nova categoria):
   linha que quebra, não empilhados como os CTAs de .settings-actions. */
.forum-home-actions {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 16px; margin-bottom: 28px;
}
.forum-new-category { display: flex; justify-content: center; margin: 6px 0 24px; }
.forum-topic-actions { margin: 10px 0; }
.forum-topic-actions .btn-icon.is-active { color: var(--warning) !important; }
.btn-forum-pin.is-pinned { color: var(--link-color) !important; transform: rotate(45deg); }
.forum-pinned-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.72em; font-weight: 600; color: var(--warning);
    margin-left: 6px;
}

/* ===== Autocomplete de usuário (gift/transfer/typeahead) ===== */
.gift-ta { position: relative; }
.gift-ta-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 5;
    margin: 2px 0 0; padding: 4px; list-style: none; max-height: 220px; overflow-y: auto;
    background: var(--card-bg); border: 1px solid color-mix(in srgb, var(--text-color) 22%, transparent);
    border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.gift-ta-results li { display: flex; align-items: center; gap: 8px; padding: 7px 8px;
    border-radius: 6px; cursor: pointer; font-size: .9rem; color: var(--text-color); }
.gift-ta-results li:hover, .gift-ta-results li.active {
    background: color-mix(in srgb, var(--text-color) 8%, transparent); }
.gift-ta-results img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.gift-ta-results .gift-ta-empty { justify-content: center; color: var(--text-muted-color); cursor: default; }
.gift-ta-results .gift-ta-empty:hover { background: none; }

/* Chamados de suporte (F4) */
.chamados-list { display: flex; flex-direction: column; gap: 12px; }
.chamado-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 16px; }
.chamado-card--open { border-left: 3px solid var(--danger-color); }
.chamado-card--resolved { border-left: 3px solid var(--success-color); opacity: 0.8; }
.chamado-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.85rem; }
.chamado-user { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text-color); text-decoration: none; }
.chamado-user .avatar-container { width: 32px; height: 32px; }
.chamado-user .avatar-orb { width: 28px; height: 28px; margin: 2px; }
.chamado-date { color: var(--text-muted-color); margin-left: auto; }
.chamado-atendente { color: var(--text-muted-color); }
.chamado-resolved-at { color: var(--text-muted-color); font-size: 0.8rem; }
.chamado-resumo { margin: 0 0 10px; padding: 8px 12px; background: var(--bg-secondary); border-left: 3px solid var(--border-color); border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--text-muted-color); white-space: pre-wrap; word-break: break-word; }
.chamado-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Métricas do Estagiário (F5) */
.bot-daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0 2px 4px;
}
.bot-daily-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bot-daily-bar-track {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: flex-end;
}
.bot-daily-bar {
    width: 100%;
    min-height: 4px;
    background: var(--primary-color-start);
    border-radius: 4px 4px 0 0;
}
.bot-daily-label {
    font-size: 0.7em;
    color: var(--text-muted-color);
    white-space: nowrap;
}
.bot-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bot-question-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--mural-item-bg);
    border-radius: 8px;
    font-size: 0.9rem;
}
.bot-question-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-color);
}

/* --- Importador de pack .wastickers --- */
.import-pack-result {
    background: var(--card-bg);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: .9rem;
}
.import-pack-result p { margin: 0; }
.import-pack-ok-icon { color: var(--success); }
.import-pack-err-icon { color: var(--danger); }
.import-pack-result--error { border-color: var(--danger); }
.import-pack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.import-pack-erros-summary {
    font-size: .85rem;
    cursor: pointer;
    color: var(--text-muted-color);
}
.import-pack-erros-list {
    font-size: .8rem;
    margin: 6px 0 0 16px;
    color: var(--text-muted-color);
}
.import-descricao {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}
.import-progress {
    margin: 4px 0;
}
.import-progress-track {
    height: 8px;
    background: var(--card-border, rgba(0,0,0,.12));
    border-radius: 4px;
    overflow: hidden;
}
.import-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    min-width: 4px;
}
.import-progress-label {
    margin-top: 4px;
    font-size: .78rem;
    color: var(--text-muted-color);
}
.import-contadores {
    display: flex;
    gap: 14px;
    font-size: .82rem;
    margin: 0;
}
.import-contador-ok { color: var(--success); }
.import-contador-dup { color: var(--text-muted-color); }


/* Conquistas — card de medalha.
   Nasceu no extrato de gameficação (`.pts-conq`) e virou componente global em
   2026-08-07, quando o painel do Jogo da Memória passou a mostrar as mesmas
   medalhas: a definição visual é UMA só, cada página só monta a grade.
   `.on` = desbloqueada; travada fica cinza. `.progresso` é opcional (o extrato
   não usa) e mostra quanto falta pra meta. */
.conquistas-grade {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.conquista-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-color);
    text-align: center;
    opacity: .45;
    filter: grayscale(1);
}
.conquista-card.on {
    opacity: 1;
    filter: none;
    background: color-mix(in srgb, var(--primary-color-start) 7%, transparent);
    border-color: color-mix(in srgb, var(--primary-color-start) 40%, transparent);
}
.conquista-card .ico { font-size: 1.9rem; }
.conquista-card .nome { font-weight: 650; font-size: .92rem; margin-top: 4px; }
.conquista-card .desc { font-size: .78rem; color: var(--text-muted-color); margin-top: 2px; }
.conquista-card .progresso {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted-color);
    margin-top: 6px;
}
.conquista-card.on .progresso { color: var(--link-color); }

/* [youtube] do BBCode: capa 16:9 (Shorts em pé) que vira o player no toque.
   Tamanho de prévia (280px / Shorts 150px), decisão do Jonas em 2026-10-13:
   na largura toda do card, vários vídeos seguidos viravam um muro; a tela
   cheia continua no botão do player (static/js/bbcode_youtube.js). <span> com display:block porque o BBCode
   também é renderizado dentro de <p> e <a>. */
.bb-youtube {
    display: block;
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 16 / 9;
    margin: 6px auto;
    border-radius: 12px;
    overflow: hidden;
    background: color-mix(in srgb, var(--text-color) 10%, transparent);
}
.bb-youtube--short { max-width: 150px; aspect-ratio: 9 / 16; }
.bb-youtube-capa {
    display: block;
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.bb-youtube-capa img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
}
.bb-youtube-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 36px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    background: var(--social-youtube);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.bb-youtube-play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--social-youtube-texto);
}
.bb-youtube-capa:active .bb-youtube-play { transform: translate(-50%, -50%) scale(0.94); }
.bb-youtube-capa:focus-visible { outline: 3px solid var(--link-color); outline-offset: -3px; }
.bb-youtube-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   Barra de proporção (painéis com número + barra: funil, páginas acessadas)
   A largura vem do backend: style="width: N%" no .barra-proporcao-valor.
   ========================================================================== */
.barra-proporcao {
    height: 10px;
    margin-top: 6px;
    border-radius: 5px;
    background: var(--line);
    overflow: hidden;
}
.barra-proporcao-valor {
    display: block;
    height: 100%;
    border-radius: 5px;
    background: var(--link-color);
}
