/* ======================================================
   🎟️ Sistema de Rifas — Sorteo en Vivo
   Estilos frontend para mostrar el resultado o estado.
   ====================================================== */

.rifa-live {
  max-width: 820px;
  margin: 20px auto;
  padding: 20px 24px;
  border-radius: 16px;
  background: #0b1220;
  color: #fff;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  font-family: "Inter", system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

.rifa-live__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rifa-live__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #f87171;
}

.rifa-live__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.2s infinite;
  box-shadow: 0 0 0 0 rgba(239,68,68,.7);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.rifa-live__title {
  font-weight: 800;
  font-size: 1.1rem;
}

.rifa-live__when {
  margin: 14px 0 8px;
  opacity: .95;
  font-weight: 700;
  text-align: center;
  color: #f1f5f9;
}

.rifa-live__cdwrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.rifa-live__status {
  font-weight: 700;
  text-align: center;
  color: #facc15;
}

.rifa-live__winner {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-top: 0.5rem;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(34,197,94,0.6);
}

.rifa-live__note {
  margin-top: .5rem;
  color: #a3a3a3;
  text-align: center;
  font-size: 0.9rem;
}

/* 💫 Resultado persistente */
.rifa-resultados {
  text-align: center;
}

.rifa-ganador {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #111827;
  transition: all 0.3s ease-in-out;
}

.rifa-ganador:hover {
  background: #1e293b;
  transform: translateY(-3px);
}

.rifa-ganador strong {
  color: #38bdf8;
}

.rifa-ganador .rifa-num {
  color: #4ade80;
  font-size: 1.5rem;
  margin-left: 5px;
}

/* 🔘 Botón admin */
#rifa-force-run {
  background: linear-gradient(90deg,#2563eb,#9333ea);
  color: #fff !important;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

#rifa-force-run:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
