/* Variáveis de cores */
:root {
  --modal-bg: linear-gradient(145deg, #162231, #121d27);
  --modal-inner: #1e2a36;
  --modal-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #a2a1a1;
  --success-color: var(--primary);
  --error-color: #FF4141;
}

.modal-success {
  font-family: 'Poppins', sans-serif;
  /* white-space: nowrap; */
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d3d5d4 #f2f2f2;
}

.modal-success::-webkit-scrollbar {
  height: 5px;
}

.modal-success::-webkit-scrollbar-track {
  background-color: #f2f2f2;
}

.modal-success::-webkit-scrollbar-thumb {
  background-color: #d3d5d4;
  border-radius: 3px;
  border: 1px solid transparent;
}

.modal-success::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.modal-instant-result {
  background: var(--modal-bg);
  color: var(--text-primary);
  padding: 20px;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--modal-border);
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.3s ease-out;
  height: auto;
}

/* Quando for instant bet, ocupar altura total */
.modal.modal-success.instant-bet {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}

/* .modal.modal-success.instant-bet .container-info-purchase,
.modal.modal-success.instant-bet .header-list-purchase {
  display: none;
} */

.modal.modal-success.instant-bet .modal-content {
  height: 100%;
}

.modal.modal-success.instant-bet .modal-instant-result {
  /* max-height: 90vh; */
  /* overflow-y: auto; */
  width: 100%;
}

.modal.modal-success.instant-bet .container-list-purchase {
  max-height: unset;
}

.modal.modal-success.instant-bet .content-list-purchase {
  max-height: unset;
  overflow-y: unset;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-instant {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--modal-border);
}

.header-instant h2 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.header-instant .date,
.header-instant .user {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.result-numbers {
  background: var(--modal-inner);
  border-radius: 16px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--modal-border);
  animation: slideUp 0.5s ease-out;
}

.result-row {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(var(--index) * 0.1s);
  opacity: 0;
  transform: translateY(20px);
}

.result-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0.7;
}

.result-row:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.05);
}

.result-row .prize {
  width: 100px;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(42, 193, 185, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-row .prize::before {
  content: '🏆';
  font-size: 20px;
  animation: bounce 1s ease infinite;
}

.result-row:nth-child(2) .prize::before {
  content: '🥈';
}

.result-row:nth-child(3) .prize::before {
  content: '🥉';
}

.result-row .number {
  flex: 1;
  font-size: 28px;
  text-align: center;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.result-row .group {
  width: 120px;
  text-align: right;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.result-row .group .group-circle {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  top: -8px;
  right: -10px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: pulse 2s ease infinite;
}

.result-row .group .animal-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.result-row:hover .group .animal-img {
  transform: scale(1.1);
}

.bets-result {
  background: var(--modal-inner);
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--modal-border);
}

.total-info {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  animation: slideUp 0.5s ease-out;
}

.total-info.positive {
  background: rgba(42, 193, 185, 0.1);
  border: 1px solid rgba(42, 193, 185, 0.2);
}

.total-info.negative {
  background: rgba(255, 65, 65, 0.1);
  border: 1px solid rgba(255, 65, 65, 0.2);
}

.total-info p {
  margin: 8px 0;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-info .amount {
  font-weight: 700;
  font-size: 18px;
  font-family: 'Courier New', monospace;
}

.total-info .balance {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  font-weight: 700;
}

.positive .balance .amount {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(42, 193, 185, 0.3);
}

.negative .balance .amount {
  color: #FF4141;
  text-shadow: 0 0 10px rgba(255, 65, 65, 0.3);
}

.winning-bets,
.losing-bets {
  margin-top: 20px;
}

.winning-bets h3,
.losing-bets h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #fff;
}

.winning-bets h3::before,
.losing-bets h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
}

.winning-bets h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232AC1B9'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E");
}

.losing-bets h3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF4141'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E");
}

.bets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bet-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(var(--index) * 0.1s);
  opacity: 0;
  transform: translateY(20px);
}

.bet-item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.05);
}

.bet-item.winner {
  border-left: 4px solid var(--primary);
}

.bet-item.loser {
  border-left: 4px solid #FF4141;
}

.bet-item span {
  padding: 0 10px;
}

.bet-item .modality {
  width: 25%;
  font-weight: 600;
}

.bet-item .numbers {
  width: 35%;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 1px;
}

.bet-item .placement {
  width: 20%;
  text-align: center;
}

.bet-item .value {
  width: 20%;
  text-align: right;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.bet-item.winner .value {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(42, 193, 185, 0.3);
}

.bet-item.loser .value {
  color: #FF4141;
  text-shadow: 0 0 10px rgba(255, 65, 65, 0.3);
}

/* Responsividade */
@media (max-height: 520px) {
  .modal.modal-success .modal-content {
    max-height: 100%;
  }

  .modal.modal-success .modal-body {
    overflow-y: auto;
  }

  .content-list-games {
    max-height: unset !important;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .modal-instant-result {
    padding: 15px;
    margin: 10px;
  }

  .bet-item {
    flex-wrap: wrap;
  }

  .bet-item span {
    padding: 5px 10px;
  }

  .bet-item .modality,
  .bet-item .numbers {
    width: 50%;
  }

  .bet-item .placement,
  .bet-item .value {
    width: 50%;
    text-align: left;
  }

  .bet-item .value {
    text-align: right;
  }

  .total-info p {
    flex-direction: column;
    gap: 5px;
  }

  .total-info .amount {
    font-size: 20px;
  }

  .btn-filtro-loteria {
    padding: 6px 16px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  /* Ajustes no collapse para mobile */
  .item-game-collapse-header-left span {
    font-size: 13px;
  }

  .item-game-collapse-header-right span {
    font-size: 12px;
  }

  .btn-game-collapse {
    font-size: 12px;
    padding: 2px 6px;
  }

  .games .game-head,
  .games .game-body-item {
    font-size: 13px;
  }

  .games .game-head span,
  .games .game-body-item span {
    padding-left: 8px;
  }
}

/* --- INSTANT BET BUTTON (NOVO ESTILO) --- */
.instant-bet-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px auto 15px;
  /* max-width: 300px;
  width: 100%; */
}

.instant-bet-btn {
  font-size: 18px;
  padding: 10px 30px;
  background: #204361;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  position: relative;
}

.instant-bet-btn:hover,
.instant-bet-btn.active {
  background: var(--primary);
}

.instant-bet-label {
  font-size: 18px;
  font-weight: bold;
}

.novidade-badge {
  padding: 6px 18px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 0 8px #fff, 0 0 16px #fff;
  animation: neonBlink 1s infinite alternate;
  letter-spacing: 1px;
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes neonBlink {
  0% {
    opacity: 1;
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 32px #fff;
    border-color: #fff;
  }

  100% {
    opacity: 0.6;
    text-shadow: 0 0 2px #fff, 0 0 4px #fff;
    border-color: #fff;
  }
}

.instant-bet-desc {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 8px;
  max-width: 280px;
}

/* --- FULLSCREEN LOADING MELHORADO --- */
.fullscreen-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.fullscreen-loading .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.fullscreen-loading .loading-text {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 15px;
  text-align: center;
}

.fullscreen-loading .loading-tip {
  color: var(--primary);
  font-size: 14px;
  max-width: 300px;
  text-align: center;
  line-height: 1.4;
  padding: 0 20px;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 193, 185, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(42, 193, 185, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(42, 193, 185, 0);
  }
}

.modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modal-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play-again {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-play-again:hover {
  background: var(--primary-dark);
}

.winner-actions {
  display: flex;
  gap: 15px;
}

.btn-repeat-game {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-repeat-game:hover {
  background: var(--primary-dark);
}

.btn-new-game {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-new-game:hover {
  background: var(--primary);
  color: white;
}


/* NEW MODAL GAME */
.modal.modal-success .modal-content {
  max-height: 98vh;
}

.modal.modal-success .modal-body {
  overflow-y: hidden;
}

.item-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-success img[alt="Aposta realizada com sucesso!"] {
  width: 50px;
  opacity: 1;
  top: unset;
}

.modal-success .modal-title {
  margin: 0px 10px;
}

.modal-success .modal-body .container-info-purchase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F3F3F3;
  width: max-content;
  padding: 5px 20px;
  margin: 20px auto 10px;
  border-radius: 10px;
}

.modal-success .container-info-purchase div {
  margin: 0;
}

.hero-history-purchase {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

.item-history-purchase {
  display: flex;
  flex-direction: column;
}

.item-history-purchase .strong-item-history-purchase {
  color: #2d2751;
  font-size: 14px;
  font-weight: 700;
}

.item-history-purchase .light-item-history-purchase {
  display: flex;
  align-items: center;
  color: #2d2751;
  font-size: 14px;
}

/* LOTTERIES */
.container-list-lotteries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.header-list-lotteries {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-list-lotteries {
  font-size: 18px;
  font-weight: 700;
  color: #2d2751;
}

.content-list-lotteries {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.content-list-lotteries {
  white-space: nowrap;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: thin;
  scrollbar-color: #d3d5d4 #f2f2f2;
}

.content-list-lotteries::-webkit-scrollbar {
  height: 5px;
}

.content-list-lotteries::-webkit-scrollbar-track {
  background-color: #f2f2f2;
}

.content-list-lotteries::-webkit-scrollbar-thumb {
  background-color: #d3d5d4;
  border-radius: 3px;
  border: 1px solid transparent;
}

.content-list-lotteries::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}


.btn-lotterie {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #2d2751;
}

.btn-lotterie.active {
  background: #1c2b37;
  color: #fff;
}

/* GAMES */
/* Container geral */
.container-list-games {
  /* font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px; */
}

.content-list-games {
  padding: 5px 5px 5px 0px;
  max-height: 300px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #d3d5d4 #f2f2f2;
}

.content-list-games::-webkit-scrollbar {
  height: 5px;
}

.content-list-games::-webkit-scrollbar-track {
  background-color: #f2f2f2;
}

.content-list-games::-webkit-scrollbar-thumb {
  background-color: #d3d5d4;
  border-radius: 3px;
  border: 1px solid transparent;
}

.content-list-games::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

/* Título "JOGOS" */
.header-list-games .title-list-games {
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  margin-top: 10px;
  /* margin-bottom: 12px; */
}

/* Cada bloco de horário */
.content-list-games .item-game-collapse {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  /* garante que cantos arredondados sejam respeitados nos filhos */
}

/* Cabeçalho (horário + nº de jogos + botão) */
.item-game-collapse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* background-color: #00A86B; */
  /* padding: 8px 12px; */
}

.item-game-collapse-header-left {
  background: var(--primary);
  color: #fff;
  padding: 3px 5px;
  border-radius: 5px 0 5px 0;
  font-weight: bold;
  max-width: 120px;
  width: 100%;
  text-align: center;
}

.item-game-collapse-header-right {
  display: flex;
  align-items: center;
  color: #2d2751;
}

.item-game-collapse-header-right span {
  font-size: 13px;
  margin-right: 12px;
  opacity: 0.4;
}

.btn-game-collapse {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Conteúdo expandido */
.item-game-collapse-content {
  display: flex;
  flex-direction: column;
}

/* "Corre em 03/06/2025" */
.item-game-collapse-content .run span {
  display: inline-block;
  background-color: #fdf8ed;
  color: #a57f6e;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 0 5px 5px 0;
  margin: 10px 0;
}

/* Cabeçalho da tabela de jogos */
.games .game-head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  /* background-color: #F0F0F0; */
  /* cinza-claro */
  padding: 8px 0;
  text-align: left;
}

.games .game-head span {
  padding-left: 12px;
}

/* Linhas de cada aposta */
.games .game-body-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 14px;
  color: #555555;
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
}

.games .game-body-item span {
  padding-left: 12px;
}

/* Melhorias no collapse */
.item-game-collapse-header {
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* padding: 8px 12px; */
}

.item-game-collapse-header:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-game-collapse {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  color: #2d2751;
  transition: color 0.2s ease;
}

.btn-game-collapse:hover {
  color: var(--primary);
}

.btn-game-collapse i {
  transition: transform 0.3s ease;
}

.item-game-collapse-content {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

/* Filtro de loterias dinâmico */
.btn-filtro-loteria {
  color: #333;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-right: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-filtro-loteria>img {
  width: 15px;
  height: 15px;
}

.btn-filtro-loteria:hover {
  background: #e8e8e8;
  border-color: var(--primary);
}

.btn-filtro-loteria.btn-filtro-loteria--ativo {
  background: #1e2c39;
  color: #fff;
  border-color: #1e2c39;
}

/* Container dos filtros */
.content-list-lotteries {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 5px;
  align-items: center;
}

/* Animação para mostrar/ocultar jogos */
.item-game-collapse {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.item-game-collapse.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Estilos para itens de jogos (modo backend com horários) */
.item-jogo {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.item-jogo:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.item-jogo .descricao {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-jogo .descricao::before {
  content: '🎯';
  font-size: 18px;
}

/* Modal Instantânea - Novo Design */

.instant-new.modal-success .modal-title {
  display: none;
}

.instant-new.modal-success .container-list-purchase,
.instant-new.modal.modal-success .modal-content,
.instant-new.modal.modal-success .content-list-purchase {
  max-height: unset;
  background: #1f2b37;
}

.instant-new.modal-success .modal-body .container-info-purchase {
  background: #26333c;
}

.instant-new.modal-success .modal-title h2,
.instant-new.modal-success .container-footer h3,
.instant-new.modal-success .item-history-purchase .light-item-history-purchase,
.instant-new.modal-success .item-history-purchase .strong-item-history-purchase {
  color: #fff;
}

.instatn-new.modal-success .instant-games-list::-webkit-scrollbar {
  width: 6px;
}

.instatn-new.modal-success .instant-games-list::-webkit-scrollbar-track {
  background: transparent;
}

.instatn-new.modal-success .instant-games-list::-webkit-scrollbar-thumb {
  background-color: #3b4d5f;
  border-radius: 10px;
}

/* Firefox */
.instant-new.modal-success .instant-games-list {
  scrollbar-width: thin;
  scrollbar-color: #3b4d5f transparent;
}


/* .modal-success.instant-new {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
} */

.modal-instant-new {
  /* background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%); */
  /* border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  color: white;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); */
  background: #1f2b37;
  color: #fff;

  .modal-success .modal-title h2 {
    color: #fff;
  }
}

/* Botão de fechar */
.instant-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.instant-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Header */
.instant-header {
  text-align: center;
  padding: 40px 30px 20px;
}

.instant-check {
  width: 60px;
  height: 60px;
  background: #4ade80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  animation: checkPulse 1s ease-out;
}

@keyframes checkPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.instant-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 15px;
  color: white;
}

.instant-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.highlight {
  color: #4ade80;
  font-weight: 600;
}

/* Informações */
.instant-info {
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  margin-bottom: 20px;
  gap: 15px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.info-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info-value i {
  font-size: 12px;
  color: #4ade80;
}

/* Badge Instantânea */
.instant-badge {
  margin: 0 auto;
  width: max-content;
  letter-spacing: 0.5px;
  background: transparent;
  border: 2px solid #eaeaea;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}



/* Status do resultado */
.instant-result-status {
  text-align: center;
  margin: 10px auto;
}

.result-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  animation: resultShow 0.8s ease-out 0.5s both;
}

.result-title.success {
  color: #4ade80;
}

.result-title.fail {
  color: #ef4444;
}

@keyframes resultShow {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Seção dos jogos */
.instant-games-section {
  margin-bottom: 15px;
}

.instant-games-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 15px;
  text-align: center;
}

.games-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 10px;
  /* padding: 10px 15px; */
  /* background: rgba(255, 255, 255, 0.05); */
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  text-align: center;
}

.games-header>span:first-child {
  text-align: left;
}

.instant-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 0 5px;
  position: relative;
}

.instant-games-section {
  position: relative;
}

.instant-games-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: linear-gradient(to bottom, rgba(31, 43, 55, 0), rgba(31, 43, 55, 1));
  pointer-events: none;
}

/* Item de aposta */
.instant-bet-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 15px;
  border-radius: 5px;
  gap: 10px;
  animation: betItemShow 0.5s ease-out both;
  position: relative;
  background: rgb(38 51 60);
  text-align: center;
}

.instant-bet-item.winner {
  background: rgba(75, 222, 128, 0.1);
  border-left: 4px solid #4ade80;
}

.instant-bet-item.loser {
  border-left: 4px solid #ef4444;
}

@keyframes betItemShow {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}



.bet-info {
  display: contents;
}

.bet-modality {
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
}

.bet-placement,
.bet-numbers {
  font-size: 14px;
  font-weight: 500;
}

.bet-value {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.bet-value.positive {
  color: #4ade80;
}

.bet-value.negative {
  color: #ef4444;
}

/* Seção dos prêmios */
/* .instant-prizes-section {
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.02);
} */

.instant-prizes-section h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0px 0 5px;
  text-align: center;
}

.instant-prizes-grid {
  display: flex;
  overflow-x: auto;
  justify-content: center;
  align-items: center;
  background: #28323d;
  border-radius: 10px;
  padding: 10px 5px;
  gap: 0 10px;
}

/* Prêmio individual */
.instant-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  animation: prizeShow 0.6s ease-out both;
  border-right: 2px solid #334155;
}

.instant-prize:nth-child(1) {
  animation-delay: 0.1s;
}

.instant-prize:nth-child(2) {
  animation-delay: 0.2s;
}

.instant-prize:nth-child(3) {
  animation-delay: 0.3s;
}

.instant-prize:nth-child(4) {
  animation-delay: 0.4s;
}

.instant-prize:nth-child(5) {
  animation-delay: 0.5s;
}

.instant-prize:nth-child(6) {
  animation-delay: 0.6s;
}

.instant-prize:nth-child(7) {
  animation-delay: 0.7s;
  border-right: none;
}

@keyframes prizeShow {
  0% {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.prize-position {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.prize-number {
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 10px;
}

.prize-animal {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 5px; */
}

.prize-animal img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.animal-number {
  font-size: 14px;
  color: #6ca2d1;
  font-weight: 700;
}

/* Botões de ação */
.instant-actions {
  padding: 20px 0px;
  display: flex;
  gap: 15px;
  justify-content: space-between;
}

.btn-instant-action {
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-instant-action.primary {
  background: #4e7499;
  color: #fff;
}

.btn-instant-action.primary:hover {
  transform: translateY(-2px);
}

.btn-instant-action.secondary {
  background: var(--primary);
  color: #fff;
}

.btn-instant-action.secondary:hover {
  transform: translateY(-2px);
}

/* Tabela de animais */
.instant-animals-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
  gap: 8px;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.animal-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.animal-number-main {
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
}

.animal-small-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.animal-numbers-small {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.animal-numbers-small span {
  font-size: 8px;
  color: #64748b;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  .instant-prizes-grid {
    justify-content: start;
  }

  .modal-instant-new {
    width: 95%;
    max-height: 95vh;
  }

  .instant-info {
    flex-direction: column;
    gap: 10px;
  }

  .info-item {
    flex-direction: row;
    justify-content: space-between;
  }

  .instant-actions {
    font-size: 12px;
    white-space: nowrap;
  }

  .btn-instant-action {
    /* width: 100%; */
    font-size: 12px;

  }

  .instant-animals-table {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .instant-header {
    padding: 30px 20px 15px;
  }

  .instant-header h2 {
    font-size: 28px;
  }

  .instant-subtitle {
    font-size: 14px;
  }

  .instant-new.modal-success .container-list-purchase {
    padding: 10px;
  }

  /* .instant-info,
  .instant-games-section,
  .instant-prizes-section,
  .instant-actions {
    padding-left: 20px;
    padding-right: 20px;
  } */

  .games-header {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 11px;
    padding: 8px 10px;
  }

  .instant-bet-item {
    padding: 8px 10px;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 8px;
  }

  .bet-modality,
  .bet-placement,
  .bet-numbers,
  .bet-value {
    font-size: 12px;
  }
}