.hero-rifas {
  position: relative;
  padding: 90px 0 60px 0;
  overflow: hidden;
}

.hero-rifas::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(900px 500px at 20% 0%, rgba(39, 212, 0, 0.18), transparent 60%), radial-gradient(700px 450px at 80% 20%, rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
}

.hero-rifas .wrap {
  position: relative;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.feature-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.step {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(39, 212, 0, 0.12);
  border: 1px solid rgba(39, 212, 0, 0.25);
  margin-bottom: 12px;
  font-size: 22px;
}

.featured-slider {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  overflow: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.featured-card {
  min-width: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0a0a0a;
  scroll-snap-align: start;
}

.featured-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.72) 72%, rgba(0, 0, 0, 0.88)), radial-gradient(600px 300px at 40% 20%, rgba(39, 212, 0, 0.20), transparent 55%);
}

.featured-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.featured-info h3 {
  margin: 0;
  font-size: 22px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 850;
}

.raffle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-wrap {
  margin-top: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.progressbar {
  background: #1b1b1b;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progressbar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green2));
  width: 0%;
}

.raffle-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.raffle-actions .btn {
  width: 100%;
}

.panel-note {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(39, 212, 0, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(39, 212, 0, 0.18);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: rgba(0, 0, 0, 0.25);
}

.table th,
.table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.winner-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pager .btn {
  padding: 10px 14px;
}

.past-wrap {
  position: relative;
  margin-top: 18px;
}

.past-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-height: 620px;
  overflow: hidden;
}

.past-card {
  border-radius: 22px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  filter: grayscale(1);
  opacity: 0.8;
}

.past-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.past-card .pad {
  padding: 14px;
}

.fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.92) 70%, rgba(5, 5, 5, 1));
  pointer-events: none;
}

.past-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 980px) {
  .feature-steps {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card {
    min-width: 320px;
  }
}

/* === Featured slider: keep swipe, hide scrollbar === */
.featured-slider {
  scrollbar-width: none; /* Firefox */
}

.featured-slider::-webkit-scrollbar {
  display: none;
}

/* === Raffle Card Image Styles === */
.raffle-card {
  padding: 0 !important;
}

.raffle-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.raffle-card-content {
  padding: 0 18px 18px 18px;
}

/* === Parallax gamer suave (sin cambiar layout) === */
.card.parallax-card {
  position: relative;
  overflow: hidden; /* keeps glow inside card */
}

.card.parallax-card::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.18), transparent 55%);
  transform: translateY(var(--p, 0px));
  pointer-events: none;
  z-index: 0;
}

.card.parallax-card > * {
  position: relative;
  z-index: 1;
}

.card.parallax-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.card.parallax-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   HERO RIFAS — Parallax gamer suave
   ================================ */
.hero-parallax {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-parallax .hero-bg {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.18), transparent 45%), radial-gradient(circle at 80% 70%, rgba(0, 255, 0, 0.12), transparent 50%);
  transform: translateY(var(--hp, 0));
  animation: heroFloat 18s linear infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-40px);
  }
}

.hero-parallax .hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 20px;
}

.hero-parallax h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 14px;
}

.hero-parallax p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
