.raffle-hero-art {
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(2, 8, 5, 0.2), rgba(2, 8, 5, 0.68)),
    url('../images/raffle-ticket-backdrop.png') center / cover no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, rgba(255, 255, 255, 0.08));
  border-radius: 28px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.46), 0 0 36px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: rotate(-3deg);
}

.raffle-hero-art::before {
  position: absolute;
  z-index: 1;
  inset: 13%;
  border: 1px dashed color-mix(in srgb, var(--accent) 44%, transparent);
  border-radius: 18px;
  content: '';
  opacity: 0.72;
}

.raffle-hero-art::after { display: none; }

.raffle-hero { position: relative; }

.page-scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #718079;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.page-scroll-cue span {
  position: relative;
  display: block;
  width: 17px;
  height: 29px;
  border: 1px solid #64726a;
  border-radius: 999px;
}

.page-scroll-cue span::after {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  content: '';
  background: var(--accent);
  border-radius: 99px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateX(-50%);
  animation: page-scroll-cue 1.8s ease-in-out infinite;
}

@keyframes page-scroll-cue {
  0%, 100% { opacity: .35; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 9px); }
}

.raffle-hero-art img {
  position: absolute;
  z-index: 2;
  inset: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .62)) drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 30%, transparent));
  transform: none;
}

.login-logo img {
  width: 104px;
  height: 76px;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
}

.raffle-footer-logo {
  width: 76px;
  height: 62px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.raffle-footer {
  padding: 36px 0;
  color: #636c66;
  background: #040605;
  border-top: 1px solid var(--line);
}

.raffle-footer > .raffle-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.raffle-footer-brand {
  display: flex;
  align-items: center;
}

.raffle-footer-grid p,
.raffle-footer-grid > a {
  margin: 0;
  color: #636c66;
  font-size: 10px;
}

.raffle-footer-grid p { text-align: center; }
.raffle-footer-grid > a { justify-self: end; }
.raffle-footer-grid > a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .page-scroll-cue { display: none; }

  .raffle-footer > .raffle-footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    text-align: center;
  }

  .raffle-footer-grid > a { justify-self: center; }
}

.raffle-card-image,
.raffle-detail-image {
  aspect-ratio: 12 / 5;
}

.raffle-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.raffle-empty[hidden] {
  display: none;
}

.raffle-list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.raffle-list-toolbar .raffle-section-title {
  margin-bottom: 0;
}

.raffle-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.raffle-filters a,
.raffle-filters button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: #aab5ae;
  background: #0b110d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.raffle-filters a:hover,
.raffle-filters button:hover {
  color: #edf5ef;
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

.raffle-filters a.active,
.raffle-filters button.active {
  color: #031006;
  background: var(--accent);
  border-color: var(--accent);
}

.raffle-filters b {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  color: #bac5bd;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  font-size: 10px;
}

.raffle-filters a.active b,
.raffle-filters button.active b {
  color: #092110;
  background: rgba(3, 16, 6, 0.16);
}

.raffle-detail-hero {
  padding: 36px 0 56px;
}

.raffle-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.raffle-detail-image {
  width: 100%;
  max-width: none;
  border-radius: 20px;
}

.raffle-detail-copy {
  width: 100%;
}

.raffle-detail-copy h1 {
  max-width: 100%;
  font-size: clamp(32px, 3.35vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}

.raffle-detail-copy .detail-prize {
  margin: 18px 0;
  padding: 19px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, #0b110d), #080d0a 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-left: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 16px;
}

.raffle-detail-copy .detail-stats {
  width: 100%;
}

.raffle-detail-copy.is-single-prize .detail-stats {
  margin-top: 20px;
}

.detail-prize-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-prize-heading small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
}

.detail-prize-heading span {
  padding: 5px 9px;
  color: #c7d1ca;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.detail-prize-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 0;
}

.detail-prize-list article {
  display: grid;
  min-height: 78px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  background: rgba(3, 8, 5, 0.62);
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 11px;
}

.detail-prize-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #041006;
  background: var(--accent);
  border-radius: 10px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 12px;
  font-weight: 900;
}

/* Mantém o índice como um bloco próprio mesmo com os estilos genéricos da página. */
.detail-prize-list article > .detail-prize-number {
  display: grid;
  place-items: center;
  margin: 0;
  color: #041006;
  font-size: 12px;
  line-height: 1;
}

.detail-prize-copy {
  min-width: 0;
}

.detail-prize-copy strong {
  display: block;
  font-size: 17px;
}

.detail-prize-copy span {
  display: block;
  margin-top: 3px;
  color: #99a69d;
  font-size: 12px;
}

.detail-prize-list article b {
  position: static;
  padding: 6px 9px;
  color: #c3d0c7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.checkout-limit-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 0;
  padding: 10px 11px;
  color: #d6dfd8;
  background: rgba(255, 206, 85, 0.08);
  border: 1px solid rgba(255, 206, 85, 0.24);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.35;
}

.checkout-limit-status[hidden] {
  display: none;
}

.checkout-limit-status::before {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: #151006;
  background: #ffce55;
  border-radius: 50%;
  content: "!";
  font-size: 12px;
  font-weight: 900;
}

.checkout-limit-status.is-ready {
  color: #c6e8cf;
  background: color-mix(in srgb, var(--accent) 9%, #071008);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.checkout-limit-status.is-ready::before {
  color: #031006;
  background: var(--accent);
  content: "✓";
}

.order-summary-card > img {
  aspect-ratio: 12 / 5;
}

.account-order > img {
  height: 96px;
}

@media (max-width: 700px) {
  .raffle-hero-art {
    border-radius: 20px;
    transform: rotate(-2deg);
  }

  .raffle-card-grid {
    grid-template-columns: 1fr;
  }

  .raffle-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .raffle-filters {
    justify-content: flex-start;
  }

  .raffle-detail-hero {
    padding: 22px 0 42px;
  }

  .raffle-detail-grid {
    gap: 18px;
  }

  .raffle-detail-image {
    border-radius: 14px;
  }

  .raffle-detail-copy h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.04;
  }

  .raffle-detail-copy.is-single-prize .detail-stats {
    margin-top: 16px;
  }

  .raffle-detail-copy .detail-prize {
    padding: 14px;
    border-radius: 13px;
  }

  .detail-prize-list {
    grid-template-columns: 1fr;
  }

  .detail-prize-list article {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .detail-prize-number {
    width: 36px;
    height: 36px;
  }

  .detail-prize-list article b {
    grid-column: 2;
    justify-self: start;
  }

  .account-order > img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
