/* Ticket urgency pills, pulsing ember dot, and subtle sheen sweep */
@keyframes sua-ember-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes sua-ticket-sheen {
  0%, 72% {
    transform: translateX(-130%) skewX(-18deg);
    opacity: 0;
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translateX(240%) skewX(-18deg);
    opacity: 0;
  }
}

.sua-urgency-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(223, 152, 62, 0.45);
  background: linear-gradient(90deg, rgba(223, 134, 47, 0.16), rgba(235, 97, 52, 0.08));
  color: #f8e6c6;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.sua-urgency-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 0.72rem/1.15 'DM Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}

.sua-urgency-ok {
  background: rgba(62, 168, 117, 0.14);
  border: 1px solid rgba(62, 168, 117, 0.42);
  color: #9ae8c0;
}

.sua-urgency-low {
  background: rgba(223, 169, 74, 0.15);
  border: 1px solid rgba(223, 169, 74, 0.52);
  color: #ffd98e;
}

.sua-urgency-critical {
  background: linear-gradient(135deg, rgba(239, 108, 53, 0.26), rgba(223, 169, 74, 0.22));
  border: 1px solid rgba(244, 128, 72, 0.68);
  color: #ffd3ba;
  box-shadow: 0 0 18px rgba(239, 108, 53, 0.18);
}

.sua-urgency-sold {
  background: rgba(140, 132, 162, 0.18);
  border: 1px solid rgba(140, 132, 162, 0.4);
  color: #cfcadc;
}

.sua-pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2b84b;
  flex: none;
}

.sua-pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  color: #f2b84b;
  animation: sua-ember-ring 1.9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.sua-urgency-critical .sua-pulse-dot,
.sua-urgency-banner .sua-pulse-dot {
  background: #ff7a45;
}

.sua-urgency-critical .sua-pulse-dot::after,
.sua-urgency-banner .sua-pulse-dot::after {
  color: #ff7a45;
  animation-duration: 1.35s;
}

/* Ticket card states in #entradas */
.ticket-options .ticket-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.ticket-options .ticket-title-row h3 {
  margin: 0;
}

.ticket-options li.ticket-state-low .ticket-option {
  border-color: rgba(223, 169, 74, 0.45);
}

.ticket-options li.ticket-state-almost .ticket-option {
  position: relative;
  overflow: hidden;
  border-color: rgba(244, 128, 72, 0.62);
  box-shadow: 0 10px 28px rgba(239, 108, 53, 0.12);
}

.ticket-options li.ticket-state-almost .ticket-option::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 212, 148, 0.14), transparent);
  pointer-events: none;
  animation: sua-ticket-sheen 4.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .sua-pulse-dot::after,
  .ticket-options li.ticket-state-almost .ticket-option::after {
    animation: none !important;
  }
}
