    /* Fundo gradiente premium */
    .hero-section {
        background: linear-gradient(135deg, #e8f8f0 0%, #b6cbe7 100%);
    }

    /* Card Glass */
    .hero-card {
        background: rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(14px);
        border-radius: 22px;
        padding: 22px;
        border: 1px solid rgba(255,255,255,0.25);
        box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    }

    /* Ícone animado */
    .hero-icon {
        font-size: 4rem;
        color: #198754;
        animation: floatIcon 4s ease-in-out infinite;
    }

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

    /* Palavra "View" com animação shine */
    .hero-view-animated {
        background: linear-gradient(90deg, #198754, #0d6efd, #198754);
        background-size: 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shineMove 5s linear infinite;
    }

    @keyframes shineMove {
        from { background-position: 0%; }
        to { background-position: 200%; }
    }

    /* Slider de frases */
    .phrase-slider {
        font-size: 1.25rem;
        font-weight: 500;
        color: #444;
        height: 32px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .phrase-slider span {
        position: absolute;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity .6s ease, transform .6s ease;
    }

    .phrase-slider span.active {
        opacity: 1;
        transform: translateY(0);
    }

.gn-hero-section {
    background: linear-gradient(180deg, #f8fef9, #ffffff);
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .6s ease forwards;
}

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

.event-card .event-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.event-card:hover {
    transform: translateY(-4px);
    transition: .2s ease;
}

.state-row:hover {
    background: #f6fdf8;
    transition: .2s ease;
}

.state-row img {
    border-radius: 6px;
}

.badge {
    font-size: .9rem;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .6s ease forwards;
}

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

.card-hover {
    transition: .25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.card-gd {
    border-left: 6px solid #28a745 !important;
    background: #f6fff8;
}

.card-gc {
    border-left: 6px solid #0069d9 !important;
    background: #f4f8ff;
}

.info-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.card-hover {
    transition: .25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

    .section-title {
        margin-bottom: 12px;
        margin-top: 24px;
        font-weight: 700;
        font-size: 1.6rem;
    }

    .subsection-title {
        font-weight: 600;
        font-size: 1.3rem;
    }

    .card-gd, .card-gc {
        min-height: 205px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .insight-card {
        min-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1.5rem;
    }

    .dashboard-panel {
        background: #ffffff;
        border-radius: 18px;
        padding: 25px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
        margin-top: 20px;
    }

    .compact {
        margin-top: -10px !important;
    }

    .main-title {
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(90deg, #28a745, #0d6efd);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -0.5px;
    }

    .title-underline {
        width: 180px;
        height: 4px;
        border-radius: 4px;
        background: linear-gradient(90deg, #28a745, #0d6efd);
        opacity: 0.85;
    }

    .main-subtitle {
        margin-top: 4px;
        font-size: 0.95rem;
        color: #6c757d !important;
    }

    .navbar {
    position: fixed;
    z-index: 9999 !important; /* ou outro valor muito alto */
}

 /* Modal FULL priority */
.modal-backdrop {
    z-index: 19998 !important;
}

.modal {
    z-index: 19999 !important;
}

.modal-dialog {
    z-index: 20000 !important;
}

/* ------------------------------
   OVERLAY GLOBAL (loading ajax)
--------------------------------*/
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}
.loading-spinner {
    width: 55px;
    height: 55px;
    border: 6px solid #fff;
    border-top-color: #0fa3bd;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------
   MODAIS com visual moderno
--------------------------------*/
.modal.fade .modal-dialog {
    transform: translateY(-30px);
    transition: all 0.35s ease-out;
}
.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-backdrop.show {
    opacity: 0.4 !important;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.20);
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-title {
    font-weight: 700;
    font-size: 20px;
}

/* tabela dentro dos modais */
.modal-body-table {
    max-height: 65vh;
    overflow-y: auto;
}

/* scroll estilizado */
.modal-body-table::-webkit-scrollbar { width: 10px; }
.modal-body-table::-webkit-scrollbar-thumb {
    background: #0fa3bd;
    border-radius: 8px;
}
.chart-wrapper {
    position: relative;
    z-index: 1;
    padding-bottom: 20px;
}
.info-block {
    position: relative;
    z-index: 2; /* sempre acima */
    margin-top: 25px;
}

/* TÍTULO PRINCIPAL */
.page-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1b5e20;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 820px;
    margin: auto;
}
/* CARDS ESTATISTICAS */
.stat-card {
    border: none;
    border-radius: 18px;
    padding: 25px;
    background: linear-gradient(145deg, #ffffff, #f3f6f4);
    transition: .25s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}
.stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    opacity: .85;
}
.stat-value {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: -8px;
}
/* TABELA */
.table-modern {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.table-modern thead {
    background: #e9f5ea;
    font-weight: 700;
    color: #1b5e20;
}
.table-modern tbody tr:hover {
    background: #f5fdf7 !important;
}
.nav-tabs .nav-link {
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}
.nav-tabs .nav-link.active {
    background-color: #e8f5e9;
    color: #1b5e20 !important;
    border-color: #c8e6c9;
}
/* =============================== */
/* TABELAS PREMIUM DO PORTAL       */
/* =============================== */

.table-premium {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    width: 100%;
}

.table-premium thead {
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 12px;
}

.table-premium thead th {
    font-weight: 700;
    padding: 14px;
    font-size: 0.95rem;
    border-bottom: none !important;
}

.table-premium tbody tr {
    background: #ffffff;
    transition: 0.2s ease;
}

.table-premium tbody tr td {
    padding: 14px;
    vertical-align: middle;
    font-size: 0.95rem;
    border-top: none !important;
}

.table-premium tbody tr:hover {
    transform: scale(1.01);
    background: #f4faf5 !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.table-premium tbody tr:first-of-type td:first-child {
    border-top-left-radius: 12px;
}
.table-premium tbody tr:first-of-type td:last-child {
    border-top-right-radius: 12px;
}
.table-premium tbody tr:last-of-type td:first-child {
    border-bottom-left-radius: 12px;
}
.table-premium tbody tr:last-of-type td:last-child {
    border-bottom-right-radius: 12px;
}

/* Ícones e badges */
.table-premium .status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Verde, amarelo, azul, vermelho */
.bg-status-green { background:#c8e6c9; color:#1b5e20; }
.bg-status-blue { background:#bbdefb; color:#0d47a1; }
.bg-status-yellow { background:#fff9c4; color:#7f6f00; }
.bg-status-red { background:#ffcdd2; color:#b71c1c; }

/* Melhor responsividade */
.table-responsive {
    overflow-x: auto;
    padding-bottom: 10px;
}
.btn-veja {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #d2e3fc;
    transition: 0.2s;
}

.btn-veja:hover {
    background: #d2e3fc;
    color: #0b57d0;
    transform: scale(1.05);
}
/* ============================
   CARDS
============================ */
.card-info,
.quick-card,
.tool-card,
.news-card {
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: 0.3s;
}

/* CARD INFO */
.card-info {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* QUICK CARD */
.quick-card {
    padding: 20px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
}
.quick-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
/* ===== ESTILO DOS CARDS ===== */
.insight-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s;
    border: 1px solid #e6e6e6;
}
.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.insight-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.insight-category {
    font-size: 0.78rem;
    font-weight: 600;
    background: #e8f5e9;
    color: #1b5e20;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.insight-btn {
    padding: 6px 14px;
    background: #e8f0fe;
    border-radius: 8px;
    font-weight: 600;
    color: #1a73e8;
    border: 1px solid #d2e3fc;
    transition: 0.2s;
}
.insight-btn:hover {
    background: #d2e3fc;
    transform: scale(1.05);
}

/* HERO */
.hero-subtitle {
    font-size: 1.2rem;
    opacity: .85;
}
/* EFEITOS DE CARDS */
.view-card {
    transition: all .3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}
.view-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.view-card i {
    font-size: 2.1rem;
}
/* ÍCONES GRANDES NOS SEGMENTOS */
.segment-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 10px;
}
/* GLASS CARD */
.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255,255,255,0.2);
}
/* LISTA DE FERRAMENTAS */
.list-group-item {
    border: none;
    padding: 14px 0;
    font-size: 1.1rem;
}
.list-group-item i {
    font-size: 1.4rem;
}
/* BADGES PERSONALIZADOS */
.tool-badge {
    background: #198754;
    padding: 8px 11px;
    border-radius: 12px;
    color: #fff;
}
/* BOTÃO PRINCIPAL */
.btn-view-primary {
    background: linear-gradient(90deg, #198754, #0d6efd);
    border: none;
    padding: 12px 26px;
    font-size: 1.2rem;
    transition: .3s;
}
.btn-view-primary:hover {
    opacity: .9;
    transform: translateX(4px);
}
