/* ==========================================================================
   PORTAL SENTINELA RS - DESIGN SYSTEM & TACTICAL STYLING
   ========================================================================== */

:root {
    --bg-dark: #070d18;
    --bg-card: rgba(13, 27, 42, 0.75);
    --bg-card-hover: rgba(20, 39, 62, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(212, 175, 55, 0.35);
    
    /* Cores Institucionais Militares */
    --cbmrs-red: #d90429;
    --cbmrs-red-glow: rgba(217, 4, 41, 0.35);
    --bmrs-blue: #1d4ed8;
    --bmrs-blue-glow: rgba(29, 78, 216, 0.35);
    --gold-accent: #d4af37;
    --gold-light: #fef08a;
    --gold-glow: rgba(212, 175, 55, 0.25);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-sub: #cbd5e1;
    
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(217, 4, 41, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(212, 175, 55, 0.08) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography & Badges */
h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.text-gold { color: var(--gold-accent); }
.text-red { color: var(--cbmrs-red); }
.text-blue { color: #60a5fa; }
.text-muted { color: var(--text-muted); }

/* Header & Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 13, 24, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 1.5rem;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e3a8a, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold-accent);
    box-shadow: 0 0 15px var(--gold-glow);
    font-size: 1.4rem;
}

.brand-title {
    font-size: 1.35rem;
    line-height: 1.1;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffffff, #e2e8f0, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-sub);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.3), rgba(217, 4, 41, 0.3));
    color: #ffffff;
    border-color: var(--gold-accent);
    box-shadow: 0 0 12px var(--gold-glow);
}

.db-status-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.status-dot.offline {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Container */
.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 160px);
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-gold-edge {
    border-left: 4px solid var(--gold-accent);
}

.card-red-edge {
    border-left: 4px solid var(--cbmrs-red);
}

.card-blue-edge {
    border-left: 4px solid var(--bmrs-blue);
}

/* Grid Layouts */
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Tool Action Cards */
.tool-card {
    background: linear-gradient(160deg, rgba(13, 27, 42, 0.85) 0%, rgba(10, 21, 32, 0.95) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--gold-glow);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}

.tool-icon.bm {
    background: rgba(29, 78, 216, 0.15);
    border-color: rgba(29, 78, 216, 0.3);
    color: #60a5fa;
}

.tool-icon.cbm {
    background: rgba(217, 4, 41, 0.15);
    border-color: rgba(217, 4, 41, 0.3);
    color: #f87171;
}

.tool-icon.gold {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold-accent);
}

.tool-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.tool-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tool-footer {
    margin-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gold-accent);
    font-weight: 600;
}

/* News List & Badges */
.news-item {
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
}

.badge {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-cbmrs {
    background: rgba(217, 4, 41, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(217, 4, 41, 0.4);
}

.badge-bmrs {
    background: rgba(29, 78, 216, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(29, 78, 216, 0.4);
}

.badge-gold {
    background: rgba(212, 175, 55, 0.2);
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Forms & Modern Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-sub);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px var(--gold-glow);
    background: rgba(0, 0, 0, 0.5);
}

select.form-control option {
    background: #0d1b2a;
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
    box-shadow: 0 4px 15px var(--bmrs-blue-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b89324);
    color: #070d18;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #e6c34e, #d4af37);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #d90429, #ef233c);
    color: white;
    box-shadow: 0 4px 15px var(--cbmrs-red-glow);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef233c, #f72585);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-sub);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

/* Modals & Views */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.view-section.active {
    display: block;
}

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

/* Results & Highlight Boxes */
.result-card {
    background: linear-gradient(145deg, #0d1b2a, #142844);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.data-row:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 1.5rem;
    background: rgba(5, 10, 18, 0.95);
    font-size: 0.85rem;
    color: var(--text-muted);
}

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


/* Modal System */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 9, 20, 0.82);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: linear-gradient(145deg, #0d1b2a, #132742);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.show .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 1.25rem;
}

.modal-tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-tab-btn.active {
    color: var(--gold-accent);
    border-bottom-color: var(--gold-accent);
    background: rgba(212, 175, 55, 0.05);
}

/* City Demand Cards (Mural Anônimo de Cidades) */
.city-demand-card {
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.city-demand-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.city-demand-card.card-bmrs {
    border-left: 4px solid var(--bmrs-blue);
}

.city-demand-card.card-cbmrs {
    border-left: 4px solid var(--cbmrs-red);
}

.badge-rank {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Match Notification Card */
.match-banner-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(29, 78, 216, 0.25));
    border: 1px solid var(--gold-accent);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: pulseBorder 3s infinite;
}

@keyframes pulseBorder {
    0%, 100% { border-color: var(--gold-accent); }
    50% { border-color: #fef08a; }
}

/* User Status Bar */
.user-auth-bar {
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070d18;
        border-bottom: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
}

/* ==========================================================================
   20 ITENS DE MATURIDADE: TOASTS, BOTTOM NAV, SKELETONS, COOKIES, MODAIS
   ========================================================================== */

/* 1. Barra de Ações Rápidas Hero (CTA Acima da Dobra) */
.hero-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.hero-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    background: rgba(13, 27, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.hero-quick-btn:hover {
    background: rgba(29, 78, 216, 0.25);
    border-color: var(--bmrs-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.hero-quick-btn.gold:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-accent);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-quick-btn.red:hover {
    background: rgba(217, 4, 41, 0.2);
    border-color: var(--cbmrs-red);
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

/* 2. Barra de Navegação Fixa Inferior no Mobile (Bottom Nav) */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(7, 13, 24, 0.95);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.4rem 0.5rem;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
    flex: 1;
}

.mobile-bottom-item i {
    font-size: 1.35rem;
    margin-bottom: 0.15rem;
}

.mobile-bottom-item.active,
.mobile-bottom-item:hover {
    color: var(--gold-accent);
    background: rgba(212, 175, 55, 0.1);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px; /* Espaço para a bottom bar */
    }
    .mobile-bottom-bar {
        display: flex;
    }
}

/* 3. Skeleton Loading Screen */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 0.85rem;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 0.6rem;
}

.skeleton-title {
    height: 22px;
    width: 60%;
    margin-bottom: 1rem;
}

/* 4. Sistema de Toast Tático Flutuante */
#tactical-toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-width: 380px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.tactical-toast {
    pointer-events: auto;
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    color: #fff;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.tactical-toast.toast-success {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(11, 19, 43, 0.95));
}

.tactical-toast.toast-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(11, 19, 43, 0.95));
}

.tactical-toast.toast-info {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(11, 19, 43, 0.95));
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 5. Banner de Cookies e LGPD */
.cookie-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(7, 13, 24, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.4);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .cookie-consent-bar {
        bottom: 65px; /* Acima da bottom bar no mobile */
        padding: 0.85rem 1rem;
    }
}

.cookie-consent-bar.hidden {
    display: none;
}

/* 6. Ajustes de Breakpoint Fino para Celulares Pequenos (360px) */
@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.85rem;
    }
    .brand-title {
        font-size: 1.1rem;
    }
    .brand-subtitle {
        font-size: 0.65rem;
    }
    .hero-title {
        font-size: 1.85rem;
    }
    .glass-card {
        padding: 1.15rem;
    }
    .modal-card {
        padding: 1.25rem;
        width: 95%;
    }
}

/* ==========================================================================
   TABELAS TÁTICAS E DE SUBSÍDIOS MILITARES (RESPONSIVAS)
   ========================================================================== */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0 1.25rem 0;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 19, 43, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tactical-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.tactical-table th {
    background: rgba(30, 41, 59, 0.95);
    color: #f8fafc;
    font-weight: 700;
    padding: 0.75rem 0.9rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    font-size: 0.73rem;
    letter-spacing: 0.5px;
}

.tactical-table th.th-highlight {
    background: rgba(234, 179, 8, 0.18);
    color: #facc15;
    border-bottom: 2px solid #facc15;
}

.tactical-table th.th-gse {
    background: rgba(234, 179, 8, 0.25);
    color: #fef08a;
    border-bottom: 2px solid #facc15;
}

.tactical-table td {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-sub);
    vertical-align: middle;
}

.tactical-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.tactical-table tr:hover td {
    background: rgba(255, 255, 255, 0.06);
}

.tactical-table tr:last-child td {
    border-bottom: none;
}

.tactical-table .td-posto {
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tactical-table .td-old {
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.88rem;
}

.tactical-table .td-new {
    color: #60a5fa;
    font-weight: 700;
    font-family: monospace;
    font-size: 0.92rem;
}

.tactical-table .td-gse {
    color: #facc15;
    font-weight: 800;
    font-family: monospace;
    font-size: 0.92rem;
    background: rgba(234, 179, 8, 0.07);
}

/* Botões de Ação e Compartilhamento de Notícias */
.btn-share-zap {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #ffffff !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: var(--transition) !important;
}

.btn-share-zap:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4) !important;
    transform: translateY(-1px);
}

.news-card-highlight {
    animation: highlightPulse 2.5s ease-in-out;
    border-color: #facc15 !important;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 35px rgba(250, 204, 21, 0.6); transform: scale(1.01); }
    50% { box-shadow: 0 0 18px rgba(250, 204, 21, 0.3); }
    100% { box-shadow: none; transform: scale(1); }
}


