/*
 * style.css — VotoSeguro | Portal Público
 * Design moderno, acessível e institucional
 */

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── Paleta Navy Institucional ── */
    --navy-900:  #0f1f35;
    --navy-800:  #17304f;   /* cor principal: azul marinho profundo */
    --navy-700:  #1e3d64;
    --navy-600:  #254d7e;
    --navy-500:  #2e619e;
    --navy-400:  #4a7fc0;
    --navy-100:  #d0dff0;
    --navy-50:   #eaf0f8;

    /* ── Ouro Institucional ── */
    --gold:       #b8860b;
    --gold-mid:   #c9960e;
    --gold-light: #d4a520;
    --gold-bg:    rgba(184,134,11,.08);

    /* ── Backgrounds — ligeiramente quentes (não frio/gélido) ── */
    --bg:        #eef0f4;
    --surface:   #ffffff;
    --surface-2: #f5f6f8;

    /* ── Texto — navy-tinted ── */
    --text:       #1c2535;
    --text-sec:   #374259;
    --text-muted: #5e6d88;
    --text-dim:   #8a99b3;

    /* ── Bordas ── */
    --border:   #c8cdd6;
    --border-s: #9aa3b5;

    /* ── Status institucionais sóbrios ── */
    --success:    #1a5c35;
    --success-bg: #e3f2e8;
    --success-bd: #b3d9be;
    --warning:    #7a4a00;
    --warning-bg: #fdf3e3;
    --warning-bd: #e8cfa0;
    --danger:     #8b1c1c;
    --danger-bg:  #fceaea;
    --danger-bd:  #e8bbbb;
    --info:       #0d3d6e;
    --info-bg:    #e2edf9;
    --info-bd:    #aac6e0;

    /* ── Accent ── */
    --accent:       #b8860b;
    --accent-light: #d4a520;

    /* ── Sombras (calibradas para fundo #eef0f4) ── */
    --shadow-xs: 0 1px 2px rgba(28,37,53,.04);
    --shadow-sm: 0 2px 8px rgba(28,37,53,.07), 0 1px 3px rgba(28,37,53,.04);
    --shadow-md: 0 6px 20px rgba(28,37,53,.10);
    --shadow-lg: 0 12px 36px rgba(28,37,53,.15);
    --shadow-card: var(--shadow-sm);

    /* ── Radii ── */
    --r-xs:   4px;
    --r-sm:   8px;
    --r:      12px;
    --r-lg:   18px;
    --r-xl:   24px;
    --r-full: 9999px;

    /* ── Font ── */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ── Aliases compatibilidade (variáveis legadas) ── */
    --navy:         #17304f;
    --navy-mid:     #1e3d64;
    --radius:       var(--r-sm);
    --primary:      #17304f;
    --primary-dark: #0d2b6b;
    --primary-light: #4a7fc0;
    --white:        #ffffff;
    --accent:       #b8860b;
    --radius-xl:    var(--r-xl);
    --radius-lg:    var(--r-lg);
    --radius-sm:    var(--r-sm);

    /* Shorthand novo CSS */
    --blue-900: #17304f;
    --blue-800: #1e3d64;
    --blue-700: #254d7e;
    --blue-600: #2e619e;
    --blue-500: #4a7fc0;
    --blue-400: #6a99d0;
    --blue-100: #d0dff0;
    --blue-50:  #eaf0f8;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-weight: 700; color: var(--text); letter-spacing: -.02em; }

/* Page fade-in */
body > * { animation: portalFadeIn .4s ease; }
@keyframes portalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   TOPBAR INSTITUCIONAL
   ═══════════════════════════════════════════════ */
.topbar {
    background: #08131f;
    color: rgba(255,255,255,.65);
    font-size: .75rem; padding: .42rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.6); transition: color .15s; }
.topbar a:hover { color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════════
   NAVBAR — DARK INSTITUCIONAL
   ═══════════════════════════════════════════════ */
.navbar {
    background: #0e2040;
    border-bottom: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 2px 16px rgba(8,19,31,.45);
    position: sticky; top: 0; z-index: 500;
}
.navbar .container {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: nowrap;
    height: 64px;
}
.navbar-brand {
    display: flex; align-items: center; gap: .65rem;
    text-decoration: none; flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; }
.navbar-brand .brand-icon {
    width: 36px; height: 36px; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--gold-mid), var(--gold));
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; color: #0f1f35; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(184,134,11,.4);
}
.navbar-brand .brand-text { line-height: 1.25; }
.navbar-brand .brand-name {
    display: block; font-size: 1rem; font-weight: 800;
    color: #fff; letter-spacing: -.01em;
}
.navbar-brand .brand-slogan {
    display: block; font-size: .6rem; color: rgba(255,255,255,.5);
    text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
}
.navbar-nav {
    display: flex; align-items: center; gap: .1rem;
    flex: 1; justify-content: flex-end; list-style: none;
}
.navbar-nav a {
    display: flex; align-items: center; gap: .35rem;
    padding: .5rem .85rem; font-size: .83rem; font-weight: 600;
    color: rgba(255,255,255,.7); border-radius: var(--r-sm);
    transition: all .18s; text-decoration: none; white-space: nowrap;
}
.navbar-nav a:hover { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.navbar-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.navbar-nav a i { font-size: .75rem; opacity: .8; }

/* Link destacado — Área Administrativa */
.navbar-nav a.nav-admin {
    color: var(--gold-light); border: 1px solid rgba(184,134,11,.3);
    background: rgba(184,134,11,.1);
}
.navbar-nav a.nav-admin:hover {
    background: rgba(184,134,11,.2); color: var(--gold-light);
    border-color: rgba(184,134,11,.5);
}

.navbar-toggle {
    display: none; background: none;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-sm); padding: .42rem .55rem;
    font-size: .95rem; color: rgba(255,255,255,.7); cursor: pointer;
    margin-left: auto; flex-shrink: 0; transition: all .18s;
}
.navbar-toggle:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Mobile menu */
.mobile-menu {
    display: none; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.08);
    background: var(--navy-900);
}
.mobile-menu.open { display: flex; animation: slideDown .2s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
    padding: .85rem 1rem; font-size: .88rem; color: rgba(255,255,255,.75);
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: .5rem;
    transition: background .15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════ */
.container {
    width: 100%; max-width: 1140px;
    margin: 0 auto; padding: 0 1.25rem;
}

/* ═══════════════════════════════════════════════
   HERO — INSTITUCIONAL V1 (azul vibrante, centralizado)
   ═══════════════════════════════════════════════ */
.hero {
    background:
        linear-gradient(160deg, #0b1d38 0%, #122e5e 45%, #1a3e78 100%);
    padding: 4rem 0 3.5rem;
    position: relative; overflow: hidden;
    text-align: center;
}
/* Luz sutil à direita para profundidade */
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 75% 40%, rgba(100,160,255,.1) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(30,70,140,.25) 0%, transparent 50%);
    pointer-events: none;
}
/* Padrão geométrico discreto */
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem); font-weight: 800; color: #fff;
    margin-bottom: .85rem; line-height: 1.2;
}
/* Destaque dourado institucional — mais sóbrio que o amarelo genérico */
.hero h1 span { color: var(--gold-light); }
.hero p {
    font-size: 1.05rem; color: rgba(255,255,255,.78);
    max-width: 600px; margin: 0 auto 1.75rem; line-height: 1.7;
}
.hero-badges {
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .85rem; border-radius: var(--r-full);
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.88); font-size: .78rem; font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all .2s;
}
.hero-badge:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.28); }
.hero-badge i { font-size: .74rem; color: var(--gold-light); }

/* ═══════════════════════════════════════════════
   SEÇÃO PADRÃO
   ═══════════════════════════════════════════════ */
.section { padding: 2rem 0; }
.section-title {
    font-size: 1.2rem; font-weight: 800; color: var(--navy-800);
    margin-bottom: .35rem; letter-spacing: -.02em;
    display: flex; align-items: center; gap: .6rem;
}
.section-title .st-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: var(--r-xs);
    background: var(--gold-bg); color: var(--gold);
    font-size: .85rem; flex-shrink: 0;
    border: 1px solid var(--gold-bd, rgba(184,134,11,.25));
}
.section-subtitle {
    font-size: .87rem; color: var(--text-muted); margin-bottom: 1.35rem; line-height: 1.6;
}
.section-title--light { color: #fff; }
.section-title--light .st-icon { background: rgba(255,255,255,.12); color: #ffd54f; border-color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════════════════
   FILTROS
   ═══════════════════════════════════════════════ */
.filters-bar {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: .85rem 1.1rem;
    margin-bottom: 1.25rem; box-shadow: var(--shadow-xs);
}
.filter-row {
    display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-group {
    display: flex; flex-direction: column; gap: .3rem;
    flex: 1; min-width: 160px;
}
.filter-group label {
    font-size: .74rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .05em;
}
.form-select, .form-control {
    padding: .52rem .85rem; border: 1.5px solid var(--border-s);
    border-radius: var(--r-sm); font-size: .88rem; font-family: var(--font);
    color: var(--text); background: var(--surface); outline: none;
    transition: all .2s; height: 40px;
}
.form-select:focus, .form-control:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(23,48,79,.1);
}

/* ═══════════════════════════════════════════════
   CARDS DE ELEIÇÃO — GRID 3 COLUNAS (v1 style)
   ═══════════════════════════════════════════════ */
.elections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.election-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: all .25s;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.election-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--navy-400);
}
.election-card.status-encerrada { opacity: .8; }
.election-card.status-encerrada:hover { opacity: 1; }

/* Barra colorida no topo do card */
.card-header-bar {
    display: block;
    height: 4px;
}
.election-card.status-em_andamento .card-header-bar { background: var(--success); }
.election-card.status-aguardando   .card-header-bar { background: var(--warning); }
.election-card.status-encerrada    .card-header-bar { background: var(--text-dim); }

.card-body {
    padding: .9rem 1rem;
    display: flex; flex-direction: column; gap: .6rem;
    flex: 1;
}

/* Linha topo do card: entidade + badge status */
.ec-top {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.ec-entity {
    font-size: .7rem; font-weight: 700; color: var(--navy-800);
    text-transform: uppercase; letter-spacing: .07em;
    display: flex; align-items: center; gap: .3rem;
    background: var(--navy-50); border: 1px solid var(--navy-100);
    padding: .1rem .5rem; border-radius: var(--r-xs);
}
.ec-entity i { color: var(--gold); font-size: .65rem; }

.ec-title {
    font-size: .95rem; font-weight: 700; color: var(--text);
    margin: 0; line-height: 1.35;
}

.ec-meta {
    display: flex; flex-direction: column; gap: .3rem;
    font-size: .78rem; color: var(--text-muted);
}
.ec-meta span { display: flex; align-items: center; gap: .35rem; }
.ec-meta i { color: var(--navy-400); font-size: .72rem; width: 14px; }

/* Mensagem de status (ex: "Votação aberta!") */
.ec-status-msg {
    font-size: .76rem; font-weight: 600; padding: .35rem .6rem;
    border-radius: var(--r-xs); margin-top: .15rem;
}
.ec-status-msg.open  { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.ec-status-msg.wait  { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.ec-status-msg.ended { background: var(--surface-2); color: var(--text-muted); border-left: 3px solid var(--border-s); }

.ec-footer {
    display: flex; gap: .45rem; align-items: center;
    padding: .75rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    margin-top: auto;
}

/* ═══════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; border-radius: var(--r-sm);
    font-size: .88rem; font-weight: 700; font-family: var(--font);
    cursor: pointer; border: 1.5px solid transparent;
    transition: all .2s ease; text-decoration: none;
    white-space: nowrap; line-height: 1.3;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: .85rem; }

.btn-primary {
    background: var(--navy-800); color: #fff; border-color: var(--navy-800);
}
.btn-primary:hover {
    background: var(--navy-700); color: #fff; text-decoration: none;
    box-shadow: 0 4px 14px rgba(23,48,79,.35); transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface); color: var(--text-sec); border-color: var(--border-s);
}
.btn-secondary:hover {
    background: var(--bg); border-color: var(--navy-600); color: var(--navy-700);
    text-decoration: none;
}

.btn-votar {
    background: linear-gradient(135deg, var(--success), #047857);
    color: #fff; border-color: var(--success);
    font-size: .9rem; font-weight: 800; padding: .6rem 1.35rem;
    letter-spacing: .02em; border-radius: var(--r-sm);
}
.btn-votar:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    color: #fff; text-decoration: none;
    box-shadow: 0 6px 20px rgba(5,150,105,.4); transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.12); color: #fff; text-decoration: none;
    border-color: rgba(255,255,255,.7);
}

.btn-sm  { padding: .35rem .75rem; font-size: .8rem; border-radius: var(--r-xs); }
.btn-lg  { padding: .7rem 1.5rem; font-size: .96rem; }

/* ═══════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════ */
.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .2rem .65rem; border-radius: var(--r-full);
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.badge-em_andamento, .badge-success {
    background: var(--success-bg); color: var(--success);
}
.badge-em_andamento::before,
.badge-success::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    animation: blinkStatus 2s ease infinite;
}
@keyframes blinkStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}
.badge-aguardando, .badge-warning {
    background: var(--warning-bg); color: var(--warning);
}
.badge-encerrada, .badge-secondary {
    background: var(--surface-2); color: var(--text-muted);
}
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);     color: var(--info); }

/* ═══════════════════════════════════════════════
   ALERTAS
   ═══════════════════════════════════════════════ */
.alert {
    padding: .8rem 1rem; border-radius: var(--r-sm);
    font-size: .87rem; display: flex; align-items: flex-start;
    gap: .6rem; border: 1px solid; margin-bottom: .85rem; line-height: 1.6;
}
.alert i { flex-shrink: 0; margin-top: .1rem; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-bd); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bd); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-bd); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }

/* ═══════════════════════════════════════════════
   COMO VOTAR
   ═══════════════════════════════════════════════ */
.howto-section {
    background: var(--surface); border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); padding: 2rem 0;
}
.howto-title {
    font-size: 1.05rem; font-weight: 800; color: var(--navy-800);
    margin-bottom: 1.25rem; text-align: center; letter-spacing: -.02em;
}
.howto-steps {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.howto-step {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .9rem; background: var(--bg);
    border-radius: var(--r-sm); border: 1px solid var(--border);
}
.step-num {
    width: 32px; height: 32px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: #fff; border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: .82rem; font-weight: 800;
}
.step-text h4, .step-content h4 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.step-text p,  .step-content p  { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════
   SECURITY SECTION
   ═══════════════════════════════════════════════ */
.security-section {
    background: #0f1f35; padding: 2rem 0;
}
.security-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.security-item {
    display: flex; flex-direction: column; gap: .65rem;
    padding: 1rem; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--r-sm);
}
.si-icon {
    width: 36px; height: 36px; border-radius: var(--r-sm);
    background: rgba(184,134,11,.15); border: 1px solid rgba(184,134,11,.25);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.security-item i, .security-item .si-icon i {
    font-size: 1rem; color: var(--gold-light);
}
.security-item h4, .security-item h5 {
    font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: .2rem;
}
.security-item p  { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.55; }

/* ═══════════════════════════════════════════════
   FOOTER — INSTITUCIONAL
   ═══════════════════════════════════════════════ */
.footer {
    background: var(--navy-900);
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.footer a { color: rgba(255,255,255,.45); transition: color .15s; text-decoration: none; }
.footer a:hover { color: rgba(255,255,255,.85); text-decoration: none; }

/* Grid principal do footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 2.5rem;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Coluna de marca */
.fb-name {
    font-size: .95rem; font-weight: 700;
    color: #fff; margin-bottom: .6rem;
    display: flex; align-items: center; gap: .4rem;
}
.fb-name i { color: var(--gold); }
.footer-brand p {
    color: rgba(255,255,255,.45); line-height: 1.65;
    font-size: .78rem; margin-bottom: .75rem;
}
.secure-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .7rem; font-weight: 600;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-full);
    padding: .2rem .65rem;
    background: rgba(255,255,255,.04);
}
.secure-badge i { font-size: .65rem; color: var(--gold-light); }

/* Colunas de navegação */
.footer-col h4 {
    font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: .85rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.45); font-size: .8rem;
    display: flex; align-items: center; gap: .3rem;
    transition: color .15s, padding-left .15s;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.85); padding-left: .25rem; }
.footer-col ul li a i { font-size: .6rem; opacity: .6; }

/* Barra de copyright */
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; flex-wrap: wrap;
    padding: .85rem 0;
    font-size: .75rem;
    color: rgba(255,255,255,.35);
}
.footer-bottom i { color: var(--gold); }

/* ═══════════════════════════════════════════════
   VOTAÇÃO MOBILE-FIRST
   ═══════════════════════════════════════════════ */
/* Página de eleição / candidatos */
.voto-hero {
    background: linear-gradient(135deg, #0f1f35, #17304f);
    color: #fff; padding: 1.25rem 0; position: sticky; top: 64px; z-index: 100;
    box-shadow: var(--shadow-md);
}
.voto-title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: .15rem; }
.voto-sub   { font-size: .78rem; color: rgba(255,255,255,.65); }

.cargo-section { margin-bottom: 1.5rem; }
.cargo-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r) var(--r) 0 0;
    padding: .9rem 1.1rem;
    border-bottom: 2px solid var(--navy-800);
    display: flex; align-items: center; justify-content: space-between;
}
.cargo-title { font-size: .95rem; font-weight: 800; color: var(--navy-800); }
.cargo-info  { font-size: .75rem; color: var(--text-muted); }

.candidatos-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem; padding: .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--r) var(--r);
}

/* Card candidato */
.candidato-card {
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1rem;
    cursor: pointer;
    transition: all .2s;
    background: var(--surface);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: .5rem;
    position: relative; overflow: hidden;
}
.candidato-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: transparent; transition: background .2s;
}
.candidato-card:hover { border-color: var(--navy-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.candidato-card:hover::before { background: linear-gradient(90deg, var(--navy-600), var(--navy-400)); }
.candidato-card.selected { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(23,48,79,.18); }
.candidato-card.selected::before { background: linear-gradient(90deg, var(--navy-800), var(--navy-500)); }

.cand-photo {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; font-weight: 800; flex-shrink: 0;
    border: 3px solid var(--border);
    transition: border-color .2s;
}
.candidato-card.selected .cand-photo { border-color: var(--navy-600); }
.candidato-card:hover .cand-photo { border-color: var(--navy-500); }

.cand-card-name { font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.cand-card-partido { font-size: .74rem; color: var(--text-muted); }
.cand-card-num {
    font-size: .75rem; font-weight: 700;
    background: var(--navy-50); color: var(--navy-700);
    padding: .18rem .6rem; border-radius: var(--r-full);
    border: 1px solid var(--navy-100);
}

.selected-check {
    display: none; position: absolute; top: .5rem; right: .5rem;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--navy-700); color: #fff;
    font-size: .72rem; align-items: center; justify-content: center;
}
.candidato-card.selected .selected-check { display: flex; }

/* Opções especiais (branco/nulo) */
.opcao-especial {
    border: 2px dashed var(--border);
    border-radius: var(--r-sm); padding: .75rem 1rem;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; gap: .75rem;
    background: var(--surface);
    margin-top: .5rem;
}
.opcao-especial:hover { border-color: var(--text-dim); background: var(--bg); }
.opcao-especial.selected { border-color: var(--warning); border-style: solid; background: var(--warning-bg); }
.opcao-especial i { font-size: 1.1rem; color: var(--text-dim); }
.opcao-especial h5 { font-size: .85rem; font-weight: 700; color: var(--text); }
.opcao-especial p  { font-size: .75rem; color: var(--text-muted); }

/* Barra fixa de votar */
.voto-footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: .85rem 1.25rem;
    box-shadow: 0 -4px 20px rgba(15,23,42,.12);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.voto-progress { font-size: .8rem; color: var(--text-muted); }
.voto-progress strong { color: var(--text); font-weight: 700; }

/* Bottom sheet modal */
.bottom-sheet-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,.55); z-index: 9999;
    align-items: flex-end;
    backdrop-filter: blur(4px);
}
.bottom-sheet-overlay.open { display: flex; }
.bottom-sheet {
    background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
    width: 100%; max-width: 600px; margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    box-shadow: 0 -8px 40px rgba(15,23,42,.2);
    animation: sheetUp .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@keyframes modalShake {
    0%, 100% { transform: translateX(0); }
    15%      { transform: translateX(-6px); }
    30%      { transform: translateX(5px); }
    45%      { transform: translateX(-4px); }
    60%      { transform: translateX(3px); }
    75%      { transform: translateX(-2px); }
    90%      { transform: translateX(1px); }
}
.bottom-sheet.shake { animation: modalShake .45s ease; }
.sheet-handle {
    width: 40px; height: 4px; background: var(--border-s);
    border-radius: var(--r-full); margin: 0 auto 1rem;
}
.sheet-title { font-size: 1.05rem; font-weight: 800; color: var(--text); text-align: center; margin-bottom: .4rem; }
.sheet-sub   { font-size: .85rem; color: var(--text-muted); text-align: center; margin-bottom: 1.25rem; }
.sheet-cand  {
    background: var(--navy-50); border: 1px solid var(--navy-100);
    border-radius: var(--r-sm); padding: .9rem 1rem; margin-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem;
}
.sheet-cand-photo {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 800;
}
.sheet-cand-name { font-size: .92rem; font-weight: 700; color: var(--navy-800); }
.sheet-cand-cargo { font-size: .76rem; color: var(--text-muted); margin-top: .1rem; }
.sheet-actions {
    display: flex; flex-direction: column; gap: .65rem;
}

/* Confirmação de voto */
.voto-success {
    text-align: center; padding: 2.5rem 1rem;
}
.success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #047857);
    color: #fff; font-size: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    animation: successPop .5s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 6px 24px rgba(5,150,105,.4);
}
@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Protocolo */
.protocolo-card {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: var(--r-lg); padding: 2rem;
    text-align: center; box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.protocolo-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--navy-800), var(--gold), var(--navy-500));
}
.protocolo-num {
    font-size: 2rem; font-weight: 800; color: var(--navy-800);
    letter-spacing: .05em; font-family: monospace; margin-bottom: .5rem;
}

/* ═══════════════════════════════════════════════
   UTILITÁRIOS
   ═══════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* ═══════════════════════════════════════════════
   PÁGINA DE PROTOCOLO / CONSULTA
   ═══════════════════════════════════════════════ */

/* Wrapper reutiliza o padrão confirm-wrapper */
.protocol-page-wrapper {
    background: linear-gradient(150deg, #0d2b6b 0%, #1552a8 50%, #1a3d7a 100%);
    min-height: calc(100vh - 110px);
    padding: 2rem 1rem 3rem;
    display: flex; flex-direction: column;
    align-items: center;
}

/* Hero de cabeçalho */
.protocol-hero {
    width: 100%; max-width: 680px;
    text-align: center; margin-bottom: 1.75rem;
}
.protocol-hero-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.2);
    color: #fff; font-size: 1.45rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .9rem;
}
.protocol-hero h1 {
    font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .35rem;
}
.protocol-hero p { font-size: .88rem; color: rgba(255,255,255,.7); }

/* Área de conteúdo centralizada */
.protocol-content {
    width: 100%; max-width: 680px;
    display: flex; flex-direction: column; gap: 1rem;
}

/* Card branco padrão */
.protocol-card-white {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(10,25,60,.25);
    overflow: hidden;
}
.protocol-card-white .card-body { padding: 1.35rem 1.5rem; }

/* Resultado de protocolo encontrado */
.protocol-result {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(10,25,60,.25);
    overflow: hidden;
}
.pr-header {
    display: flex; align-items: center; gap: .6rem;
    background: linear-gradient(135deg, #14532d, #15803d);
    color: #fff; font-size: .9rem; font-weight: 700;
    padding: .9rem 1.25rem;
}
.pr-header i { font-size: 1rem; }
.pr-body { padding: .75rem 1.25rem; }
.pr-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .6rem 0; border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.pr-row:last-child { border-bottom: none; }
.pr-label { color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: .35rem; }
.pr-label i { color: var(--navy-500); font-size: .75rem; }
.pr-value { font-weight: 700; text-align: right; max-width: 60%; }
.pr-value.valid { color: var(--success); }

/* Card de exemplos */
.proto-examples-card {
    background: var(--surface-2);
    border-radius: var(--r-lg);
    box-shadow: 0 4px 12px rgba(10,25,60,.12);
}
.proto-examples-card .card-body { padding: 1rem 1.25rem; }

/* ═══════════════════════════════════════════════
   PÁGINA DE CONFIRMAÇÃO / COMPROVANTE
   ═══════════════════════════════════════════════ */

/* Wrapper geral — fundo navy igual ao acesso */
.confirm-wrapper {
    background: linear-gradient(150deg, #0d2b6b 0%, #1552a8 50%, #1a3d7a 100%);
    min-height: calc(100vh - 110px);
    padding: 2rem 1rem 3rem;
    display: flex; flex-direction: column;
    align-items: center;
}

/* Breadcrumb do topo */
.confirm-breadcrumb {
    width: 100%; max-width: 620px;
    font-size: .78rem; color: rgba(255,255,255,.6);
    display: flex; align-items: center; gap: .4rem;
    margin-bottom: 1.25rem; flex-wrap: wrap;
}
.confirm-breadcrumb a { color: rgba(255,255,255,.65); text-decoration: none; }
.confirm-breadcrumb a:hover { color: #fff; }
.confirm-breadcrumb i { font-size: .6rem; opacity: .5; }

/* Card principal */
.confirm-card {
    width: 100%; max-width: 620px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(10,25,60,.4);
    overflow: hidden;
}

/* Cabeçalho de sucesso */
.confirm-success-header {
    background: linear-gradient(135deg, #14532d, #15803d);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    border-bottom: 3px solid #16a34a;
}
.confirm-check-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.35);
    color: #fff; font-size: 1.75rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.confirm-success-header h1 {
    font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .35rem;
}
.confirm-success-header p { font-size: .88rem; color: rgba(255,255,255,.75); }

/* Bloco do protocolo */
.protocol-box {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    padding: 1.5rem; text-align: center;
    border-bottom: 1px solid var(--border);
}
.proto-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(255,255,255,.55);
    margin-bottom: .5rem;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.proto-label i { color: var(--gold-light); font-size: .7rem; }
.proto-number {
    font-size: 1.9rem; font-weight: 900; letter-spacing: .12em;
    font-family: 'Courier New', monospace;
    color: var(--gold-light);
    text-shadow: 0 2px 12px rgba(184,134,11,.4);
    margin-bottom: .4rem;
}
.proto-date {
    font-size: .8rem; color: rgba(255,255,255,.55);
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.proto-date i { color: rgba(255,255,255,.35); font-size: .72rem; }
.proto-audit {
    margin-top: .6rem; font-size: .72rem;
    color: rgba(255,255,255,.4);
    display: flex; align-items: center; justify-content: center; gap: .35rem;
}
.proto-audit i { color: var(--gold); font-size: .68rem; }

/* Corpo do comprovante */
.confirm-body { padding: 1.35rem 1.5rem; }

/* Tabela de dados */
.confirm-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.confirm-table tr { border-bottom: 1px solid var(--border); }
.confirm-table tr:last-child { border-bottom: none; }
.confirm-table td {
    padding: .65rem .25rem; font-size: .85rem; vertical-align: middle;
}
.confirm-table td:first-child {
    color: var(--text-muted); font-weight: 600; width: 38%;
}
.confirm-table td:last-child { font-weight: 600; text-align: right; }
.confirm-table .proto-cell {
    font-family: 'Courier New', monospace;
    font-size: .92rem; font-weight: 800;
    color: var(--navy-700);
}

/* Ações */
.confirm-actions { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.25rem; }
.btn-print {
    background: var(--navy-800); color: #fff;
    border: none; display: flex; align-items: center;
    justify-content: center; gap: .45rem;
    padding: .85rem; border-radius: var(--r-sm);
    font-size: .92rem; font-weight: 700; font-family: var(--font);
    cursor: pointer; text-decoration: none;
    transition: background .18s;
}
.btn-print:hover { background: var(--navy-700); color: #fff; text-decoration: none; }

/* Card de aviso "guarde este número" */
.keep-notice {
    background: var(--warning-bg); border: 1px solid var(--warning-bd);
    border-radius: var(--r-sm); padding: .9rem 1rem;
    display: flex; gap: .7rem; align-items: flex-start;
}
.keep-notice i { color: var(--warning); flex-shrink: 0; margin-top: .1rem; }
.keep-notice p { font-size: .82rem; color: var(--text-sec); line-height: 1.6; }
.keep-notice strong { color: var(--warning); }

/* ═══════════════════════════════════════════════
   PÁGINA DE ACESSO / LOGIN DO ELEITOR
   ═══════════════════════════════════════════════ */

/* Wrapper — fundo gradient navy */
.access-wrapper {
    background: linear-gradient(150deg, #0d2b6b 0%, #1552a8 50%, #1a3d7a 100%);
    min-height: calc(100vh - 110px);
    padding: 2.5rem 1rem 3rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* Strip da eleição (topo) */
.access-election-strip {
    width: 100%; max-width: 460px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r);
    padding: .75rem 1.1rem;
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: .7rem;
    color: rgba(255,255,255,.9); font-size: .82rem;
}
.access-election-strip i.strip-icon { color: #ffd54f; font-size: 1rem; flex-shrink: 0; }
.access-election-strip .strip-entity {
    font-size: .68rem; opacity: .7;
    text-transform: uppercase; letter-spacing: .06em;
}
.access-election-strip .strip-title { font-weight: 600; }

/* Card principal */
.access-card {
    width: 100%; max-width: 460px;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 60px rgba(10,25,60,.35);
    overflow: hidden;
}

/* Cabeçalho do card */
.ac-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}
.lock-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-mid), var(--gold));
    color: #0f1f35; display: flex; align-items: center;
    justify-content: center; font-size: 1.25rem;
    margin: 0 auto .85rem;
    box-shadow: 0 4px 16px rgba(184,134,11,.4);
}
.ac-header h2 {
    font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .3rem;
}
.ac-header p { font-size: .85rem; color: rgba(255,255,255,.6); }

/* Corpo do card */
.ac-body { padding: 1.5rem; }

/* Labels do formulário */
.form-label {
    display: flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600; color: var(--text-sec);
    margin-bottom: .4rem;
}
.form-label i { color: var(--navy-500); font-size: .75rem; }
.form-label .req { color: var(--danger); }

/* Input grande */
.form-control-lg {
    height: 46px; font-size: .95rem; padding: .55rem 1rem;
    border: 1.5px solid var(--border-s);
    border-radius: var(--r-sm);
    width: 100%; font-family: var(--font);
    color: var(--text); background: var(--surface);
    transition: all .2s; outline: none;
}
.form-control-lg:focus {
    border-color: var(--navy-600);
    box-shadow: 0 0 0 3px rgba(23,48,79,.12);
}

/* Botão bloco */
.btn-block { width: 100%; justify-content: center; }

/* Caixas de info */
.info-box, .warning-box {
    display: flex; align-items: flex-start; gap: .55rem;
    font-size: .8rem; line-height: 1.55; padding: .6rem .75rem;
    border-radius: var(--r-xs); border: 1px solid;
}
.info-box {
    background: var(--info-bg); color: var(--info);
    border-color: var(--info-bd);
}
.info-box i, .warning-box i { flex-shrink: 0; margin-top: .1rem; font-size: .8rem; }

.warning-box {
    background: var(--warning-bg); color: var(--warning);
    border-color: var(--warning-bd);
}

/* Prazo */
.access-deadline {
    margin-top: .85rem; text-align: center;
    color: rgba(255,255,255,.6); font-size: .78rem;
}
.access-deadline i { margin-right: .3rem; color: rgba(255,255,255,.45); }

/* ═══════════════════════════════════════════════
   PÁGINA DE DETALHES DA ELEIÇÃO
   ═══════════════════════════════════════════════ */

/* Header da eleição */
.election-detail-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
    padding: 1.75rem 0 1.5rem;
    color: #fff;
    border-bottom: 3px solid var(--gold);
}

/* Breadcrumb */
.breadcrumb {
    display: flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: rgba(255,255,255,.55);
    margin-bottom: .6rem; flex-wrap: wrap;
}
.breadcrumb a {
    color: rgba(255,255,255,.65); text-decoration: none;
    display: flex; align-items: center; gap: .3rem;
    transition: color .15s;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { font-size: .6rem; opacity: .4; }
.breadcrumb .current { color: rgba(255,255,255,.8); }

/* Tag da entidade */
.ent-tag {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: var(--gold-light);
    background: rgba(184,134,11,.15); border: 1px solid rgba(184,134,11,.3);
    padding: .2rem .65rem; border-radius: var(--r-full);
    margin-bottom: .6rem;
}
.ent-tag i { font-size: .65rem; }

/* Título da eleição */
.election-detail-header h1 {
    font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 800;
    color: #fff; line-height: 1.25; margin: 0;
}

/* Linha de metadados */
.meta-row {
    display: flex; flex-wrap: wrap; gap: .6rem 1.25rem;
    margin-top: .85rem;
}
.meta-row span {
    display: flex; align-items: center; gap: .4rem;
    font-size: .8rem; color: rgba(255,255,255,.72);
}
.meta-row i { color: var(--gold-light); font-size: .75rem; }

/* ── Tabs ── */
.tabs {
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky; top: 64px; z-index: 400;
}
.tabs-nav {
    display: flex; gap: 0; overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    display: flex; align-items: center; gap: .4rem;
    padding: .85rem 1.1rem; font-size: .83rem; font-weight: 600;
    color: rgba(255,255,255,.6); background: none; border: none;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    border-bottom: 3px solid transparent;
    transition: all .18s; font-family: var(--font);
}
.tab-btn:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.tab-btn.active { color: #fff; border-bottom-color: var(--gold-light); }
.tab-btn i { font-size: .75rem; }
.tab-btn-resultados { position: relative; }
.tab-btn-resultados.active { border-bottom-color: #4ade80; }
.tab-btn-resultados:hover { color: #86efac; }

/* Conteúdo das tabs */
.tab-content { display: none; }
.tab-content.active { display: block; animation: tabFadeIn .2s ease; }
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-sm { padding: 1.5rem 0 2.5rem; }

/* ── Seção de cargos ── */
.cargo-section {
    margin-bottom: 1.75rem;
}
.cargo-header-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; padding: .8rem 1rem;
    background: var(--navy-800);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
    flex-wrap: wrap;
}
.cargo-title {
    display: flex; align-items: center; gap: .5rem;
    font-size: .95rem; font-weight: 700; color: #fff;
}
.cargo-title i { color: var(--gold-light); font-size: .85rem; }
.cargo-vagas {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
    padding: .15rem .6rem; border-radius: var(--r-full);
    border: 1px solid rgba(255,255,255,.15);
}
.cargo-vagas i { font-size: .6rem; color: var(--gold-light); }

/* Grid de candidatos (modo exibição — não votação) */
.cargo-section .candidatos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
}

/* Card candidato modo exibição */
.cargo-section .candidato-card {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.25rem 1rem 1rem;
    background: var(--surface);
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: .5rem;
    transition: box-shadow .2s, border-color .2s;
    cursor: default;
    min-width: 140px;
}
.cargo-section .candidato-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--navy-300, #6a99d0);
}

.numero-badge {
    font-size: .68rem; font-weight: 800;
    background: var(--navy-800); color: #fff;
    padding: .15rem .55rem; border-radius: var(--r-full);
    letter-spacing: .04em;
}

.cargo-section .avatar, .candidato-card .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; flex-shrink: 0;
    border: 3px solid var(--navy-200, #c5d5e8);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.cargo-section .avatar img, .candidato-card .avatar img {
    width: 100%; height: 100%;
    object-fit: cover; border-radius: 50%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.candidato-nome {
    font-size: .88rem; font-weight: 700; color: var(--text);
    line-height: 1.3;
}
.candidato-cargo {
    font-size: .72rem; color: var(--text-muted); font-weight: 500;
}

/* ── Card genérico ── */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-body { padding: 1.25rem 1.35rem; }
.card-title {
    font-size: 1rem; font-weight: 700; color: var(--navy-800);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: 1rem;
}
.card-title i { color: var(--navy-500); font-size: .9rem; }

/* Info grid (tab Sobre) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem; margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.info-item-label {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--text-muted); margin-bottom: .3rem;
}
.info-item-value { font-size: .9rem; font-weight: 600; color: var(--text); }

/* Botão votar hero (maior) */
.btn-votar-hero {
    font-size: 1rem; padding: .75rem 2.25rem; letter-spacing: .04em;
}

/* Caixa CTA votar */
.cta-votar {
    text-align: center; margin-top: 2rem; padding: 1.5rem;
    background: var(--surface); border-radius: var(--r);
    border: 2px dashed var(--gold-bd, rgba(184,134,11,.3));
}
.cta-votar p {
    color: var(--text-muted); margin-bottom: 1rem; font-size: .9rem;
}
.cta-votar p i { color: var(--gold); margin-right: .3rem; }

/* Passos "Como Participar" */
.how-step {
    display: flex; gap: 1rem; align-items: flex-start;
}
.how-step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--navy-800); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .9rem;
}
.how-step-num.success-bg { background: var(--success); }
.how-step-text strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: .2rem; }
.how-step-text span { font-size: .83rem; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   RESPONSIVIDADE PORTAL
   ═══════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   RESPONSIVIDADE — PORTAL PÚBLICO
   ════════════════════════════════════════════════ */

/* ── Extra-small: < 480px ── */
@media (max-width: 479px) {
    html { font-size: 14px; }
    .hero h1 { font-size: 1.5rem; }
    .hero p  { font-size: .9rem; }
    .hero-badges { gap: .35rem; }
    .hero-badge { font-size: .72rem; padding: .28rem .65rem; }
    .howto-steps   { grid-template-columns: 1fr; }
    .security-grid { grid-template-columns: 1fr; }
    .candidatos-grid { grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem; }
    .cand-photo { width: 48px; height: 48px; }
    .ec-footer { flex-direction: column; }
    .ec-footer .btn, .ec-footer .btn-votar { width: 100%; justify-content: center; }
    .filter-row { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .section-title { font-size: 1rem; }
    /* Confirmação mobile */
    .confirm-wrapper { padding: 1rem .75rem 2rem; }
    .confirm-success-header { padding: 1.5rem 1rem; }
    .proto-number { font-size: 1.4rem; letter-spacing: .06em; }
    .confirm-body { padding: 1rem .85rem; }
    .confirm-table td { padding: .5rem .15rem; font-size: .8rem; }
    /* Acesso mobile */
    .access-wrapper { padding: 1.5rem .75rem 2rem; }
    .ac-header { padding: 1.25rem 1rem 1rem; }
    .ac-body { padding: 1rem .85rem 1.25rem; }
}

/* ── Mobile: 480px – 767px ── */
@media (min-width: 480px) and (max-width: 767px) {
    html { font-size: 15px; }
    .howto-steps   { grid-template-columns: repeat(2, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .elections-grid { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
    .ec-footer .btn-votar { flex: 1; justify-content: center; }
}

/* ── Aplicado em todo mobile (< 768px) ── */
@media (max-width: 767px) {
    .navbar .container { height: 56px; }
    .navbar-nav { display: none; }
    .navbar-toggle { display: flex; }
    .hero { padding: 2.5rem 0 2rem; text-align: center; }
    .container { padding: 0 .85rem; }
    .section { padding: 1.5rem 0; }
    .card-body { gap: .5rem; }
    .ec-footer { padding: .65rem .85rem; }
    .voto-footer { padding: .75rem 1rem; }
    .howto-section { padding: 1.5rem 0; }
    .security-section { padding: 1.5rem 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .filters-bar { padding: .75rem; }
    /* Tabelas horizontalmente roláveis */
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Tablet: 768px – 1023px ── */
@media (min-width: 768px) {
    .navbar-nav { display: flex; }
    .howto-steps   { grid-template-columns: repeat(4, 1fr); }
    .security-grid { grid-template-columns: repeat(2, 1fr); }
    .elections-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* ── Desktop: >= 1024px ── */
@media (min-width: 1024px) {
    .elections-grid { grid-template-columns: repeat(3, 1fr); }
    .security-grid  { grid-template-columns: repeat(4, 1fr); }
    .footer-grid    { grid-template-columns: 1.8fr 1fr 1fr; }
    .candidatos-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ── Wide: >= 1400px ── */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}
