/* ============================================================
   ELIANA VETERINÁRIA 18486 — COLINHA ELEITORAL & SIMULADOR DE URNA
   Cores Oficiais:
   - Roxo Primário: #5d2a86, Escuro: #250d37, Claro: #7735ac
   - Laranja Vibrante: #fa890a, Escuro: #d66f02
   - Verde Causa Animal / Confirma: #116054, #128a50
   - Fundos: Palha (#faf7f2), Branco (#ffffff), Gelo (#f4f5f8)
   ============================================================ */

:root {
  --roxo: #5d2a86;
  --roxo-dark: #3e1b5b;
  --roxo-deep: #250d37;
  --roxo-vibrant: #7735ac;
  --roxo-subtle: #f5effa;
  --roxo-border: rgba(119, 53, 172, 0.18);

  --laranja: #fa890a;
  --laranja-dark: #d66f02;
  --laranja-light: #fff5e6;
  --laranja-glow: rgba(250, 137, 10, 0.35);

  --verde: #116054;
  --verde-urna: #11843b;
  --verde-subtle: #e9f5f3;

  --bg-palha: #faf7f2;
  --bg-cinza: #f4f5f8;
  --branco: #ffffff;
  --cinza-texto: #332d3d;
  --cinza-suave: #686273;
  --cinza-borda: #e4dfeb;

  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-urna: 'Courier New', Courier, monospace;

  --shadow-sm: 0 2px 8px rgba(37, 13, 55, 0.06);
  --shadow-md: 0 6px 20px rgba(37, 13, 55, 0.08);
  --shadow-lg: 0 12px 36px rgba(37, 13, 55, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

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

body {
  font-family: var(--font-body);
  color: var(--cinza-texto);
  background-color: var(--bg-palha);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- ZERO SUBLINHADO EM BOTÕES E ELEMENTOS DE AÇÃO --- */
a,
button,
.cl-btn,
.cl-btn-sm,
.cl-action-btn,
.cl-tab-btn,
.cl-ukm-btn,
.cl-urna-key,
.nav__cta,
.drawer__link,
.drawer__link--cta,
.btn {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

a:hover,
a:focus,
a:active,
button:hover,
button:focus,
button:active,
.cl-btn:hover,
.cl-btn:focus,
.cl-btn:active,
.cl-btn-sm:hover,
.cl-btn-sm:focus,
.cl-btn-sm:active,
.cl-action-btn:hover,
.cl-action-btn:focus,
.cl-action-btn:active,
.cl-tab-btn:hover,
.cl-tab-btn:focus,
.cl-tab-btn:active,
.cl-ukm-btn:hover,
.cl-ukm-btn:focus,
.cl-ukm-btn:active,
.nav__cta:hover,
.drawer__link:hover,
.drawer__link--cta:hover,
.btn:hover {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

.cl-btn *,
.cl-btn-sm *,
.cl-action-btn *,
.cl-tab-btn *,
.cl-ukm-btn * {
  text-decoration: none !important;
}

.cl-btn::before,
.cl-btn::after,
.cl-btn-sm::before,
.cl-btn-sm::after,
.cl-action-btn::before,
.cl-action-btn::after,
.cl-tab-btn::before,
.cl-tab-btn::after {
  text-decoration: none !important;
}

/* --- AJUSTES DO HEADER DO SITE PRINCIPAL --- */
.nav__links a.active {
  color: var(--laranja) !important;
}
.nav__links a.active::after {
  transform: scaleX(1) !important;
  background: var(--laranja) !important;
}

/* --- HERO COMPACTO & ELEGANTE --- */
.cl-hero {
  background: linear-gradient(135deg, var(--roxo-deep) 0%, var(--roxo) 60%, var(--roxo-dark) 100%);
  color: #fff;
  padding: calc(var(--nav-h, 84px) + 2rem) 1.25rem 2.25rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cl-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--laranja) 0%, var(--verde) 50%, var(--laranja) 100%);
}

.cl-hero__container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cl-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(250, 137, 10, 0.18);
  border: 1px solid rgba(250, 137, 10, 0.4);
  color: #ffd8a8;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
}

.cl-hero__title {
  font-family: var(--font-title);
  font-size: clamp(1.68rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.cl-hero__title-sub {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: #f1e4fa;
  margin-top: 0.5rem;
  letter-spacing: 0;
}

.cl-hero__title-sub strong {
  color: #ffffff;
  background: var(--laranja);
  font-family: var(--font-title);
  font-weight: 900;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(250, 137, 10, 0.4);
}

/* DESTAQUE MÁXIMO: CELULAR PROIBIDO NA CABINE (CARD CLARO E VISÍVEL) */
.cl-celular-aviso {
  background: #ffffff;
  border: 2px solid var(--laranja);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), 0 0 24px rgba(250, 137, 10, 0.35);
  padding: 1.15rem 1.4rem;
  margin: 1.5rem auto 0;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  text-align: left;
}

@media (max-width: 600px) {
  .cl-celular-aviso {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 0.75rem;
  }
}

.cl-celular-aviso__icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--laranja-light);
  border: 2px solid var(--laranja);
  color: var(--laranja-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(250, 137, 10, 0.25);
}

.cl-celular-aviso__text {
  flex: 1;
}

.cl-celular-aviso__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-title);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 900;
  color: var(--roxo-deep);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

@media (max-width: 600px) {
  .cl-celular-aviso__title {
    justify-content: center;
  }
}

.cl-celular-aviso__pill {
  background: #d32f2f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.cl-celular-aviso__desc {
  font-size: 0.88rem;
  color: var(--cinza-suave);
  line-height: 1.45;
}

.cl-celular-aviso__desc strong {
  color: var(--roxo-deep);
  font-weight: 800;
  background: rgba(250, 137, 10, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cl-btn--primary {
  background: var(--laranja);
  color: #fff;
  box-shadow: 0 4px 14px rgba(250, 137, 10, 0.4);
}
.cl-btn--primary:hover {
  background: var(--laranja-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(250, 137, 10, 0.5);
}

.cl-btn--urna {
  background: #fff;
  color: var(--roxo-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.cl-btn--urna:hover {
  background: var(--bg-palha);
  color: var(--roxo);
  transform: translateY(-2px);
}

.cl-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.cl-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* --- TABS / SELETOR DE MODO --- */
.cl-tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.cl-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cinza-suave);
  background: #fff;
  border: 1.5px solid var(--cinza-borda);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cl-tab-btn:hover {
  color: var(--roxo);
  border-color: var(--roxo);
}

.cl-tab-btn.is-active {
  background: var(--roxo);
  color: #fff;
  border-color: var(--roxo);
  box-shadow: 0 4px 16px rgba(93, 42, 134, 0.25);
}

/* --- WRAPPER GERAL --- */
.cl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* --- LAYOUT GRID: SLOTS + PAPEL --- */
.cl-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .cl-grid {
    grid-template-columns: 1fr;
  }
}

/* --- LISTA DE VOTOS --- */
.cl-slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cl-slots-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--roxo-deep);
}

.cl-slots-subtitle {
  font-size: 0.85rem;
  color: var(--cinza-suave);
}

.cl-slots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- CARD DO VOTO (SLOT) --- */
.cl-slot-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cinza-borda);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.2s ease;
}

.cl-slot-card:hover {
  border-color: rgba(93, 42, 134, 0.35);
  box-shadow: var(--shadow-md);
}

/* DESTAQUE OFICIAL PARA ELIANA (SLOT FIXO) */
.cl-slot-card--fixo {
  background: linear-gradient(135deg, #ffffff 0%, var(--roxo-subtle) 100%);
  border: 2px solid var(--roxo);
  box-shadow: 0 4px 20px rgba(93, 42, 134, 0.15);
}

.cl-slot-card--fixo::before {
  content: 'SEU VOTO OFICIAL';
  position: absolute;
  top: -11px;
  left: 20px;
  background: var(--roxo);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(93, 42, 134, 0.3);
}

.cl-slot-card__top {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 600px) {
  .cl-slot-card__top {
    grid-template-columns: 32px 1fr;
    gap: 0.75rem;
  }
}

.cl-slot-order {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-cinza);
  color: var(--roxo);
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-slot-card--fixo .cl-slot-order {
  background: var(--roxo);
  color: #fff;
}

.cl-slot-info {
  display: flex;
  flex-direction: column;
}

.cl-slot-cargo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--roxo-deep);
  line-height: 1.2;
}

.cl-slot-card--fixo .cl-slot-cargo {
  color: var(--roxo);
}

.cl-slot-vaga {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--laranja-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cl-slot-digits-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

@media (max-width: 600px) {
  .cl-slot-digits-wrap {
    grid-column: 2 / -1;
  }
}

.cl-digit-boxes {
  display: flex;
  gap: 0.35rem;
  position: relative;
}

.cl-digit-box {
  width: 38px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px solid var(--cinza-borda);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--roxo-deep);
  user-select: none;
  transition: all 0.15s ease;
}

.cl-digit-box.is-filled {
  background: var(--bg-cinza);
  border-color: var(--roxo);
  color: var(--roxo);
}

.cl-slot-card--fixo .cl-digit-box {
  background: var(--laranja);
  border-color: var(--laranja-dark);
  color: #fff;
}

.cl-digit-box.has-cursor {
  border-color: var(--laranja);
  box-shadow: 0 0 0 3px rgba(250, 137, 10, 0.25);
  animation: cursorPulse 1s infinite alternate;
}

@keyframes cursorPulse {
  0% { border-color: var(--laranja); }
  100% { border-color: var(--roxo); }
}

.cl-hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.cl-hidden-input[readonly] {
  cursor: default;
}

/* RESULTADO DO CANDIDATO SELECIONADO */
.cl-slot-result {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cinza-borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cl-slot-candidate {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cl-candidate-thumb {
  width: 44px;
  height: 56px;
  border-radius: 6px;
  background: var(--bg-cinza);
  border: 1px solid var(--cinza-borda);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cl-candidate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cl-candidate-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cl-candidate-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--roxo-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-candidate-party {
  font-size: 0.78rem;
  color: var(--cinza-suave);
  font-weight: 600;
}

.cl-candidate-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--verde-urna);
  font-weight: 700;
}

.cl-slot-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cl-btn-sm {
  background: transparent;
  border: 1px solid var(--cinza-borda);
  color: var(--cinza-texto);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.cl-btn-sm:hover {
  background: var(--bg-cinza);
  border-color: var(--cinza-suave);
}

.cl-btn-sm--search {
  color: var(--roxo);
  border-color: rgba(93, 42, 134, 0.3);
}
.cl-btn-sm--search:hover {
  background: var(--roxo-subtle);
  border-color: var(--roxo);
}

.cl-btn-sm--lock {
  background: rgba(93, 42, 134, 0.08);
  border-color: transparent;
  color: var(--roxo);
  cursor: default;
  font-weight: 700;
}

/* BUSCA INLINE SUSPENSA */
.cl-slot-search-box {
  margin-top: 0.75rem;
  position: relative;
  z-index: 10;
}

.cl-search-input-wrap {
  position: relative;
}

.cl-search-input {
  width: 100%;
  padding: 0.6rem 0.85rem 0.6rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border: 1.5px solid var(--roxo);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fff;
}

.cl-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--roxo);
  pointer-events: none;
}

.cl-search-results {
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--cinza-borda);
  border-radius: var(--radius-sm);
  margin-top: 0.35rem;
  box-shadow: var(--shadow-md);
  list-style: none;
}

.cl-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.1s ease;
}

.cl-search-item:hover, .cl-search-item:focus {
  background: var(--roxo-subtle);
}

.cl-search-item__num {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--laranja-dark);
  font-size: 1rem;
}

/* --- ASIDE: A FOLHA DA COLINHA (RECEIPT) --- */
.cl-receipt-aside {
  position: sticky;
  top: 90px;
}

.cl-receipt {
  background: #fff;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(93, 42, 134, 0.25);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  position: relative;
  background-image: radial-gradient(var(--cinza-borda) 0.75px, #ffffff 0.75px);
  background-size: 12px 12px;
}

.cl-receipt__header {
  text-align: center;
  border-bottom: 2px solid var(--roxo-deep);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
}

.cl-receipt__badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cinza-suave);
}

.cl-receipt__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--roxo-deep);
  margin-top: 0.2rem;
}

.cl-receipt__sub {
  font-size: 0.78rem;
  color: var(--roxo);
  font-weight: 700;
}

.cl-receipt__lines {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cl-receipt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--cinza-borda);
}

.cl-receipt-row--eliana {
  background: var(--roxo-subtle);
  border-left: 4px solid var(--laranja);
}

.cl-receipt-row__cargo {
  display: flex;
  flex-direction: column;
}

.cl-receipt-row__label {
  font-size: 0.72rem;
  color: var(--cinza-suave);
  text-transform: uppercase;
  font-weight: 700;
}

.cl-receipt-row__candidato {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--roxo-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.cl-receipt-row--eliana .cl-receipt-row__candidato {
  color: var(--roxo);
}

.cl-receipt-row__numero {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cinza-texto);
  letter-spacing: 0.04em;
}

.cl-receipt-row--eliana .cl-receipt-row__numero {
  color: var(--laranja-dark);
}

.cl-receipt__footer {
  text-align: center;
  border-top: 1px dashed var(--cinza-borda);
  padding-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--cinza-suave);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cl-receipt__footer strong {
  color: var(--roxo-deep);
}

/* BOTÕES DE AÇÃO DA COLINHA */
.cl-receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cl-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.cl-action-btn--print {
  background: var(--roxo);
  color: #fff;
}
.cl-action-btn--print:hover {
  background: var(--roxo-dark);
  transform: translateY(-1px);
}

.cl-action-btn--story {
  background: var(--laranja);
  color: #fff;
}
.cl-action-btn--story:hover {
  background: var(--laranja-dark);
  transform: translateY(-1px);
}

.cl-action-btn--urna {
  background: #116054;
  color: #fff;
}
.cl-action-btn--urna:hover {
  background: #0a3d35;
  transform: translateY(-1px);
}

.cl-action-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cl-action-btn--zap {
  background: #25d366;
  color: #fff;
}
.cl-action-btn--zap:hover {
  background: #128c7e;
}

.cl-action-btn--copy {
  background: var(--bg-cinza);
  color: var(--cinza-texto);
  border: 1px solid var(--cinza-borda);
}
.cl-action-btn--copy:hover {
  background: var(--cinza-borda);
}

/* ============================================================
   SEÇÃO DO SIMULADOR DE URNA ELETRÔNICA OFICIAL BRASIL
   ============================================================ */
.cl-urna-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--cinza-borda);
}

.cl-urna-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cl-urna-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde-subtle);
  color: var(--verde);
  border: 1px solid rgba(17, 96, 84, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cl-urna-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--roxo-deep);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.cl-urna-desc {
  font-size: 0.98rem;
  color: var(--cinza-suave);
}

.cl-urna-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* CONSOLE RESPONSIVO DA URNA ELETRÔNICA (UE 2026) */
.cl-urna-console {
  max-width: 900px;
  margin: 0 auto;
  background: #ece9f2;
  border: 2px solid #d2cde0;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 48px rgba(37, 13, 55, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  user-select: none;
}

@media (max-width: 820px) {
  .cl-urna-console {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
  }
}

/* VISOR / TELA LCD DA URNA */
.cl-urna-visor-frame {
  background: #1e1d24;
  border-radius: 16px;
  padding: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

@media (max-width: 820px) {
  .cl-urna-visor-frame {
    min-height: 310px;
    padding: 9px;
    border-radius: 12px;
  }
}

.cl-urna-screen {
  background: #fcfcfd;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  color: #111;
  font-family: var(--font-body);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.04);
}

@media (max-width: 820px) {
  .cl-urna-screen {
    padding: 0.85rem;
  }
}

.cl-us-header {
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.04em;
}

.cl-us-cargo {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  line-height: 1.15;
  margin-top: 0.15rem;
  letter-spacing: -0.01em;
}

.cl-us-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1;
  margin: 0.75rem 0;
}

.cl-us-digits-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cl-us-num-label {
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  letter-spacing: 0.03em;
}

.cl-us-boxes {
  display: flex;
  gap: 8px;
}

.cl-us-box {
  width: clamp(34px, 5.5vw, 44px);
  height: clamp(48px, 7.5vw, 62px);
  border: 2.5px solid #222;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: #000;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s, background 0.15s;
}

.cl-us-box.is-blinking {
  border-color: var(--roxo);
  animation: urnaCursor 0.8s infinite alternate;
}

@keyframes urnaCursor {
  0% { background: #ffffff; border-color: var(--roxo); }
  100% { background: #f3ecf8; border-color: var(--roxo-vibrant); }
}

.cl-us-details {
  margin-top: 0.45rem;
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  line-height: 1.35;
}

.cl-us-cand-name {
  font-weight: 900;
  font-size: clamp(0.88rem, 1.7vw, 1.15rem);
  text-transform: uppercase;
  color: #111;
  display: inline-block;
}

.cl-us-cand-party {
  font-weight: 700;
  color: #444;
}

.cl-us-photo-area {
  width: clamp(72px, 14vw, 110px);
  height: clamp(92px, 18vw, 140px);
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f4f3f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cl-us-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #888;
  font-size: clamp(0.62rem, 1.1vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cl-us-photo-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cl-us-footer-msg {
  border-top: 1.5px solid #ded9e5;
  padding-top: 0.5rem;
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
  line-height: 1.45;
  color: #333;
}

.cl-us-footer-msg strong {
  font-weight: 900;
}

/* TELA DE FIM (APÓS CONFIRMAR ÚLTIMO VOTO) */
.cl-us-screen-fim {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
}

.cl-us-fim-text {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #000;
  line-height: 1;
}

.cl-us-fim-sub {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #666;
  margin-top: 0.4rem;
}

.cl-us-fim-badge {
  margin-top: 0.75rem;
  background: var(--verde-urna);
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.25vw, 0.85rem);
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
}

/* PAINEL DO TECLADO DA URNA */
.cl-urna-keypad-panel {
  background: #d8d3e2;
  border: 1px solid #c8c2d3;
  border-radius: 16px;
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 820px) {
  .cl-urna-keypad-panel {
    padding: 0.85rem 0.65rem;
    border-radius: 12px;
  }
}

.cl-urna-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #443c52;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.cl-urna-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.25fr;
  gap: 0.55rem;
}

@media (max-width: 600px) {
  .cl-urna-keypad {
    gap: 0.4rem;
  }
}

/* BOTÕES FÍSICOS DO TECLADO */
.cl-urna-key {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.06s ease, filter 0.1s ease, box-shadow 0.06s ease;
}

.cl-urna-key:active {
  transform: translateY(2px);
}

/* TECLAS NUMÉRICAS (1 a 9, 0) */
.cl-key--num {
  height: clamp(52px, 7.5vw, 65px);
  background: #24232a;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 900;
  box-shadow: 0 4px 0 #121116, 0 5px 8px rgba(0, 0, 0, 0.18);
}

.cl-key--num:hover {
  background: #32313b;
}

.cl-key--num:active {
  box-shadow: 0 1px 0 #121116;
}

/* TECLAS DE AÇÃO (BRANCO, CORRIGE, CONFIRMA) */
.cl-key--action {
  height: clamp(52px, 7.5vw, 65px);
}

.cl-key--branco {
  background: #ffffff;
  color: #111116;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 0 #b3afba, 0 5px 8px rgba(0, 0, 0, 0.1);
}

.cl-key--branco:hover {
  background: #f7f7fa;
}

.cl-key--branco:active {
  box-shadow: 0 1px 0 #b3afba;
}

.cl-key--corrige {
  background: #e65100;
  color: #ffffff;
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 0 #bf360c, 0 5px 8px rgba(0, 0, 0, 0.15);
}

.cl-key--corrige:hover {
  background: #f4511e;
}

.cl-key--corrige:active {
  box-shadow: 0 1px 0 #bf360c;
}

.cl-key--confirma {
  grid-row: span 2;
  height: 100%;
  min-height: clamp(110px, 16vw, 138px);
  background: #2e7d32;
  color: #ffffff;
  font-size: clamp(0.85rem, 1.35vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 0 #1b5e20, 0 6px 14px rgba(46, 125, 50, 0.32);
}

.cl-key--confirma:hover {
  background: #388e3c;
}

.cl-key--confirma:active {
  box-shadow: 0 1px 0 #1b5e20;
}

.cl-key--spacer {
  pointer-events: none;
  opacity: 0;
}

/* --- DICAS E INSTRUÇÕES RÁPIDAS (RESUMIDAS) --- */
.cl-quick-tips {
  margin-top: 3rem;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--cinza-borda);
  box-shadow: var(--shadow-sm);
}

.cl-quick-tips__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--roxo-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cl-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cl-tip-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.cl-tip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--roxo-subtle);
  color: var(--roxo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.cl-tip-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cinza-texto);
  margin-bottom: 0.2rem;
}

.cl-tip-text p {
  font-size: 0.85rem;
  color: var(--cinza-suave);
  line-height: 1.4;
}

/* --- RODAPÉ OFICIAL --- */
.cl-footer {
  background: var(--roxo-deep);
  color: #fff;
  padding: 2.5rem 1.25rem 2rem;
  border-top: 4px solid var(--laranja);
  text-align: center;
}

.cl-footer__inner {
  max-width: 800px;
  margin: 0 auto;
}

.cl-footer__brand {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.cl-footer__brand span {
  color: var(--laranja);
}

.cl-footer__meta {
  font-size: 0.82rem;
  color: #d1c4e0;
  margin-bottom: 1rem;
}

.cl-footer__legal {
  font-size: 0.75rem;
  color: #a497b5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

/* --- TOAST NOTIFICATION --- */
.cl-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--roxo-deep);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1.5px solid var(--laranja);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.cl-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   ESTILOS DE IMPRESSÃO (4 VIAS PARA FOLHA A4)
   ============================================================ */
#clImpressaoArea {
  display: none;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm;
    min-height: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }

  body > :not(#clImpressaoArea) {
    display: none !important;
  }

  #clImpressaoArea, #clImpressaoArea * {
    box-sizing: border-box;
  }

  #clImpressaoArea {
    display: grid !important;
    position: static;
    width: 210mm;
    height: 296mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8mm;
    padding: 10mm;
    margin: 0;
    background: #fff;
    break-inside: avoid;
  }

  .print-via {
    border: 1.5px dashed #000;
    padding: 6mm;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    break-inside: avoid;
    font-family: Arial, sans-serif;
    color: #000;
  }
  .print-via__top {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 3mm;
    margin-bottom: 3mm;
  }

  .print-via__top small {
    font-size: 8pt;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
  }

  .print-via__top h3 {
    font-size: 14pt;
    font-weight: 900;
    margin: 1mm 0;
  }

  .print-via__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5mm;
  }

  .print-via__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9pt;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 1mm;
  }

  .print-via__row.is-eliana {
    font-weight: bold;
    background: #f0f0f0;
    padding: 1mm 2mm;
    border-radius: 4px;
    border: 1px solid #000;
  }

  .print-via__num {
    font-size: 13pt;
    font-weight: 900;
    letter-spacing: 1px;
  }

  .print-via__bottom {
    border-top: 1.5px solid #000;
    padding-top: 2.5mm;
    margin-top: 3mm;
    font-size: 7pt;
    text-align: center;
    line-height: 1.3;
  }
}
