/* ==========================================================================
   CKM COLA PARA ELEIÇÕES 2026 - ESTILO OFICIAL BRASIL
   Paleta: Verde (#009739), Amarelo (#FEDD00), Azul (#002776), Branco (#FFFFFF)
   ========================================================================== */

:root {
  --br-green: #00853B;
  --br-green-dark: #005A28;
  --br-green-light: #00B14F;
  --br-yellow: #FEDD00;
  --br-yellow-dark: #D4B200;
  --br-yellow-light: #FFF176;
  --br-blue: #002776;
  --br-blue-dark: #001744;
  --br-blue-light: #1E40AF;
  --br-white: #FFFFFF;
  --bg-slate: #F1F5F9;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 30px rgba(0, 39, 118, 0.12);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-slate);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 60px;
  min-height: 100vh;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   CABEÇALHO PRINCIPAL COM CORES DA BANDEIRA
   ========================================================================== */
.main-header {
  background: linear-gradient(135deg, var(--br-blue-dark) 0%, var(--br-blue) 60%, #083b9e 100%);
  color: var(--br-white);
  padding: 12px 0;
  border-bottom: 4px solid var(--br-yellow);
  box-shadow: 0 4px 15px rgba(0, 39, 118, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.flag-icon-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}

.brand-title strong {
  color: var(--br-yellow);
  font-weight: 900;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uf-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uf-selector-wrap label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--br-yellow);
  text-transform: uppercase;
}

.uf-select {
  background: transparent;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.uf-select option {
  background: #1e293b;
  color: white;
}

.btn-install-pwa {
  background: linear-gradient(135deg, var(--br-yellow) 0%, #eab308 100%);
  color: #0f172a;
  border: none;
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-install-pwa:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(254, 221, 0, 0.4);
}

.btn-auth {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}

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

/* ==========================================================================
   ALERTA DO TSE (LEI 9.504/97)
   ========================================================================== */
.tse-alert-bar {
  background: #eef9f2;
  border-bottom: 1px solid #ccebd7;
  padding: 8px 0;
  font-size: 0.82rem;
  color: #14532d;
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-tse {
  background: var(--br-green);
  color: white;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.alert-msg {
  flex: 1;
}

.law-tip {
  font-weight: 700;
  color: #b91c1c;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   PROGRESS TRACKER / STEPPER DOS 6 CARGOS
   ========================================================================== */
.cargo-steps-container {
  margin: 22px 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cargo-steps-track {
  display: flex;
  gap: 8px;
  min-width: 650px;
}

.step-pill {
  flex: 1;
  background: white;
  border: 2px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  user-select: none;
}

.step-pill.active {
  border-color: var(--br-blue);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(0, 39, 118, 0.12);
}

.step-pill.filled {
  border-color: var(--br-green);
  background: #f0fdf4;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-pill.active .step-num {
  background: var(--br-blue);
  color: white;
}

.step-pill.filled .step-num {
  background: var(--br-green);
  color: white;
}

.step-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.step-choice {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.step-pill.filled .step-choice {
  color: #15803d;
  font-weight: 700;
}

/* ==========================================================================
   LAYOUT PRINCIPAL: URNA ELETRÔNICA + LISTA TSE
   ========================================================================== */
.voting-workspace {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 25px;
  align-items: start;
}

@media (max-width: 1024px) {
  .voting-workspace {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CHASSIS DA URNA ELETRÔNICA
   ========================================================================== */
.urna-mockup-wrapper {
  position: sticky;
  top: 75px;
}

.urna-chassis {
  background: #d8e2ec;
  border: 3px solid #b2c1d1;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.urna-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 6px;
}

.urna-brand {
  font-family: 'Share Tech Mono', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  color: #1e293b;
  letter-spacing: 2px;
}

.urna-step-tag {
  background: var(--br-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

/* TELA LCD DA URNA */
.urna-screen {
  background: #fbfbf9;
  border: 4px solid #334155;
  border-radius: 8px;
  padding: 16px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.1);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.screen-cargo-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  margin-top: 2px;
}

.urna-screen-body {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 16px 0;
}

.urna-screen-data {
  flex: 1;
}

.numero-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.label-numero {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
}

.digits-box {
  display: flex;
  gap: 6px;
}

.digit-slot {
  width: 32px;
  height: 42px;
  border: 2px solid #0f172a;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
}

.digit-slot.active-blink {
  border-color: var(--br-blue);
  box-shadow: 0 0 0 2px rgba(0, 39, 118, 0.3);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { background: #ffffff; }
  50% { background: #e0f2fe; }
}

.candidate-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-row {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
}

.meta-lbl {
  font-weight: 700;
  color: #475569;
  min-width: 55px;
}

.meta-val {
  font-weight: 800;
  color: #0f172a;
}

.urna-screen-photo {
  width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-frame {
  width: 100px;
  height: 120px;
  border: 2px solid #0f172a;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.5px;
}

.urna-screen-footer {
  border-top: 2px solid #0f172a;
  padding-top: 8px;
}

.instructions-tse {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
}

.instructions-tse strong {
  color: #0f172a;
}

/* TECLADO FÍSICO DA URNA */
.urna-keypad-panel {
  background: #27272a;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.4);
}

.keys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 220px;
  margin: 0 auto 14px auto;
}

.key-digit {
  height: 44px;
  background: #18181b;
  color: #ffffff;
  border: 2px solid #3f3f46;
  border-radius: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #09090b;
  transition: transform 0.05s, box-shadow 0.05s;
}

.key-digit:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #09090b;
}

.key-zero {
  grid-column: 2;
}

.action-keys-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
}

.key-btn {
  height: 48px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.05s, box-shadow 0.05s;
}

.key-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.key-branco {
  background: #ffffff;
  color: #0f172a;
}

.key-corrige {
  background: #f97316;
  color: #ffffff;
}

.key-confirma {
  background: #00853B;
  color: #ffffff;
  font-size: 0.95rem;
  height: 54px;
  margin-top: -6px;
}

/* ==========================================================================
   PAINEL DE CANDIDATOS DO TSE & BUSCA
   ========================================================================== */
.candidates-selection-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.candidates-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 18px;
}

.header-titles h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.subtitle-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 30px;
  width: 100%;
  max-width: 320px;
}

.search-input-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
  width: 100%;
}

.quick-options-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pill-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.pill-btn.active, .pill-btn:hover {
  background: var(--br-blue);
  color: white;
  border-color: var(--br-blue);
}

/* Grid de cards de candidatos */
.candidates-scroll-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.candidate-card-tse {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.candidate-card-tse:hover {
  transform: translateY(-2px);
  border-color: var(--br-green);
  box-shadow: 0 6px 16px rgba(0, 133, 59, 0.12);
  background: #ffffff;
}

.candidate-card-tse.selected {
  border-color: var(--br-green);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px var(--br-green);
}

.cand-avatar-wrap {
  width: 65px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.cand-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cand-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cand-header-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cand-party-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--br-blue);
  background: #e0f2fe;
  padding: 2px 6px;
  border-radius: 4px;
}

.cand-num-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
  background: var(--br-yellow);
  padding: 1px 8px;
  border-radius: 6px;
}

.cand-title-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
  line-height: 1.2;
}

.cand-sub-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cand-btn-select {
  margin-top: 8px;
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.candidate-card-tse.selected .cand-btn-select {
  background: var(--br-green);
  color: white;
}

.wizard-nav-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.btn-nav {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.btn-nav.primary {
  background: var(--br-green);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 133, 59, 0.25);
}

.btn-nav.primary:hover {
  background: var(--br-green-dark);
}

.btn-nav.secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   TELA FINAL: COLINHA ELEITORAL COMPLETA
   ========================================================================== */
.cola-result-section {
  max-width: 900px;
  margin: 20px auto;
}

.cola-success-banner {
  text-align: center;
  margin-bottom: 25px;
}

.badge-success-flag {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 10px;
  border: 1px solid #bbf7d0;
}

.cola-success-banner h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
}

.cola-success-banner p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cola-actions-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.btn-action-primary,
.btn-action-whatsapp,
.btn-action-secondary,
.btn-action-print,
.btn-action-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-action-primary {
  background: var(--br-green);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 133, 59, 0.3);
}

.btn-action-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-action-secondary {
  background: var(--br-blue);
  color: white;
}

.btn-action-print {
  background: #334155;
  color: white;
}

.btn-action-edit {
  background: #ffffff;
  color: #475569;
  border: 1.5px solid var(--border-color);
}

.btn-action-primary:hover,
.btn-action-whatsapp:hover,
.btn-action-secondary:hover,
.btn-action-print:hover {
  transform: translateY(-2px);
}

/* CARD EXPORTÁVEL DA COLINHA ELEITORAL (ESTILO SANTINHO OFICIAL) */
.cola-card-export {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 3px solid var(--br-green);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cola-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cola-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cola-tagline {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--br-green-dark);
  letter-spacing: 1px;
}

.cola-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--br-blue-dark);
}

.cola-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cola-order-badge {
  background: var(--br-yellow);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.cola-law-warning {
  font-size: 0.7rem;
  font-weight: 800;
  color: #dc2626;
}

.cola-votes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cola-item-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  transition: 0.2s;
}

.cola-item-box.highlight-pres {
  background: #eff6ff;
  border-color: var(--br-blue);
}

.item-order-col {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--br-blue);
  width: 32px;
}

.item-photo-col {
  width: 50px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  flex-shrink: 0;
}

.item-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info-col {
  flex: 1;
}

.item-cargo-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.item-cand-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
}

.item-party {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
}

.item-number-col {
  text-align: right;
}

.number-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: #0f172a;
  background: var(--br-yellow);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: inline-block;
}

.cola-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px dashed #cbd5e1;
  padding-top: 14px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-right {
  font-weight: 700;
  color: var(--br-green-dark);
}

/* ==========================================================================
   MODAIS E FORMULÁRIOS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  color: #64748b;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

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

.auth-tab-btn.active {
  color: var(--br-blue);
  border-bottom-color: var(--br-blue);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--br-blue);
}

.form-hint-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.form-hint-row a {
  color: var(--br-blue);
  text-decoration: none;
  font-weight: 600;
}

.btn-submit-auth {
  width: 100%;
  background: var(--br-blue);
  color: white;
  padding: 12px;
  border-radius: 30px;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 39, 118, 0.25);
}

.btn-submit-auth:hover {
  background: var(--br-blue-dark);
}

.form-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.alert-info {
  background: #e0f2fe;
  color: #0369a1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ==========================================================================
   BANNER DE INSTALAÇÃO NO IOS
   ========================================================================== */
.ios-install-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #ffffff;
  border: 2px solid var(--br-blue);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 2500;
}

.ios-guide-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #0f172a;
}

.btn-close-ios {
  align-self: flex-end;
  background: var(--br-blue);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   FOLHA DE ESTILO PARA IMPRESSÃO (LEVAR PARA A CABINE DE VOTAÇÃO)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
  
  .main-header,
  .tse-alert-bar,
  .cargo-steps-container,
  .urna-mockup-wrapper,
  .candidates-selection-wrapper,
  .cola-actions-toolbar,
  .cola-success-banner,
  .modal-overlay,
  .ios-install-banner {
    display: none !important;
  }

  .cola-result-section {
    display: block !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .cola-card-export {
    box-shadow: none !important;
    border: 2px solid #000000 !important;
    padding: 14px !important;
    page-break-inside: avoid;
  }

  .cola-item-box {
    border: 1px solid #000000 !important;
    background: #ffffff !important;
    padding: 8px 12px !important;
  }

  .number-display {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
  }
}
