/**
 * ==============================================================================
 * ESTILOS DO PORTAL DA MILITÂNCIA & GESTÃO - COLETIVO SOCIALISTA CAPIXABA
 * Cores Principais: #c8102e, #e01a22, #0d0f15, #161824, #f59e0b
 * ==============================================================================
 */

:root {
    --bg-dark: #090a0f;
    --bg-card: #12141d;
    --bg-card-subtle: #181b26;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-red: rgba(224, 26, 34, 0.35);
    --red-primary: #e01a22;
    --red-text: #ff5c63;
    --red-dark: #991b1b;
    --gold: #f59e0b;
    --green: #059669;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Anton', 'Bebas Neue', sans-serif;
    --font-title: 'Anton', 'Bebas Neue', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-elevated: 0 10px 28px -6px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(224, 26, 34, 0.38);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

body {
    background-color: var(--bg-dark);
    color: #f3f4f6;
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    scrollbar-color: rgba(255, 255, 255, 0.16) var(--bg-dark);
    scrollbar-width: thin;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: rgba(9, 10, 15, 0.6);
}

body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: rgba(224, 26, 34, 0.55);
}

.tab-counter-badge,
.event-mini-date-badge,
.evento-date-badge,
.cal-day-num,
.user-stars-badge {
    font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* NAVBAR */
.portal-navbar {
    background: rgba(13, 15, 21, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.85rem 1.25rem;
}

.portal-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.portal-brand-logo {
    height: 38px;
    width: auto;
}

.portal-brand-text {
    display: flex;
    flex-direction: column;
}

.portal-brand-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1;
}

.portal-brand-badge {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--red-text);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-user-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-meta-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-greeting {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.user-role-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    background: rgba(224, 26, 34, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(224, 26, 34, 0.4);
}

.user-stars-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 800;
}

.btn-portal-logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #d1d5db;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-portal-logout:hover {
    background: rgba(224, 26, 34, 0.25);
    border-color: var(--red-primary);
    color: #ffffff;
}

/* MAIN WRAPPER */
.portal-main-wrapper {
    max-width: 1200px;
    margin: 2rem auto 5rem;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

/* AUTH SECTION (LOGIN CARD) */
.auth-section-card {
    max-width: 460px;
    margin: 3rem auto;
}

.auth-card-inner {
    background: linear-gradient(145deg, #161824, #0e1017);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.auth-badge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(224, 26, 34, 0.25), rgba(224, 26, 34, 0.05));
    border: 1px solid var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-primary);
    font-size: 1.6rem;
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.auth-card-title span {
    color: var(--red-primary);
}

.auth-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

/* FORM ELEMENTS */
.auth-form-styled {
    text-align: left;
}

.form-group-item {
    margin-bottom: 1.15rem;
}

.form-label-styled {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.4rem;
}

.input-styled,
.select-styled {
    width: 100%;
    background: #0d0f15;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.input-styled:focus,
.select-styled:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(224, 26, 34, 0.25);
}

.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-password-wrap .input-styled {
    padding-right: 2.85rem !important;
}

.btn-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: color 0.2s ease;
}

.btn-toggle-pass:hover {
    color: #ffffff;
}

.login-footer-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.link-forgot-pass {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.link-forgot-pass:hover {
    color: var(--red-primary);
}

.btn-portal-submit,
.btn-action-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border: none;
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(224, 26, 34, 0.4);
    transition: all 0.2s ease;
}

.btn-action-primary {
    width: auto;
}

.btn-portal-submit:hover,
.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 26, 34, 0.6);
}

.auth-card-divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0 1.25rem;
}

.auth-card-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-card-divider span {
    position: relative;
    background: #12141d;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.auth-register-cta p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.btn-register-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-register-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* ALERT BOX */
.portal-alert-box {
    background: rgba(224, 26, 34, 0.12);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.portal-alert-box.alert-pending {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.portal-alert-box.alert-pending .alert-icon {
    color: var(--gold);
}

.alert-icon {
    color: var(--red-primary);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.alert-content strong {
    display: block;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.alert-content p {
    font-size: 0.82rem;
    color: #d1d5db;
    line-height: 1.4;
    margin: 0;
}

/* TABS NAVIGATION */
.portal-tabs-nav {
    display: flex;
    gap: 0.5rem;
    background: rgba(18, 20, 29, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: var(--red-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 26, 34, 0.35);
}

.tab-counter-badge {
    background: #ffffff;
    color: var(--red-primary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.tab-btn.active .tab-counter-badge {
    background: #000000;
    color: #ffffff;
}

/* TAB PANES */
.tab-content-pane {
    display: none;
}

.tab-content-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MEMBRO LAYOUT (MEU ESPAÇO) - RESPONSIVO E PREENCHIMENTO TOTAL */
.membro-grid-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

@media (max-width: 1024px) {
    .membro-grid-layout {
        grid-template-columns: 1fr;
    }
}

.card-membro-box,
.card-militante-box {
    background: linear-gradient(160deg, #161824, #0d0f15);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.carteirinha-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.carteirinha-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(224, 26, 34, 0.2);
    border: 2px solid var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.membro-nome {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #ffffff;
    line-height: 1.1;
}

.membro-social {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.membro-role-tag {
    display: inline-block;
    margin-top: 0.35rem;
    background: rgba(224, 26, 34, 0.25);
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.carteirinha-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 0.45rem;
}

.detail-lbl {
    color: var(--text-muted);
}

.detail-val {
    color: #ffffff;
    font-weight: 700;
    text-align: right;
}

.text-red {
    color: #f87171 !important;
}

.text-gold {
    color: var(--gold) !important;
}

.text-green {
    color: var(--green) !important;
}

/* STARS SCORE PANEL */
.membro-stars-panel {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.stars-score-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.4rem;
}

.stars-icon-large {
    font-size: 2.2rem;
}

.stars-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.stars-sub {
    font-size: 0.75rem;
    color: #fef3c7;
    font-weight: 700;
}

.stars-motivo-dica {
    font-size: 0.72rem;
    color: #d1d5db;
    margin: 0;
    line-height: 1.4;
}

/* ASSIDUIDADE */
.membro-assiduidade-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.assiduidade-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.assiduidade-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.assiduidade-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red-primary), var(--green));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.assiduidade-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.assiduidade-stats-row strong {
    color: #ffffff;
}

/* FEED COLUMN - GRID DE 2 COLUNAS PARA PREENCHER TELAS LARGAS */
.membro-feed-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
    width: 100%;
}

.clube-livro-box {
    grid-column: 1 / -1;
}

@media (max-width: 1250px) {
    .membro-feed-column {
        grid-template-columns: 1fr;
    }
}

.feed-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.feed-card-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.feed-card-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

/* ESTRELAS LIST */
.estrela-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

.estrela-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.estrela-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.estrela-qtd {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.9rem;
}

.estrela-cat-pill {
    font-size: 0.68rem;
    background: rgba(245, 158, 11, 0.15);
    color: #fef3c7;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.estrela-data {
    font-size: 0.72rem;
    color: #9ca3af;
}

.estrela-motivo {
    font-size: 0.82rem;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.4;
}

/* EVENTOS LIST */
.evento-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
    gap: 1rem;
    transition: all 0.2s ease;
}

.evento-item-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

.evento-date-badge {
    background: rgba(224, 26, 34, 0.15);
    border: 1px solid rgba(224, 26, 34, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.6rem;
    text-align: center;
    min-width: 55px;
}

.evento-date-day {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #ffffff;
    line-height: 1;
}

.evento-date-month {
    font-size: 0.65rem;
    font-weight: 800;
    color: #f87171;
    text-transform: uppercase;
}

.evento-info h4 {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.evento-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
}

/* COMPANHEIROS LIST */
.companheiros-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.comp-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comp-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.comp-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.btn-whatsapp-comp {
    color: var(--green);
    background: rgba(16, 185, 129, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-whatsapp-comp:hover {
    background: var(--green);
    color: #ffffff;
}

/* ADMIN PANES */
.admin-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pane-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pane-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pane-stats-pill {
    background: rgba(224, 26, 34, 0.15);
    border: 1px solid var(--border-red);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

/* PRÉ-MEMBROS LIST */
.pre-membro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}

.pre-membro-card:hover {
    border-color: rgba(224, 26, 34, 0.4);
}

.pre-membro-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pre-membro-ident h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.pre-membro-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pre-tag {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    color: #d1d5db;
}

.pre-membro-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-aprovar-membro {
    background: var(--green);
    border: none;
    color: #ffffff;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-aprovar-membro:hover {
    background: #059669;
}

.btn-recusar-membro {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #ef4444;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-recusar-membro:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

.pre-membro-grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.pre-info-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.pre-info-item strong {
    color: #ffffff;
}

.pre-membro-statement {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    color: #d1d5db;
    line-height: 1.5;
}

/* NÚCLEOS GRID */
.nucleos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.nucleo-card-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nucleo-badge-tipo {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.65rem;
}

.tipo-territorial {
    background: rgba(224, 26, 34, 0.18);
    color: #f87171;
    border: 1px solid rgba(224, 26, 34, 0.3);
}

.tipo-clube {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.tipo-tematico {
    background: rgba(168, 85, 247, 0.15);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.nucleo-card-box h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.nucleo-card-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.nucleo-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    font-size: 0.8rem;
    color: #d1d5db;
}

/* CHAMADA SHEET */
.chamada-control-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.chamada-sheet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.chamada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.chamada-header h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.chamada-table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.chamada-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.chamada-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
}

.chamada-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: #ffffff;
}

.btn-status-group {
    display: inline-flex;
    gap: 0.35rem;
}

.btn-pres-opt {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s;
}

.btn-pres-opt.active-presente {
    background: var(--green);
    border-color: var(--green);
    color: #ffffff;
}

.btn-pres-opt.active-justificada {
    background: var(--gold);
    border-color: var(--gold);
    color: #000000;
}

.btn-pres-opt.active-falta {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #ffffff;
}

/* ESTRELAS ADMIN LAYOUT */
.estrelas-admin-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .estrelas-admin-layout {
        grid-template-columns: 1fr;
    }
}

.estrelas-form-card,
.estrelas-feed-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.estrelas-form-card h3,
.estrelas-feed-card h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.65rem;
}

/* MODAL */
.portal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.25rem;
}

.portal-modal-box {
    background: #141620;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.portal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.portal-modal-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.portal-modal-body {
    padding: 1.5rem;
}

.modal-actions-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
}

.btn-modal-confirm {
    background: var(--green);
    border: none;
    color: #ffffff;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* TOAST */
.toast-notice {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #181b26;
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.toast-notice.show {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   EXTENSÕES VISUAIS: NÚCLEOS, CLUBES DO LIVRO, EVENTOS & GAMIFICAÇÃO
   ============================================================================= */

/* Badges de Núcleos na Carteirinha */
.membro-nucleos-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.badge-nucleo-item {
    display: inline-block;
    background: rgba(224, 26, 34, 0.15);
    border: 1px solid rgba(224, 26, 34, 0.4);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* Card do Clube do Livro (Destaque Literário) */
.clube-livro-box {
    border-color: rgba(245, 158, 11, 0.35) !important;
    background: linear-gradient(145deg, rgba(24, 27, 38, 0.95), rgba(18, 20, 29, 0.95)) !important;
}

.badge-livro-status {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.clube-livro-content {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding-top: 0.5rem;
}

.livro-capa-simbolica {
    width: 58px;
    height: 78px;
    background: linear-gradient(135deg, #b45309, #78350f);
    border: 2px solid #f59e0b;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fef3c7;
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    flex-shrink: 0;
}

.livro-detalhes-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.livro-autor-tag {
    display: inline-block;
    color: #f59e0b;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.livro-reuniao-texto {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Filtros de Eventos */
.flex-header-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.eventos-filter-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    max-width: 100%;
}

.btn-evt-filter {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-evt-filter:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-evt-filter.active {
    background: var(--red-primary);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Badges de Visibilidade de Eventos */
.badge-visibilidade {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.badge-vis-publico {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-vis-geral {
    background: rgba(224, 26, 34, 0.15);
    color: #f87171;
    border: 1px solid rgba(224, 26, 34, 0.35);
}

.badge-vis-nucleo {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Botão RSVP de Confirmação de Presença */
.btn-rsvp {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #d1d5db;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-rsvp:hover {
    border-color: var(--green);
    color: #ffffff;
}

.btn-rsvp.confirmed {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--green);
    color: #34d399;
}

/* Botões do Painel Administrativo */
.admin-actions-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-action-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s;
}

.btn-action-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Tags de Especialidade nos Cards dos Núcleos */
.nucleo-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.65rem 0 1rem;
}

.tag-subarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Ações de Gestão de Núcleo (Editar / Remover) */
.nucleo-actions-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.btn-action-edit,
.btn-action-delete {
    padding: 0.3rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-action-edit {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.btn-action-edit:hover {
    background: #3b82f6;
    color: #ffffff;
}

.btn-action-delete {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.btn-action-delete:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Divisória de Abas */
.tabs-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.4rem;
    align-self: center;
}


/* ==========================================================================
   SISTEMA DE PERFIL ROBUSTO, AVATAR & IMPORTAÇÃO DE PLANILHA
   ========================================================================== */

/* Botão Editar Perfil na Carteirinha */
.btn-editar-perfil-full {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(224, 26, 34, 0.12);
    border: 1px solid var(--border-red);
    color: #ffffff;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--trans-fast);
}

.btn-editar-perfil-full:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 26, 34, 0.3);
}

/* Avatar na Barra Superior */
.user-meta-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background var(--trans-fast);
}

.user-meta-summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 2px solid var(--red-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Avatar da Carteirinha Digital */
.carteirinha-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card-light);
    border: 2px solid var(--border-red);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--red-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carteirinha-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal de Edição de Perfil: Uploader de Foto */
.perfil-avatar-uploader {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.avatar-preview-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--red-primary);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.55);
    color: var(--text-muted);
    font-size: 2rem;
}

.avatar-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btns {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.avatar-upload-btns .btn-file-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.avatar-upload-btns .btn-file-select:hover {
    background: var(--border-red);
    border-color: var(--red-primary);
}

.avatar-tip {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Alerta de Privacidade e Dados Sensíveis */
.privacy-alert-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #93c5fd;
    line-height: 1.4;
}

.privacy-alert-box i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Switches de Privacidade de Contato e Redes */
.privacy-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.privacy-toggle-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.privacy-toggle-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
}

.privacy-toggle-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.switch-label {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch-label input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #374151;
    transition: .3s;
    border-radius: 24px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-label input:checked + .slider-round {
    background-color: var(--red-primary);
}

.switch-label input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* Grid de Endereço */
.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.address-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .address-grid,
    .address-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Barra de Ações de Pré-Membros (Importação da Planilha) */
.pre-membros-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.btn-import-sheet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-import-sheet:hover {
    background: #047857;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sync-webhook {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-sync-webhook:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Companheiro Card Atualizado (com Avatar e Acesso a Perfil Público) */
.companheiro-card {
    cursor: pointer;
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.companheiro-card:hover {
    border-color: var(--border-red);
    transform: translateY(-2px);
}

.companheiro-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-dim);
    flex-shrink: 0;
}

.companheiro-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal de Visualização de Perfil Público */
.perfil-publico-box {
    text-align: center;
    padding: 1rem 0;
}

.perfil-publico-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--red-primary);
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    font-size: 2.2rem;
    color: var(--text-muted);
    box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.55);
}

.perfil-publico-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfil-publico-nome {
    font-family: var(--font-title);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin: 0;
}

.perfil-publico-social {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.1rem;
}

.perfil-publico-role {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.2rem 0.65rem;
    background: rgba(224, 26, 34, 0.15);
    border: 1px solid var(--border-red);
    color: #fca5a5;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.perfil-publico-bio {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #d1d5db;
    text-align: left;
    line-height: 1.5;
}

.perfil-publico-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    text-align: left;
    margin-top: 1rem;
}

.perfil-publico-item {
    background: var(--bg-card);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    font-size: 0.8rem;
}

.perfil-publico-item span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.perfil-publico-item strong {
    color: #ffffff;
    font-weight: 600;
}


/* ==========================================================================
   SISTEMA COMPLETO: NÚCLEOS, CLUBES, SPOILERS, EVENTOS & AMBIENTES
   ========================================================================== */

/* Botão Godmode do Diretor-Geral */
.tab-btn.godmode-btn {
    border: 1px solid rgba(224, 26, 34, 0.4);
    background: rgba(224, 26, 34, 0.1);
    color: #fca5a5;
    font-weight: 700;
}

.tab-btn.godmode-btn:hover,
.tab-btn.godmode-btn.active {
    background: var(--red-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(224, 26, 34, 0.35);
}

/* Grids de Núcleos e Clubes */
.nucleos-catalog-grid,
.clubes-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.nucleo-catalog-card,
.clube-catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
}

.nucleo-catalog-card:hover,
.clube-catalog-card:hover {
    border-color: var(--border-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.card-badge-status-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-participando {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-nao-participando {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.card-catalog-title {
    font-size: 1.15rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-catalog-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin-bottom: 0.85rem;
    flex-grow: 1;
}

.card-catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.catalog-tag-item {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.card-catalog-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.85rem;
    flex-wrap: wrap;
}

.btn-open-ambient {
    flex: 1;
    background: var(--red-primary);
    border: 1px solid var(--border-red);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--trans-fast);
}

.btn-open-ambient:hover {
    background: #c8102e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 26, 34, 0.3);
}

.btn-action-leave-nucleo {
    background: rgba(224, 26, 34, 0.1);
    border: 1px solid rgba(224, 26, 34, 0.3);
    color: #fca5a5;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-action-leave-nucleo:hover {
    background: rgba(224, 26, 34, 0.25);
    color: #ffffff;
}

.btn-action-join-nucleo {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-action-join-nucleo:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* ==========================================================================
   AMBIENTE COMPLETO DE NÚCLEO E CLUBE (LAYOUT PRINCIPAL REFINADO)
   ========================================================================== */
.ambiente-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(380px, 440px);
    gap: 1.5rem;
    margin-top: 1.25rem;
    align-items: start;
}

@media (max-width: 1080px) {
    .ambiente-layout {
        grid-template-columns: 1fr;
    }
}

.ambiente-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ambiente-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Abas Internas de Navegação do Núcleo (Mural vs Demandas) */
.nucleo-subtabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.nucleo-subtab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.nucleo-subtab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.nucleo-subtab-btn.active {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.35);
}

/* Mini Cards de Eventos do Núcleo (Design Resumido e Responsivo) */
.nucleo-events-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nucleo-event-mini-card {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.95rem;
    display: flex;
    gap: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.nucleo-event-mini-card:hover {
    background: #151824;
    border-color: rgba(224, 26, 34, 0.45);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.event-mini-date-badge {
    width: 48px;
    height: 52px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-mini-date-badge .day {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.event-mini-date-badge .month {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}

.event-mini-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-mini-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
}

.badge-mini-format {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.14rem 0.48rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-mini-format.presencial {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.badge-mini-format.digital {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.event-mini-time {
    color: #94a3b8;
    font-weight: 600;
}

.event-mini-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.1rem 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-mini-loc {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-mini-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.event-mini-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-rsvp-quick {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.btn-rsvp-quick:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: #ffffff;
}

.btn-rsvp-quick.confirmed {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.ambiente-header-card {
    background: linear-gradient(145deg, #181a26, #0e1017);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-elevated);
}

.ambiente-header-title {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #ffffff;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ambiente-header-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

/* Feed de Discussões */
.feed-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.feed-box-title {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.feed-publish-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-publish-textarea {
    width: 100%;
    min-height: 75px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #ffffff;
    padding: 0.75rem;
    font-size: 0.85rem;
    resize: vertical;
    font-family: inherit;
}

.feed-publish-textarea:focus {
    outline: none;
    border-color: var(--border-red);
}

.feed-publish-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.spoiler-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #fbbf24;
    cursor: pointer;
    user-select: none;
}

.btn-publish-feed {
    padding: 0.45rem 1rem;
    background: var(--red-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background var(--trans-fast);
}

.btn-publish-feed:hover {
    background: #c8102e;
}

/* Mensagens do Feed */
.feed-messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.feed-msg-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.feed-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.feed-msg-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
}

.feed-msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid var(--border-light);
}

.feed-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-msg-body {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.btn-feed-delete {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-feed-delete:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Proteção de Spoiler com Clique para Revelar */
.spoiler-hidden-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.spoiler-hidden-box:hover {
    background: rgba(245, 158, 11, 0.18);
}

.spoiler-hidden-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fde68a;
}

.spoiler-revealed-text {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.85rem;
    color: #ffffff;
}

/* Membros da Barra Lateral do Ambiente */
.ambiente-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.ambiente-member-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.ambiente-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ambiente-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Temático do Clube (Livro, Filme, Esporte) */
.clube-thematic-showcase {
    background: linear-gradient(145deg, #1c1f2e, #11131a);
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .clube-thematic-showcase {
        flex-direction: column;
    }
}

.clube-cover-visual {
    width: 140px;
    min-height: 190px;
    background: #0d0e14;
    border: 2px solid var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.clube-cover-visual i {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.clube-thematic-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.clube-thematic-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    color: #ffffff;
    margin: 0;
}

.clube-thematic-author {
    font-size: 0.9rem;
    color: var(--gold);
    margin: 0.2rem 0 0.75rem;
}

.clube-thematic-synopsis {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.clube-thematic-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-clube-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--trans-fast);
}

.btn-link-biblioteca {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
}

.btn-link-biblioteca:hover {
    background: #f59e0b;
    color: #111;
}

.btn-link-compra {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #ffffff;
}

.btn-link-compra:hover {
    border-color: #ffffff;
}

.btn-link-meet {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.btn-link-meet:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Modal Onboarding de Primeiro Acesso */
.onboarding-nucleo-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--trans-fast);
    margin-bottom: 0.75rem;
}

.onboarding-nucleo-card:hover {
    border-color: var(--border-red);
    background: rgba(224, 26, 34, 0.04);
}

.onboarding-nucleo-card.selected {
    border-color: var(--red-primary);
    background: rgba(224, 26, 34, 0.08);
    box-shadow: 0 8px 22px -4px rgba(0, 0, 0, 0.55);
}

.onboarding-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    accent-color: var(--red-primary);
    cursor: pointer;
}


/* ==========================================================================
   SISTEMA DE NOTIFICAÇÕES (SININHO), BIBLIOTECA, ENQUETES, KANBAN E CERTIFICADOS
   ========================================================================== */

/* Sininho de Notificações */
.btn-notificacoes-bell {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: #e2e8f0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-notificacoes-bell:hover {
    background: var(--bg-card-light);
    border-color: var(--border-red);
    color: #ffffff;
}

.bell-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--red-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* Painel Suspenso de Notificações */
.notificacoes-dropdown-box {
    position: absolute;
    top: 55px;
    right: 15px;
    width: 340px;
    background: #11131c;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(224, 26, 34, 0.1);
    border-bottom: 1px solid var(--border-light);
}

.notif-dropdown-header h4 {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-mark-all-read {
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: underline;
}

.notif-dropdown-list {
    max-height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    transition: background var(--trans-fast);
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.nao-lida {
    background: rgba(224, 26, 34, 0.06);
}

.notif-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.notif-item-msg {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.notif-item-time {
    font-size: 0.68rem;
    color: var(--text-dim);
}

/* Biblioteca Digital CSC */
.biblioteca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.obra-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--trans-fast);
}

.obra-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.obra-header-media {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    margin: 0.45rem 0 0.6rem;
}

.obra-capa-thumb {
    width: 76px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f1118;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.4rem;
}

.obra-capa-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.obra-categoria-tag {
    font-size: 0.7rem;
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.obra-titulo {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.obra-autor {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.obra-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Enquetes de Núcleo */
.enquete-card-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.enquete-titulo {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.enquete-opcoes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.enquete-opcao-btn {
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--trans-fast);
    position: relative;
    overflow: hidden;
}

.enquete-opcao-btn:hover {
    background: rgba(224, 26, 34, 0.1);
    border-color: var(--border-red);
}

.enquete-opcao-progress {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(224, 26, 34, 0.2);
    z-index: 1;
    transition: width 0.4s ease;
}

.enquete-opcao-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Kanban da Agência de Comunicação */
.kanban-board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 800px) {
    .kanban-board-grid {
        grid-template-columns: 1fr;
    }
}

.kanban-col {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-col-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kanban-task-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.task-tag-area {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.tag-area-design { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.tag-area-audiovisual { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tag-area-redacao { background: rgba(245, 158, 11, 0.15); color: #fde68a; }
.tag-area-redes { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

.task-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.task-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

.task-action-btn {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    align-self: flex-start;
    transition: background var(--trans-fast);
}

.btn-assumir-tarefa {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-assumir-tarefa:hover {
    background: #3b82f6;
    color: #ffffff;
}

.btn-concluir-tarefa {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-concluir-tarefa:hover {
    background: #047857;
    color: #ffffff;
}

/* Certificado Digital Oficial */
.certificado-moldura {
    background: #ffffff;
    color: #1a1a1a;
    padding: 2.5rem;
    border: 8px double #c8102e;
    border-radius: 4px;
    position: relative;
    font-family: 'Georgia', serif;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.cert-header-title {
    font-family: var(--font-heading);
    color: #c8102e;
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 0.2rem;
    text-transform: uppercase;
}

.cert-sub {
    font-size: 0.9rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.75rem;
}

.cert-body-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1f2937;
    margin: 1.5rem 0;
}

.cert-membro-destaque {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    border-bottom: 2px solid #c8102e;
    display: inline-block;
    padding: 0 0.5rem 0.2rem;
}

.cert-footer-assinaturas {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
    border-top: 1px solid #d1d5db;
    padding-top: 1.25rem;
}

.cert-assinatura-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #374151;
}

.cert-codigo-autenticidade {
    margin-top: 1.5rem;
    font-size: 0.7rem;
    color: #94a3b8;
    font-family: monospace;
}

/* ==========================================================================
   NOVA BARRA LATERAL RECOLHÍVEL & AÇÕES DE TOPO (CSC PORTAL DE MEMBROS)
   ========================================================================== */

/* Topo Canto Superior Direito: Notificações em Destaque */
.portal-topbar-actions {
    position: fixed;
    top: 1.15rem;
    right: 1.5rem;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-notificacoes-bell {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 20, 29, 0.92);
    border: 1px solid rgba(224, 26, 34, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    position: relative;
}

.btn-notificacoes-bell:hover {
    background: rgba(224, 26, 34, 0.25);
    border-color: var(--red-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(224, 26, 34, 0.4);
}

.btn-notificacoes-bell .bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #090a0f;
    box-shadow: 0 0 8px rgba(224, 26, 34, 0.8);
}

/* Sidebar Container - SUPERFÍCIE ÚNICA, LIMPA E SEM CAMADAS */
.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    background: #090a0f !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Estado Recolhido (64px) */
.portal-sidebar.collapsed {
    width: 64px !important;
}

/* Estado Expandido (250px) */
.portal-sidebar.expanded {
    width: 250px !important;
}

/* Topo / Header da Sidebar */
.sidebar-header {
    height: 62px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
    flex-shrink: 0;
}

.portal-sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.sidebar-brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.sidebar-brand-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1;
}

.sidebar-brand-sub {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--red-primary);
    margin-top: 3px;
}

.portal-sidebar.collapsed .sidebar-brand-text,
.portal-sidebar.collapsed .btn-toggle-sidebar {
    display: none !important;
}

/* Botão sutil de recolher no cabeçalho */
.btn-toggle-sidebar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-toggle-sidebar:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* Navegação da Sidebar: SEM caixa flutuante, SEM fundos aninhados */
.sidebar-nav,
.portal-tabs-nav.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.5rem !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    scrollbar-width: none;
}
.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-section-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #94a3b8;
    text-transform: uppercase;
    padding: 0.85rem 0.75rem 0.25rem;
}

.portal-sidebar.collapsed .sidebar-section-label {
    display: none !important;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0.5rem;
}

/* Itens de Menu / Botões de Aba */
.sidebar-nav .tab-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: left;
    transition: all 0.15s ease;
    position: relative;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.portal-sidebar.expanded .sidebar-nav .tab-btn {
    height: 38px;
    padding: 0 0.85rem;
    gap: 0.8rem;
    width: 100%;
}

.portal-sidebar.collapsed .sidebar-nav .tab-btn {
    width: 44px;
    height: 44px;
    margin: 0.1rem auto;
    padding: 0;
    justify-content: center;
}

.portal-sidebar.collapsed .sidebar-nav .tab-btn .tab-label {
    display: none !important;
}

.sidebar-nav .tab-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Item Ativo Limpo: Vermelho CSC discreto e sofisticado */
.sidebar-nav .tab-btn.active {
    color: #ffffff !important;
    background: rgba(224, 26, 34, 0.12) !important;
}

.portal-sidebar.expanded .sidebar-nav .tab-btn.active {
    padding-left: calc(0.85rem - 3px);
}

.portal-sidebar.collapsed .sidebar-nav .tab-btn.active {
    background: rgba(224, 26, 34, 0.18) !important;
}

.tab-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
    position: relative;
}

.sidebar-nav .tab-btn.active .tab-icon-wrap {
    color: #ff4d56 !important;
}

.tab-counter-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--red-primary);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Botão Limpo de Rodapé da Navegação */
.btn-bottom-toggle {
    margin-top: auto !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
}
.btn-bottom-toggle:hover {
    color: #ffffff !important;
}

/* Rodapé Limpo: Perfil e Logout Integrados */
.sidebar-footer {
    padding: 0.75rem 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent !important;
    flex-shrink: 0;
}

.portal-sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0;
}

.portal-user-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.portal-sidebar.collapsed .portal-user-box {
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #181b24;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
}

.user-meta-summary {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    margin: 0 0.65rem;
}

.portal-sidebar.collapsed .user-meta-summary {
    display: none !important;
}

.user-greeting {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-role-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red-primary);
}

.btn-portal-logout {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-portal-logout:hover {
    color: #ff4d56;
    background: rgba(224, 26, 34, 0.12);
}

/* Link de retorno no Login */
.auth-back-link-wrap {
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-back-link {
    color: #9ca3af;
    font-size: 0.82rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #ffffff;
}

/* Adaptação do Conteúdo do Dashboard com Sidebar - PREENCHIMENTO COMPLETO */
body.portal-authenticated .portal-main-wrapper {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    min-height: 100vh;
    box-sizing: border-box;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .portal-main-wrapper {
    margin-left: 68px !important;
    width: calc(100% - 68px) !important;
}

body.sidebar-expanded .portal-main-wrapper {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
}

.dashboard-section {
    padding: 2rem 2.5rem 4rem;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Máscara de fundo Mobile */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Botão Flutuante de Menu Mobile */
.btn-mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 0.85rem;
    left: 1rem;
    z-index: 998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 20, 29, 0.92);
    border: 1px solid rgba(224, 26, 34, 0.4);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-mobile-nav-toggle:hover {
    background: rgba(224, 26, 34, 0.25);
    border-color: var(--red-primary);
    transform: scale(1.05);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    body.portal-authenticated .btn-mobile-nav-toggle {
        display: inline-flex;
    }
    
    body.sidebar-expanded .btn-mobile-nav-toggle {
        display: none;
    }

    .portal-sidebar.collapsed {
        left: -70px;
    }
    
    .portal-sidebar.expanded {
        left: 0;
        width: 260px;
    }
    
    body.sidebar-collapsed .portal-main-wrapper,
    body.sidebar-expanded .portal-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .portal-topbar-actions {
        top: 0.85rem;
        right: 1rem;
    }

    .dashboard-section {
        padding: 4.5rem 1rem 2.5rem !important;
    }
}

/* ==========================================================================
   ESTÉTICA EDITORIAL MILITANTE DO COLETIVO SOCIALISTA CAPIXABA (SEM AI SLOP)
   ========================================================================== */

/* Banner de Destaque / Tribuna Interna da Coordenação Estadual */
.csc-tribuna-banner {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.tribuna-tag-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tribuna-close-btn {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.tribuna-close-btn:hover {
    background: rgba(224, 26, 34, 0.2);
    border-color: rgba(224, 26, 34, 0.5);
    color: #ffffff;
}

.tribuna-badge {
    background: var(--red-primary);
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tribuna-sub {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
}

.tribuna-body p {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
}

.tribuna-body p strong {
    color: #ffffff;
}

/* Credencial Oficial do Membro */
.credencial-oficial-box {
    background: #10131a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.credencial-header-stripe {
    background: #161923;
    border-bottom: 1px solid rgba(224, 26, 34, 0.35);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.credencial-org-title {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
    line-height: 1.1;
}

.credencial-badge-tag {
    background: rgba(224, 26, 34, 0.16);
    border: 1px solid rgba(224, 26, 34, 0.45);
    color: #ff6b72;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.credencial-oficial-box .carteirinha-top {
    padding: 1.35rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credencial-oficial-box .carteirinha-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1e222e;
    border: 2px solid var(--red-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    flex-shrink: 0;
}

.membro-pronome-inline {
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: normal;
    vertical-align: middle;
    margin-left: 0.22rem;
    white-space: nowrap;
}

.credencial-oficial-box .membro-nome {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
    line-height: 1.1;
}

.credencial-oficial-box .membro-role-tag {
    display: inline-block;
    background: rgba(224, 26, 34, 0.15);
    border: 1px solid rgba(224, 26, 34, 0.4);
    color: #ff6b72;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.credencial-oficial-box .carteirinha-details {
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.credencial-oficial-box .detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.credencial-oficial-box .detail-row.detail-row-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.credencial-oficial-box .detail-row.detail-row-stack .membro-nucleos-badges {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.credencial-oficial-box .detail-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    text-transform: uppercase;
    white-space: nowrap;
}

.credencial-oficial-box .detail-val {
    color: #e2e8f0;
    font-weight: 600;
    text-align: right;
}

.status-cadastral-ativo {
    color: #10b981;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Métricas Sóbrias de Militância */
.membro-metricas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.metrica-item {
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.metrica-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
}

.metrica-val {
    font-family: 'Anton', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    color: #ffffff;
    line-height: 1.1;
    margin-top: 0.1rem;
}

.credencial-oficial-box .btn-editar-perfil-full {
    margin: 0 1.25rem 1.25rem;
    width: calc(100% - 2.5rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.credencial-oficial-box .btn-editar-perfil-full:hover {
    background: rgba(224, 26, 34, 0.2);
    border-color: var(--red-primary);
    color: #ffffff;
}

/* Estilo Autêntico para os Cards do Painel */
.feed-card-box {
    background: #11141c !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    padding: 1.35rem 1.5rem !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: border-color 0.2s ease;
}

.feed-card-box:hover {
    border-color: rgba(224, 26, 34, 0.35) !important;
}

.feed-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.feed-card-header h3 {
    font-family: 'Anton', sans-serif !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.05em !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Badges e Filtros sem tom infantil */
.empty-placeholder {
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    padding: 1.5rem !important;
    text-align: center;
}


/* =============================================================================
   ESPAÇOS INTERNOS DOS NÚCLEOS & CÍRCULO DE LEITURA (SEM CLUBES ISOLADOS)
   ============================================================================= */
.btn-back-catalog {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.btn-back-catalog:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #ffffff;
    transform: translateX(-3px);
}

.ambiente-header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ambiente-header-info {
    flex: 1;
    min-width: 280px;
}

.ambiente-header-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Card Especial de Círculo de Leitura & Clube do Livro DENTRO do Núcleo */
.nucleo-bookclub-card {
    background: #12151f !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

.nucleo-bookclub-content {
    margin-top: 0.85rem;
}

.nucleo-bookclub-layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.nucleo-bookclub-cover-box {
    width: 72px;
    height: 96px;
    border-radius: 6px;
    background: linear-gradient(145deg, #1f2438, #141724);
    border: 1px solid rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nucleo-bookclub-details {
    flex: 1;
    min-width: 0;
}

.bookclub-status-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.bookclub-edition-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bookclub-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.bookclub-author {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin: 0 0 0.75rem 0;
}

.bookclub-meeting-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
}

/* =============================================================================
   ABA DA AGENDA & CALENDÁRIO OFICIAL (LAYOUT DE 2 COLUNAS BASEADO NO PRINT)
   ============================================================================= */
.agenda-layout-container {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(320px, 1.15fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .agenda-layout-container {
        grid-template-columns: 1fr;
    }
}

/* Painel Esquerdo: Calendário Mensal */
.agenda-calendar-panel {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.calendar-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.calendar-month-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calendar-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.calendar-month-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.calendar-month-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0.15rem 0 0 0;
}

.calendar-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-cal-nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 0.35rem 0.85rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cal-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-cal-arrow {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cal-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Cabeçalho dos dias da semana (DOM - SÁB) */
.calendar-weekdays-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-weekdays-row .dom {
    color: #ef4444;
}

/* Grade de Células dos Dias */
.calendar-grid-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.65rem;
}

.cal-day-cell {
    background: #0f1118;
    min-width: 0;
    min-height: 88px;
    padding: 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cal-day-cell:hover {
    background: #171b26;
}

.cal-day-cell.other-month {
    background: #0b0c10;
    opacity: 0.4;
}

.cal-day-cell.other-month:hover {
    opacity: 0.7;
}

/* Dia Selecionado: Destaque Azul Idêntico ao Print */
.cal-day-cell.selected {
    border: 2px solid #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
    z-index: 2;
}

.cal-day-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cal-day-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-day-cell.selected .cal-day-number {
    background: #3b82f6;
    color: #ffffff;
}

.cal-day-cell.today .cal-day-number {
    border: 1px solid var(--red-primary);
    color: #ffffff;
}

/* Badges de Eventos dentro da célula (estilo pílulas do print) */
.cal-day-badges-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.35rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.cal-event-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

.cal-event-pill.cat-ato {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.cal-event-pill.cat-nucleo {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.cal-event-pill.cat-geral {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

/* Cores por Núcleo Pai na Agenda */
.cal-event-pill.nucleo-esporte,
.badge-tag-category.nucleo-esporte {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
}

.cal-event-pill.nucleo-cultura,
.badge-tag-category.nucleo-cultura {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #d8b4fe;
}

.cal-event-pill.nucleo-comunicacao,
.badge-tag-category.nucleo-comunicacao {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93c5fd;
}

.cal-event-pill.nucleo-politica,
.badge-tag-category.nucleo-politica {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fca5a5;
}

.agenda-day-event-card.border-esporte { border-color: rgba(34, 197, 94, 0.35); }
.agenda-day-event-card.border-cultura { border-color: rgba(168, 85, 247, 0.35); }
.agenda-day-event-card.border-comunicacao { border-color: rgba(59, 130, 246, 0.35); }
.agenda-day-event-card.border-politica { border-color: rgba(239, 68, 68, 0.35); }

.cal-count-mini-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    align-self: flex-start;
}

.calendar-footer-hint {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Painel Direito: Agenda do Dia */
.agenda-day-panel {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.day-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.day-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.day-panel-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.day-items-count-badge {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.day-selected-date-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.day-format-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge-format-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-format-count.presencial {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.badge-format-count.digital {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
}

.day-category-filters {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.day-category-filters .filter-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.day-category-filters .filter-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.day-category-filters .filter-chip.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #ffffff;
}

.events-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.events-filter-bar .filter-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.events-filter-bar .filter-chip:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.events-filter-bar .filter-chip.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #ffffff;
    font-weight: 700;
}

.obra-actions-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.obra-actions-row .btn-open-ambient {
    width: 100%;
    min-height: 40px;
    white-space: nowrap;
    text-decoration: none;
}

.btn-epub-download {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fde047;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-epub-download:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.7);
    color: #ffffff;
}

/* Lista de Cards da Agenda do Dia */
.day-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.agenda-day-event-card {
    background: #0f121a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.agenda-day-event-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.agenda-day-event-card.border-ato {
    border-left-color: #ef4444;
}

.agenda-day-event-card.border-nucleo {
    border-left-color: #3b82f6;
}

.agenda-day-event-card.border-geral {
    border-left-color: #f59e0b;
}

.event-card-top-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-left-tags {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.badge-tag-category {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-tag-category.cat-ato {
    background: #ef4444;
    color: #ffffff;
}

.badge-tag-category.cat-nucleo {
    background: #2563eb;
    color: #ffffff;
}

.badge-tag-category.cat-geral {
    background: #d97706;
    color: #ffffff;
}

.badge-tag-format {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    border: 1px solid transparent;
}

.badge-tag-format.presencial {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
}

.badge-tag-format.digital {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
}

.event-time-span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.agenda-event-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.agenda-event-meta-line {
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.agenda-event-meta-line i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.agenda-event-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin: 0.2rem 0 0 0;
}


/* ==========================================================================
   IDENTIDADE VISUAL: ANTON MAIÚSCULA PARA TODOS OS TÍTULOS DO PORTAL
   ========================================================================== */
.portal-brand-title,
.pane-title,
.feed-card-header h3,
.feed-box-title,
.ambiente-header-title,
.card-catalog-title,
.portal-modal-header h3,
.cal-month-title,
.calendar-month-title,
.obra-titulo,
.bookclub-title,
.clube-thematic-title {
    font-family: var(--font-heading) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   EDITOR MARKDOWN & CARDS DO FEED (NÚCLEO E CLUBE DO LIVRO)
   ========================================================================== */
.md-editor-wrap {
    border: 1px solid var(--border-color, #27272a);
    border-radius: 10px;
    background: rgba(15, 16, 20, 0.85);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.md-editor-wrap:focus-within {
    border-color: rgba(220, 38, 38, 0.65);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.14);
}

.md-editor-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: rgba(24, 25, 31, 0.95);
    border-bottom: 1px solid var(--border-color, #27272a);
}

.md-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(10, 11, 14, 0.75);
    padding: 0.2rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.md-mode-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.md-mode-btn:hover {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.05);
}

.md-mode-btn.active {
    background: #dc2626;
    color: #ffffff;
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.md-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #cbd5e1;
    min-width: 28px;
    height: 28px;
    padding: 0 0.4rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.md-tool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.md-tool-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0.15rem;
}

.md-textarea {
    width: 100%;
    min-height: 112px;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    color: #f4f4f5;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.55;
    resize: vertical;
    outline: none;
    display: block;
}

.md-textarea::placeholder {
    color: #94a3b8;
}

.md-preview-box {
    min-height: 112px;
    max-height: 360px;
    overflow-y: auto;
    padding: 0.9rem 1rem;
    color: #e4e4e7;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Cabeçalho do Card de Postagem no Feed */
.feed-msg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feed-msg-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.feed-msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(220, 38, 38, 0.55);
    flex-shrink: 0;
    background: #18181b;
}

.feed-avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #fde047;
    background: linear-gradient(135deg, #271216 0%, #16161b 100%);
}

.feed-msg-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.feed-msg-author-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.feed-msg-author-name {
    font-weight: 700;
    font-size: 0.94rem;
    color: #f4f4f5;
    line-height: 1.25;
}

.feed-msg-timestamp {
    font-size: 0.74rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.feed-msg-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* Conteúdo Markdown Renderizado no Feed */
.feed-md-content {
    color: #e4e4e7;
    font-size: 0.93rem;
    line-height: 1.62;
    word-break: break-word;
}

.feed-md-content .md-p {
    margin: 0 0 0.45rem 0;
}

.feed-md-content .md-p:last-child {
    margin-bottom: 0;
}

.feed-md-content .md-spacer {
    height: 0.45rem;
}

.feed-md-content .md-heading {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
    margin: 0.6rem 0 0.35rem 0;
    line-height: 1.2;
}

.feed-md-content h2.md-heading {
    font-size: 1.2rem;
}

.feed-md-content h3.md-heading {
    font-size: 1.08rem;
}

.feed-md-content h4.md-heading {
    font-size: 0.98rem;
    color: #fde047;
}

.feed-md-content .md-blockquote {
    margin: 0.5rem 0;
    padding: 0.45rem 0.85rem;
    border-left: 2px solid #dc2626;
    background: rgba(220, 38, 38, 0.07);
    color: #d4d4d8;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.feed-md-content .md-list,
.feed-md-content .md-list-ol {
    margin: 0.4rem 0 0.55rem 1.25rem;
    padding: 0;
}

.feed-md-content .md-list li,
.feed-md-content .md-list-ol li {
    margin-bottom: 0.22rem;
}

.feed-md-content .md-inline-code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fde047;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84em;
}

.feed-md-content .md-code-block {
    background: #0b0c10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
    margin: 0.55rem 0;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #e4e4e7;
}

.feed-md-content .md-link {
    color: #f87171;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.feed-md-content .md-link:hover {
    color: #fca5a5;
}

/* ==========================================================================
   PRÉ-MEMBROS: SUB-ABAS, BUSCA, BOTÃO INSTAGRAM & MODAL DE DETALHES
   ========================================================================== */
.pre-toolbar-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pre-subtabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light, rgba(255, 255, 255, 0.08));
    padding-bottom: 0.65rem;
}

.pre-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pre-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.pre-subtab-btn.active {
    background: rgba(224, 26, 34, 0.18);
    border-color: rgba(224, 26, 34, 0.55);
    color: #ffffff;
}

.pre-subtab-count {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
}

.pre-subtab-count.pre-count-warn {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.pre-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pre-search-icon {
    position: absolute;
    left: 0.9rem;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.pre-search-input {
    width: 100%;
    padding-left: 2.4rem !important;
}

.pre-membro-card {
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pre-membro-card:hover {
    border-color: rgba(224, 26, 34, 0.45);
}

.btn-instagram-comp {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    height: 35px;
    padding: 0 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fbcfe8;
    background: rgba(219, 39, 119, 0.16);
    border: 1px solid rgba(236, 72, 153, 0.4);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-instagram-comp:hover {
    background: rgba(219, 39, 119, 0.3);
    color: #ffffff;
}

.pre-pendencia-alert {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-size: 0.8rem;
}

.pre-detalhes-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pre-status-pill {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.pre-status-pill.warn {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.pre-detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.65rem;
}

.pre-det-campo-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.pre-det-campo-card.is-flagged {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
}

.pre-det-campo-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.pre-det-campo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.pre-det-flag-check {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #fbbf24;
    cursor: pointer;
    user-select: none;
}

.pre-det-campo-val {
    font-size: 0.84rem;
    color: #f4f4f5;
    word-break: break-word;
}

/* ==========================================================================
   PÁGINA DE MEMBROS HOMOLOGADOS (DIRETORIA & LÍDERES)
   ========================================================================== */
.membros-ativos-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.membros-ativos-select {
    width: auto !important;
    min-width: 190px;
}

.membros-ativos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
}

.membro-ativo-card {
    background: #10131a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.membro-ativo-card:hover {
    border-color: rgba(224, 26, 34, 0.45);
    background: #141822;
}

.membro-ativo-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.membro-ativo-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(224, 26, 34, 0.55);
    background: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fde047;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
}

.membro-ativo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.membro-ativo-ident {
    min-width: 0;
    flex: 1;
}

.membro-ativo-nome {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.membro-ativo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.3rem;
}

.membro-ativo-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.membro-ativo-pill.role-dir {
    background: rgba(224, 26, 34, 0.16);
    border: 1px solid rgba(224, 26, 34, 0.4);
    color: #fca5a5;
}

.membro-ativo-pill.role-lid {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.38);
    color: #fde047;
}

.membro-ativo-nucleos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.membro-ativo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.membro-ativo-zap {
    font-size: 0.78rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   BADGE & DESTAQUE: MEMBRO FUNDADOR DO CSC
   ========================================================================== */
.badge-membro-fundador {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(220, 38, 38, 0.18));
    border: 1px solid rgba(250, 204, 21, 0.6);
    color: #fde047;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-membro-fundador i {
    font-size: 0.65rem;
    color: #facc15;
}

.badge-membro-fundador.compact {
    padding: 0.1rem 0.4rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.membro-ativo-card.is-fundador {
    border-color: rgba(250, 204, 21, 0.38);
}

/* ==========================================================================
   QUADRO KANBAN ESTILO TRELLO (AGÊNCIA DE COMUNICAÇÃO)
   ========================================================================== */
.trello-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.trello-filter-select {
    width: auto !important;
    min-width: 155px;
}

.trello-my-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.trello-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

@media (max-width: 960px) {
    .trello-board {
        grid-template-columns: 1fr;
    }
}

.trello-list {
    background: #0c0e14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 200px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.trello-list.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.trello-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    padding: 0.15rem 0.2rem 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trello-cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-height: 40px;
}

.kanban-task-card {
    background: #141824;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    cursor: grab;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.kanban-task-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.kanban-task-card.is-dragging {
    opacity: 0.45;
    transform: rotate(1deg);
    cursor: grabbing;
}

.trello-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.trello-prio-pill {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.trello-prio-pill.alta,
.trello-prio-pill.urgente {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
}

.trello-card-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.trello-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.trello-prazo-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.12rem 0.42rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-weight: 600;
}

.trello-prazo-pill.atrasado {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.trello-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trello-resp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #cbd5e1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trello-avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1f2433;
    border: 1px solid rgba(245, 158, 11, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fde047;
}

.trello-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trello-add-card-btn {
    width: 100%;
    padding: 0.48rem 0.6rem;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.trello-add-card-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   MENU MOBILE DEDICADO (TOPBAR + BOTTOM NAV) & ZERO ROLAGEM LATERAL
   ========================================================================== */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.portal-main-wrapper,
.dashboard-section,
.tab-content-pane,
.ambiente-main-col,
.ambiente-sidebar-col,
.membro-feed-col,
.membro-grid-layout > *,
.ambiente-layout > *,
.agenda-split-layout > *,
.agenda-layout > *,
.agenda-layout-container > *,
.agenda-calendar-panel,
.agenda-day-panel,
.calendar-grid-days,
.estrelas-admin-layout > *,
.nucleos-catalog-grid > *,
.biblioteca-grid > *,
.membros-ativos-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.csc-tribuna-banner,
.card-membro-box,
.credencial-oficial-box,
.feed-card-box,
.evento-item-card,
.comp-item-card,
.nucleo-catalog-card,
.obra-card,
.membro-ativo-card,
.pre-membro-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mobile-portal-header {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    .membro-grid-layout,
    .ambiente-layout,
    .agenda-split-layout,
    .agenda-layout,
    .estrelas-admin-layout {
        grid-template-columns: 1fr !important;
        gap: 1.15rem !important;
    }
}

@media (max-width: 768px) {
    body.portal-authenticated .btn-mobile-nav-toggle {
        display: none !important;
    }

    body.portal-authenticated .mobile-portal-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 0.75rem;
        background: rgba(13, 15, 22, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .mobile-header-menu-btn {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.05rem;
        cursor: pointer;
    }

    .mobile-header-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-family: 'Anton', sans-serif;
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        color: #ffffff;
        text-transform: uppercase;
    }

    .mobile-header-logo {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        object-fit: cover;
    }

    .mobile-header-spacer {
        width: 40px;
    }

    .portal-topbar-actions {
        top: 0.45rem !important;
        right: 0.75rem !important;
        z-index: 1002 !important;
    }

    body.portal-authenticated .mobile-bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: rgba(13, 15, 22, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(12px);
        z-index: 1000;
    }

    .mobile-nav-item {
        background: transparent;
        border: none;
        color: #94a3b8;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        font-size: 0.68rem;
        font-weight: 600;
        cursor: pointer;
        padding: 0.35rem 0.2rem;
        transition: color 0.15s ease;
    }

    .mobile-nav-item i {
        font-size: 1.05rem;
    }

    .mobile-nav-item.active {
        color: #f87171;
    }

    .portal-sidebar {
        z-index: 1100 !important;
    }

    .portal-sidebar.collapsed {
        left: -290px !important;
    }

    .portal-sidebar.expanded {
        left: 0 !important;
        width: 270px !important;
    }

    .dashboard-section {
        padding: 4.25rem 0.75rem 5.25rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .portal-modal-overlay {
        padding: 4rem 0.65rem 4.75rem !important;
        align-items: center;
    }

    .portal-modal-box {
        max-height: calc(100dvh - 8.75rem) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .portal-modal-header {
        flex-shrink: 0;
    }

    .portal-modal-body {
        overflow-y: auto !important;
        flex: 1 1 auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    body.portal-authenticated .portal-main-wrapper,
    body.sidebar-collapsed .portal-main-wrapper,
    body.sidebar-expanded .portal-main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .credencial-header-stripe,
    .credencial-oficial-box .detail-row,
    .comp-item-card {
        flex-wrap: wrap !important;
        gap: 0.45rem;
    }

    .evento-item-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        padding: 0.9rem !important;
    }

    .evento-date-badge {
        display: inline-flex;
        align-items: baseline;
        gap: 0.35rem;
        align-self: flex-start;
        min-width: auto;
        padding: 0.25rem 0.65rem;
    }

    .evento-info {
        width: 100%;
    }

    .evento-info > div:first-child {
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }

    .evento-info h4 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        line-height: 1.3;
        flex: 1 1 100%;
    }

    .evento-meta {
        flex-wrap: wrap !important;
        gap: 0.35rem 0.75rem !important;
        margin-top: 0.35rem;
    }

    .evento-info > div:last-child {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-top: 0.55rem !important;
    }

    .evento-compact-desc {
        display: none !important;
    }

    .evt-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
        width: 100% !important;
    }

    .evt-filters .btn-evt-filter {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.45rem 0.5rem;
        font-size: 0.76rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .membro-pronome-inline {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .portal-main-content {
        padding: 0.85rem 0.75rem 5.25rem;
    }

    .portal-modal-box {
        border-radius: 12px;
        max-height: 92vh;
        width: 96% !important;
    }

    .portal-modal-header {
        padding: 0.9rem 1rem;
    }

    .portal-modal-body {
        padding: 1rem;
    }

    #modalDetalhesEvento .portal-modal-body > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .nucleos-catalog-grid,
    .biblioteca-grid,
    .membros-ativos-grid,
    .kanban-board,
    .form-grid-2,
    .address-grid,
    .pre-membro-grid-info,
    .pre-detalhes-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-pane-header,
    .feed-card-header,
    .pre-membro-top,
    .clube-thematic-showcase,
    .membros-ativos-toolbar,
    .pre-membros-actions-bar,
    .calendar-header-bar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }

    #boxClubeDoLivroNucleo .feed-card-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem;
    }

    .nucleo-bookclub-layout {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 0.9rem !important;
    }

    .nucleo-bookclub-cover-box {
        width: 68px;
        height: 96px;
        margin: 0 !important;
    }

    .bookclub-status-row {
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
    }

    .bookclub-meeting-info {
        align-items: flex-start;
        font-size: 0.76rem;
        line-height: 1.4;
    }

    #ambNucleoClubesList > div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.6rem !important;
    }

    #ambNucleoClubesList > div .btn-open-ambient {
        width: 100% !important;
        justify-content: center;
    }

    .membros-ativos-select,
    .pre-membros-actions-bar button,
    .pre-membro-actions,
    .pre-membro-actions button,
    .pre-membro-actions a {
        width: 100% !important;
        justify-content: center;
    }

    .pre-membro-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .clube-cover-visual {
        margin: 0 auto;
    }

    .evt-filters,
    .pre-subtabs-bar,
    .nucleo-subtabs-nav,
    .events-filter-bar {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .cal-event-pill,
    .cal-count-mini-badge {
        display: none !important;
    }

    .agenda-calendar-panel,
    .agenda-day-panel {
        padding: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .agenda-day-panel {
        scroll-margin-top: 72px;
    }

    .day-category-filters {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
        overflow-x: visible !important;
        padding-bottom: 0 !important;
        width: 100%;
    }

    .day-category-filters .filter-chip {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.45rem 0.5rem;
        font-size: 0.76rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .calendar-weekdays-row {
        font-size: 0.65rem;
    }

    .cal-day-cell {
        min-height: 48px;
        padding: 0.25rem 0.18rem;
        justify-content: flex-start;
        gap: 0.2rem;
    }

    .cal-day-number {
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
    }

    /* Notificações ajustadas à largura do celular */
    .notificacoes-dropdown-box {
        position: fixed !important;
        top: 3.75rem !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        max-width: none !important;
    }

    /* Tabelas com rolagem contida */
    .chamada-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn-action-primary,
    .btn-action-secondary,
    .btn-open-ambient,
    .btn-modal-confirm,
    .btn-modal-cancel {
        min-height: 40px;
    }
}

/* ==========================================================================
   FÓRUM DO FEED (CURTIDAS E COMENTÁRIOS EM NÚCLEOS E CLUBES DO LIVRO)
   ========================================================================== */
.feed-forum-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.btn-feed-interact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feed-interact:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-feed-interact.liked {
    background: rgba(224, 26, 34, 0.16);
    border-color: rgba(224, 26, 34, 0.55);
    color: #fca5a5;
}

.btn-feed-interact.liked i {
    color: #ef4444;
}

.feed-comments-section {
    margin-top: 0.8rem;
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid rgba(224, 26, 34, 0.45);
    border-radius: 0 8px 8px 0;
}

.feed-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.feed-comments-list:empty {
    margin-bottom: 0;
}

.feed-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.feed-comment-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(224, 26, 34, 0.2);
    border: 1px solid rgba(224, 26, 34, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.feed-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-comment-content {
    flex: 1;
    min-width: 0;
}

.feed-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.feed-comment-author {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.feed-comment-time {
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 400;
}

.feed-comment-text {
    font-size: 0.84rem;
    line-height: 1.5;
    color: #d1d5db;
    word-break: break-word;
}

.feed-comment-text p {
    margin: 0 0 0.25rem;
}

.feed-comment-text p:last-child {
    margin-bottom: 0;
}

.btn-comment-delete {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.btn-comment-delete:hover {
    color: #f87171;
}

.feed-comment-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.feed-comment-input {
    flex: 1;
    min-width: 0;
    background: rgba(15, 17, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.feed-comment-input:focus {
    border-color: rgba(224, 26, 34, 0.6);
}

.btn-feed-comment-send {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(224, 26, 34, 0.55);
    background: rgba(224, 26, 34, 0.2);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.btn-feed-comment-send:hover {
    background: rgba(224, 26, 34, 0.4);
}

@media (max-width: 600px) {
    .feed-comments-section {
        padding: 0.6rem 0.65rem;
    }

    .feed-comment-form {
        flex-wrap: wrap;
    }

    .btn-feed-comment-send {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ANIVERSARIANTES DA SEMANA & TAG PROVISÓRIA DE ANIVERSARIANTE DO DIA
   ========================================================================== */
.badge-aniversariante-dia {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fdf2f8;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.34), rgba(245, 158, 11, 0.28));
    border: 1px solid rgba(244, 114, 182, 0.65);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.22);
    white-space: nowrap;
    line-height: 1.2;
}

.badge-aniversariante-dia i {
    color: #f9a8d4;
    font-size: 0.7rem;
}

.badge-aniversariante-dia.compact {
    padding: 0.14rem 0.46rem;
    font-size: 0.64rem;
}

.aniv-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}

.aniv-section-label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.aniv-today-wrap {
    margin-bottom: 1.5rem;
}

.aniv-today-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
}

.aniv-today-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.18), rgba(224, 26, 34, 0.14) 55%, rgba(250, 204, 21, 0.12));
    border: 1px solid rgba(244, 114, 182, 0.55);
    box-shadow: 0 10px 28px rgba(219, 39, 119, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.aniv-today-card:hover {
    transform: translateY(-2px);
    border-color: #f9a8d4;
}

.aniv-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #be185d, #e01a22);
    border: 2px solid rgba(249, 168, 212, 0.8);
}

.aniv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aniv-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.aniv-week-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.aniv-week-card:hover {
    border-color: rgba(244, 114, 182, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.aniv-week-card.past {
    opacity: 0.72;
}

.aniv-week-card .aniv-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 0.88rem;
    border-color: rgba(255, 255, 255, 0.18);
}

.aniv-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.16rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(244, 114, 182, 0.14);
    border: 1px solid rgba(244, 114, 182, 0.3);
    color: #fbcfe8;
}

/* ==========================================================================
   ABA DE APADRINHAMENTO (MEUS AFILHADOS & PADRINHOS)
   ========================================================================== */
.apad-section-block {
    margin-bottom: 1.25rem;
}

.apad-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apad-section-header h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.apad-count-pill {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.18);
    border: 1px solid rgba(250, 204, 21, 0.4);
    color: #fde047;
}

.apad-section-hint {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* ==========================================================================
   NOTIFICAÇÕES INTERATIVAS (APROVAR / RECUSAR SOLICITAÇÃO DE NÚCLEO)
   ========================================================================== */
.notif-item.notif-solicitacao {
    border-left: 3px solid var(--gold);
    background: rgba(250, 204, 21, 0.06);
    cursor: default;
}

.notif-action-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.btn-notif-aprovar,
.btn-notif-recusar {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    padding: 0.4rem 0.65rem;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-notif-aprovar {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.btn-notif-aprovar:hover:not(:disabled) {
    background: rgba(34, 197, 94, 0.34);
    color: #ffffff;
}

.btn-notif-recusar {
    background: rgba(224, 26, 34, 0.14);
    border: 1px solid rgba(224, 26, 34, 0.45);
    color: #fca5a5;
}

.btn-notif-recusar:hover:not(:disabled) {
    background: rgba(224, 26, 34, 0.32);
    color: #ffffff;
}

.btn-action-join-nucleo.is-pending {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fde047;
    cursor: default;
}

/* ==========================================================================
   ABA DE LOGS & AUDITORIA (EXCLUSIVO DIRETOR-GERAL)
   ========================================================================== */
.logs-filters-bar {
    display: grid;
    grid-template-columns: minmax(210px, 1.6fr) repeat(2, minmax(150px, 1fr)) repeat(2, minmax(130px, 0.85fr)) auto;
    gap: 0.6rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.9rem;
}

.logs-filter-search {
    position: relative;
    display: flex;
    align-items: center;
}

.logs-filter-search i {
    position: absolute;
    left: 0.75rem;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}

.logs-filter-search input {
    padding-left: 2.1rem;
    width: 100%;
}

.logs-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

.logs-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.log-row-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.log-row-card:hover {
    border-color: rgba(224, 26, 34, 0.32);
    background: rgba(255, 255, 255, 0.04);
}

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

.log-row-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.3rem;
}

.log-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.52rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}

.log-cat-pill.cat-acesso { background: rgba(59, 130, 246, 0.16); border-color: rgba(59, 130, 246, 0.4); color: #93c5fd; }
.log-cat-pill.cat-membros { background: rgba(224, 26, 34, 0.16); border-color: rgba(224, 26, 34, 0.45); color: #fca5a5; }
.log-cat-pill.cat-nucleos { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); color: #fde047; }
.log-cat-pill.cat-agenda { background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #86efac; }
.log-cat-pill.cat-feed { background: rgba(168, 85, 247, 0.16); border-color: rgba(168, 85, 247, 0.42); color: #d8b4fe; }
.log-cat-pill.cat-kanban { background: rgba(236, 72, 153, 0.16); border-color: rgba(236, 72, 153, 0.42); color: #f9a8d4; }

.log-user-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
}

.log-user-role {
    font-size: 0.7rem;
    color: #94a3b8;
}

.log-desc {
    font-size: 0.86rem;
    color: #cbd5e1;
    line-height: 1.45;
    word-break: break-word;
}

.log-row-time {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .logs-filters-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .logs-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .logs-filters-bar {
        grid-template-columns: 1fr;
    }
    .log-row-card {
        flex-direction: column;
        gap: 0.45rem;
    }
    .log-row-time {
        text-align: left;
    }
}

/* ==========================================================================
   KANBAN ETAPA 1: CHECKLIST, LINKS DE PRODUÇÃO & COMENTÁRIOS NO CARTÃO
   ========================================================================== */
.kanban-subblock {
    margin-top: 0.9rem;
    padding: 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kanban-subblock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    margin-bottom: 0.55rem;
}

.kanban-subblock-stat {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #fde047;
}

.kanban-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.65rem;
}

.kanban-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e01a22, #facc15);
    transition: width 0.25s ease;
}

.kanban-progress-fill.complete {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.kanban-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.kanban-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.42rem 0.6rem;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.kanban-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    font-size: 0.84rem;
    color: #e2e8f0;
    cursor: pointer;
}

.kanban-check-label input[type="checkbox"] {
    accent-color: #22c55e;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.kanban-check-item.done .kanban-check-label span {
    text-decoration: line-through;
    color: #64748b;
}

.kanban-inline-add {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.kanban-inline-add input {
    flex: 1;
    min-width: 0;
}

.kanban-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.kanban-link-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.65rem;
    border-radius: 8px;
    background: rgba(224, 26, 34, 0.12);
    border: 1px solid rgba(224, 26, 34, 0.35);
    color: #fecaca;
    font-size: 0.78rem;
    font-weight: 600;
}

.kanban-link-chip a {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.kanban-link-chip a:hover {
    color: #fde047;
}

.trello-card-progress-wrap {
    margin: 0.45rem 0 0.2rem;
}

.trello-card-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.trello-card-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e01a22, #facc15);
}

.trello-card-progress-fill.complete {
    background: #22c55e;
}

.trello-meta-badge-done {
    color: #86efac !important;
    font-weight: 700;
}

@media (max-width: 600px) {
    .kanban-links-add {
        flex-wrap: wrap;
    }
    .kanban-links-add input {
        max-width: none !important;
        width: 100%;
    }
}

/* ==========================================================================
   KANBAN ETAPA 2: TEMPLATES RÁPIDOS DE PAUTA
   ========================================================================== */
.kanban-templates-box {
    margin-bottom: 0.9rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.kanban-templates-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #fde047;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kanban-templates-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn-kanban-template {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-kanban-template:hover {
    border-color: rgba(250, 204, 21, 0.55);
    background: rgba(250, 204, 21, 0.14);
    color: #ffffff;
}

.btn-kanban-template.active {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.22);
    color: #fef08a;
}

/* ==========================================================================
   KANBAN ETAPA 3: MÉTRICAS DA AGÊNCIA & CALENDÁRIO EDITORIAL DE PRAZOS
   ========================================================================== */
.kanban-view-switch {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2px;
}

.btn-kanban-view {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-kanban-view:hover {
    color: #ffffff;
}

.btn-kanban-view.active {
    background: rgba(224, 26, 34, 0.24);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(224, 26, 34, 0.45);
}

.kanban-metrics-strip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.kanban-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
}

.kanban-metric-pill .km-label {
    color: #94a3b8;
    font-weight: 600;
}

.kanban-metric-pill .km-val {
    color: #ffffff;
    font-size: 0.86rem;
}

.kanban-metric-pill.km-danger.has-alert {
    background: rgba(224, 26, 34, 0.18);
    border-color: rgba(224, 26, 34, 0.5);
}

.kanban-metric-pill.km-danger.has-alert .km-val,
.kanban-metric-pill.km-danger.has-alert .km-label {
    color: #fca5a5;
}

.kanban-metric-pill.km-success .km-val {
    color: #86efac;
}

.kanban-workload-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.km-workload-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.09);
    border: 1px solid rgba(250, 204, 21, 0.26);
    color: #fde047;
    font-size: 0.7rem;
    font-weight: 700;
}

.kanban-cal-view {
    margin-top: 0.25rem;
}

.kanban-cal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.kanban-cal-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.kanban-cal-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kanban-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 4px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.kanban-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.kanban-cal-cell {
    min-height: 86px;
    padding: 0.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.kanban-cal-cell.empty {
    background: transparent;
    border-color: transparent;
}

.kanban-cal-cell.today {
    border-color: rgba(224, 26, 34, 0.65);
    background: rgba(224, 26, 34, 0.08);
}

.kanban-cal-daynum {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.kanban-cal-cell.today .kanban-cal-daynum {
    color: #fca5a5;
}

.kanban-cal-chip {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.16);
    color: #dbeafe;
    font-size: 0.67rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.kanban-cal-chip:hover {
    filter: brightness(1.2);
}

.kanban-cal-chip.st-em_producao {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fef08a;
}

.kanban-cal-chip.st-concluida {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
    text-decoration: line-through;
}

.kanban-cal-chip.st-atrasada {
    background: rgba(224, 26, 34, 0.22);
    border-color: rgba(224, 26, 34, 0.6);
    color: #fecaca;
}

.kanban-cal-mobile-list {
    display: none;
    flex-direction: column;
    gap: 0.55rem;
}

.kanban-cal-unscheduled {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
    .kanban-cal-weekdays,
    .kanban-cal-grid {
        display: none;
    }
    .kanban-cal-mobile-list {
        display: flex;
    }
    .kanban-workload-wrap {
        margin-left: 0;
        width: 100%;
    }
}
