/*raffle.css: rifa y boletos.*/
.raffle-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
  align-items: start;
}
.prize-card,
.ticket-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.25s;
}
.prize-card:hover {
  box-shadow: 0 14px 38px #25213812;
  transform: translateY(-2px);
}
.prize-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: linear-gradient(145deg, #172131, #26394b);
}
.image-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
.image-badge {
  position: absolute;
  top: 17px;
  left: 17px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 8px;
  background: #ffffffeb;
  color: #78009b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.prize-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 23px 25px 26px;
  background: linear-gradient(180deg, #fff 0%, #fffbff 100%);
}
.category {
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
}
.prize-copy h2 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.prize-description {
  max-width: 390px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.prize-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.prize-facts div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f9f0fb;
  color: #5f4b68;
  font-size: 11px;
  font-weight: 600;
}
.fact-icon {
  color: var(--purple);
  font-weight: 700;
}
.ticket-panel {
  padding: 25px 25px 20px;
}
.ticket-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.ticket-heading h2 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -0.7px;
}
.ticket-count {
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.ticket-count strong {
  color: var(--mint);
  font-size: 13px;
}
.progress-track {
  height: 6px;
  margin: 16px 0 13px;
  overflow: hidden;
  border-radius: 6px;
  background: #ece9f5;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6ef5, #32c99b);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 1px 4px #7b65ed50;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  color: #77798a;
  font-size: 10px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.legend-free {
  border: 1px solid #dddbe8;
  background: white;
}
.legend-selected {
  background: var(--purple);
}
.legend-held {
  background: #ededf1;
}
.legend-sold {
  border: 1px solid #f0b5ba;
  background: #fde7e9;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}
.ticket {
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 1.5px solid #e5e2ef;
  border-radius: 9px;
  background: white;
  color: #4e5068;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.13s, color 0.13s, background 0.13s, transform 0.13s, box-shadow 0.13s;
}
.ticket:hover:not(:disabled) {
  border-color: #9b72be;
  color: var(--purple);
  background: #faf5ff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px #7800a015;
}
.ticket.is-selected {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 10px #78009b45;
}
.ticket.is-held {
  border-color: #eeecf4;
  background: #f4f2f8;
  color: #bab8c4;
  text-decoration: line-through;
  cursor: not-allowed;
}
.ticket.is-sold {
  border-color: #efb6bb;
  background: #fde7e9;
  color: #a83e49;
  cursor: not-allowed;
}
.selection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #f0eff4;
}
.selection-summary {
  display: grid;
  gap: 3px;
}
.selection-summary span {
  color: var(--muted);
  font-size: 10px;
}
.selection-summary strong {
  font-family: Manrope, sans-serif;
  font-size: 19px;
}

.price-note {
  margin: 12px 0 0;
  color: #9695a3;
  font-size: 10px;
}

.ticket.is-max {
  opacity: 0.38;
  cursor: not-allowed;
}
