/* === VARIÁVEIS E RAIZ DE DESIGN === */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-h: 64px;
    --bottom-nav-h: 64px;
    --pri-main: #2D6A4F;
    --pri-light: #40916C;
    --pri-dark: #1B4332;
    --pri-50: #E8F5EE;
    --acc-main: #E76F51;
    --acc-light: #F4A261;
    --acc-dark: #C4533A;
    --bg-warm: #FFFBF5;
    --bg-card: #FFFFFF;
    --border-color: #E8DDD3;
    --text-main: #2D3436;
    --text-muted: #636E72;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Source Sans 3', 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: var(--bg-warm);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

/* === HEADER PRINCIPAL === */
#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 251, 245, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

    #app-header.scrolled {
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.header-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--pri-main), var(--pri-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Nunito';
    font-weight: 900;
    font-size: 14px;
}

.header-logo-text {
    font-family: 'Nunito';
    font-weight: 800;
    font-size: 16px;
    color: var(--pri-dark);
    line-height: 1.1;
}

    .header-logo-text span {
        display: block;
        font-size: 10px;
        font-weight: 600;
        color: var(--text-muted);
        letter-spacing: 0.5px;
    }

/* === NAVEGAÇÃO DESKTOP === */
#desktop-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

@media(min-width: 768px) {
    #desktop-nav {
        display: flex;
    }
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Nunito';
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
    .nav-link:hover {
        color: var(--pri-main);
        background: var(--pri-50);
    }

    .nav-link.active {
        color: var(--pri-main);
        background: var(--pri-50);
    }

.btn-member-badge {
    color: #059669 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0;
}

/* === ACOES E USER DROPDOWN === */
.header-actions {
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.btn-admin-menu {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Nunito';
}

    .btn-admin-menu:hover {
        background: #fee2e2;
    }

.user-dropdown {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    right: 0;
    z-index: 110;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

    .user-dropdown.open {
        display: flex;
    }

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

    .user-dropdown-header .name {
        font-weight: 800;
        font-size: 14px;
        color: var(--text-main);
        font-family: 'Nunito';
    }

    .user-dropdown-header .email {
        font-size: 12px;
        color: var(--text-muted);
    }

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    font-family: 'Nunito';
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    .user-dropdown-item:hover {
        background: #f5ede3;
    }

    .user-dropdown-item i {
        width: 18px;
        text-align: center;
        color: var(--text-muted);
        font-size: 14px;
    }

    .user-dropdown-item.danger {
        color: var(--acc-main);
    }

        .user-dropdown-item.danger i {
            color: var(--acc-main);
        }

/* === ESTRUTURA MAIN === */
#app-main {
    padding-top: calc(var(--header-h) + 16px);
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 24px);
    flex: 1;
}

@media(min-width: 768px) {
    #app-main {
        padding-bottom: 40px;
    }
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === BOTTOM NAV (MOBILE NATIVA) === */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 251, 245, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

@media(min-width: 768px) {
    #bottom-nav {
        display: none;
    }
}

.bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    border: none;
    background: none;
    cursor: pointer;
    color: #95A5A6;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Nunito';
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    min-width: 56px;
}

    .bnav-item i {
        font-size: 20px;
        transition: transform 0.2s ease;
    }

    .bnav-item.active {
        color: var(--pri-main);
    }

        .bnav-item.active i {
            transform: scale(1.1);
        }

        .bnav-item.active::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 50%;
            transform: translateX(-50%);
            width: 24px;
            height: 3px;
            border-radius: 0 0 3px 3px;
            background: var(--pri-main);
        }

/* === MORE SHEET (MOBILE) === */
.more-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .more-sheet-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.more-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 151;
    background: var(--bg-warm);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px calc(var(--safe-bottom) + 20px);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}

    .more-sheet.open {
        transform: translateY(0);
    }

.more-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 0 auto 16px;
}

.more-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Nunito';
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-radius: 10px;
    transition: background 0.2s ease;
}

    .more-sheet-item:hover {
        background: #f5ede3;
    }

    .more-sheet-item i {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--pri-50);
        color: var(--pri-main);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        flex-shrink: 0;
    }

.more-sheet-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.more-sheet-item.danger {
    color: var(--acc-main);
}

    .more-sheet-item.danger i {
        background: #FEF0EB;
        color: var(--acc-main);
    }

/* === MODAIS & TOASTS === */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

    .modal-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.modal-sheet {
    background: var(--bg-warm);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    padding-bottom: var(--safe-bottom);
    position: relative;
}

.modal-overlay.open .modal-sheet {
    transform: translateY(0);
}

@media(min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-sheet {
        border-radius: 20px;
        max-height: 85vh;
        margin: 20px;
    }
}

.modal-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 10px auto 0;
}

#toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    min-width: 260px;
    max-width: 360px;
    border-left: 4px solid var(--pri-main);
    animation: fadeIn 0.3s ease;
}

    .toast.error {
        border-left-color: var(--acc-main);
    }

.alert-success-custom {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.alert-error-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* === FOOTER === */
.app-footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.footer-title {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    font-family: 'Nunito';
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

    .social-btn:hover {
        background: rgba(255,255,255,0.2);
    }

.footer-heading {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: 'Nunito';
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

    .footer-links a {
        color: #94a3b8;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #fff;
        }

.footer-rgpd-card {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media(min-width: 640px) {
    .footer-rgpd-card {
        flex-direction: row;
        align-items: center;
    }
}

.rgpd-title {
    color: #fcd34d;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    shrink: 0;
}

.rgpd-text {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    flex: 1;
}

.btn-rgpd {
    background: #f59e0b;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    font-family: 'Nunito';
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    pt: 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    padding-top: 20px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.float-anim {
    animation: float 3s ease-in-out infinite;
}

/* =========================================================
   ESTILOS DOS COMPONENTES (PÁGINA INICIAL, NOTÍCIAS E EVENTOS)
   ========================================================= */

/* === HERO === */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1B4332 0%, #2D6A4F 40%, #40916C 100%);
    padding: 48px 20px 56px;
    border-radius: 0 0 24px 24px; /* Adicionado para arredondar cantos inferiores no desktop */
}

    .hero::before {
        content: '';
        position: absolute;
        top: -40%;
        right: -20%;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(244,162,97,0.12);
        filter: blur(60px);
        pointer-events: none;
    }

    .hero::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(64,145,108,0.2);
        filter: blur(50px);
        pointer-events: none;
    }

.hero-deco-1 {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero-deco-2 {
    position: absolute;
    bottom: 40px;
    right: 80px;
    width: 30px;
    height: 30px;
    background: rgba(231,111,81,0.2);
    border-radius: 8px;
    transform: rotate(45deg);
}

.hero-deco-3 {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    box-shadow: 20px 0 0 rgba(255,255,255,0.15), 40px 15px 0 rgba(255,255,255,0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.hero h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero p {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E76F51;
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: 'Nunito';
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(231,111,81,0.4);
}

    .hero-btn:hover {
        background: #C4533A;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(231,111,81,0.5);
        color: #fff;
    }

@media(min-width:768px) {
    .hero {
        padding: 64px 40px 72px;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 24px;
        margin-top: 16px;
    }

        .hero h1 {
            font-size: 38px;
        }

        .hero p {
            font-size: 17px;
        }
}

/* === SECÇÃO DE TÍTULO === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-top: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1B4332;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title .title-accent {
        width: 4px;
        height: 24px;
        border-radius: 2px;
        background: linear-gradient(180deg, #2D6A4F, #E76F51);
    }

.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #E8DDD3;
    background: transparent;
    color: #2D6A4F;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-see-all:hover {
        background: #E8F5EE;
        border-color: #2D6A4F;
    }

/* === CARTÕES DE NOTÍCIA === */
.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8DDD3;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

    .news-card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
        transform: translateY(-2px);
    }

.news-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #F5EDE3;
}

.news-card-body {
    padding: 14px 16px 16px;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.news-card-cat {
    font-size: 11px;
    font-weight: 700;
    color: #2D6A4F;
    background: #E8F5EE;
    padding: 3px 10px;
    border-radius: 6px;
}

.news-card-date {
    font-size: 12px;
    color: #95A5A6;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #2D3436;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 13px;
    color: #636E72;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === BADGE SÓCIOS E MÁSCARA === */
.badge-members {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(231,111,81,0.95);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(231,111,81,0.3);
}

.locked-overlay {
    position: relative;
}

    .locked-overlay::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: linear-gradient(transparent, rgba(255,251,245,0.95));
        pointer-events: none;
        border-radius: 0 0 16px 16px;
    }

.locked-cta {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    background: #E76F51;
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(231,111,81,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .locked-cta:hover {
        background: #C4533A;
    }

/* === CARTÕES DE EVENTO === */
.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E8DDD3;
    transition: all 0.25s ease;
    position: relative;
}

    .event-card:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }

.event-card-top {
    display: flex;
}

.event-date-box {
    flex-shrink: 0;
    width: 72px;
    padding: 16px 8px;
    background: linear-gradient(180deg, #2D6A4F, #1B4332);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .event-date-box .day {
        font-family: 'Nunito';
        font-size: 26px;
        font-weight: 900;
        line-height: 1;
    }

    .event-date-box .month {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        opacity: 0.8;
        margin-top: 2px;
    }

    .event-date-box .year {
        font-size: 10px;
        opacity: 0.6;
    }

.event-card-info {
    flex: 1;
    padding: 14px 14px 14px 12px;
    min-width: 0;
}

.event-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #2D3436;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #636E72;
    margin-bottom: 4px;
}

    .event-card-detail i {
        width: 14px;
        text-align: center;
        color: #95A5A6;
        font-size: 11px;
    }

    .event-card-detail a {
        color: #2D6A4F;
        text-decoration: none;
        font-weight: 600;
    }

        .event-card-detail a:hover {
            text-decoration: underline;
        }

.event-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 14px 14px;
}

.btn-cal, .btn-details {
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: 'Nunito';
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-cal {
    background: #E8F5EE;
    color: #2D6A4F;
}

    .btn-cal:hover {
        background: #C6E7D5;
    }

.btn-details {
    background: #2D6A4F;
    color: #fff;
}

    .btn-details:hover {
        background: #1B4332;
    }

/* === ESTADOS VAZIOS === */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed #E8DDD3;
    border-radius: 16px;
    margin-bottom: 24px;
}

    .empty-state i {
        font-size: 48px;
        color: #E8DDD3;
        margin-bottom: 16px;
    }

    .empty-state h3 {
        font-size: 18px;
        font-weight: 700;
        color: #95A5A6;
        margin: 0 0 8px;
    }

    .empty-state p {
        font-size: 14px;
        color: #95A5A6;
        margin: 0;
    }

/* === SEPARADORES / TABS === */
.tabs-container {
    display: flex;
    gap: 4px;
    background: #F5EDE3;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    background: transparent;
    color: #636E72;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tab-btn.active {
    background: #fff;
    color: #2D6A4F;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tab-btn:hover:not(.active) {
    color: #2D3436;
    background: rgba(255,255,255,0.5);
}

/* === CAIXA DE PESQUISA === */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #95A5A6;
    font-size: 15px;
    z-index: 1;
    pointer-events: none;
}

.search-box form {
    margin: 0;
    position: relative;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px 44px 12px 44px;
    border-radius: 12px;
    border: 1.5px solid #E8DDD3;
    background: #fff;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    color: #2D3436;
    transition: all 0.2s ease;
    display: block;
    box-sizing: border-box;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.search-box input[type="text"]::placeholder {
    color: #95A5A6;
}

.search-box .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #F5EDE3;
    color: #636E72;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease;
    z-index: 1;
}

.search-box .search-clear.visible {
    display: flex;
}

.search-box .search-clear:hover {
    background: #E8DDD3;
    color: #2D3436;
}

/* === NEWS DETAIL === */
.news-detail-img {
    width: 100%;
    height: 320px; /* Make it a bit taller for desktop than the mobile 220px */
    object-fit: cover;
    background: #F5EDE3;
}

@media(max-width:767px) {
    .news-detail-img { height: 220px; }
}

.news-detail-content {
    padding: 24px 0;
}
.news-detail-content p {
    font-size: 16px;
    line-height: 1.75;
    color: #2D3436;
    margin-bottom: 16px;
}

/* === OBJETIVOS === */
.objective-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.25s ease;
}

    .objective-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

.objective-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.objective-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.objective-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === ACORDEÃO === */
.accordion-item {
    background: #fff; border-radius: 14px; border: 1px solid #E8DDD3;
    margin-bottom: 10px; overflow: hidden; transition: all 0.2s ease;
}
.accordion-item.open { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.accordion-header {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    cursor: pointer; border: none; background: none; width: 100%;
    text-align: left; font-family: 'Nunito'; font-size: 15px; font-weight: 700;
    color: #2D3436; transition: background 0.2s ease;
}
.accordion-header:hover { background: #FFFBF5; }
.accordion-header i.acc-icon { width: 36px; height: 36px; border-radius: 10px; background: #E8F5EE; color: #2D6A4F; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.accordion-header .acc-chevron { margin-left: auto; color: #95A5A6; transition: transform 0.3s ease; font-size: 12px; }
.accordion-item.open .acc-chevron { transform: rotate(180deg); }
.accordion-body {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-content { padding: 0 16px 16px 64px; font-size: 14px; color: #636E72; line-height: 1.7; }
.accordion-content ul { padding-left: 18px; margin: 8px 0; list-style-type: disc; }
.accordion-content li { margin-bottom: 4px; }
.accordion-content p { margin-bottom: 8px; }

/* === SECTION HEADER === */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-top: 32px;
}
.section-title {
    font-size: 20px; font-weight: 800; color: var(--pri-dark);
    margin: 0; display: flex; align-items: center; gap: 10px;
    font-family: 'Nunito';
}
.section-title .title-accent {
    width: 4px; height: 24px; border-radius: 2px; flex-shrink: 0;
    background: linear-gradient(180deg, var(--pri-main), var(--acc-main));
}
.btn-see-all {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--border-color);
    background: transparent; color: var(--pri-main); font-size: 13px;
    font-weight: 700; cursor: pointer; font-family: 'Nunito'; transition: all 0.2s ease;
    text-decoration: none;
}
.btn-see-all:hover { background: var(--pri-50); border-color: var(--pri-main); }

/* === DOCUMENTOS === */
.doc-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: #fff; border-radius: 12px; border: 1px solid var(--border-color);
    transition: all 0.2s ease; cursor: pointer;
}
.doc-item:hover { background: var(--pri-50); border-color: var(--pri-main); }
.doc-item:active { transform: scale(0.98); }
.doc-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: #FEF0EB; color: var(--acc-main);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.doc-name { font-weight: 600; font-size: 14px; color: var(--text-main); flex: 1; }
.doc-type { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.doc-download { color: var(--pri-main); font-size: 16px; }

/* === DESCONTOS / PARCERIAS === */
.discount-card {
    background: #fff; border-radius: 14px; padding: 16px;
    border: 1px solid var(--border-color); display: flex; gap: 14px;
    align-items: center; transition: all 0.2s ease;
}
.discount-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.discount-logo {
    width: 56px; height: 56px; border-radius: 12px;
    object-fit: cover; background: #F5EDE3; flex-shrink: 0;
}
.discount-pct { font-family: 'Nunito'; font-size: 22px; font-weight: 900; color: var(--acc-main); }
.discount-name { font-weight: 700; font-size: 14px; color: var(--text-main); }
.discount-desc { font-size: 12px; color: var(--text-muted); }

/* === CARTÃO DE SÓCIO (verde - ficheiro base) === */
.member-card-visual {
    position: relative; width: 100%; max-width: 380px;
    aspect-ratio: 1.6 / 1; border-radius: 20px; overflow: hidden;
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 50%, #40916C 100%);
    box-shadow: 0 12px 40px rgba(27,67,50,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
    padding: 24px; display: flex; flex-direction: column;
    justify-content: space-between; color: #fff;
}
.member-card-visual::before {
    content: ''; position: absolute; top: -50%; right: -30%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.member-card-visual::after {
    content: ''; position: absolute; bottom: -20%; left: -20%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(231,111,81,0.15) 0%, transparent 70%);
}
.mc-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; position: relative; z-index: 2;
}
.mc-logo { font-family: 'Nunito'; font-weight: 900; font-size: 22px; line-height: 1; }
.mc-logo span { display: block; font-size: 10px; font-weight: 600; opacity: 0.7; letter-spacing: 1px; }
.mc-type {
    font-size: 10px; font-weight: 700; background: rgba(255,255,255,0.15);
    padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 1px;
}
.mc-middle { position: relative; z-index: 2; }
.mc-name { font-family: 'Nunito'; font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.mc-number { font-size: 12px; opacity: 0.7; font-weight: 500; }
.mc-nif { font-size: 13px; opacity: 0.8; font-weight: 500; margin-top: 4px; letter-spacing: 1px; }
.mc-bottom {
    display: flex; align-items: flex-end;
    justify-content: space-between; position: relative; z-index: 2;
}
.mc-valid { font-size: 11px; opacity: 0.7; }
.mc-valid strong { color: rgba(255,255,255,0.95); }
.mc-logo-img {
    width: 48px; height: 48px; border-radius: 10px;
    object-fit: contain; background: rgba(255,255,255,0.15);
    padding: 4px;
}

/* === ESTADO VAZIO === */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state i { font-size: 48px; color: #E8DDD3; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: #95A5A6; margin: 0 0 8px; }
.empty-state p { font-size: 14px; color: #95A5A6; margin: 0; }
/* === BOTOES DE FORMULARIO === */
.btn-form {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Nunito';
    background: linear-gradient(135deg, var(--pri-main), var(--pri-light));
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
    color: #fff;
}
