/* ═══════════════════════════════════════════════════════════
   BBB26 Enquete — main.css
   Paleta: teal #1db8b4  ←→  laranja #c85a00 (logo BBB)
   ═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --teal-deep:     #1db8b4;
  --teal-mid:      #3ecfcb;
  --orange-deep:   #c85a00;
  --orange-mid:    #f07820;
  --orange-bright: #ffaa00;
  --gold:          #f5c842;
  --gold-light:    #ffe680;
  --dark:          #0d1e1c;
  /* Safe-area insets (notch / Dynamic Island) */
  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ── Body / Background ───────────────────────────────────── */
body {
  font-family: 'Nunito', sans-serif;
  background:
    radial-gradient(ellipse at 80% 15%, #ffcc66 0%, #ffaa33 15%, transparent 45%),
    radial-gradient(ellipse at 15% 85%, #1db8b4 0%, #138f8c 22%, transparent 52%),
    linear-gradient(130deg, #2ecfcb 0%, #5ddbd7 18%, #aeecea 38%, #fde8b8 62%, #ffb84d 85%, #ff9520 100%);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  color: var(--dark);
  padding-top:   calc(38px + var(--sat));
  padding-left:  var(--sal);
  padding-right: var(--sar);
}

.mesh-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cpath d='M-100 500 Q250 280 550 420 Q850 560 1300 300' stroke='rgba(255,255,255,0.14)' stroke-width='65' fill='none'/%3E%3Cpath d='M-100 280 Q300 100 650 250 Q950 380 1300 180' stroke='rgba(255,255,255,0.09)' stroke-width='45' fill='none'/%3E%3Cpath d='M0 680 Q400 500 700 620 Q1000 740 1300 560' stroke='rgba(255,255,255,0.08)' stroke-width='35' fill='none'/%3E%3C/svg%3E") center/cover no-repeat;
}

/* ── Disclaimer bar ─────────────────────────────────────── */
.disclaimer-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding-top:    calc(7px + var(--sat));
  padding-bottom: 7px;
  padding-left:   calc(12px + var(--sal));
  padding-right:  calc(12px + var(--sar));
  background: rgba(10,24,22,0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245,200,66,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 4px 10px;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,240,180,0.82);
  animation: slideDown 0.55s cubic-bezier(.34,1.56,.64,1) both;
  -webkit-user-select: none; user-select: none;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.disc-sep { opacity: 0.3; }
.disc-hot { color: var(--gold); font-style: italic; text-shadow: 0 0 8px rgba(245,200,66,0.5); }

/* ── Background deco ─────────────────────────────────────── */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }

.ring { position: absolute; border-radius: 50%; animation: ringPulse 7s ease-in-out infinite; }
@keyframes ringPulse {
  0%,100% { transform: scale(1);    opacity: 0.7; }
  50%      { transform: scale(1.07); opacity: 1;   }
}

.robot-img {
  position: absolute;
  animation: floatRobot 8s ease-in-out infinite;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
  pointer-events: none;
}
@keyframes floatRobot {
  0%,100% { transform: translateY(0px)  rotate(-2deg) scale(1);    }
  33%      { transform: translateY(-14px) rotate(1.5deg) scale(1.02); }
  66%      { transform: translateY(-5px)  rotate(-3deg)  scale(0.99); }
}

.deco-svg { position: absolute; animation: floatDeco 6s ease-in-out infinite; pointer-events: none; }
@keyframes floatDeco {
  0%,100% { transform: translateY(0)    rotate(-4deg); }
  50%      { transform: translateY(-12px) rotate(4deg);  }
}

/* ── Header / Plaquinha ─────────────────────────────────── */
.site-header {
  position: relative; z-index: 10;
  padding: 20px 16px 0;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}

.paredao-placa {
  margin-top: 16px;
  position: relative;
  display: inline-flex; align-items: flex-end;
  max-width: 100%;
}

.placa-robo {
  width: clamp(56px, 16vw, 110px); height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.3));
  animation: floatRoboBig 5s ease-in-out infinite;
  transform-origin: bottom center;
  flex-shrink: 0;
  position: relative; z-index: 2;
  margin-right: -14px; margin-bottom: -4px;
  will-change: transform;
}
@keyframes floatRoboBig {
  0%,100% { transform: translateY(0)    rotate(-3deg) scale(1);    }
  45%      { transform: translateY(-10px) rotate(2deg)  scale(1.03); }
}

.placa-box {
  position: relative;
  background: linear-gradient(135deg, #ff6a00 0%, #ff9200 30%, #ffb700 55%, #ff8800 80%, #e05000 100%);
  border-radius: 16px;
  padding: clamp(8px,2.5vw,16px) clamp(18px,5vw,44px) clamp(8px,2.5vw,16px) clamp(22px,5.5vw,54px);
  box-shadow: 0 5px 0 #a83000, 0 9px 26px rgba(0,0,0,0.35),
              inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -2px 0 rgba(0,0,0,0.15);
  z-index: 1;
  min-width: min(clamp(200px,52vw,480px), calc(100vw - 80px));
  will-change: box-shadow;
  animation: placaPulse 4s ease-in-out infinite;
}
.placa-box::before {
  content: '';
  position: absolute; top: 5px; left: 12px; right: 12px; height: 36%;
  background: linear-gradient(180deg, rgba(255,255,255,0.26) 0%, transparent 100%);
  border-radius: 8px 8px 50% 50% / 6px 6px 40% 40%;
  pointer-events: none;
}
@keyframes placaPulse {
  0%,100% { box-shadow: 0 5px 0 #a83000, 0 9px 26px  rgba(0,0,0,0.35),    inset 0 1px 0 rgba(255,255,255,0.35); }
  50%      { box-shadow: 0 5px 0 #a83000, 0 14px 36px rgba(255,140,0,0.38), inset 0 1px 0 rgba(255,255,255,0.4);  }
}

.placa-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.55rem,1.8vw,0.78rem);
  font-weight: 900; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.75); text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  display: block; line-height: 1; margin-bottom: 2px;
}
.placa-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem,10vw,5rem);
  line-height: 0.9; letter-spacing: 3px; display: block; color: #fff;
  text-shadow: 0 2px 0 rgba(255,255,255,0.35), 2px 4px 0 rgba(150,40,0,0.5),
               3px 6px 0 rgba(120,30,0,0.35),  4px 8px 10px rgba(0,0,0,0.4);
  -webkit-text-stroke: 1px rgba(200,80,0,0.25);
}

/* ── Poll title ──────────────────────────────────────────── */
.poll-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem,6vw,3rem); letter-spacing: 3px;
  text-align: center; margin: 24px 16px 16px;
  position: relative; z-index: 10;
  color: var(--orange-deep);
  text-shadow: 0 2px 0 rgba(255,255,255,0.55), 0 4px 18px rgba(200,90,0,0.25);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 360px) {
  .poll-title { font-size: 1.25rem; letter-spacing: 2px; white-space: normal; }
}

/* ── Total counter (hidden by default) ───────────────────── */
.total-counter {
  text-align: center; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  font-size: 0.82rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal-deep);
  position: relative; z-index: 10;
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.4s ease;
  margin-bottom: 0; padding: 0 16px;
}
.total-counter.revealed { opacity: 1; max-height: 60px; margin-bottom: 20px; }
.total-counter strong {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem;
  color: var(--orange-deep); letter-spacing: 2px;
}

/* ── Cards container ─────────────────────────────────────── */
.cards-container {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(12px,4vw,32px);
  padding: 56px clamp(8px,4vw,24px) clamp(48px,10vw,64px);
  padding-left:  max(clamp(8px,4vw,24px), var(--sal));
  padding-right: max(clamp(8px,4vw,24px), var(--sar));
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto;
}

/* ── Participant card ────────────────────────────────────── */
.participant-card {
  position: relative;
  width: clamp(150px,38vw,220px);
  display: flex; flex-direction: column; align-items: center;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer; overflow: visible;
  will-change: transform;
}
@media (hover: hover) {
  .participant-card:not(.show-results):hover { transform: translateY(-6px) scale(1.03); }
}
.participant-card.show-results { cursor: default; }

/* Ring wrapper */
.card-ring-wrap {
  position: relative; width: 100%; aspect-ratio: 1/1;
  flex-shrink: 0; overflow: visible;
}

.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .participant-card:not(.show-results) .ring-svg {
    animation: ringRotate 10s linear infinite; will-change: transform;
  }
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Photo */
.card-photo-wrap {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 6%; width: 80%; height: 118%; z-index: 3; overflow: visible;
}
.card-photo-wrap img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 52%, transparent 90%);
  mask-image:         linear-gradient(to bottom, black 0%, black 52%, transparent 90%);
}
.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16%; font-size: clamp(2.5rem,10vw,5rem); opacity: 0.4;
}
.card-inner-circle {
  position: absolute; inset: 9%; border-radius: 50%; z-index: 1;
  background: radial-gradient(ellipse at 40% 35%, #ffe4a0 0%, #f5a623 35%, #c85a00 65%, #7a2e00 100%);
  box-shadow: inset 0 4px 16px rgba(0,0,0,0.3), inset 0 -4px 10px rgba(255,200,80,0.3), 0 6px 24px rgba(0,0,0,0.3);
}

/* Name badge */
.card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1rem,4vw,1.45rem);
  letter-spacing: clamp(1px,0.5vw,3px); color: #fff;
  background: linear-gradient(90deg, #b03000 0%, #e85500 40%, #ff9500 75%, #e06000 100%);
  border-radius: 30px;
  padding: clamp(5px,1.5vw,7px) clamp(14px,4vw,26px);
  text-align: center;
  box-shadow: 0 4px 16px rgba(200,90,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.2);
  width: 100%; max-width: 95%; margin-top: -22%;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  position: relative; z-index: 4;
  /* Permite quebra de linha em nomes longos — sem cortar */
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.15;
}

/* Vote button */
.btn-vote {
  margin-top: clamp(8px,2vw,12px);
  padding: clamp(9px,2.5vw,11px) clamp(22px,6vw,34px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.95rem,3.5vw,1.15rem); letter-spacing: 2px; color: var(--dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #e09500);
  border: none; border-radius: 30px; cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: all 0.2s; position: relative; overflow: hidden; z-index: 4;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-vote::after {
  content: ''; position: absolute; top: -50%; left: -70%; width: 35%; height: 200%;
  background: rgba(255,255,255,0.35); transform: skewX(-22deg);
  animation: btnShine 2.5s 0.8s infinite;
}
@keyframes btnShine { 0%{left:-70%} 25%,100%{left:150%} }
@media (hover: hover) { .btn-vote:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(255,180,0,0.55); } }
.btn-vote:active   { transform: scale(0.96); }
.btn-vote:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* My-vote badge */
.my-vote-badge {
  margin-top: clamp(6px,2vw,10px);
  font-size: clamp(0.65rem,2.2vw,0.8rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: 2px; color: var(--teal-deep);
  background: rgba(255,255,255,0.65); border-radius: 20px;
  padding: 4px clamp(8px,2.5vw,14px);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 5px;
  position: relative; z-index: 4;
}

/* Result zone */
.result-zone { width: 100%; margin-top: clamp(8px,2vw,12px); display: none; position: relative; z-index: 4; }
.result-zone.visible { display: block; }

.progress-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.progress-label-votes {
  font-size: clamp(0.62rem,2vw,0.75rem); font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(13,30,28,0.5);
}
.votos-count { font-family: 'Bebas Neue', sans-serif; font-size: clamp(0.9rem,3vw,1.1rem); color: var(--orange-deep); letter-spacing: 1px; }
.progress-bar-bg { height: 9px; border-radius: 5px; background: rgba(0,0,0,0.1); overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal-deep) 35%, var(--orange-mid) 75%, var(--orange-bright));
  box-shadow: 0 0 10px rgba(46,196,192,0.45);
  transition: width 1s cubic-bezier(.34,1.56,.64,1);
}
.pct-big {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.6rem,6vw,2.4rem);
  line-height: 1; text-align: center; color: var(--orange-deep);
  text-shadow: 0 2px 8px rgba(200,90,0,0.2); margin-top: 2px;
}

/* Likely-out */
.likely-out-badge {
  position: absolute; top: 2px; right: -2px; z-index: 10;
  background: linear-gradient(135deg, #cc0000, #880000);
  color: #fff; font-size: clamp(0.48rem,1.5vw,0.58rem); font-weight: 900;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 20px;
  box-shadow: 0 0 14px rgba(255,0,0,0.5);
  animation: badgePulse 1s ease-in-out infinite; white-space: nowrap;
}
@keyframes badgePulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.likely-out .card-name          { background: linear-gradient(90deg, #7a0000, #cc2200); }
.likely-out .pct-big            { color: #cc2200; }
.likely-out .progress-bar-fill  { background: linear-gradient(90deg, #ff4444, #cc0000); box-shadow: 0 0 10px rgba(255,0,0,0.4); }

/* Real-time button */
.btn-realtime-wrap { text-align: center; position: relative; z-index: 10; padding: 0 16px; }
.btn-realtime {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 8px auto clamp(36px,8vw,52px);
  padding: clamp(10px,3vw,13px) clamp(24px,6vw,40px);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.85rem,3.5vw,1.05rem); letter-spacing: 2px; color: var(--dark);
  background: rgba(255,255,255,0.65);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 2px solid rgba(30,185,181,0.55); border-radius: 40px;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(46,196,192,0.22);
  text-transform: uppercase; min-height: 48px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
@media (hover: hover) {
  .btn-realtime:hover {
    background: rgba(255,255,255,0.88); border-color: var(--teal-deep);
    box-shadow: 0 6px 28px rgba(46,196,192,0.38); transform: translateY(-2px);
  }
}
.live-dot {
  display: inline-block; width: 9px; height: 9px; flex-shrink: 0;
  background: #e02020; border-radius: 50%;
  animation: livePulse 1s ease-in-out infinite;
}
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.2;transform:scale(0.6)} }

/* Inactive state */
.inactive-msg { text-align: center; padding: clamp(48px,12vw,80px) 24px; position: relative; z-index: 10; }
.inactive-msg h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.8rem,7vw,2.5rem); letter-spacing: 4px; color: var(--orange-deep); }
.inactive-msg p  { color: rgba(13,30,28,0.5); margin-top: 12px; font-size: 1rem; font-weight: 600; }

/* Toast */
#toast {
  position: fixed;
  bottom: calc(28px + var(--sab));
  left: 50%; transform: translateX(-50%) translateY(120px);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--dark); font-weight: 900;
  font-size: clamp(0.78rem,3vw,0.95rem);
  padding: clamp(10px,3vw,14px) clamp(20px,5vw,34px);
  border-radius: 40px; box-shadow: 0 10px 32px rgba(0,0,0,0.22);
  z-index: 1000; letter-spacing: 2px; text-transform: uppercase;
  transition: transform 0.42s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
  white-space: nowrap; max-width: calc(100vw - 32px); text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* Footer */
footer {
  position: relative; z-index: 10; text-align: center;
  padding: 14px max(20px, var(--sal)) calc(24px + var(--sab));
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-disclaimer {
  max-width: 580px; margin: 0 auto;
  font-size: clamp(0.6rem,1.8vw,0.68rem); line-height: 1.75;
  color: rgba(13,30,28,0.38); letter-spacing: 0.3px;
}
.footer-disclaimer strong  { color: rgba(13,30,28,0.52); font-weight: 800; }
.footer-disclaimer .footer-top {
  font-size: clamp(0.62rem,2vw,0.72rem); font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(13,30,28,0.45); margin-bottom: 6px;
}

/* ── Responsive breakpoints ─────────────────────────────── */
@media (max-width: 480px) {
  .cards-container  { gap: 12px; padding-top: 52px; }
  .participant-card { width: calc(50% - 10px); min-width: 140px; max-width: 180px; }
  .disclaimer-bar   { font-size: 0.55rem; letter-spacing: 1px; gap: 3px 8px; }
  .disc-long        { display: none; }
}
@media (max-width: 320px) {
  .participant-card { width: min(180px, 90vw); }
  .cards-container  { gap: 16px; }
  .placa-main       { font-size: 1.8rem; }
}
@media (min-width: 600px)  { .participant-card { width: clamp(180px,28vw,220px); } }
@media (min-width: 900px)  { .participant-card { width: 220px; } }

/* ── Fallback Samsung / Android antigo (sem backdrop-filter) */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .disclaimer-bar { background: rgba(10,24,22,0.97); }
  .btn-realtime   { background: rgba(255,255,255,0.92); }
  .my-vote-badge  { background: rgba(255,255,255,0.92); }
}

/* ── Acessibilidade: prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION — menu de programas
   ═══════════════════════════════════════════════════════════ */
.prog-nav {
  position: relative; z-index: 10;
  padding: 16px clamp(12px,4vw,28px) 0;
  max-width: 900px; margin: 0 auto;
}

.prog-nav-inner {
  background: rgba(255,255,255,0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 10px 16px 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-start;
}

.prog-nav-label {
  font-size: 0.68rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(13,30,28,0.5);
}

.prog-nav-buttons {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: 100%;
}

/* ── individual program button ── */
.prog-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.35);
  color: var(--dark);
  transition: all 0.22s cubic-bezier(.34,1.56,.64,1);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 40px;
  /* fallback color variable */
  --btn-color: #888;
}

.prog-btn-emoji { font-size: 1.05em; line-height: 1; }
.prog-btn-label { line-height: 1; }

@media (hover: hover) {
  .prog-btn:hover {
    background: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
}
.prog-btn:active { transform: scale(0.96); }

/* Active state — uses the program's own color */
.prog-btn--active {
  background: var(--btn-color, var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 4px 0 color-mix(in srgb, var(--btn-color, #c85a00) 70%, black),
    0 6px 20px rgba(0,0,0,0.25);
  font-weight: 900;
  transform: translateY(-1px);
  cursor: default;
  pointer-events: none;
}
/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .prog-btn--active {
    box-shadow: 0 4px 0 rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.25);
  }
}

/* ── Responsive: scroll horizontal em telas pequenas ── */
@media (max-width: 480px) {
  .prog-nav-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .prog-nav-buttons::-webkit-scrollbar { display: none; }
  .prog-btn { flex-shrink: 0; }
}

/* ═══════════════════════════════════════════════════════════
   TICK verde ao lado do nome do candidato votado
   ═══════════════════════════════════════════════════════════ */
.card-name-wrap {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  width: 100%; max-width: 95%;
  margin-top: -22%;
}

/* O badge do nome fica dentro do wrap — não comprime */
.card-name-wrap .card-name {
  margin-top: 0;
  width: 100%; max-width: 100%;
  /* sem flex shrink — o tick é absolute, não ocupa espaço no fluxo */
}

/* Tick verde — aparece apenas quando voted-card está ativo */
.voted-tick {
  display: none;
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 10px rgba(34,197,94,0.55);
  align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: tickPop 0.4s cubic-bezier(.34,1.56,.64,1) both;
  z-index: 5;
}
.voted-tick svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 2.8; fill: none; }

/* Só exibe o tick no card votado */
.my-voted-card .voted-tick { display: flex; }

@keyframes tickPop {
  from { transform: translateY(-50%) scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: translateY(-50%) scale(1) rotate(0deg);   opacity: 1; }
}