:root {
  --color-light-blue: #8486a9;
  --color-red: rgb(251, 96, 135);
  --color-white: rgb(255, 255, 255);
  --color-dark-blue: #343650;
  --color-very-dark-blue: #1e1f29;
  --color-black: #191a24;
}

/* TICKETS */
.my-tickets {
  position: relative;
  background-color: var(--bg-primary);
  padding: 15px 35px 35px;
  border-radius: 5px;
}

.my-tickets::before {
  content: '';
  background: radial-gradient(transparent, var(--bg-primary) 60%), url(../images/event/tickets/tree.jpg);
  position: absolute;
  background-position: center;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity: .1;
  top: 0;
  left: 0;
  background-size: cover;
}

.winner.my-tickets::before {
  content: '';
  background: radial-gradient(transparent, var(--bg-primary) 60%), url(../images/event/tickets/winner.jpg);
  position: absolute;
  background-position: top center;
  height: 100%;
  width: 100%;
  z-index: 0;
  opacity: .3;
  top: 0;
  left: 0;
  background-size: cover;
}

/* MY STYLES */
.ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 2rem;
  /* background-color: #121d27; */
  box-sizing: content-box;

  /* border-width: 2px;
  border-style: solid;
  border-image: linear-gradient(to right, #121d27, #323063) 1;
  border-left: 0;
  border-right: 0; */
  padding: 8px 0 10px;
  margin: 10px 0;
}

.ticker-wrap::before {
  background: linear-gradient(to right, #121d27 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  position: absolute;
  width: 50px;
  height: 100%;
  z-index: 2;
  top: 0;
  left: 0;
}

.ticker-wrap::after {
  background: linear-gradient(to left, #121d27 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  position: absolute;
  width: 50px;
  height: 100%;
  z-index: 2;
  top: 0;
  right: 0;
}

.ticker-wrap .ticker {
  display: inline-block;
  height: 2rem;
  /* line-height: 4rem; */
  white-space: nowrap;
  padding-left: 100%;
  box-sizing: content-box;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-name: ticker;
  animation-name: ticker;
  -webkit-animation-duration: 30s;
  animation-duration: 30s;
}

.ticker__item {
  background: url(../images/event/tickets/ticket.png);
  display: inline-block;
  color: white;
  width: 100px;
  height: 35px;
  background-size: cover;
  position: relative;
  font-size: 1.5rem;
  font-weight: bold;
}

.ticket-winner {
  background: url(../images/event/tickets/ticket.png);
  display: inline-block;
  color: white;
  width: 100px;
  height: 35px;
  background-size: cover;
  position: relative;
  font-size: 1.5rem;
  font-weight: bold;
  filter: drop-shadow(0px 5px 10px #ffd70078);
  margin: 10px;
}

.ticket-winner p {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0%, -50%);
  font-weight: bold;
  font-size: 1.3rem;
  padding: 0 30px 0 10px;
  width: 100%;
  text-align: center;
}

.ticker__item p {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0%, -50%);
  font-weight: bold;
  font-size: 1.3rem;
  padding: 0 30px 0 10px;
  width: 100%;
  text-align: center;
}

.div-tickets {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 800px;
  gap: 10px;
  height: 400px;
  overflow: auto;
}

.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

@-webkit-keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

@keyframes ticker {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    visibility: visible;
  }

  100% {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
  }
}

.container-infos-tickets {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.ticket-qty {
  background: #323063;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  min-width: 200px;
}

.text-qty {
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  color: #fff;
}

.text-qty span {
  font-size: 2rem;
  color: var(--primary);
  font-weight: bold;
  line-height: 100%;
}

.text-qty h2 {
  color: #fff;
  opacity: .5;
}

.ticket-qty button {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  margin: 10px 0 0;
  text-decoration: none;
  background: var(--primary);
  border-radius: 5px;
  padding: 10px;
  font-weight: bold;
}

.ticket-qty button:hover {
  opacity: .7;
}

.icon-tickets {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  background: #323063;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 8px solid var(--bg-primary);
  border-radius: 100px;
}

.container-tickets {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 20px;
  position: relative;
}

.container-info-tickets {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
  gap: 15px;
  max-width: 690px;
}

.container-info-tickets h1 {
  font-size: 2rem;
  text-align: center;
  font-weight: 500;
  color: #fff;
}

.container-info-tickets h1 span {
  font-weight: bold;
  background: linear-gradient(to top, #94ede9, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

}

.container-info-tickets p {
  color: #fff;
  text-align: center;
}

.container-info-tickets p u,
.container-info-tickets p b {
  color: var(--primary);
  font-weight: bold;
  border-color: var(--primary);
}

/* ============================================
   SKELETON LOADING (Facebook Style)
   ============================================ */
.skeleton-loading {
  display: block;
}

.content-loaded {
  display: none !important;
}

/* Quando mostra o conteúdo - cada elemento com seu display correto */
.sorteio-header.content-loaded.show {
  display: flex !important;
}

.meus-bilhetes-section.content-loaded.show {
  display: block !important;
}

.container-timer.content-loaded.show {
  display: block !important;
}

.sorteio-footer.content-loaded.show {
  display: flex !important;
}

.skeleton-shimmer {
  background: linear-gradient(90deg,
      rgba(50, 48, 99, 0.4) 0%,
      rgba(80, 78, 130, 0.6) 50%,
      rgba(50, 48, 99, 0.4) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Skeleton Header */
.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(50, 48, 99, 0.3);
  border-radius: 12px;
  padding: 20px 30px;
  margin-bottom: 20px;
}

.skeleton-titulo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.skeleton-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton-text {
  border-radius: 6px;
}

.skeleton-premio {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  border-radius: 10px;
}

/* Skeleton Bilhetes */
.skeleton-bilhetes {
  background: rgba(18, 29, 39, 0.4);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
}

.skeleton-bilhetes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skeleton-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.skeleton-btn {
  width: 100px;
  height: 36px;
  border-radius: 6px;
}

.skeleton-ticker {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 10px 0;
}

.skeleton-ticket {
  width: 100px;
  height: 35px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Skeleton Timer */
.skeleton-timer {
  padding: 20px 0 30px;
  text-align: center;
}

.skeleton-countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.skeleton-time-box {
  width: 120px;
  height: 110px;
  border-radius: 8px;
}

/* Skeleton Footer */
.skeleton-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding-top: 10px;
}

.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 800px;
}

.skeleton-card {
  height: 100px;
  border-radius: 12px;
}

.skeleton-cta {
  width: 280px;
  height: 52px;
  border-radius: 10px;
}

/* Responsivo Skeleton */
@media (max-width: 768px) {
  .skeleton-header {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }

  .skeleton-premio {
    width: 100%;
    align-items: center;
  }

  .skeleton-cards {
    grid-template-columns: 1fr;
  }

  .skeleton-countdown {
    gap: 10px;
  }

  .skeleton-time-box {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 524px) {
  .skeleton-bilhetes-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .skeleton-btn {
    width: 100%;
  }

  .skeleton-cta {
    width: 100%;
  }
}

/* ============================================
   HEADER DO SORTEIO
   ============================================ */
.sorteio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(50, 48, 99, 0.9) 0%, rgba(30, 31, 50, 0.95) 100%);
  border-radius: 16px;
  padding: 25px 35px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Efeito de brilho no fundo */
.sorteio-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 80, 182, 63), 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Linha decorativa no topo */
.sorteio-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.sorteio-titulo {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.sorteio-titulo i {
  font-size: 2.5rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb, 80, 182, 63), 0.4));
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb, 80, 182, 63), 0.4));
  }

  50% {
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb, 80, 182, 63), 0.6));
  }
}

.sorteio-descricao {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sorteio-premio-destaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  padding: 18px 30px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb, 80, 182, 63), 0.3);
  position: relative;
  z-index: 1;
  min-width: 180px;
}

/* Borda brilhante animada */
.sorteio-premio-destaque::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 50%, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
}

.premio-label {
  font-size: 0.7rem;
  color: #8486a9;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 5px;
}

.premio-valor {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 30px rgba(var(--primary-rgb, 80, 182, 63), 0.5);
  line-height: 1;
}

/* ============================================
   SEÇÃO MEUS BILHETES
   ============================================ */
.meus-bilhetes-section {
  background: rgba(18, 29, 39, 0.6);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bilhetes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bilhetes-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.bilhetes-info i {
  color: var(--primary);
  font-size: 1.2rem;
}

.bilhetes-contador {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bilhetes-contador .icon-tickets {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  position: static;
  border: none;
}

.btn-ver-bilhetes {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-ver-bilhetes:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   FOOTER DO SORTEIO
   ============================================ */
.sorteio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.sorteio-detalhes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 800px;
}

.detalhe-card {
  background: linear-gradient(145deg, rgba(50, 48, 99, 0.6), rgba(30, 31, 41, 0.8));
  border-radius: 12px;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detalhe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.detalhe-card i {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.8;
}

.detalhe-label {
  color: #8486a9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.detalhe-valor {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.detalhe-valor.valor-bilhete {
  color: #fff;
}

.detalhe-valor.status-sorteio {
  font-size: 1rem;
}

/* ============================================
   BOTÃO DEPOSITAR
   ============================================ */
.sorteio-footer .btn-deposit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  padding: 16px 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 280px;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.sorteio-footer .btn-deposit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.sorteio-footer .btn-deposit i {
  font-size: 1.2rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
  .sorteio-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 25px 20px;
  }

  .sorteio-header::before {
    top: -30%;
    right: -30%;
    width: 160%;
  }

  .sorteio-titulo {
    flex-direction: column;
    gap: 12px;
  }

  .sorteio-titulo i {
    font-size: 2.2rem;
  }

  .sorteio-premio-destaque {
    width: 100%;
    max-width: 250px;
  }

  .sorteio-detalhes-grid {
    grid-template-columns: 1fr;
  }

  .bilhetes-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .btn-ver-bilhetes {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 524px) {
  .sorteio-header {
    padding: 20px 15px;
  }

  .sorteio-descricao {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .sorteio-titulo i {
    font-size: 1.8rem;
  }

  .premio-valor {
    font-size: 1.6rem;
  }

  .premio-label {
    font-size: 0.65rem;
  }

  .detalhe-card {
    padding: 15px 10px;
  }

  .btn-deposit {
    width: 100%;
    min-width: auto;
  }
}


/* NET STYLES */
.container-timer {
  width: 100%;
  overflow: hidden;
  /* background-color: var(--color-very-dark-blue); */
  border-radius: 5px;
  position: relative;
}

#timeTickets {
  /* background: url(../images/event/tickets/NOITE-FUNDO.png) center / cover no-repeat; */
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}

.caption {
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  letter-spacing: .6em;
  margin: 20px 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-content: center;
  max-width: 650px;
  position: relative;
  width: 90%;
  z-index: 2;
  margin-bottom: 2em;
}

.time-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-content {
  height: 100px;
  width: 100%;
  max-width: 140px;
  box-shadow: 0px 7px 2px -2px rgb(25, 26, 36);
  background-color: var(--color-very-dark-blue);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  font-size: 1.5rem;
  margin-bottom: 0.8em;
}

.time {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: #323063;
  position: relative;
}

.time::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 50%;
  background-color: #514e9bbd;
}

.time>span {
  display: block;
  color: var(--primary);
  font-size: 2.5em;
  z-index: 2;
}

.rings {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.rings::before,
.rings::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-very-dark-blue);
  top: -2px;
}

.rings::before {
  left: -3.5px;
}

.rings::after {
  right: -3.5px;
}

.metric {
  text-transform: uppercase;
  text-align: center;
  color: var(--color-light-blue);
  font-size: .8rem;
  letter-spacing: 3px;
}

@media (max-width: 1100px) {
  .my-tickets {
    padding: 15px 35px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .countdown {
    max-width: 500px;
    gap: 12px;
  }

  .time-content {
    height: 85px;
    max-width: 110px;
  }

  .time>span {
    font-size: 2rem;
  }

  .caption {
    font-size: 1.5rem;
    letter-spacing: .4em;
  }

  .metric {
    font-size: .7rem;
    letter-spacing: 2px;
  }
}

/* Mobile */
@media (max-width: 524px) {
  .caption {
    font-size: 1rem;
    letter-spacing: .3em;
    margin: 15px 0;
  }

  .countdown {
    width: 100%;
    max-width: 400px;
    gap: 8px;
  }

  .time-content {
    height: 70px;
    max-width: 85px;
    border-radius: 8px;
  }

  .time>span {
    font-size: 1.6rem;
  }

  .metric {
    font-size: .55rem;
    letter-spacing: 1px;
  }

  .my-tickets {
    padding: 15px;
  }
}

/* Mobile pequeno */
@media (max-width: 380px) {
  .caption {
    font-size: 0.85rem;
    letter-spacing: .2em;
  }

  .countdown {
    gap: 6px;
  }

  .time-content {
    height: 55px;
    max-width: 70px;
    border-radius: 6px;
    margin-bottom: 0.5em;
  }

  .time>span {
    font-size: 1.3rem;
  }

  .metric {
    font-size: .45rem;
    letter-spacing: 0.5px;
  }
}