/*
   RENATO LOFFI 40700 - MONTE SUA COLINHA
   Complementa css/style.css (mesmas cores e fontes do site principal)
*/

.page-colinha {
  background:
    radial-gradient(ellipse 900px 520px at 50% -120px, rgba(47, 123, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 700px 420px at 100% 40%, rgba(251, 183, 36, 0.07), transparent 70%),
    var(--bg-dark);
}

.page-colinha .header-inner { gap: 16px; }

/* ============ HERO (banner do candidato) ============ */
.cl-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 0; min-height: 560px;
  background:
    radial-gradient(ellipse 70% 90% at 78% 40%, rgba(47, 123, 255, 0.45), transparent 70%),
    linear-gradient(135deg, var(--blue) 0%, #0d2f66 45%, var(--bg-dark) 100%);
}

/* Número fantasma ao fundo, igual ao hero do site principal */
.cl-ghost-num {
  position: absolute; top: 46%; left: -1%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 900; line-height: 1;
  font-size: clamp(160px, 28vw, 440px); color: rgba(255, 255, 255, 0.06);
  z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
}

/* Círculo atrás da foto */
.cl-hero-circle {
  position: absolute; z-index: 0;
  width: 560px; height: 560px; right: 6%; top: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(47, 123, 255, 0.55), rgba(20, 80, 158, 0.25) 70%);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.04), 0 0 0 52px rgba(251, 183, 36, 0.05);
}

.cl-hero-inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 120px; }
.cl-hero-txt { max-width: 560px; }

.cl-pill {
  display: inline-block; padding: 10px 22px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; margin-bottom: 26px;
}

.cl-hero-name {
  font-family: var(--font-display); font-weight: 800; line-height: 0.92; letter-spacing: -0.03em;
  font-size: clamp(56px, 8.4vw, 118px); color: #fff;
}
.cl-hero-name span { display: block; }

.cl-hero-cargo {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: 0.04em; color: #fff;
  margin-top: 22px;
}

.cl-hero-num {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(76px, 12vw, 170px); letter-spacing: -0.02em;
  color: var(--yellow); text-shadow: 0 10px 40px rgba(251, 183, 36, 0.35);
}

.cl-hero-photo {
  position: absolute; z-index: 1; right: 2%; top: 110px; bottom: 0;
  width: min(52vw, 720px); pointer-events: none;
}
.cl-hero-photo img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.5));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.cl-hero .hero-wave { z-index: 3; }

.colinha-main { position: relative; padding: 70px 0 80px; }
.colinha-head { margin-bottom: 40px; }

.colinha-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ============ FORMULÁRIO ============ */
.cl-form { display: flex; flex-direction: column; gap: 14px; }

.cl-cargo {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cl-cargo:focus-within { border-color: rgba(47, 123, 255, 0.6); background: rgba(47, 123, 255, 0.07); }

.cl-cargo-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.cl-cargo-title .ord {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 8px;
  background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); font-size: 11px; letter-spacing: 0;
}
.cl-cargo-title .dig { font-weight: 600; letter-spacing: 0.5px; text-transform: none; color: rgba(255, 255, 255, 0.4); }

.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }

.cl-row input {
  width: 100%; height: 50px; padding: 0 16px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--text-primary); background: rgba(3, 8, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
  outline: none; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cl-row input::placeholder { color: rgba(255, 255, 255, 0.35); font-weight: 500; }
.cl-row input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.25); }
.cl-row input.num {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  letter-spacing: 6px; text-align: center; padding: 0 8px;
}
.cl-row input.num::placeholder { letter-spacing: 6px; }
.cl-row input.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); }

/* Cargo do Renato (fixo, em destaque) */
.cl-cargo.is-renato {
  background: linear-gradient(135deg, rgba(251, 183, 36, 0.16), rgba(251, 183, 36, 0.05));
  border-color: rgba(251, 183, 36, 0.55);
  box-shadow: var(--shadow-yellow);
}
.cl-cargo.is-renato .cl-cargo-title { color: var(--yellow); }
.cl-cargo.is-renato .cl-cargo-title .ord { background: var(--yellow); color: var(--blue-deep); }
.cl-cargo.is-renato input {
  background: rgba(255, 255, 255, 0.96); color: var(--blue-deep);
  border-color: transparent; cursor: default;
}
.cl-cargo.is-renato input.num { color: var(--blue); }

.cl-found {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  margin-top: 12px; padding: 10px; border-radius: 12px;
  background: rgba(3, 8, 17, 0.45); border: 1px solid rgba(255, 255, 255, 0.08);
}
.cl-found[hidden] { display: none; }
.cl-found img {
  width: 44px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}
.cl-found div { display: flex; flex-direction: column; min-width: 0; flex: 1 1 150px; }
.cl-found strong { font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.cl-found span { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.cl-found em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.cl-found.ok em { color: #4ade80; }
.cl-found.warn { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.35); }
.cl-found.warn em { color: #ff9b9b; }
.cl-found.choose { flex-direction: column; align-items: stretch; }
.cl-found.choose em { color: var(--yellow); }
.cl-found.choose button {
  display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text-primary);
  padding: 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04); transition: all 0.2s var(--ease);
}
.cl-found.choose button:hover { border-color: var(--yellow); background: rgba(251, 183, 36, 0.08); }
.cl-cargo.is-renato .cl-found { background: rgba(8, 23, 47, 0.35); border-color: rgba(251, 183, 36, 0.3); }
.cl-cargo.is-renato .cl-found.ok em { color: var(--yellow); }

.cl-note { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; padding: 4px 4px 0; }

/* ============ PRÉVIA ============ */
.cl-preview {
  position: sticky; top: 104px;
  background: var(--bg-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.cl-preview-head h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 14px;
}

.cl-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.cl-fmt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 14px; border-radius: 12px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary); transition: all 0.2s var(--ease);
}
.cl-fmt strong { font-size: 14px; font-weight: 700; }
.cl-fmt span { font-size: 12px; color: var(--text-muted); }
.cl-fmt:hover { border-color: rgba(255, 255, 255, 0.3); }
.cl-fmt.active { background: rgba(251, 183, 36, 0.12); border-color: var(--yellow); color: var(--yellow); }
.cl-fmt.active span { color: rgba(251, 183, 36, 0.75); }

.cl-frame {
  display: flex; justify-content: center;
  background: rgba(3, 8, 17, 0.6); border-radius: 14px; padding: 14px;
}
.cl-frame img {
  width: 100%; max-height: 560px; object-fit: contain;
  border-radius: 8px; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.7);
}

.cl-tip { font-size: 12.5px; color: var(--text-muted); text-align: center; margin: 10px 0 16px; }

.cl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-actions .btn { justify-content: center; padding: 14px 16px; font-size: 14.5px; }
.cl-actions .btn[hidden] { display: none; }
.cl-actions #btnBaixar { grid-column: 1 / -1; }
.cl-actions .btn-whats, .cl-actions #btnCompartilhar { grid-column: 1 / -1; }

.btn-whats {
  background: #25d366; color: #06301a; font-weight: 800;
}
.btn-whats:hover { transform: translateY(-2px); box-shadow: 0 15px 40px -15px rgba(37, 211, 102, 0.6); }

.cl-alert {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(251, 183, 36, 0.08); border: 1px solid rgba(251, 183, 36, 0.3);
  font-size: 13.5px; line-height: 1.6; color: var(--text-secondary);
}
.cl-alert strong { display: block; color: var(--yellow); margin-bottom: 2px; }

.cl-clear {
  display: block; margin: 16px auto 0; padding: 6px 10px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.cl-clear:hover { color: #ff8a8a; }

.cl-print { display: none; }

/* ============ CONTAGEM REGRESSIVA (hero) ============ */
.cl-count {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 22px;
  padding: 10px 20px 10px 10px; border-radius: 18px;
  background: rgba(8, 23, 47, 0.55); border: 1px solid rgba(251, 183, 36, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}
.cl-count[hidden] { display: none; }
.cl-count b {
  display: flex; align-items: center; justify-content: center;
  min-width: 62px; height: 62px; padding: 0 10px; border-radius: 14px;
  background: var(--yellow); color: var(--blue-deep);
  font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1;
}
.cl-count b.is-txt { font-size: 22px; }
.cl-count div { display: flex; flex-direction: column; gap: 3px; }
.cl-count strong { font-size: 17px; font-weight: 800; color: #fff; }
.cl-count span { font-size: 13px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ============ AVISOS DO FORMULÁRIO ============ */
.cl-recebida {
  padding: 14px 16px; border-radius: var(--radius);
  background: rgba(37, 211, 102, 0.1); border: 1px solid rgba(37, 211, 102, 0.4);
  font-size: 14px; line-height: 1.55; color: var(--text-secondary);
}
.cl-recebida[hidden] { display: none; }
.cl-recebida strong { display: block; color: #4ade80; margin-bottom: 2px; }

.cl-found .cl-sit { flex-basis: 100%; font-size: 12.5px; line-height: 1.5; font-weight: 600; color: var(--text-secondary); }
.cl-found .cl-sit b { color: #fff; }
.cl-found.warn .cl-sit { color: #ffb4b4; }
.cl-found.atencao { background: rgba(251, 183, 36, 0.08); border-color: rgba(251, 183, 36, 0.4); }
.cl-found.atencao .cl-sit { color: #ffd98a; }
.cl-found .sit-grave { color: #ff8a8a; font-weight: 800; }
.cl-found .sit-atencao { color: var(--yellow); font-weight: 800; }

.cl-aviso {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4);
  font-size: 12.5px; line-height: 1.5; font-weight: 600; color: #ffb4b4;
}
.cl-aviso[hidden] { display: none; }
.cl-aviso b { color: #fff; }

/* ============ BOTÕES EXTRAS DA PRÉVIA ============ */
.cl-urna-cta {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px;
  padding: 14px 16px; border-radius: 14px; text-align: left; color: #fff;
  background: linear-gradient(135deg, rgba(47, 123, 255, 0.35), rgba(20, 80, 158, 0.25));
  border: 1px solid rgba(47, 123, 255, 0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cl-urna-cta:hover { transform: translateY(-2px); border-color: var(--yellow); box-shadow: 0 15px 40px -18px rgba(47, 123, 255, 0.8); }
.cl-urna-cta .ico { font-size: 28px; line-height: 1; }
.cl-urna-cta strong { display: block; font-size: 15.5px; font-weight: 800; }
.cl-urna-cta small { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.cl-urna-cta .seta { margin-left: auto; font-size: 20px; color: var(--yellow); font-weight: 800; }

.cl-onde {
  display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none;
  transition: background 0.2s var(--ease);
}
.cl-onde:hover { background: rgba(255, 255, 255, 0.16); }

/* ============ BUSCA POR NOME ============ */
.cl-sugest {
  margin-top: 8px; padding: 6px; border-radius: 14px;
  background: #0a1830; border: 1px solid rgba(47, 123, 255, 0.5);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  display: flex; flex-direction: column; gap: 2px;
}
.cl-sugest[hidden] { display: none; }
.cl-sugest button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 10px; color: var(--text-primary);
  transition: background 0.15s var(--ease);
}
.cl-sugest button:hover, .cl-sugest button.on { background: rgba(47, 123, 255, 0.2); }
.cl-sugest img { width: 36px; height: 48px; border-radius: 7px; object-fit: cover; flex-shrink: 0; background: rgba(255, 255, 255, 0.08); }
.cl-sugest .t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cl-sugest strong { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-sugest small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.cl-sugest .n {
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 2px;
  padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--blue-deep);
}
.cl-sugest .vazio { padding: 10px; font-size: 13px; color: var(--text-muted); }
.cl-sugest .sit-grave { color: #ff8a8a; }
.cl-sugest .sit-atencao { color: var(--yellow); }

/* ============ MODO DOMINGO ============ */
.cl-domingo {
  position: relative; overflow: hidden; margin: 0 auto 56px; max-width: 1100px;
  padding: 34px; border-radius: 26px;
  background:
    radial-gradient(ellipse 60% 100% at 100% 0%, rgba(251, 183, 36, 0.28), transparent 70%),
    linear-gradient(135deg, #14509e, #08172f);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 0 8px rgba(251, 183, 36, 0.1), 0 30px 80px -30px rgba(251, 183, 36, 0.5);
}
.cl-domingo[hidden] { display: none; }
.cd-badge {
  display: inline-block; padding: 7px 14px; border-radius: 100px; margin-bottom: 12px;
  background: var(--yellow); color: var(--blue-deep); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.cl-domingo h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.cl-domingo h2 span { display: block; color: var(--yellow); font-size: 0.55em; margin-top: 6px; }
.cd-topo p { margin: 14px 0 18px; color: var(--text-secondary); font-weight: 600; }
.cl-check { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cl-check li {
  position: relative; padding: 14px 16px; border-radius: 16px;
  background: rgba(3, 8, 17, 0.45); border: 1px solid rgba(255, 255, 255, 0.12);
}
.cl-check label { display: flex; gap: 12px; cursor: pointer; }
.cl-check input { position: absolute; opacity: 0; pointer-events: none; }
.cl-check .box {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; margin-top: 1px;
  border: 2px solid rgba(255, 255, 255, 0.4); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.cl-check input:checked + .box { background: #4ade80; border-color: #4ade80; }
.cl-check input:checked + .box::after { content: '✓'; color: #06301a; font-weight: 900; font-size: 16px; }
.cl-check input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.6); }
.cl-check .txt { font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.cl-check .txt strong { display: block; font-size: 15.5px; color: #fff; margin-bottom: 2px; }
.cl-check li:has(input:checked) { border-color: rgba(74, 222, 128, 0.55); background: rgba(74, 222, 128, 0.08); }
.cd-mini {
  margin: 10px 0 0 38px; padding: 7px 12px; border-radius: 10px;
  background: var(--yellow); color: var(--blue-deep); font-weight: 800; font-size: 13px;
}
.cd-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.cd-rodape .cl-onde { margin-top: 0; }
.cd-ok { font-weight: 800; color: #4ade80; font-size: 15px; }
.cd-ok b { color: var(--yellow); }
.cd-ok[hidden] { display: none; }

/* ============ LEMBRETE NO CALENDÁRIO ============ */
.cl-lembrete { margin-top: 12px; }
.cl-lembrete[hidden] { display: none; }
.cl-lembrete-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px;
  text-align: left; color: #fff; font-weight: 800; font-size: 15.5px;
  background: linear-gradient(135deg, rgba(251, 183, 36, 0.22), rgba(251, 183, 36, 0.06));
  border: 1px solid rgba(251, 183, 36, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cl-lembrete-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 40px -18px rgba(251, 183, 36, 0.8); }
.cl-lembrete-btn .ico { font-size: 26px; line-height: 1; }
.cl-lembrete-btn .seta { margin-left: auto; color: var(--yellow); transition: transform 0.2s var(--ease); }
.cl-lembrete.aberto .cl-lembrete-btn .seta { transform: rotate(180deg); }
.cl-lembrete-op { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cl-lembrete-op[hidden] { display: none; }
.cl-lembrete-op p { font-size: 13px; color: var(--text-muted); font-weight: 600; line-height: 1.5; }
.cl-lembrete-op p b { color: #fff; }
.cl-lembrete-op a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cl-lembrete-op a:hover { background: rgba(251, 183, 36, 0.1); border-color: var(--yellow); }
.cl-lembrete-op a > span:first-child { font-size: 22px; }
.cl-lembrete-op strong { display: block; font-size: 14.5px; }
.cl-lembrete-op small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ur-lembrete { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(3, 8, 17, 0.35); border: 1px solid rgba(251, 183, 36, 0.3); }
.ur-lembrete .cl-lembrete-op { margin-top: 0; }

/* ============ PÓS-ELEIÇÃO ============ */
.cl-pos {
  max-width: 900px; margin: 0 auto 40px; padding: 48px 36px; text-align: center;
  border-radius: 28px; border: 2px solid var(--yellow);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(251, 183, 36, 0.25), transparent 70%),
    linear-gradient(135deg, #14509e, #08172f);
  box-shadow: 0 0 0 8px rgba(251, 183, 36, 0.1), 0 30px 80px -30px rgba(251, 183, 36, 0.5);
}
.cl-pos[hidden] { display: none; }
.cl-pos h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 72px); line-height: 1; margin: 6px 0 18px; }
.cl-pos h2 span { color: var(--yellow); }
.cl-pos p { max-width: 600px; margin: 0 auto 26px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.cl-pos p b { color: var(--yellow); }
.cp-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cp-botoes .btn { padding: 15px 22px; }
/* Depois da eleição some tudo que é de "montar/treinar" */
html.is-pos .colinha-head, html.is-pos .colinha-grid, html.is-pos .treino,
html.is-pos .cl-domingo, html.is-pos .cl-count { display: none !important; }
@media (max-width: 480px) { .cl-pos { padding: 32px 18px; } .cp-botoes .btn { width: 100%; justify-content: center; } }

/* ============ TREINO NA URNA (embutido na página) ============ */
.treino {
  position: relative; max-width: 1100px; margin: 80px auto 0; padding: 44px 36px 40px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 60% at 0% 0%, rgba(47, 123, 255, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(251, 183, 36, 0.12), transparent 70%),
    var(--bg-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.treino-head { text-align: center; max-width: 680px; margin: 0 auto 24px; }
.treino-head .section-lead { margin: 10px auto 0; }
.treino-pill {
  display: inline-block; margin-bottom: 12px; padding: 7px 14px; border-radius: 100px;
  background: rgba(47, 123, 255, 0.2); border: 1px solid rgba(47, 123, 255, 0.5);
  font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}

.urna-passos {
  list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  max-width: 980px; margin: 0 auto 22px;
}
.urna-passos li {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 10px 6px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease);
}
.urna-passos i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 800;
}
.urna-passos span { font-size: 11.5px; font-weight: 700; color: var(--text-muted); line-height: 1.25; }
.urna-passos b { font-family: var(--font-display); font-size: 17px; letter-spacing: 2px; }
.urna-passos li.atual { background: rgba(251, 183, 36, 0.14); border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 12px 30px -16px rgba(251, 183, 36, 0.8); }
.urna-passos li.atual i { background: var(--yellow); color: var(--blue-deep); }
.urna-passos li.atual span { color: var(--yellow); }
.urna-passos li.feito i { background: #4ade80; color: #06301a; }
.urna-passos li.feito { opacity: 0.75; }

.urna-maq {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px;
  max-width: 980px; margin: 0 auto; padding: 22px; border-radius: 22px;
  background: linear-gradient(180deg, #ece7da 0%, #d6cfbe 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 0 rgba(0, 0, 0, 0.08), 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  outline: none; transition: box-shadow 0.2s var(--ease);
}
.urna-maq.em-uso { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 0 rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(251, 183, 36, 0.7), 0 40px 90px -40px rgba(0, 0, 0, 0.95); }

.urna-tela-wrap {
  padding: 12px; border-radius: 12px;
  background: linear-gradient(180deg, #3d3f44, #26282c);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}
.urna-tela {
  position: relative; min-height: 340px; height: 100%; display: flex; flex-direction: column;
  padding: 18px 20px; border-radius: 4px; color: #111;
  background: linear-gradient(180deg, #f7f7f2, #e9eae2);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.08);
  font-family: Arial, Helvetica, sans-serif;
}
.ut-carregando { margin: auto; font-weight: 700; color: #666; }
.ut-topo { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; }
.ut-cargo { text-align: center; font-size: 26px; font-weight: 700; margin: 10px 0 16px; }
.ut-cargo small { font-size: 14px; font-weight: 600; color: #555; }
.ut-corpo { display: flex; gap: 14px; flex: 1; }
.ut-info { flex: 1; min-width: 0; }
.ut-num { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; margin-bottom: 14px; }
.ut-dig {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 44px; border: 1.5px solid #333; background: #fff;
  font-size: 28px; font-weight: 700;
}
.ut-dig.atual { animation: urnaPisca 1s steps(1) infinite; }
.ut-linha { font-size: 16px; margin-top: 6px; }
.ut-linha b { font-weight: 700; }
.ut-aviso { margin-top: 8px; font-size: 13px; font-weight: 700; color: #b00020; }
.ut-fixo { display: inline-block; margin-top: 10px; padding: 6px 10px; border-radius: 6px; background: #fbb724; color: #08172f; font-size: 13px; font-weight: 700; }
.ut-grande { font-size: 22px; font-weight: 700; margin-top: 8px; }
.ut-pisca { animation: urnaPisca 1s steps(1) infinite; }
.ut-foto img { width: 104px; height: 138px; object-fit: cover; border: 1px solid #999; }
.ut-rodape { margin-top: 12px; padding-top: 8px; border-top: 1px solid #999; font-size: 12.5px; line-height: 1.5; }
.ut-rodape[hidden] { display: none; }
.ut-fim { margin: auto; font-size: 120px; font-weight: 700; line-height: 1; text-align: center; letter-spacing: 4px; }
.ut-fim-sub { text-align: center; font-size: 15px; font-weight: 700; color: #555; margin-bottom: auto; letter-spacing: 3px; }
@keyframes urnaPisca { 50% { opacity: 0; } }

.urna-painel { display: flex; flex-direction: column; gap: 10px; }
.urna-marca {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #5f5a4d;
  padding: 7px; border-radius: 8px; background: rgba(0, 0, 0, 0.06);
}
.urna-marca .led { width: 8px; height: 8px; border-radius: 50%; background: #1faa4a; box-shadow: 0 0 8px #1faa4a; }
.urna-dica {
  padding: 9px 12px; border-radius: 10px; background: #08172f; color: #fff;
  font-size: 13px; font-weight: 600; line-height: 1.4; min-height: 40px;
}
.urna-dica b { color: var(--yellow); font-family: var(--font-display); letter-spacing: 1.5px; font-size: 15px; }
.urna-teclado {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #2e2e2e, #1f1f1f);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.urna-teclado button {
  position: relative; height: 54px; border-radius: 9px; background: linear-gradient(180deg, #1c1c1c, #0c0c0c); color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight: 700;
  box-shadow: 0 4px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.05s, box-shadow 0.05s;
}
.urna-teclado button:active { transform: translateY(3px); box-shadow: 0 1px 0 #000, inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.urna-teclado .zero { grid-column: 2; }
.urna-acoes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; margin-top: 6px; align-items: end; }
.urna-acoes button { height: 56px; font-size: 12.5px; letter-spacing: 0.5px; color: #111; }
.urna-acoes .k-branco { background: linear-gradient(180deg, #ffffff, #e6e6e6); box-shadow: 0 4px 0 #9a9a9a; }
.urna-acoes .k-corrige { background: linear-gradient(180deg, #f28a3c, #d9681d); box-shadow: 0 4px 0 #8f3f0b; }
.urna-acoes .k-confirma { background: linear-gradient(180deg, #2cc25b, #179340); box-shadow: 0 4px 0 #0b5a24; height: 68px; }
.urna-atalhos { font-size: 11.5px; color: #6b6558; text-align: center; line-height: 1.5; }
.urna-atalhos kbd { font-family: inherit; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.08); }

/* Confete no FIM */
.urna-confete { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.urna-confete i {
  position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px;
  animation-name: confete; animation-timing-function: cubic-bezier(.25,.6,.5,1); animation-fill-mode: forwards;
}
@keyframes confete { to { top: 110%; transform: rotate(720deg) translateX(40px); opacity: 0.2; } }

/* Resumo depois do FIM */
.urna-resumo {
  max-width: 980px; margin: 18px auto 0; padding: 22px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(251, 183, 36, 0.14), rgba(251, 183, 36, 0.03));
  border: 1px solid rgba(251, 183, 36, 0.5);
}
.urna-resumo[hidden] { display: none; }
.ur-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ur-emoji { font-size: 40px; line-height: 1; }
.ur-top strong { display: block; font-family: var(--font-display); font-size: 24px; }
.ur-top span { color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.urna-resumo ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.urna-resumo li {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px;
  background: rgba(3, 8, 17, 0.4); border: 1px solid rgba(255, 255, 255, 0.08);
}
.urna-resumo li span { font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.urna-resumo li b { font-size: 14px; }
.urna-resumo li.eu { background: var(--yellow); border-color: var(--yellow); }
.urna-resumo li.eu span, .urna-resumo li.eu b { color: var(--blue-deep); }
.urna-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.urna-botoes .btn { justify-content: center; padding: 13px 18px; font-size: 14.5px; }

@media (max-width: 900px) {
  .urna-maq { grid-template-columns: minmax(0, 1fr); }
  .urna-passos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .urna-resumo ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-check { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .treino { margin-top: 56px; padding: 28px 12px 18px; border-radius: 20px; }
  .urna-maq { padding: 12px; gap: 12px; border-radius: 16px; }
  .urna-tela-wrap { padding: 7px; }
  .urna-tela { min-height: 260px; padding: 12px; }
  .ut-cargo { font-size: 20px; margin: 6px 0 10px; }
  .ut-dig { width: 30px; height: 40px; font-size: 24px; }
  .ut-foto img { width: 76px; height: 100px; }
  .ut-fim { font-size: 84px; }
  .urna-teclado { padding: 10px; gap: 8px; }
  .urna-teclado button { height: 48px; }
  .urna-acoes button { height: 50px; font-size: 11px; }
  .urna-acoes .k-confirma { height: 58px; }
  .urna-atalhos { display: none; }
  .urna-passos { gap: 6px; }
  .urna-passos li { padding: 8px 4px; }
  .urna-resumo { padding: 16px; }
  .urna-resumo ul { grid-template-columns: minmax(0, 1fr); }
  .cl-domingo { padding: 22px 16px; border-radius: 20px; }
  .cd-mini { margin-left: 0; }
  .cl-count b { min-width: 52px; height: 52px; font-size: 32px; }
  .cl-count strong { font-size: 14px; }
  .cl-count span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ut-dig.atual, .ut-pisca { animation: none; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 960px) {
  .colinha-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .cl-hero-circle { width: 420px; height: 420px; right: 2%; }
  .cl-preview { position: static; }
}

@media (max-width: 768px) {
  .colinha-main { padding: 48px 0 56px; }
  .cl-hero { padding-top: 70px; min-height: 0; }
  .page-colinha .container.cl-hero-inner { padding-top: 28px; padding-bottom: 72px; }
  .cl-hero-txt { max-width: 58%; }
  .cl-pill { font-size: 10.5px; letter-spacing: 1.2px; padding: 7px 12px; margin-bottom: 16px; }
  .cl-hero-name { font-size: clamp(40px, 12vw, 64px); }
  .cl-hero-cargo { font-size: clamp(13px, 3.8vw, 20px); margin-top: 12px; }
  .cl-hero-num { font-size: clamp(54px, 16vw, 96px); }
  .cl-hero-photo { right: -4%; top: 86px; width: 58vw; }
  .cl-hero-circle { width: 70vw; height: 70vw; right: -8%; top: auto; bottom: 40px; }
  .cl-ghost-num { top: 38%; }
  .page-colinha .container { padding: 0 16px; }
  .page-colinha .header-inner { height: 70px; }
  .page-colinha .logo { height: 42px; }
  .page-colinha .btn-header { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 480px) {
  .cl-row { grid-template-columns: minmax(0, 1fr) 112px; }
  .cl-row input.num { font-size: 19px; letter-spacing: 4px; }
  .cl-preview { padding: 16px; }
  .cl-actions { grid-template-columns: 1fr; }
  .cl-frame img { max-height: 480px; }
}

/* ============ IMPRESSÃO ============ */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body.page-colinha { background: #fff !important; }
  body.page-colinha > *:not(.cl-print) { display: none !important; }
  .cl-print { display: flex !important; justify-content: center; }
  .cl-print img { width: 95mm; height: auto; border: 1px dashed #999; }
}
