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

:root {
    color-scheme: dark;
    --bg-dark: #3d4452;
    --bg-card: #4a5568;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.15);
    --accent-brand: #4a90d9;
    --accent-brand-claro: #7eb8f7;
    --transition-suave: 0.2s ease;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/manrope-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/manrope-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/manrope-700.woff2') format('woff2');
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-entrar {
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-entrar:hover {
    background: rgba(255,255,255,0.1);
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-primary);
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 560px;
    height: 560px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-brand-claro) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

@keyframes entrada-suave {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entrada-suave {
    animation: entrada-suave 0.4s ease both;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-reveal-visivel {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .entrada-suave {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .confirmacao-icone {
        animation: none;
    }

    .btn-primary,
    .btn-secondary,
    .btn-cta-gabinete,
    .sobre-bloco,
    .plano-card,
    .gabinete-card {
        transition: none;
    }
}

.logo-hero {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity var(--transition-suave), transform var(--transition-suave), box-shadow var(--transition-suave);
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: background var(--transition-suave), transform var(--transition-suave), box-shadow var(--transition-suave);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-info {
    max-width: 420px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* HOME - COMO FUNCIONA E FUNCIONALIDADES */
.home-secoes {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.secao-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.como-funciona {
    margin-bottom: 5rem;
}

.como-funciona-passos {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.passo-linha {
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.passo-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.passo-numero {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.passo-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.passo-texto {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

.funcionalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.funcionalidade-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-suave), box-shadow var(--transition-suave);
}

.funcionalidade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.funcionalidade-icone {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.funcionalidade-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.funcionalidade-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* LOGIN */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 2rem;
}

.login-card {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
}

.login-left {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.login-left h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: rgba(255,255,255,0.4);
}

.senha-wrapper {
    position: relative;
}

.senha-wrapper input {
    width: 100%;
}

.toggle-senha {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.6;
}

.esqueceu {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    text-align: right;
}

.esqueceu:hover {
    color: var(--text-primary);
}

.btn-login {
    background: rgba(255,255,255,0.15);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-login:hover {
    background: rgba(255,255,255,0.25);
}

.sem-conta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.sem-conta a {
    color: var(--text-primary);
    text-decoration: none;
}

.erro-msg {
    background: rgba(255,80,80,0.15);
    border: 1px solid rgba(255,80,80,0.3);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #ff8080;
}

.login-right {
    flex: 1;
    background: #111 radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
}

.particulas-canvas {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 320 / 180;
    height: auto;
}

.login-right-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    text-align: center;
    max-width: 200px;
}

/* ===== PAINEL ===== */

.painel-wrapper {
    display: flex;
    min-height: 100vh;
    background: #3d4452;
}

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    background: #2d3340;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #3d4452;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a90d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-nome {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 11px;
    color: #8a9ab5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-secao {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a9ab5;
    margin: 0.75rem 0 0.5rem 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: #c5cfe0;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s;
}

.nav-item:hover {
    background: #3d4452;
    color: #fff;
}

.nav-item.ativo {
    background: #3d4452;
    color: #fff;
    font-weight: 600;
}

.btn-sair {
    background: transparent;
    border: 1px solid #4a5568;
    color: #8a9ab5;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
    margin-top: 1rem;
}

.btn-sair:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: white;
}

/* Conteúdo principal */
.painel-main {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden;
}

.painel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.painel-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    margin: 0 0 0.25rem 0;
}

.painel-subtitulo {
    font-size: 13px;
    color: #8a9ab5;
    margin: 0;
}

.nome-gabinete {
    font-size: 14px;
    font-weight: 600;
    color: #c5cfe0;
    text-align: right;
}

.painel-header-acoes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-copiar-link {
    background: rgba(255,255,255,0.06);
    color: #c5cfe0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-copiar-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.1);
}

@keyframes btn-copiar-link-pulo {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-6px) scale(1.05); }
    60% { transform: translateY(0) scale(0.98); }
    100% { transform: translateY(0) scale(1); }
}

.btn-copiar-link.animar-clique {
    animation: btn-copiar-link-pulo 0.3s ease;
}

/* Cards de métricas */
.metricas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metrica-card {
    background: #4a5568;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metrica-total {
    background: #3a4a6b;
}

.metrica-label {
    font-size: 12px;
    color: #8a9ab5;
    font-weight: 500;
}

.metrica-valor {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* Seção de demandas */
.demandas-section {
    background: #4a5568;
    border-radius: 12px;
    padding: 1.5rem;
}

.demandas-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3d4452;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
}

.search-box input::placeholder {
    color: #8a9ab5;
}

.filtro-favoritos {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #c5cfe0;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.filtro-favoritos input[type="checkbox"] {
    cursor: pointer;
}

.btn-favorito {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.demandas-toolbar select {
    background: #3d4452;
    border: 1px solid #5a6478;
    border-radius: 8px;
    color: #c5cfe0;
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
}

#filtro-periodo {
    background: #3d4452;
    border: 1px solid #5a6478;
    border-radius: 8px;
    color: #c5cfe0;
    padding: 0.5rem 1rem;
    font-size: 14px;
    cursor: pointer;
}

.loading-msg {
    text-align: center;
    color: #8a9ab5;
    padding: 2rem;
    font-size: 14px;
}

.erro-painel {
    background: #5c2a2a;
    color: #f5a5a5;
    padding: 1rem;
    border-radius: 8px;
    font-size: 14px;
}

/* Tabela */
.demandas-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.demandas-tabela th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #8a9ab5;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #5a6478;
}

.demandas-tabela td {
    padding: 0.875rem 1rem;
    color: #c5cfe0;
    border-bottom: 1px solid #3d4452;
}

.demandas-tabela tr:last-child td {
    border-bottom: none;
}

.demandas-tabela tr:hover td {
    background: #3d4452;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-categoria {
    background: #3a4a6b;
    color: #7eb8f7;
}

.badge-recebida     { background: #3a4a6b; color: #7eb8f7; }
.badge-em_andamento { background: #4a3a1a; color: #f7c67e; }
.badge-resolvida    { background: #1a3a2a; color: #7ef7a8; }
.badge-arquivada    { background: #3a3a3a; color: #aaaaaa; }

.badge-prioridade-baixa    { background: #2a3a3a; color: #8ec9c9; }
.badge-prioridade-normal   { background: #3a4a6b; color: #7eb8f7; }
.badge-prioridade-alta     { background: #4a3a1a; color: #f7c67e; }
.badge-prioridade-urgente  { background: #4a1a1a; color: #f77e7e; }

.badge-prazo-ok      { background: #1a3a2a; color: #7ef7a8; }
.badge-prazo-alerta  { background: #4a3a1a; color: #f7c67e; }
.badge-prazo-vencido { background: #4a1a1a; color: #f77e7e; }
.badge-prazo-vazio   { color: #8892a4; font-size: 0.85rem; }

.badge-role-admin    { background: #4a1a3a; color: #f77ed1; }
.badge-role-assessor { background: #3a3a3a; color: #aaaaaa; }

/* ===== PORTAL DO CIDADÃO ===== */

.cidadao-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #3d4452;
}

.cidadao-card {
    position: relative;
    overflow: hidden;
    background: #2d3340;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cidadao-header {
    margin-bottom: 1.75rem;
}

.cidadao-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cidadao-subtitulo {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.5;
}

.cidadao-subtitulo strong {
    color: #fff;
}

/* Formulário */
.cidadao-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.campo-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.campo-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.campo-group input,
.campo-group select,
.campo-group textarea {
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    color: #1a1a1a;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.campo-group input:focus,
.campo-group select:focus,
.campo-group textarea:focus {
    border-color: var(--accent-brand);
}

.campo-group input::placeholder,
.campo-group textarea::placeholder {
    color: #888;
}

.campo-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
}

.campo-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-enviar {
    background: var(--accent-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background var(--transition-suave);
    margin-top: 0.5rem;
}

.btn-enviar:hover {
    background: #3a7dc4;
}

.btn-enviar:disabled {
    background: #5a6478;
    cursor: not-allowed;
}

@keyframes spinner-girar {
    to {
        transform: rotate(360deg);
    }
}

.spinner-btn {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: spinner-girar 0.6s linear infinite;
}

/* opacity:0 por padrao -- so fica visivel quando JS adiciona .erro-visivel (ver mostrarErroEnvio/mostrarErroConsulta) */
#erro-envio.erro-msg,
#erro-consulta.erro-msg {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#erro-envio.erro-msg.erro-visivel,
#erro-consulta.erro-msg.erro-visivel {
    opacity: 1;
}

/* Confirmação */
.cidadao-confirmacao {
    text-align: center;
}

@keyframes confirmacao-entrada {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmacao-icone {
    width: 64px;
    height: 64px;
    background: #1a3a2a;
    color: #7ef7a8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
    animation: confirmacao-entrada 0.4s ease;
}

.protocolo-box {
    background: #3d4452;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.75rem 0;
}

.protocolo-label {
    display: block;
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 0.5rem;
}

.protocolo-numero {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-brand-claro);
    letter-spacing: 0.05em;
}

.protocolo-aviso {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.75rem;
}

.btn-secundario {
    background: transparent;
    border: 1px solid #5a6478;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secundario:hover {
    background: rgba(255,255,255,0.08);
}

/* Mobile */
@media (max-width: 480px) {
    .cidadao-card {
        padding: 2rem 1.5rem;
    }

    .cidadao-titulo {
        font-size: 1.5rem;
    }
}

/* ===== CONSULTA DE PROTOCOLO ===== */

.resultado-card {
    background: #3d4452;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #4a5568;
}

.resultado-protocolo {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.badge-status-grande {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
}

.resultado-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resultado-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.resultado-label {
    color: #a0aec0;
}

.resultado-valor {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.acompanhar-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.link-nova-demanda {
    font-size: 0.85rem;
    color: var(--accent-brand-claro);
    text-decoration: none;
}

.link-nova-demanda:hover {
    text-decoration: underline;
}

/* ===== SOBRE ===== */

.sobre-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.sobre-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 4rem;
}

.sobre-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.destaque {
    color: var(--accent-brand-claro);
}

.sobre-subtitulo {
    font-size: 1.1rem;
    color: #a0aec0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.sobre-bloco {
    background: #4a5568;
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-suave), box-shadow var(--transition-suave), opacity 0.5s ease;
}

.sobre-grid .sobre-bloco:nth-child(1) { transition-delay: 0s, 0s, 0s; }
.sobre-grid .sobre-bloco:nth-child(2) { transition-delay: 0s, 0s, 0.15s; }
.sobre-grid .sobre-bloco:nth-child(3) { transition-delay: 0s, 0s, 0.3s; }

.sobre-bloco:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.sobre-icone {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sobre-bloco h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.sobre-bloco p {
    font-size: 0.95rem;
    color: #a0aec0;
    line-height: 1.7;
}

/* Planos */
.sobre-planos {
    margin-bottom: 5rem;
}

.planos-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.planos-subtitulo {
    text-align: center;
    color: #a0aec0;
    margin-bottom: 2.5rem;
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.plano-card {
    background: #4a5568;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: transform var(--transition-suave), box-shadow var(--transition-suave), opacity 0.5s ease;
}

.planos-grid .plano-card:nth-child(1) { transition-delay: 0s, 0s, 0s; }
.planos-grid .plano-card:nth-child(2) { transition-delay: 0s, 0s, 0.15s; }
.planos-grid .plano-card:nth-child(3) { transition-delay: 0s, 0s, 0.3s; }

.plano-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.plano-desenvolvimento {
    opacity: 0.8;
    border: 1px dashed #5a6478;
}

/* .plano-desenvolvimento tem sua propria opacity fixa (0.8, o "meio apagado"
   de em-desenvolvimento), que colide com o opacity:0/1 do scroll-reveal.
   Estas regras, mais especificas, garantem que ele comece de fato invisivel
   antes de revelar, e assente em 0.8 (nao 1) depois -- preserva o efeito
   "em desenvolvimento" sem quebrar a animacao de entrada. */
.plano-desenvolvimento.scroll-reveal {
    opacity: 0;
}

.plano-desenvolvimento.scroll-reveal-visivel {
    opacity: 0.8;
}

.plano-dev-badge {
    display: inline-block;
    background: #4a3a1a;
    color: #f7c67e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    width: fit-content;
}

.plano-badge-ativo {
    display: inline-block;
    background: rgba(74, 144, 217, 0.16);
    color: var(--accent-brand-claro);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    width: fit-content;
}

.plano-nome {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.plano-preco {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-brand-claro);
    line-height: 1;
}

.plano-centavos {
    font-size: 1rem;
    color: #a0aec0;
}

.plano-anual {
    display: block;
    font-size: 0.78rem;
    color: #a0aec0;
    margin-top: -0.25rem;
}

.plano-anual strong {
    color: var(--accent-brand-claro);
    font-weight: 700;
}

.plano-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plano-lista li {
    font-size: 0.9rem;
    color: #c5cfe0;
}

.btn-plano {
    background: var(--accent-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-suave);
    margin-top: 0.5rem;
}

.btn-plano:hover {
    background: #3a7dc4;
}

.btn-plano-indisponivel {
    background: #3d4452;
    color: #8a9ab5;
    border: 1px solid #5a6478;
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.btn-plano-indisponivel:hover {
    background: #4a5568;
}

.plano-dev-nota {
    font-size: 0.85rem;
    color: #f7c67e;
    text-align: center;
    padding: 0.5rem;
    background: #4a3a1a;
    border-radius: 8px;
}

.plano-destaque {
    border: 1.5px solid var(--accent-brand);
    box-shadow: 0 0 0 1px rgba(74, 144, 217, 0.25), 0 12px 32px rgba(0, 0, 0, 0.28);
    position: relative;
}

.selo-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.32rem 0.9rem;
    border-radius: 20px;
    white-space: nowrap;
}

.form-interesse {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.form-interesse input[type="email"] {
    flex: 1;
    min-width: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
}

.form-interesse button {
    background: var(--accent-brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.interesse-confirmado {
    font-size: 0.85rem;
    color: var(--accent-brand-claro);
    text-align: center;
    padding: 0.5rem;
    background: rgba(74, 144, 217, 0.14);
    border-radius: 8px;
}

.interesse-erro {
    font-size: 0.8rem;
    color: #f7c67e;
    text-align: center;
}

/* Tabela comparativa de planos */
.tabela-comparativa-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 5rem;
}

.tabela-comparativa {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.88rem;
}

.tabela-comparativa thead th {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid var(--border);
}

.tabela-comparativa thead th:first-child {
    text-align: left;
}

.tabela-comparativa thead th.col-destaque {
    color: var(--accent-brand-claro);
    background: #52607a;
}

.tabela-comparativa tr.secao td {
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
}

.tabela-comparativa tbody td {
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

.tabela-comparativa tbody td:first-child {
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
}

.tabela-comparativa tbody td.col-destaque {
    background: rgba(74, 144, 217, 0.06);
}

.tabela-comparativa .item-ok {
    color: var(--accent-brand-claro);
    font-weight: 700;
}

.tabela-comparativa .item-trancado {
    color: #7c8698;
    font-size: 0.85em;
}

.tabela-comparativa .item-limite {
    color: var(--text-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* CTA contato */
.sobre-cta {
    text-align: center;
    background: #4a5568;
    border-radius: 16px;
    padding: 3rem 2rem;
}

.sobre-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sobre-cta p {
    color: #a0aec0;
    margin-bottom: 1.75rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contato-botoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.btn-whatsapp:hover {
    opacity: 0.85;
}

.btn-email {
    background: transparent;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

.btn-email:hover {
    background: rgba(255,255,255,0.08);
}

/* CTA landing page */
.hero-cta-gabinete {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-cta-texto {
    font-size: 0.95rem;
    color: #a0aec0;
    margin-bottom: 0.75rem;
}

.btn-cta-gabinete {
    display: inline-block;
    background: var(--accent-brand-claro);
    color: #1a1a2e;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: opacity var(--transition-suave), transform var(--transition-suave), box-shadow var(--transition-suave);
}

.btn-cta-gabinete:hover {
    opacity: 0.85;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ===== GABINETES ===== */

.gabinetes-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.gabinetes-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 3rem;
}

.gabinetes-titulo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.gabinetes-subtitulo {
    font-size: 1rem;
    color: #a0aec0;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.gabinetes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gabinete-card {
    background: #4a5568;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform var(--transition-suave), box-shadow var(--transition-suave);
}

.gabinete-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.gabinete-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #3a4a6b;
    color: var(--accent-brand-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gabinete-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gabinete-cargo {
    font-size: 0.78rem;
    color: var(--accent-brand-claro);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gabinete-nome {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.gabinete-descricao {
    font-size: 0.88rem;
    color: #a0aec0;
    line-height: 1.6;
    margin: 0.25rem 0 0.75rem;
}

.gabinete-acoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-gabinete-primario {
    background: var(--accent-brand);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background var(--transition-suave);
}

.btn-gabinete-primario:hover {
    background: #3a7dc4;
}

.btn-gabinete-secundario {
    background: transparent;
    color: #c5cfe0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid #5a6478;
    transition: background 0.2s;
}

.btn-gabinete-secundario:hover {
    background: #3d4452;
}

.gabinetes-cta {
    text-align: center;
    padding: 2rem;
    background: #4a5568;
    border-radius: 16px;
}

.gabinetes-cta p {
    color: #a0aec0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.modal-card {
    background: #2a2f3e;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.modal-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}

.modal-fechar {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-fechar:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-campo {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.modal-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8892a4;
    font-weight: 600;
}

.modal-valor {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.modal-descricao-box .modal-valor {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.75rem;
    line-height: 1.6;
}

.modal-separador {
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.modal-textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #e2e8f0;
    padding: 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.modal-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.modal-select {
    background: #373c4a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #e2e8f0;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
}

.modal-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.modal-lista-historico, .modal-lista-comentarios {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    max-height: 180px;
    overflow-y: auto;
}
.modal-lista-historico li, .modal-lista-comentarios li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.9rem;
}
.modal-lista-vazia {
    color: #8892a4;
    font-style: italic;
}

.nav-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5484d;
    margin-left: auto;
}

.novidades-lista li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.novidades-item-titulo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.novidades-item-data {
    font-size: 0.75rem;
    color: #8892a4;
}

.novidades-item-desc {
    font-size: 0.85rem;
    color: #c5cfe0;
    line-height: 1.5;
}

.novidades-tag {
    display: inline-block;
    background: rgba(74, 144, 217, 0.16);
    color: var(--accent-brand-claro);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    text-decoration: none;
}

.novidades-tag:hover {
    text-decoration: underline;
}

.anexo-item-imagem {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.anexo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    display: block;
    cursor: pointer;
}

.anexo-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 2rem;
}

.anexo-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.anexo-lightbox-fechar {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
}
.modal-hint {
    color: #8892a4;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

.modal-label-linha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-publico, .badge-interno {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-publico {
    background: #1a3a4a;
    color: #7ecbf7;
}

.badge-interno {
    background: #4a3a1a;
    color: #f7c67e;
}

.modal-campo-publico {
    border-left: 3px solid #7ecbf7;
    padding-left: 0.75rem;
}

.modal-campo-interno {
    border-left: 3px solid #f7c67e;
    padding-left: 0.75rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.btn-salvar {
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-salvar:hover {
    background: #3a8eef;
}

.btn-salvar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.linha-clicavel {
    cursor: pointer;
    transition: background 0.15s;
}

.linha-clicavel:hover {
    background: rgba(255,255,255,0.05);
}

.link-voltar {
    display: inline-block;
    color: #8892a4;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.link-voltar:hover {
    color: #e2e8f0;
}

/* ===== RELATÓRIOS ===== */
.relatorios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.grafico-card {
    background: #2a2f3e;
    border-radius: 12px;
    padding: 1.5rem;
}

.grafico-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 1.5rem;
}

/* ===== CONFIGURAÇÕES ===== */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.config-card {
    background: #2a2f3e;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-titulo {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.config-separador {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.5rem 0;
}

.config-msg {
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.config-label-pequeno {
    font-size: 0.8rem;
    color: #8892a4;
    margin: 0;
}

.input-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-whatsapp {
    display: inline-block;
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background: #1fb855;
}

/* ===== RESPONSIVE - MOBILE (max-width: 768px) ===== */

.btn-menu-mobile {
    display: none;
}

@media (max-width: 768px) {
    .btn-menu-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
        background: #2d3340;
        border: 1px solid #4a5568;
        border-radius: 8px;
        color: #fff;
        font-size: 1.1rem;
        z-index: 1002;
        cursor: pointer;
    }

    .overlay-sidebar-mobile {
        display: none;
    }

    .overlay-sidebar-mobile.ativo {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1001;
    }

    .sidebar.aberta {
        transform: translateX(0);
    }

    .painel-main {
        padding-top: 4.5rem;
    }

    .demandas-tabela thead {
        display: none;
    }

    .demandas-tabela,
    .demandas-tabela tbody,
    .demandas-tabela tr,
    .demandas-tabela td {
        display: block;
        width: 100%;
    }

    .demandas-tabela tr {
        margin-bottom: 1rem;
        border: 1px solid #5a6478;
        border-radius: 8px;
        padding: 0.5rem 1rem;
    }

    .demandas-tabela td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }

    .demandas-tabela td:last-child {
        border-bottom: none;
    }

    .demandas-tabela td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #8a9ab5;
        text-align: left;
    }

    .modal-grid,
    .relatorios-grid,
    .config-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        flex-direction: column;
    }

    .login-left {
        padding: 1.5rem;
    }

    .search-box,
    .demandas-toolbar select {
        width: 100%;
    }

    .painel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nome-gabinete {
        text-align: left;
    }

    .painel-header-acoes {
        flex-wrap: wrap;
    }

    .passo-linha {
        display: none;
    }
}