/* ==========================================================================
   MINHA COLINHA 2026 — DESIGN SYSTEM PAPEL REAL (ACESSIBILIDADE & LEVEZA)
   ========================================================================== */

:root {
  /* Fundo Verde Oficial de Campanha Marquinhos Trad */
  --bg-main: #0a2e18;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f5;
  --border: rgba(255, 255, 255, 0.15);
  --border-focus: #22c55e;
  
  /* Verde Cívico Elegante e Escuro */
  --green-primary: #15803d;
  --green-accent: #22c55e;
  --green-dark: #072312;
  --green-soft-tint: #14532d;

  /* Amarelo Pastel / Urna */
  --yellow-pastel: #fef08a;
  --yellow-warm: #eab308;
  --yellow-soft: #fef9c3;
  --yellow-tag-bg: #fef9c3;
  --yellow-tag-text: #854d0e;

  /* Tipografia */
  --text-main: #19261f;
  --text-dim: #3e5246;
  --text-muted: #6b8074;
  
  /* Fontes de Alta Legibilidade */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(34, 197, 94, 0.15) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  min-height: 100vh;
  padding: 14px 14px 74px;
  -webkit-font-smoothing: antialiased;
}

/* Header Centralizado com Logo e Botão Reset Circular */
.app-header {
  max-width: 540px;
  margin: 0 auto 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 16px 10px;
  box-shadow: 0 4px 14px rgba(44, 38, 25, 0.05);
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.brand-icon {
  width: 220px;
  max-width: 82vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(20, 83, 45, 0.16));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
}

.brand-icon-marquinhos {
  background: linear-gradient(135deg, #15803d 0%, #0f3d21 100%);
  padding: 10px 18px 8px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 61, 33, 0.22);
}

.brand-icon:hover {
  transform: scale(1.04) translateY(-2px);
}

.btn-rever-link {
  background: none;
  border: 1.5px dashed var(--green-primary);
  color: var(--green-primary);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-rever-link:hover {
  background: #ecfdf5;
  border-style: solid;
  transform: translateY(-1px);
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #a16207;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #fef9c3;
  padding: 3px 14px;
  border-radius: 20px;
  border: 1px solid #fef08a;
}

.header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fbfaf7;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-header-icon:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #14532d;
  transform: scale(1.06);
}

.btn-reset-icon:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(-35deg) scale(1.08);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-header-icon:active {
  transform: scale(0.92);
}

@media (max-width: 480px) {
  .header-actions {
    top: -4px;
    right: -4px;
  }
  .btn-header-icon {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   TELA DE BOAS-VINDAS TEMÁTICA (ONBOARDING)
   Mesmo design system de papel artesanal texturizado e elementos cívicos
   ========================================================================== */
.welcome-card-wrap {
  width: 100%;
  max-width: 500px;
  margin: 10px auto 30px;
  animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-card {
  background: #ffffff;
  border: 2px solid #ded7cb;
  border-radius: 18px;
  padding: 24px 20px 22px;
  box-shadow: 0 12px 36px rgba(44, 38, 25, 0.08);
  text-align: center;
  position: relative;
}

.welcome-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #a16207;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #fef9c3;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid #fef08a;
  margin-bottom: 10px;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #14532d;
  line-height: 1.2;
  margin-bottom: 8px;
}

.welcome-desc {
  font-size: 14px;
  color: #55665b;
  line-height: 1.45;
  margin-bottom: 18px;
}

.welcome-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 22px;
}

.welcome-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #faf8f5;
  border: 1.5px solid #ded7cb;
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.welcome-step-item:hover {
  border-color: #10b981;
  transform: translateY(-1px);
}

.welcome-step-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.welcome-step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-step-content strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.25;
}

.welcome-step-content span {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

.btn-welcome-start {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: #14532d;
  border: none;
  color: #fef08a;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 83, 45, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-welcome-start:hover {
  background: #0f3d21;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 83, 45, 0.45);
}

.btn-welcome-start:active {
  transform: translateY(0);
}

.btn-welcome-start .btn-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.btn-welcome-start:hover .btn-arrow {
  transform: translateX(4px);
}

.welcome-security-note {
  font-size: 11.5px;
  font-weight: 600;
  color: #8c8273;
  margin-top: 12px;
}

/* Stepper de 6 Etapas Conectadas (Funil do Álbum) */
.stepper-funil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 480px;
  margin: 10px auto 0;
  padding: 0 10px;
}

.step-node-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1ece1;
  border: 2px solid #cfc7b7;
  color: #574e3f;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.step-circle:hover {
  transform: scale(1.08);
  border-color: #14532d;
  color: #14532d;
}

.step-circle.ativo {
  background: var(--green-primary);
  border-color: #0f3d21;
  color: #fef08a;
  box-shadow: 0 4px 14px rgba(20, 83, 45, 0.35);
  transform: scale(1.15);
}

.step-circle.concluido {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
}

.step-connector-line {
  flex: 1;
  height: 4px;
  background: #ded7cb;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.step-connector-line.preenchida {
  background: #15803d;
}

/* ==========================================================================
   VITRINE 3D DE PAPEL REAL & CENTRAL DE BUSCA (LAYOUT ADAPTATIVO)
   - Desktop: Lado a Lado (Split View 2 colunas: Cédula Fixa + Busca Ampla)
   - Mobile: Vertical Ergonômico (Busca acima da gaveta ao alcance do polegar)
   ========================================================================== */
.container-vitrine {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vitrine-split-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

@media (min-width: 860px) {
  .vitrine-split-layout {
    display: flex;
    justify-content: center;
    max-width: 580px;
    margin: 0 auto;
  }
}

/* 1. O Nicho Tridimensional com a Cédula em Primeiro Plano */
.nicho-vitrine-frame {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 4px solid #ede7db;
  border-radius: 20px;
  box-shadow: 
    inset 0 12px 28px rgba(0, 0, 0, 0.06),
    inset 0 -6px 16px rgba(0, 0, 0, 0.03),
    0 16px 36px rgba(44, 38, 25, 0.10);
  padding: 18px 10px 16px;
  overflow: hidden;
  perspective: 1200px;
}

.nicho-vitrine-inner {
  position: relative;
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cédulas de Papel com Textura Real */
.cedula-papel {
  position: absolute;
  width: 256px;
  background: #fdfbf7;
  background-image: radial-gradient(#ece6d8 0.7px, transparent 0.7px);
  background-size: 12px 12px;
  border: 1.5px solid #d8d2c4;
  border-radius: 8px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10), 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* Dobra sutil e realista no canto inferior do papel */
.cedula-papel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, #eae4d5 50%, #ded7c6 100%);
  border-top-left-radius: 4px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.08);
}

/* Cédula Central: BEM MAIOR, MÁXIMA EVIDÊNCIA E DESTAQUE VISUAL */
.cedula-central {
  z-index: 10;
  width: 275px;
  transform: translateX(0) translateY(0) scale(1.15);
  box-shadow: 
    0 24px 46px rgba(20, 83, 45, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.10);
  border: 2px solid #b8a992;
  background: #ffffff;
}

/* Animação suave e fluida de transição ao trocar de cargo */
.cedula-central.cedula-animar-troca {
  animation: cedulaSlideAvanco 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cedulaSlideAvanco {
  0% {
    transform: translateX(38px) translateY(4px) scale(0.96);
    opacity: 0.25;
  }
  60% {
    transform: translateX(-4px) translateY(0) scale(1.16);
    opacity: 0.95;
  }
  100% {
    transform: translateX(0) translateY(0) scale(1.15);
    opacity: 1;
  }
}

/* Cédula Esquerda: Transparência Ampliada do Centro para a Borda Externa */
.cedula-esquerda {
  z-index: 5;
  transform: translateX(-145px) translateY(12px) rotate(-7deg) scale(0.84);
  opacity: 0.55;
  filter: brightness(0.95);
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
}

.cedula-esquerda:hover {
  transform: translateX(-132px) translateY(6px) rotate(-4deg) scale(0.88);
  opacity: 0.85;
}

/* Cédula Direita: Transparência Ampliada do Centro para a Borda Externa */
.cedula-direita {
  z-index: 5;
  transform: translateX(145px) translateY(12px) rotate(7deg) scale(0.84);
  opacity: 0.55;
  filter: brightness(0.95);
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 30%, rgba(0,0,0,0.10) 100%);
}

.cedula-direita:hover {
  transform: translateX(132px) translateY(6px) rotate(4deg) scale(0.88);
  opacity: 0.85;
}

/* Conteúdo da Cédula */
.cedula-cargo-titulo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #14532d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #e5dfd2;
  width: 100%;
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.cedula-info-bloco {
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
}

.cedula-sublabel {
  font-size: 10.5px;
  font-weight: 800;
  color: #8c8273;
  text-transform: uppercase;
  display: block;
}

.cedula-cand-nome {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #0c2c62;
  line-height: 1.18;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.cedula-area-clicavel.vazio .cedula-cand-nome {
  color: #15803d;
  font-size: 19px;
}

.cedula-cand-partido {
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
}

/* Layout Miolo: Foto Grande em Máxima Evidência ao lado do Número */
.cedula-corpo-voto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin: 6px 0 10px;
}

.cedula-foto-frame {
  width: 76px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #cbbfab;
  background: #eeeae0;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.cedula-foto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.cedula-numero-bloco {
  flex: 1;
  text-align: left;
}

.cedula-numero-label {
  font-size: 10px;
  font-weight: 800;
  color: #8c8273;
  display: block;
  text-transform: uppercase;
}

.cedula-numero-grande {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #0f3d21;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* Dois Botões Discretos Lado a Lado: Confirmar e Trocar */
.cedula-botoes-dupla {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.btn-cedula-discreto {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-cedula-confirmar {
  background: #14532d;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.28);
}

.btn-cedula-confirmar:hover {
  background: #0f3d21;
  transform: translateY(-1px);
}

.btn-cedula-trocar {
  background: #faf8f5;
  color: #5c4d37;
  border-color: #d8d2c4;
}

.btn-cedula-trocar:hover {
  background: #f3efe6;
  color: #19261f;
  border-color: #b89f77;
}

/* Setas de Navegação no Nicho */
.nicho-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #ded7cb;
  color: #14532d;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.nicho-nav-arrow:hover {
  background: #14532d;
  color: #fef08a;
  transform: translateY(-50%) scale(1.08);
}

.arrow-prev { left: 6px; }
.arrow-next { right: 6px; }

/* ==========================================================================
   2. CÉDULA CLICÁVEL & BOTÃO DE SELEÇÃO RÁPIDA
   ========================================================================== */
.cedula-area-clicavel {
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
  transition: all 0.2s ease;
  position: relative;
  border: 1.5px dashed transparent;
}

.cedula-area-clicavel.vazio {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.04);
}

.cedula-area-clicavel.vazio:hover {
  background: rgba(16, 185, 129, 0.09);
  border-color: #059669;
}

.cedula-area-clicavel.preenchido {
  border: 1.5px solid transparent;
}

.cedula-area-clicavel.preenchido:hover {
  background: rgba(20, 83, 45, 0.05);
}

.cedula-area-clicavel:active {
  transform: scale(0.99);
}

.cedula-toque-escolher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #14532d;
  color: #fef08a;
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.25);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-top: 6px;
  animation: pulseToque 2.2s infinite ease-in-out;
}

@keyframes pulseToque {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(20, 83, 45, 0.25); }
  50% { transform: scale(1.04); box-shadow: 0 5px 14px rgba(20, 83, 45, 0.35); }
}

.cedula-toque-alterar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #15803d;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Cédula Fixa Oficial Marquinhos Trad 4333 */
.cedula-fixada-marquinhos {
  background: linear-gradient(145deg, #ffffff 0%, #ecfdf5 100%) !important;
  border: 2px solid #16a34a !important;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.18) !important;
  cursor: default !important;
}

.cedula-foto-frame-marquinhos {
  border: 2.5px solid #16a34a !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
}

.cedula-status-fixo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Bolinha de Stepper Fixada */
.step-circle.fixado-bloqueado {
  background: #15803d !important;
  border-color: #16a34a !important;
  color: #fef08a !important;
  font-size: 14px !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35) !important;
}

/* ==========================================================================
   3. MODAL DE SELEÇÃO ISOLADA DE CANDIDATOS
   - Mobile: Full-Screen (100dvh, visual de tela nativa, body scroll lock)
   - Desktop/Tablet (>= 768px): Modal centralizado (~640px, max-height 85vh)
   ========================================================================== */
body.modal-selecao-aberto {
  overflow: hidden !important;
  touch-action: none;
}

.modal-selecao-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.modal-selecao-conteudo {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

  .modal-selecao-conteudo {
    width: 100%;
    max-width: 660px;
    height: 82vh;
    max-height: 720px;
    border-radius: 18px;
    border: 1.5px solid #ded7cb;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

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

/* 3.1 CABEÇALHO FIXO */
.modal-selecao-header {
  flex-shrink: 0;
  height: 56px;
  background: #ffffff;
  border-bottom: 1.5px solid #ded7cb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-voltar-selecao {
  background: #f5f2eb;
  border: 1px solid #dcd6c8;
  border-radius: 8px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: #14532d;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-voltar-selecao:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #0f3d21;
}

.btn-voltar-arrow {
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.modal-selecao-titulo {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #14532d;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  flex: 1;
}

/* 3.2 CAMPO DE BUSCA FIXO */
.modal-selecao-search-wrap {
  flex-shrink: 0;
  background: #ffffff;
  padding: 10px 16px 12px;
  border-bottom: 1px solid #e7e2d6;
  z-index: 2;
}

.modal-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #fbf9f5;
  border: 1.8px solid #dcd6c8;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.modal-search-box:focus-within {
  background: #ffffff;
  border-color: #14532d;
  box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.15);
}

.modal-search-icon {
  position: absolute;
  left: 12px;
  color: #8c8273;
  pointer-events: none;
}

.modal-search-input {
  width: 100%;
  height: 44px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #19261f;
  outline: none;
  padding: 0 38px 0 40px;
}

.modal-search-input::placeholder {
  color: #9c9282;
  font-size: 14px;
  font-weight: 500;
}

.btn-clear-modal-search {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e7e2d6;
  color: #5c4d37;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.btn-clear-modal-search:hover {
  background: #dcd6c8;
  color: #19261f;
}

/* 3.2.1 ÍNDICE ALFABÉTICO COMPACTO (A-Z) */
.modal-alfabeto-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 2px;
  scrollbar-width: none; /* Oculta scrollbar */
}

.modal-alfabeto-bar::-webkit-scrollbar {
  display: none;
}

.btn-alfabeto-pille {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 16px;
  background: #f5f2eb;
  border: 1.5px solid #ded7cb;
  color: #574e3f;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-alfabeto-pille:hover {
  background: #ecfdf5;
  border-color: #10b981;
  color: #14532d;
  transform: translateY(-1px);
}

.btn-alfabeto-pille:active {
  transform: scale(0.95);
}

.btn-alfabeto-pille.ativo {
  background: #14532d;
  border-color: #0f3d21;
  color: #fef08a;
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.28);
  transform: scale(1.05);
}

/* 3.3 LISTA DE RESULTADOS COMPACTA E ROLÁVEL */
.modal-selecao-lista-wrap {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: #ded7cb transparent;
}

/* LINHA DE CANDIDATO ULTRA-COMPACTA & CLICÁVEL DIRETO */
.cand-compact-row {
  width: 100%;
  min-height: 54px;
  background: #ffffff;
  border: 1.5px solid #e7e2d6;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
}

.cand-compact-row:hover {
  background: #f8fbf9;
  border-color: #14532d;
  box-shadow: 0 3px 8px rgba(20, 83, 45, 0.08);
  transform: translateY(-1px);
}

.cand-compact-row:focus-visible {
  outline: 2px solid #14532d;
  background: #f4fbf7;
}

.cand-compact-row:active {
  background: #ecfdf5;
  transform: scale(0.992);
}

/* Estado Ativo/Selecionado (Item 1) */
.cand-compact-row.cand-compact-selected {
  background: #f0fdf4;
  border-color: #15803d;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.15);
}

.cand-compact-row.cand-compact-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #15803d;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

/* Feedback Imediato e Gostoso ao Clicar (Confirmação Visual Suave) */
.cand-compact-row.cand-compact-confirming {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  transform: scale(1.02) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cand-compact-row.cand-compact-confirming .cand-compact-numero {
  background: #15803d !important;
  color: #fef08a !important;
  transform: scale(1.08);
  transition: all 0.2s ease;
}

/* FOTOGRAFIA PEQUENA PADRONIZADA (APOIO VISUAL) */
.cand-compact-photo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 15%;
  background: #eeeae0;
  border: 1px solid #d8d2c4;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.cand-compact-photo-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #14532d;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* BLOCO CENTRAL: NOME E PARTIDO */
.cand-compact-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

/* 1. NOME (MAIOR PESO E LEGIBILIDADE MÁXIMA) */
.cand-compact-nome {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 900;
  color: #19261f;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cand-compact-selected-badge {
  font-size: 11px;
  color: #15803d;
  font-weight: 900;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 1px 6px;
  line-height: 1;
}

/* 3. PARTIDO/SIGLA (MICRO-BADGE DISCRETO) */
.cand-compact-partido {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: #166534;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cand-compact-partido::before {
  content: "•";
  color: #15803d;
  font-size: 12px;
}

/* 2. NÚMERO (DESTAQUE VISUAL PARA CONFERÊNCIA RÁPIDA) */
.cand-compact-numero {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #0f3d21;
  background: #fef9c3;
  border: 1.2px solid #fef08a;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ESTADOS VAZIOS E INFORMATIVOS DA BUSCA */
.modal-busca-estado-vazio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  color: #8c8273;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}

/* Figurinha com Efeito de Pontinha Solta / Descolada do Painel de Rolha */
.estojo-fig-card {
  background: #ffffff;
  background-image: radial-gradient(#faf7f0 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  border: 1px solid #dcd5c7;
  border-radius: 4px;
  padding: 5px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  user-select: none;
}

/* Cantinho Inferior Solto / Curvado de Adesivo de Papel */
.estojo-fig-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  background: linear-gradient(135deg, transparent 50%, #dcd6c8 50%, #c4baa7 100%);
  border-top-left-radius: 2.5px;
  box-shadow: -1px -1px 3px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: all 0.2s ease;
}

.estojo-fig-card:hover {
  transform: translateY(-4px) rotate(-1deg) scale(1.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  border-color: #14532d;
  background: #ffffff;
  z-index: 5;
}

.estojo-fig-card:hover::after {
  width: 16px;
  height: 16px;
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.22);
}

.estojo-fig-card:active {
  transform: scale(0.95);
}

.estojo-fig-ordem {
  position: absolute;
  top: 2px;
  left: 3px;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 900;
  color: #856a42;
}

/* Foto Padronizada com Proporção Perfeita */
.estojo-fig-photo-box {
  width: 100%;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  background: #eeeae0;
  margin: 11px 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.estojo-fig-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.estojo-fig-nome {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  color: #19261f;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 1px;
}

.estojo-fig-partido {
  font-size: 8.5px;
  font-weight: 700;
  color: #6b5c43;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.estojo-fig-numero {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #19261f;
  letter-spacing: -0.3px;
}

.ticket-card.preenchido:hover {
  border-color: var(--green-primary);
}

.ticket-card.vazio {
  border-style: dashed;
  border-color: #d1cabe;
  background: #faf8f4;
}

.ticket-card.vazio:hover {
  border-color: var(--green-accent);
  background: #fdfbf7;
}

/* Cabeçalho do Ticket */
.ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-cargo-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-ordem-voto {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--yellow-tag-text);
  background: var(--yellow-tag-bg);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.ticket-sep {
  color: #c4bbae;
  font-size: 14px;
}

.ticket-cargo-nome {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green-dark);
}

.ticket-cargo-vaga {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #a16207;
}

/* Conteúdo Preenchido (Números em Caixa Escura de Alto Contraste com Amarelo Pastel) */
.ticket-body-filled {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticket-number-box {
  flex-shrink: 0;
  background: #0f3d21;
  border: 2px solid #14532d;
  border-radius: var(--radius-md);
  padding: 6px 14px;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(15, 61, 33, 0.25);
}

.ticket-big-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 2px;
  line-height: 1.05;
}

.ticket-photo-wrapper {
  width: 58px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #eef2ef;
  flex-shrink: 0;
}

.ticket-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.ticket-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--green-dark);
  background: #ecfdf5;
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-urna-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.ticket-party {
  font-size: 15px;
  font-weight: 700;
  color: var(--green-accent);
  margin-top: 3px;
}

.ticket-action-btns {
  display: flex;
  gap: 8px;
}

.btn-ticket-clear {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-ticket-clear:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

/* Conteúdo Vazio com Silhueta Neutra */
.ticket-body-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}

.ticket-avatar-silhouette {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #eeeae0;
  border: 1.5px solid #ded8cb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c8273;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ticket-card.vazio:hover .ticket-avatar-silhouette {
  background: #e6f4ec;
  border-color: #a7d7bc;
  color: var(--green-primary);
  transform: scale(1.05);
}

.ticket-empty-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
}

.ticket-empty-sub {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Seção de Conclusão migrada para o design atual de alta fidelidade */

/* ==========================================================================
   AÇÕES FINAIS DIRETAS E OBJETIVAS (SEM BOTÕES REPETIDOS)
   ========================================================================== */
.acoes-finais-diretas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.btn-acao-primaria {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-acao-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.btn-acao-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-acao-whatsapp:active {
  transform: translateY(0);
}

.btn-acao-salvar-larga {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid #14532d;
  color: #14532d;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-acao-salvar-larga:hover {
  background: #f0fdf4;
  border-color: #0f3d21;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.15);
}

.btn-acao-salvar-larga:active {
  transform: translateY(0);
}

.acoes-finais-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.btn-link-discreto {
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn-link-discreto:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

.btn-link-danger {
  color: #ef4444;
}

.btn-link-danger:hover {
  color: #dc2626;
  background: #fef2f2;
}

/* Gaveta Deslizante (Bottom Sheet Clara) */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(18, 28, 22, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease-out;
}

.sheet-panel {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  padding: 14px 24px max(24px, env(safe-area-inset-bottom));
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #ded7cb;
  border-radius: 3px;
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.sheet-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--yellow-tag-text);
  background: var(--yellow-tag-bg);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 4px;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.15;
}

.btn-close-sheet {
  background: #f4f0e6;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
}

.btn-close-sheet:hover {
  color: var(--text-main);
  background: #eae3d5;
}

/* Campo de Busca Grande */
.search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 58px;
  background: #faf8f5;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 48px 0 52px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.12);
}

.btn-clear-input {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   GRADE DE FIGURINHAS NA CONSULTA (Até 5 por linha com micro-movimento)
   ========================================================================== */
.candidatos-lista {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 figurinhas por linha em mobile e desktop */
  gap: 8px;
  padding: 6px 2px 24px;
}

@media (max-width: 360px) {
  .candidatos-lista {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

/* Card Mini-Figurinha Colecionável */
.cand-item-btn {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
  
  /* Efeito de movimento bem leve contínuo (respiração / flutuação) */
  animation: figurinhaFlutuar 3.2s ease-in-out infinite alternate;
}

/* Variação no tempo de flutuação para cada figurinha para efeito orgânico */
.cand-item-btn:nth-child(2n) {
  animation-duration: 3.6s;
  animation-delay: 0.3s;
}
.cand-item-btn:nth-child(3n) {
  animation-duration: 4s;
  animation-delay: 0.6s;
}
.cand-item-btn:nth-child(4n) {
  animation-duration: 3.4s;
  animation-delay: 0.9s;
}

@keyframes figurinhaFlutuar {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-3px) rotate(0.4deg);
  }
}

.cand-item-btn:hover, .cand-item-btn:active {
  border-color: var(--green-primary);
  background: #ecfdf5;
  transform: translateY(-5px) scale(1.06) !important;
  box-shadow: 0 8px 18px rgba(20, 83, 45, 0.2);
  z-index: 5;
}

/* Moldura da Foto da Mini-Figurinha */
.cand-item-photo-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 4px;
  overflow: hidden;
  background: #ece7db;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.cand-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.cand-item-photo-placeholder {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--green-dark);
}

/* Número em Destaque na Mini-Figurinha */
.cand-item-nr {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 900;
  color: #fef08a;
  background: #0f3d21;
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.4px;
  width: 100%;
  text-align: center;
  margin-bottom: 3px;
}

/* Nome Curto de Urna e Sigla */
.cand-item-nome {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.cand-item-meta {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--green-accent);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Inserção Manual */
.box-manual-cand {
  background: #faf8f5;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f3d21;
  border: 1.5px solid #14532d;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  animation: fadeInDown 0.3s ease;
  text-align: center;
  max-width: 90vw;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   ESPELHO REAL DA COLINHA PRONTA COM FOTOS (ACIMA DOS BOTÕES DE AÇÃO)
   REBUSCADA EM PAPEL TEXTURADO REAL, COM ASPECTO DE FIGURINHAS COLECIONÁVEIS
   ========================================================================== */
.colinha-final-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 18px 0 28px;
  /* Textura realista de papel encorpado / cartolina kraft cívica */
  background: #f5efe3;
  background-image: 
    radial-gradient(#ded2be 1.2px, transparent 1.2px),
    radial-gradient(#eae0ce 0.8px, transparent 0.8px);
  background-size: 16px 16px, 8px 8px;
  background-position: 0 0, 4px 4px;
  border: 2.5px solid #cbbfab;
  border-radius: 20px;
  padding: 22px 16px;
  box-shadow: 
    inset 0 3px 12px rgba(0, 0, 0, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.04),
    0 16px 36px rgba(44, 38, 25, 0.12);
  position: relative;
}

/* Efeito de Figurinha Adesiva Colada na Folha com Relevo e Sombra */
.final-row-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  background-image: radial-gradient(#faf7f0 0.9px, transparent 0.9px);
  background-size: 12px 12px;
  border: 2px solid #ded7cb;
  border-radius: 12px;
  padding: 14px 16px;
  gap: 16px;
  box-shadow: 
    0 6px 16px rgba(44, 38, 25, 0.09),
    0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-row-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(44, 38, 25, 0.14);
}

/* Moldura e Dobra Sutil de Figurinha no Canto */
.final-row-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(225deg, #ded6c4 50%, #faf8f5 50%);
  border-bottom-left-radius: 4px;
  box-shadow: -1.5px 1.5px 3px rgba(0, 0, 0, 0.08);
}

.final-row-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: #854d0e;
  background: #fef9c3;
  border: 1px solid #fde047;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.6px;
  box-shadow: 0 1px 3px rgba(133, 77, 14, 0.15);
}

/* Foto do Candidato Bem Maior no Formato Figurinha Oficial */
.final-row-photo {
  width: 78px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid #cbbfab;
  background: #eeeae0;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.final-row-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.final-row-cargo {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}

/* Nome de Urna Maior e em Destaque Absoluto */
.final-row-nome {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  color: #19261f;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.final-row-partido {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-accent);
  display: block;
  margin-top: 3px;
}

/* Caixa do Número BEM MAIOR e Maciça com Alto Contraste */
.final-row-number-box {
  background: #0f3d21;
  border: 2.5px solid #14532d;
  border-radius: 10px;
  padding: 8px 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 61, 33, 0.30);
}

.final-row-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 1.2px;
  line-height: 1;
}

/* Botão Link de Reiniciar Colinha na Tela Final */
.btn-reiniciar-final-link {
  background: none;
  border: 1.5px dashed #dc2626;
  color: #dc2626;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reiniciar-final-link:hover {
  background: #fef2f2;
  border-style: solid;
  transform: translateY(-1px);
}

/* Modal de Animação: Colinha Saindo da Urna (Impressão) */
.print-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(18, 28, 22, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.print-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.urna-dispenser-box {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.urna-dispenser-img {
  width: 190px;
  height: auto;
  aspect-ratio: 364 / 163;
  object-fit: contain;
}

.urna-slot-cut {
  width: 170px;
  height: 6px;
  background: #091b13;
  border-radius: 3px;
  margin-top: -3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(255, 255, 255, 0.1);
}

.paper-slip-viewport {
  width: 280px;
  max-height: 400px;
  overflow: hidden;
  position: relative;
  margin-top: -4px;
  z-index: 5;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
}

.paper-slip-roll {
  background: #faf8f4;
  background-image: radial-gradient(#ebe5d8 1px, transparent 1px);
  background-size: 16px 16px;
  border-left: 1px solid #d8d2c4;
  border-right: 1px solid #d8d2c4;
  padding: 16px 18px 20px;
  transform: translateY(-100%);
  animation: rollOutPaper 4.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rollOutPaper {
  0% {
    transform: translateY(-100%);
    opacity: 0.2;
  }
  15% {
    transform: translateY(-75%);
    opacity: 1;
  }
  45% {
    transform: translateY(-40%);
    opacity: 1;
  }
  75% {
    transform: translateY(-12%);
    opacity: 1;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.slip-header {
  text-align: center;
  padding-bottom: 8px;
}

.slip-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #14532d;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.slip-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.slip-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  color: #a16207;
  letter-spacing: 0.4px;
}

.slip-dashed-divider {
  border-top: 1.5px dashed #c8c1b2;
  margin: 10px 0;
}

.slip-candidatos-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ==========================================================================
   ANIMAÇÃO: CÉDULA DE PAPEL SAINDO DA URNA COM FOTOS REAIS
   ========================================================================== */
.slip-logo-img {
  width: 140px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

.slip-item-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2dcd0;
  border-radius: 6px;
  padding: 6px 8px;
  gap: 8px;
}

.slip-item-photo {
  width: 32px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid #ded7cb;
  background: #eeeae0;
  flex-shrink: 0;
}

.slip-item-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.slip-item-cargo {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slip-item-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.slip-item-nr {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #fef08a;
  background: #0f3d21;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.slip-footer {
  text-align: center;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.slip-serrated-edge {
  height: 8px;
  margin-top: 10px;
  background-image: radial-gradient(circle, transparent 4px, #faf8f4 4.5px);
  background-size: 9px 9px;
  background-position: 0 0;
  border-bottom: 2px dashed #b8b0a0;
}

.print-status-text {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.print-spinner {
  width: 14px;
  height: 14px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fef08a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO FIXA NO RODAPÉ (COMO NO MOCKUP)
   ========================================================================== */
/* Espaçamento inferior equilibrado no body */
body {
  padding-bottom: 36px !important;
}

/* ==========================================================================
   MODAL GUIA DO ELEITOR
   ========================================================================== */
.guia-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(18, 28, 22, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.guia-modal-card {
  width: 100%;
  max-width: 480px;
  background: #fdfbf7;
  border: 2px solid #ded7cb;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideInFigurinha 0.25s ease-out;
}

.guia-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #14532d;
  color: #ffffff;
}

.guia-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.3px;
}

.btn-close-guia {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.guia-modal-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.guia-topic-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e8e2d5;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.guia-topic-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guia-topic-box strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #14532d;
  display: block;
  margin-bottom: 2px;
}

.guia-topic-box p {
  font-size: 13px;
  color: #55665b;
  line-height: 1.4;
}

/* Ajustes Responsivos Grandes (iPad / Desktop) */
@media (min-width: 640px) {
  body {
    padding: 32px 32px 100px !important;
  }
}

/* ==========================================================================
   SEÇÃO DE CONCLUSÃO LIMPA E FOCO 100% NA COLINHA
   ========================================================================== */
.conclusao-section {
  width: 100%;
  max-width: 680px;
  margin: 10px auto 30px;
  animation: fadeIn 0.3s ease-out;
}

.conclusao-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.colinha-final-preview {
  width: 100%;
  margin: 0 auto 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

.acoes-finais-diretas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  margin-bottom: 16px;
}

.btn-acao-primaria.btn-acao-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.btn-acao-primaria.btn-acao-whatsapp:hover {
  background: #22c35e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}


.btn-acao-secundaria.btn-acao-salvar-larga {
  background: #ffffff;
  color: #0f3d21;
  border: 2px solid #ffffff;
  border-radius: 14px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

.btn-acao-secundaria.btn-acao-salvar-larga:hover {
  background: #fef08a;
  border-color: #fef08a;
  color: #0f3d21;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.acoes-finais-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.btn-link-discreto {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: #e2e8f0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
}

.btn-link-discreto:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-link-discreto.btn-link-danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-link-discreto.btn-link-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   NOVO DESIGN DE SANTINHO / COLINHA ELEITORAL (IDÊNTICO À REFERÊNCIA)
   Foto na esquerda + Logo abaixo | MINHA COLINHA 2026 + 6 Linhas na direita
   ========================================================================== */
.colinha-mockup-card-container {
  display: flex;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Lado Esquerdo - Painel Verde Oficial de Campanha */
.colinha-mockup-left {
  width: 32%;
  background: linear-gradient(180deg, #15803d 0%, #14532d 55%, #072815 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border-right: 2px solid #0f3d21;
  overflow: hidden;
  flex-shrink: 0;
}

/* Faixas curvas sutis no fundo verde */
.colinha-mockup-left::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 220px;
  border-radius: 50%;
  border: 12px solid rgba(234, 179, 8, 0.35);
  pointer-events: none;
  z-index: 1;
}

.colinha-mockup-photo-wrap {
  width: 100%;
  flex: 1;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 2;
  background: #0f3d21;
}

.colinha-mockup-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 15%;
  display: block;
}

.colinha-mockup-logo-wrap {
  width: 100%;
  padding: 8px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, #0f3d21 0%, #072815 100%);
  border-top: 1px solid rgba(22, 163, 74, 0.3);
}

.colinha-mockup-logo {
  width: 95%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

/* Lado Direito */
.colinha-mockup-right {
  width: 68%;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  min-width: 0;
}

.colinha-mockup-header {
  margin-bottom: 8px;
}

.colinha-mockup-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  color: #09381e;
  line-height: 1;
  letter-spacing: -0.5px;
}

.colinha-mockup-ano {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -1.5px;
}

.ano-blue { color: #0c2c62; }
.ano-green { color: #15803d; }
.ano-yellow { color: #eab308; }

/* Grade de Linhas */
.colinha-mockup-rows-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 8px;
}

.colinha-mockup-row {
  display: flex;
  align-items: center;
  background: #f0f6fc;
  border-radius: 9px;
  overflow: hidden;
  height: 58px;
}

.colinha-mockup-badge {
  width: 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.colinha-mockup-info {
  flex: 1;
  padding: 0 10px 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.colinha-mockup-cargo {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: normal;
}

.colinha-mockup-cand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.12;
  color: #0c2c62;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-top: 1px;
}

.colinha-mockup-cand-name.filled {
  color: #0c2c62;
}

.colinha-mockup-cand-name.empty {
  color: #94a3b8;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
}

.colinha-mockup-boxes {
  display: flex;
  gap: 2px;
  padding-right: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.colinha-mockup-digit-box {
  width: 18px;
  height: 30px;
  background: #ffffff;
  border: 1.5px solid #0c2c62;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: #000000;
  line-height: 1;
}

.colinha-mockup-digit-box.has-digit {
  color: #000000;
  background: #ffffff;
}

/* Rodapé */
.colinha-mockup-footer {
  border-top: 1px solid #cbd5e1;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 800;
  color: #0c2c62;
}

/* Responsividade Fina para Telas Pequenas de Celular */
@media (max-width: 520px) {
  .colinha-mockup-card-container {
    border-radius: 14px;
  }
  .colinha-mockup-left {
    width: 32%;
  }
  .colinha-mockup-right {
    width: 68%;
    padding: 10px 8px 8px;
  }
  .colinha-mockup-title {
    font-size: 19px;
  }
  .colinha-mockup-ano {
    font-size: 40px;
  }
  .colinha-mockup-row {
    height: 58px;
  }
  .colinha-mockup-badge {
    width: 26px;
    font-size: 17px;
  }
  .colinha-mockup-info {
    padding: 0 6px;
  }
  .colinha-mockup-cargo {
    font-size: 9.5px;
    line-height: 1.15;
  }
  .colinha-mockup-cand-name {
    font-size: 13.5px;
    line-height: 1.12;
  }
  .colinha-mockup-cand-name.empty {
    font-size: 11.5px;
  }
  .colinha-mockup-digit-box {
    width: 15.5px;
    height: 28px;
    font-size: 14.5px;
  }
  .colinha-mockup-boxes {
    gap: 1.5px;
    padding-right: 3px;
  }
}

/* Destaque Especial Marquinhos Trad 4333 na Colinha */
.pocket-marquinhos-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
  border: 2px solid #16a34a !important;
  border-left: 6px solid #15803d !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
  position: relative;
}

.pocket-marquinhos-badge-top {
  display: inline-block;
  background: #15803d;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

.pocket-marquinhos-photo-wrap {
  width: 72px !important;
  height: 88px !important;
  border: 2px solid #16a34a !important;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2) !important;
}

/* Cabeçalho Oficial */
.pocket-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2.5px solid #14532d;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.pocket-header-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.pocket-header-text {
  flex: 1;
  text-align: left;
}

.pocket-header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #14532d;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.pocket-header-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: #854d0e;
  letter-spacing: 0.4px;
}

.pocket-header-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  background: #fef08a;
  color: #713f12;
  border: 1px solid #eab308;
  border-radius: 6px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Faixa de Ordem Oficial */
.pocket-ordem-banner {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 900;
  color: #14532d;
  background: #ecfdf5;
  border: 1.5px dashed #86efac;
  border-radius: 6px;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.4px;
  margin-bottom: 12px;
}

/* Grade Vertical com Espaçamento Confortável */
.pocket-votes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card Individual de Cargo - Robusto e com Alto Contraste */
.pocket-vote-row {
  background: #ffffff;
  border: 1.8px solid #ded7cb;
  border-left: 5px solid #14532d;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pocket-vote-row.pocket-empty {
  border-left-color: #cbd5e1;
  background: #fafaf9;
}

.pocket-vote-empty-msg {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 6px 0;
  letter-spacing: 0.5px;
}

.pocket-vote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
  margin-bottom: 6px;
  border-bottom: 1px dashed #ede8df;
  padding-bottom: 4px;
}

.pocket-vote-ordem {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: #854d0e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pocket-vote-cargo {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  color: #14532d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Miolo: Foto Grande + Dígitos Gigantes */
.pocket-vote-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Foto com Proporção de Foto Oficial de Documento/Santinho */
.pocket-cand-photo-wrap {
  width: 54px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #cbbfab;
  background: #f5f2eb;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pocket-cand-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pocket-cand-avatar-placeholder {
  font-size: 22px;
  color: #8c8273;
}

/* Informações do Voto e Caixas de Dígitos */
.pocket-vote-cand-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pocket-digits-group {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 4px;
}

/* Caixas de Dígitos Bem Maiores e Nítidas */
.pocket-digit-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 30px;
  padding: 0 4px;
  background: #0f3d21;
  color: #fef08a;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  border: 1.5px solid #062312;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Nome do Candidato */
.pocket-cand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  color: #19261f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.pocket-cand-party {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
  margin-top: 1px;
}

/* Rodapé Cívico */
.pocket-footer {
  border-top: 2px solid #14532d;
  padding-top: 8px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pocket-footer-text {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  color: #55665b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pocket-footer-url {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  color: #14532d;
}

/* ==========================================================================
   FOLHA DE IMPRESSÃO A4 (4 CÓPIAS EM GRADE 2x2 COM MARCAS DE CORTE)
   ========================================================================== */
.a4-print-sheet {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 12pt;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
  }

  /* Oculta toda a interface web na hora de imprimir */
  header,
  nav,
  .app-header,
  .container-vitrine,
  .modal-selecao-overlay,
  .print-modal-overlay,
  .guia-modal-overlay,
  .round-actions-group,
  .btn-rever-link,
  .btn-reiniciar-final-link,
  .conclusao-badge,
  .conclusao-title,
  .conclusao-sub,
  #toast {
    display: none !important;
  }

  .conclusao-section,
  .conclusao-card {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Oculta o preview individual da tela e ativa a folha A4 com 4 colinhas */
  #colinha-final-preview {
    display: none !important;
  }

  .a4-print-sheet {
    display: grid !important;
    grid-template-columns: 65mm 65mm;
    grid-template-rows: 95mm 95mm;
    justify-content: center;
    align-content: center;
    gap: 10mm 12mm;
    width: 100%;
    height: 100%;
    padding-top: 6mm;
    box-sizing: border-box;
    page-break-after: avoid;
    break-after: avoid;
  }

  /* Estilização Física Exata das 4 Colinhas Impressas (65mm x 95mm) */
  .a4-pocket-card {
    width: 65mm !important;
    height: 95mm !important;
    max-width: 65mm !important;
    max-height: 95mm !important;
    box-sizing: border-box !important;
    border: 1px solid #14532d !important;
    border-radius: 3mm !important;
    padding: 2.5mm 3mm !important;
    background: #ffffff !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    outline: 1px dashed #cbd5e1; /* Guia de recorte */
    outline-offset: 2mm;
  }

  /* Marcas de Corte nos 4 Cantos */
  .a4-pocket-card::before,
  .a4-pocket-card::after {
    content: "";
    position: absolute;
    width: 3mm;
    height: 3mm;
    pointer-events: none;
  }

  .a4-pocket-card::before {
    top: -2mm;
    left: -2mm;
    border-top: 0.5pt solid #64748b;
    border-left: 0.5pt solid #64748b;
  }

  .a4-pocket-card::after {
    bottom: -2mm;
    right: -2mm;
    border-bottom: 0.5pt solid #64748b;
    border-right: 0.5pt solid #64748b;
  }

  .a4-pocket-card .pocket-header {
    border-bottom: 1.2pt solid #14532d !important;
    padding-bottom: 1.2mm !important;
    margin-bottom: 1mm !important;
    gap: 2mm !important;
  }

  .a4-pocket-card .pocket-header-logo {
    width: 7mm !important;
    height: 7mm !important;
  }

  .a4-pocket-card .pocket-header-title {
    font-size: 8.5pt !important;
  }

  .a4-pocket-card .pocket-header-sub {
    font-size: 6pt !important;
  }

  .a4-pocket-card .pocket-header-badge {
    font-size: 5.5pt !important;
    padding: 0.5mm 1.5mm !important;
  }

  .a4-pocket-card .pocket-ordem-banner {
    font-size: 5.5pt !important;
    padding: 0.8mm !important;
    margin-bottom: 1mm !important;
  }

  .a4-pocket-card .pocket-votes-list {
    gap: 1mm !important;
  }

  .a4-pocket-card .pocket-vote-row {
    border: 0.5pt solid #d1d5db !important;
    border-left: 2pt solid #14532d !important;
    border-radius: 1.5mm !important;
    padding: 1mm 1.5mm !important;
  }

  .a4-pocket-card .pocket-vote-ordem {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-vote-cargo {
    font-size: 6.5pt !important;
  }

  .a4-pocket-card .pocket-digit-box {
    width: 3.6mm !important;
    height: 4.6mm !important;
    font-size: 8pt !important;
    border-radius: 0.8mm !important;
  }

  .a4-pocket-card .pocket-cand-name {
    font-size: 7pt !important;
  }

  .a4-pocket-card .pocket-cand-party {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-cand-photo-wrap {
    width: 6mm !important;
    height: 7.5mm !important;
    border-radius: 1mm !important;
  }

  .a4-pocket-card .pocket-footer {
    padding-top: 1mm !important;
    margin-top: 1mm !important;
  }

  .a4-pocket-card .pocket-footer-text {
    font-size: 5.5pt !important;
  }

  .a4-pocket-card .pocket-footer-url {
    font-size: 5pt !important;
  }
}


