.raffle-page {
  min-height:100vh;
  padding-top:78px;
}

.raffle-hero {
  padding:95px 7% 55px;
  background:
    radial-gradient(circle at 15% 20%,rgba(166,82,255,.23),transparent 35%);
}

.raffle-hero h1 {
  margin:14px 0;
  font-size:clamp(55px,8vw,105px);
  line-height:.9;
  letter-spacing:-6px;
}

.raffle-hero h1 span {
  display:block;
  color:transparent;
  background:linear-gradient(90deg,#fff,#c985ff,#ffb632);
  -webkit-background-clip:text;
  background-clip:text;
}

.raffle-hero p {
  max-width:620px;
  color:#888;
  line-height:1.7;
}

.raffle-container {
  padding:0 7% 100px;
}

.raffle-loading {
  padding:40px;
  border:1px solid var(--border);
  border-radius:20px;
  background:#101010;
  color:#777;
  text-align:center;
}

.raffles-list {
  display:grid;
  gap:20px;
}

.raffle-live-card {
  display:grid;
  grid-template-columns:minmax(250px,.7fr) 1.3fr;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:30px;
  background:#101010;
}

.raffle-live-image {
  min-height:400px;
  display:grid;
  place-items:center;
  overflow:hidden;
  font-size:110px;
  background:
    radial-gradient(circle,rgba(166,82,255,.22),#0b0b0b 65%);
}

.raffle-live-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.raffle-live-content {
  padding:45px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.raffle-status {
  width:max-content;
  padding:7px 11px;
  border-radius:999px;
  font-size:9px;
  font-weight:900;
  letter-spacing:1.2px;
}

.raffle-status.active {
  color:#70e59a;
  background:rgba(65,210,115,.12);
}

.raffle-status.paused,
.raffle-status.upcoming {
  color:#ffcf67;
  background:rgba(255,182,50,.11);
}

.raffle-status.ended {
  color:#ff8585;
  background:rgba(255,80,80,.10);
}

.raffle-live-content h2 {
  margin:15px 0 8px;
  font-size:clamp(34px,5vw,60px);
  line-height:1;
  letter-spacing:-4px;
}

.raffle-prize-title {
  color:#ddd;
  font-weight:800;
}

.raffle-description {
  margin-top:10px;
  color:#888;
  line-height:1.6;
}

.raffle-meta {
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.raffle-meta article {
  padding:15px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#0b0b0b;
}

.raffle-meta span {
  display:block;
  color:#777;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1px;
}

.raffle-meta strong {
  display:block;
  margin-top:5px;
  font-size:16px;
}

.raffle-progress {
  height:10px;
  margin-top:24px;
  overflow:hidden;
  border-radius:999px;
  background:#222;
}

.raffle-progress-bar {
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#9951ff,#d891ff);
}

.raffle-progress-label {
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  gap:15px;
  color:#777;
  font-size:10px;
}

.raffle-actions {
  margin-top:28px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.raffle-enter-button {
  min-height:48px;
  padding:0 22px;
  border-radius:13px;
  background:#fff;
  color:#080808;
  font-weight:900;
  cursor:pointer;
}

.raffle-enter-button:disabled {
  background:#242424;
  color:#777;
  cursor:not-allowed;
}

.raffle-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:4000;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
  pointer-events:none;
  opacity:0;
  background:rgba(0,0,0,0);
  transition:.2s;
}

.raffle-modal-backdrop.active {
  pointer-events:auto;
  opacity:1;
  background:rgba(0,0,0,.78);
}

.raffle-modal {
  width:min(760px,100%);
  max-height:92vh;
  overflow:auto;
  padding:30px;
  border:1px solid var(--border);
  border-radius:26px;
  background:#0d0d0d;
  transform:translateY(20px) scale(.98);
  transition:.2s;
}

.raffle-modal-backdrop.active .raffle-modal {
  transform:none;
}

.raffle-modal-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:24px;
}

.raffle-modal-header h2 {
  margin-top:6px;
  letter-spacing:-2px;
}

.raffle-modal-header button {
  width:40px;
  height:40px;
  border-radius:10px;
  background:#191919;
  color:#fff;
  cursor:pointer;
}

.raffle-form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.raffle-field.wide {
  grid-column:1/-1;
}

.raffle-field label {
  display:block;
  margin:8px 0;
  color:#aaa;
  font-size:11px;
  font-weight:700;
}

.raffle-field input {
  width:100%;
  padding:14px 15px;
  outline:0;
  border:1px solid var(--border);
  border-radius:12px;
  background:#080808;
  color:#fff;
}

.raffle-field input:focus {
  border-color:rgba(166,82,255,.65);
}

.raffle-field small {
  display:block;
  min-height:16px;
  margin-top:5px;
  font-size:10px;
}

.quantity-box {
  margin-top:22px;
}

.quantity-box>span {
  display:block;
  margin-bottom:9px;
  color:#aaa;
  font-size:11px;
  font-weight:700;
}

.quantity-options {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.quantity-options button {
  padding:13px;
  border:1px solid var(--border);
  border-radius:11px;
  background:#151515;
  color:#aaa;
  font-weight:900;
  cursor:pointer;
}

.quantity-options button.active {
  background:#fff;
  color:#070707;
}

.raffle-consent {
  margin-top:20px;
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#888;
  font-size:11px;
  line-height:1.5;
}

.raffle-consent input {
  margin-top:2px;
}

.raffle-submit {
  width:100%;
  margin-top:20px;
  padding:16px;
  border-radius:12px;
  background:#fff;
  color:#080808;
  font-weight:900;
  cursor:pointer;
}

.raffle-submit:disabled {
  opacity:.55;
  cursor:wait;
}

.raffle-form-message {
  min-height:20px;
  margin-top:12px;
  color:#ff8585;
  font-size:12px;
}

.digital-receipt {
  margin-top:10px;
  text-align:center;
}

.hidden {
  display:none !important;
}

.receipt-mark {
  width:64px;
  height:64px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(65,210,115,.13);
  color:#70e59a;
  font-size:30px;
  font-weight:900;
}

.digital-receipt h3 {
  margin:8px 0;
  font-size:30px;
  letter-spacing:-2px;
}

.digital-receipt>p {
  color:#777;
}

.receipt-numbers {
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:7px;
}

.receipt-numbers span {
  padding:9px 6px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#080808;
  font-size:11px;
  font-weight:800;
}

.cooldown-card {
  margin-top:22px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#111;
}

.cooldown-card span {
  display:block;
  color:#777;
  font-size:10px;
}

.cooldown-card strong {
  display:block;
  margin-top:3px;
  font-size:27px;
}

.receipt-actions {
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

@media(max-width:760px){
  .raffle-page{padding-top:68px;}
  .raffle-hero{padding:70px 5% 45px;}
  .raffle-hero h1{letter-spacing:-4px;}
  .raffle-container{padding:0 5% 80px;}
  .raffle-live-card{grid-template-columns:1fr;}
  .raffle-live-image{min-height:260px;}
  .raffle-live-content{padding:28px 20px;}
  .raffle-live-content h2{letter-spacing:-3px;}
  .raffle-meta{grid-template-columns:1fr 1fr;}
  .raffle-form-grid{grid-template-columns:1fr;}
  .raffle-field.wide{grid-column:auto;}
  .receipt-numbers{grid-template-columns:repeat(3,1fr);}
}


.paid-summary {
  margin-top:18px;
  padding:16px;
  border:1px solid rgba(166,82,255,.25);
  border-radius:13px;
  background:rgba(166,82,255,.07);
}

.paid-summary span,
.paid-summary small {
  display:block;
  color:#888;
  font-size:10px;
}

.paid-summary strong {
  display:block;
  margin:4px 0;
  font-size:24px;
}

.product-image img,
.raffle-live-image img {
  max-width:100%;
}

/* Imagem do sorteio sem corte */
.raffle-live-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
}

.raffle-live-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center;
  display: block;
}

/* Resultado dentro do card do sorteio */
.raffle-inline-winner {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 215, 90, .35);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 215, 90, .08),
      rgba(120, 70, 255, .08)
    );
}

.raffle-inline-winner .winner-kicker {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 7px;
  color: #ffd75a;
}

.raffle-inline-winner .winner-name {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.raffle-inline-winner
.winner-number-inline {
  margin-bottom: 5px;
}

.raffle-inline-winner small {
  opacity: .72;
}
