/* Scratch Card Styles */
.my-scratch {
  position: relative;
  background-color: var(--bg-primary);
  padding: 35px;
  border-radius: 5px;
}

/* ===== MINHAS RASPADINHAS SECTION ===== */
.nav-tab .badge {
  background: #ff4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin-left: 5px;
  font-weight: 600;
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.my-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.my-cards-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.my-cards-title i {
  color: var(--primary);
}

.cards-filter {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Container de Cartelas Compactas e Tabela */
.scratch-compact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
  gap: 10px;
}

/* ========================================
   DATATABLES CUSTOMIZAÇÃO
   ======================================== */
.dataTables_wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.datatable-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.dt-buttons {
  display: flex;
  gap: 10px;
}

.dt-buttons .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dt-buttons .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.dt-search input {
  padding: 10px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  min-width: 300px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dt-search input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.datatable-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.dt-info {
  color: #6c757d;
  font-size: 14px;
}

.dt-pagination .paginate_button {
  padding: 5px 12px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dt-pagination .paginate_button:hover:not(.disabled) {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.dt-pagination .paginate_button.current {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.dt-pagination .paginate_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dt-length select {
  padding: 6px 30px 6px 10px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

#scratchCardsDataTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0 10px;
}

#scratchCardsDataTable thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  border: none;
}

#scratchCardsDataTable tbody tr {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

#scratchCardsDataTable tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#scratchCardsDataTable tbody td {
  padding: 15px;
  vertical-align: middle;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

#scratchCardsDataTable tbody tr td:first-child {
  border-left: 1px solid #e9ecef;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#scratchCardsDataTable tbody tr td:last-child {
  border-right: 1px solid #e9ecef;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

#scratchCardsDataTable tfoot th {
  background: #f8f9fa;
  padding: 15px;
  font-weight: bold;
  border-top: 2px solid #dee2e6;
}

#scratchCardsDataTable tfoot small {
  font-weight: normal;
  opacity: 0.8;
  margin-top: 5px;
}

.sorting::before,
.sorting::after,
.sorting_asc::before,
.sorting_asc::after,
.sorting_desc::before,
.sorting_desc::after {
  opacity: 0.5;
  font-size: 0.8em;
}

.sorting_asc::after {
  opacity: 1;
}

.sorting_desc::after {
  opacity: 1;
}

/* Tabela de Transações */
.transactions-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.transactions-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.transactions-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.transactions-table th i {
  margin-right: 8px;
  opacity: 0.9;
}

.transactions-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.transactions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(2px);
}

.transactions-table td {
  padding: 12px;
  color: var(--text-secondary);
}

/* Badges de tipo de cartela */
.card-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-type-badge.basic {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.card-type-badge.silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  color: white;
}

.card-type-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: white;
}

.card-type-badge.premium {
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
}

/* Badges de resultado */
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.result-badge.win {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.result-badge.lose {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Valores monetários */
.paid-value,
.prize-value,
.profit-value {
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
}

.positive {
  color: #22c55e;
}

.negative {
  color: #ef4444;
}

.neutral {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Linha de resumo */
/* .summary-row {
  background: var(--bg-primary);
  border-top: 2px solid var(--primary);
} */

.summary-row td {
  padding: 15px 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Linhas vencedoras/perdedoras */
.winner-row {
  background: rgba(34, 197, 94, 0.03);
}

.loser-row {
  background: rgba(239, 68, 68, 0.02);
}

/* Responsividade do DataTables */
@media screen and (max-width: 768px) {
  .datatable-header {
    flex-direction: column;
    gap: 15px;
  }

  .dt-search input {
    width: 100%;
    min-width: unset;
  }

  .datatable-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .dt-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  #scratchCardsDataTable tbody tr {
    display: block;
    margin-bottom: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
  }

  #scratchCardsDataTable thead {
    display: none;
  }

  #scratchCardsDataTable td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
  }

  #scratchCardsDataTable td:last-child {
    border-bottom: none;
  }

  #scratchCardsDataTable td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 10px;
  }

  .transactions-table-wrapper {
    padding: 10px;
  }

  .summary-row td {
    padding: 8px 0;
  }
}

/* ===== ANIMAÇÕES PARA SÍMBOLOS VENCEDORES ===== */
@keyframes winnerGlow {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.4);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 1),
      0 0 40px rgba(255, 215, 0, 0.8),
      0 0 60px rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
  }

  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.4);
    transform: scale(1);
  }
}

@keyframes goldPulse {

  0%,
  100% {
    background: linear-gradient(135deg, #FFD700, #FFA500);
  }

  50% {
    background: linear-gradient(135deg, #FFED4E, #FFD700);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(200%) rotate(45deg);
  }
}

/* Grade de símbolos da raspadinha */
.scratch-symbols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Abaixo do canvas */
  opacity: 1;
  /* Sempre visível */
  transition: opacity 0.3s ease;
}

.scratch-symbols-grid.revealed {
  opacity: 1 !important;
  z-index: 1;
}

/* Canvas de raspagem */
#scratchCanvas {
  z-index: 5;
  /* Acima dos símbolos durante a raspagem */
  position: absolute;
  top: 0;
  left: 0;
}

.symbol-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 2em;
  font-weight: bold;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Símbolos vencedores com destaque DOURADO */
.symbol-cell.winning-symbol {
  background: linear-gradient(135deg, #FFD700, #FFA500) !important;
  border: 3px solid #FFD700 !important;
  color: #fff !important;
  font-weight: bold !important;
  font-size: 1.3em !important;
  animation: winnerGlow 1.5s ease-in-out infinite, goldPulse 2s ease-in-out infinite !important;
  transform: scale(1.15) !important;
  z-index: 100 !important;
  position: relative !important;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8),
    0 8px 25px rgba(255, 215, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
    0 0 20px rgba(255, 165, 0, 0.6) !important;
}

/* Efeito de brilho dourado */
.symbol-cell.winning-symbol::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 215, 0, 0.3) 50%,
      transparent 70%);
  animation: shine 2s infinite;
  z-index: -1;
  border-radius: inherit;
}

/* Partículas douradas ao redor */
.symbol-cell.winning-symbol::after {
  content: '✨';
  position: absolute;
  font-size: 20px;
  animation: sparkle 1s ease-in-out infinite;
  top: -10px;
  right: -10px;
}

@keyframes sparkle {

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

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

.compact-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-color: var(--primary);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.compact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #28a745, #20c997);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.compact-card:hover::before {
  opacity: 1;
}

.compact-card.scratched {
  opacity: 0.9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-color: #28a745;
}

.compact-card::before {
  background: linear-gradient(90deg, #a7a528, #c9b020);
  opacity: 1;
}

.compact-card.scratched::before {
  background: linear-gradient(90deg, #28a745, #20c997);
  opacity: 1;
}

.compact-card-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.card-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgb(255 193 7 / 14%);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-icon {
  font-size: 0.8rem;
}

.compact-card.scratched .status-text {
  color: #28a745;
}

.compact-card.scratched .card-status {
  background: rgba(48, 255, 7, 0.14);
}

.status-icon.scratched {
  color: #28a745;
}

.status-icon.pending {
  color: #ffc107;
}

.status-text {
  color: #ffc107;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.8;
}

.card-type-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-type-badge.basic {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.card-type-badge.silver {
  background: linear-gradient(135deg, #b8c6db, #f5f7fa);
  color: #333;
}

.card-type-badge.gold {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: white;
}

.card-type-badge.premium {
  background: linear-gradient(135deg, #ff0084, #ffcd00);
  color: white;
}

.scratched-badge {
  background: #28a745;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.compact-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.card-symbols-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.symbol-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.symbol-item.winning {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.symbol-item:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-price,
.card-prize {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-price {
  color: white;
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.card-price strong {
  color: var(--primary);
  font-weight: 600;
}

.card-prize {
  color: #28a745;
  border-left: 3px solid #28a745;
}

.card-prize.winner {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
  border-left-color: #28a745;
  font-weight: 600;
}

.card-price i,
.card-prize i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.card-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  border-radius: 10px;
}

.card-info {
  flex: 1;
}

.card-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.card-info .card-id {
  font-weight: 600;
  color: var(--text-primary);
}

.card-info .card-prize {
  color: #28a745;
  font-weight: 600;
}

.compact-card-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.btn-play-card {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  justify-content: center;
  gap: 8px;
}

.btn-scratch {
  background: linear-gradient(135deg, var(--primary), var(--bg-primary));
  color: white;
  box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
  margin-top: 12px;
}

.btn-scratch:hover {
  transform: scale(.95);
  box-shadow: 0 4px 12px rgba(var(--primary), 0.3);
}

.btn-view {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.btn-play-card:active {
  transform: translateY(0);
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
}

.empty-state i {
  font-size: 4rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.empty-state .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary), var(--bg-primary));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.empty-state .btn-primary i {
  font-size: 1.2rem;
  color: white;
}

.empty-state .btn-primary:hover {
  transform: scale(.95);
}

/* Botão Ir para a Loja */
.btn-shop {
  background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
  color: white !important;
  border: none !important;
  padding: 15px 35px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 25px !important;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  overflow: hidden !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.btn-shop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-shop:hover::before {
  width: 300px;
  height: 300px;
}

.btn-shop:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6) !important;
  background: linear-gradient(135deg, #f7931e, #ff6b35) !important;
}

.btn-shop:active {
  transform: translateY(-2px) scale(1.02) !important;
}

.btn-shop i {
  margin-right: 8px;
  font-size: 1.2rem;
  animation: shopIconPulse 2s ease-in-out infinite;
}

@keyframes shopIconPulse {

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

  50% {
    transform: scale(1.1);
  }
}

/* ===== LAYOUT DE DUAS COLUNAS ===== */
.scratch-play-container {
  /* display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px; */
  max-width: 1400px;
  margin: 0 auto;
}

/* Coluna Esquerda */
.scratch-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Coluna Direita */
.scratch-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 600px;
}

/* Card da Cartela Selecionada */
.selected-card-display {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
}

.selected-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.selected-card-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.selected-card-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.selected-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-prize-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.prize-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.prize-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4CAF50;
}

.selected-card-info {
  padding: 15px 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-item strong {
  color: var(--primary);
}

/* Card de Opções de Compra */
.purchase-options-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
}

.purchase-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--primary);
}

.purchase-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.purchase-btn {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--primary);
  min-height: 40px;
}

.purchase-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.purchase-btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.purchase-btn.primary:hover {
  background: var(--primary-hover);
}

.purchase-btn.package {
  background: var(--bg-primary);
  border-color: var(--primary);
  color: var(--primary);
}

.purchase-btn.package:hover {
  background: var(--primary);
  color: white;
}

.purchase-btn.auto-play,
.purchase-btn.turbo {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.purchase-btn.auto-play:hover,
.purchase-btn.turbo:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.discount-badge {
  background: #4CAF50;
  color: white;
  padding: 3px 6px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 6px;
}

.btn-price {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.btn-price .currency {
  color: #4CAF50;
  font-size: 0.85rem;
}

.btn-settings {
  color: var(--text-secondary);
}

.btn-arrow {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.btn-arrow.active {
  transform: rotate(180deg);
}

/* ===== DROPDOWN DE QUANTIDADE GAMIFICADO ===== */
.quantity-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 100;
  overflow: hidden;
  animation: dropdownSlideIn 0.3s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.dropdown-header {
  padding: 20px;
  background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
  border-bottom: 1px solid #444;
}

.dropdown-header h5 {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quantity-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #444;
  padding: 2px;
}

.quantity-option {
  background: #333;
  border: none;
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.quantity-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.quantity-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.quantity-option:hover::before {
  opacity: 1;
}

.quantity-option.selected {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.quantity-option.selected::before {
  opacity: 1;
}

.quantity-option .discount-badge {
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 10px;
  background: #FFD700;
  color: #333;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dropdown-footer {
  padding: 20px;
  background: linear-gradient(135deg, #333 0%, #2a2a2a 100%);
  border-top: 1px solid #444;
}

.confirm-purchase-btn {
  width: 100%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border: none;
  border-radius: 10px;
  padding: 16px 20px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.confirm-purchase-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.confirm-purchase-btn:active {
  transform: translateY(0);
}

.confirm-purchase-btn i {
  font-size: 1.2rem;
  margin-right: 8px;
}

.selected-price {
  font-size: 1rem;
  font-weight: 700;
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ===== MODAL DE CONFIRMAÇÃO DE COMPRA ===== */
.purchase-confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.scratch-modal-content {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

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

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

.scratch-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

.scratch-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.scratch-modal-header h3 {
  margin: 0;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.scratch-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(90deg);
}

.scratch-modal-body {
  padding: 24px;
}

.card-preview {
  text-align: center;
  margin-bottom: 28px;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: 16px;
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
  animation: cardShine 3s infinite;
}

@keyframes cardShine {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.card-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 3px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.card-preview img:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card-preview h4 {
  margin: 0 0 12px 0;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.card-preview .card-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.quantity-selection h5 {
  margin: 0 0 20px 0;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.quantity-selection h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 2px;
}

.quantity-options-modal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--bg-primary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.quantity-option-modal {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  padding: 18px 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.quantity-option-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.quantity-option-modal:hover {
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quantity-option-modal:hover::before {
  opacity: 0.1;
}

.quantity-option-modal.selected {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quantity-option-modal.selected::before {
  opacity: 1;
}

.quantity-option-modal .discount-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {

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

  50% {
    transform: scale(1.05);
  }
}

.purchase-summary {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: 12px;
  padding: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.purchase-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  animation: summaryShine 4s infinite;
}

@keyframes summaryShine {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.summary-item:first-child {
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.summary-item span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.summary-item span:last-child {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scratch-modal-footer {
  display: flex;
  gap: 16px;
  padding: 24px 28px;
  border-top: 2px solid var(--border-color);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: 0 0 20px 20px;
  position: relative;
  overflow: hidden;
}

.scratch-modal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: footerShine 3s infinite;
}

@keyframes footerShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.scratch-modal-footer .btn-secondary,
.scratch-modal-footer .btn-primary {
  flex: 1;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  position: relative;
  z-index: 1;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scratch-modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.scratch-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scratch-modal-footer .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.scratch-modal-footer .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.scratch-modal-footer .btn-primary:active {
  transform: translateY(-1px);
}

.scratch-modal-footer .btn-primary i {
  margin-right: 10px;
  font-size: 1.1rem;
}

/* ===== MENSAGEM DE ERRO DO MODAL ===== */
.scratch-modal-error {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: errorSlideIn 0.3s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.scratch-modal-error i {
  font-size: 1.2rem;
  color: #fff;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* ===== MODAL DE RESULTADO ===== */
.scratch-result-modal .scratch-modal-content {
  max-width: 400px;
  text-align: center;
}

.scratch-result-modal .scratch-modal-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.result-content {
  padding: 20px 0;
}

.prize-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: prizePulse 1s infinite;
}

@keyframes prizePulse {

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

  50% {
    transform: scale(1.1);
  }
}

.result-message {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.prize-animation {
  font-size: 4rem;
  margin: 20px 0;
  animation: bounce 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  20% {
    transform: translateY(-8px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  40% {
    transform: translateY(-20px);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  60% {
    transform: translateY(-12px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  80% {
    transform: translateY(-4px);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

.lose-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 20px 0;
  line-height: 1.5;
}

.lose-animation {
  font-size: 4rem;
  margin: 20px 0;
  animation: shake 0.5s infinite;
}

@keyframes shake {

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

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.scratch-result-modal .scratch-modal-footer {
  justify-content: center;
  gap: 12px;
}

.scratch-result-modal .btn-secondary,
.scratch-result-modal .btn-primary {
  min-width: 120px;
}

/* ===== ANIMAÇÃO DO TOAST ===== */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

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

/* Saldo do Usuário */
.user-balance-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
}

.balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.balance-value {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 1.2rem;
  font-weight: bold;
}

.balance-value .currency {
  color: #4CAF50;
  font-size: 1rem;
}


/* Responsividade */
/* @media (max-width: 1200px) {
  .scratch-play-container {
    grid-template-columns: 320px 1fr;
    gap: 15px;
  }
} */

@media (max-width: 768px) {
  .my-scratch {
    padding: 15px;
  }

  /* .scratch-play-container {
    grid-template-columns: 1fr;
    gap: 15px;
  } */

  .scratch-left-column {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 0 0 12px 12px;
    margin: -15px -15px 15px -15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .selected-card-display {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px;
  }

  .selected-card-header {
    display: none;
  }

  .selected-card-image {
    width: 100px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
  }

  .card-prize-overlay {
    display: none;
  }

  .selected-card-info {
    flex: 1;
    padding: 0;
  }

  .info-item {
    font-size: 0.8rem;
    padding: 4px 0;
    gap: 5px;
  }

  .purchase-options-card {
    margin-top: 10px;
    padding: 12px;
  }

  .purchase-title {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .purchase-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
  }

  .purchase-btn {
    padding: 6px 8px;
    min-height: 36px;
  }

  .btn-content {
    /* flex-direction: column; */
    gap: 4px;
    text-align: center;
  }

  .btn-main {
    flex-direction: column;
    font-size: 0.7rem;
    gap: 2px;
  }

  .btn-main i {
    font-size: 1rem;
  }

  .btn-main span:not(.discount-badge) {
    font-size: 0.65rem;
  }

  /* Responsivo do modal */
  .scratch-modal-content {
    width: 95%;
    max-width: 400px;
    margin: 20px;
  }

  .quantity-options-modal {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .quantity-option-modal {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .scratch-modal-body {
    padding: 16px;
  }

  .scratch-modal-header,
  .scratch-modal-footer {
    padding: 16px 20px;
  }

  .discount-badge {
    font-size: 0.6rem;
    padding: 1px 3px;
  }

  .btn-price {
    font-size: 0.7rem;
  }

  .btn-settings {
    display: none;
  }

  .purchase-btn.auto-play,
  .purchase-btn.turbo {
    display: none;
  }

  .user-balance-display {
    padding: 10px;
    font-size: 0.85rem;
  }

  .balance-value {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .purchase-buttons-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    position: relative;
  }

  .purchase-btn {
    padding: 5px 6px;
    min-height: 32px;
  }

  .btn-content {
    gap: 2px;
  }

  .btn-main {
    font-size: 0.65rem;
  }

  .btn-main i {
    font-size: 0.9rem;
  }

  .btn-price {
    font-size: 0.65rem;
  }

  .purchase-title {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .purchase-options-card {
    padding: 10px;
  }

  .quantity-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 320px;
    z-index: 1000;
    margin-top: 0;
  }

  .quantity-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .quantity-option {
    padding: 14px 8px;
    font-size: 1rem;
  }

  .dropdown-header {
    padding: 15px;
  }

  .dropdown-header h5 {
    font-size: 0.9rem;
  }

  .dropdown-footer {
    padding: 15px;
  }

  .confirm-purchase-btn {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  /* Overlay para mobile */
  .quantity-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
  }
}

.my-scratch section,
.my-scratch .scratch-header-enhanced {
  max-width: 1400px;
  margin: 0 auto;
}

.scratch-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

/* ===== SISTEMA DE NAVEGAÇÃO ===== */
.scratch-navigation {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 6px;
  border: 1px solid var(--border-color);
  max-width: 500px;
  width: 100%;
  margin: auto auto 20px;
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-tab:hover {
  color: var(--primary);
  background: var(--bg-primary);
}

.nav-tab.active {
  background: var(--primary);
  color: white;
}

.nav-tab i {
  font-size: 1.2rem;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-tab.active .tab-indicator {
  width: 80%;
}

/* ===== SEÇÕES DE CONTEÚDO ===== */
.section-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.section-content.active {
  display: block;
}

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

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

/* ===== LOJA DE RASPADINHAS ===== */
.shop-header-compact {
  text-align: center;
  margin-bottom: 20px;
}

.shop-title-compact {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.shop-title-compact i {
  color: var(--primary);
  font-size: 1.5rem;
}

.shop-subtitle-compact {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.ticket-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
  padding: 5px;
}

/* ===== NOVOS CARDS GAMIFICADOS ===== */
.ticket-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border-radius: 12px;
  border: 2px solid rgba(42, 193, 185, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  max-width: 300px;
  /* min-height: 320px; */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ticket-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg,
      rgba(var(--card-color-rgb), 0.15) 0%,
      rgba(var(--card-color-rgb), 0.05) 50%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.ticket-card[data-tier="basic"] {
  --card-color-rgb: 42, 193, 185;
  border-bottom: 3px solid #2ac1b9;
}

.ticket-card[data-tier="silver"] {
  --card-color-rgb: 42, 193, 185;
  border-bottom: 3px solid #2ac1b9;
}

.ticket-card[data-tier="gold"] {
  --card-color-rgb: 42, 193, 185;
  border-bottom: 3px solid #2ac1b9;
}

.ticket-card[data-tier="premium"] {
  --card-color-rgb: 42, 193, 185;
  border-bottom: 3px solid #2ac1b9;
}

.ticket-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(var(--card-color-rgb), 0.3);
  border-color: rgba(var(--card-color-rgb), 0.5);
}

.ticket-card:hover .card-glow {
  opacity: 1;
}

.ticket-card:hover .buy-card-btn {
  background: linear-gradient(135deg,
      rgba(var(--card-color-rgb), 1) 0%,
      rgba(var(--card-color-rgb), 0.8) 100%);
}

/* Card Glow Effect */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(var(--card-color-rgb), 0.2) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

/* Badges */
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-badge i {
  font-size: 0.8rem;
}

.card-badge.premium {
  background: linear-gradient(135deg, #64748b, #475569);
}

.card-badge.vip {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-badge.jackpot {
  background: linear-gradient(135deg, #e11d48, #be123c);
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {

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

  50% {
    transform: scale(1.05);
  }
}

/* Card Image Section */
.card-image-section {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(0, 0, 0, 0.1) 100%);
  border-radius: 12px 12px 0 0;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 12px 12px 0 0;
}

.ticket-card:hover .card-image {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  flex: 1;
  padding: 12px 16px 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.card-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-max-prize {
  font-size: 0.7rem;
  color: rgba(var(--card-color-rgb), 1);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.card-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.3;
}


/* Card Action */
.card-action {
  padding: 10px 16px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-card-btn {
  width: 100%;
  background: linear-gradient(135deg,
      rgba(var(--card-color-rgb), 0.8) 0%,
      rgba(var(--card-color-rgb), 0.6) 100%);
  color: white;
  border: 1px solid rgba(var(--card-color-rgb), 0.3);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(var(--card-color-rgb), 0.3);
}

.buy-card-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.buy-card-btn:hover::before {
  width: 300px;
  height: 300px;
}

.buy-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--card-color-rgb), 0.4);
}

.buy-card-btn:active {
  transform: translateY(0);
}

.btn-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.btn-text i {
  font-size: 1.3rem;
}

.btn-price {
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-currency {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.price-value {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Card Rewards Link */
.card-rewards-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 6px;
}

.card-rewards-link:hover {
  color: rgba(var(--card-color-rgb), 1);
  background: rgba(var(--card-color-rgb), 0.1);
  transform: translateX(3px);
}

.card-rewards-link i:first-child {
  font-size: 0.9rem;
}

.card-rewards-link i:last-child {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.card-rewards-link:hover i:last-child {
  transform: translateX(3px);
}

/* ===== ESTATÍSTICAS DO SHOPPING CLEAN ===== */
.shop-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--bg-primary);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(42, 193, 185, 0.1);
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.stat-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), #2ac1b9);
  border-radius: 10px;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(42, 193, 185, 0.3);
}

/* .live-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  animation: pulse-indicator 2s infinite;
} */

@keyframes pulse-indicator {

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

  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.stat-detail {
  font-size: 0.75rem;
  color: rgba(42, 193, 185, 0.7);
  font-weight: 500;
  margin-top: 2px;
}

/* ===== MINHAS RASPADINHAS ===== */
.my-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.my-cards-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cards-filters {
  display: flex;
  gap: 10px;
  background: var(--bg-secondary);
  padding: 5px;
  border-radius: 10px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: scale(.95);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-secondary) 100%);
  color: white;
}

/* ===== GRID DE CARTELAS ===== */
.my-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: 15px;
  border: 2px dashed var(--border-color);
}

.empty-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.empty-state-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.empty-state-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.stat-mini strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.stat-mini span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Estados vazios dos filtros */
.filter-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.filter-empty-state .empty-icon {
  font-size: 2.5rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.filter-empty-state h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.filter-empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.9rem;
}





.scratch-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #764ba2;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.scratch-symbol::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.scratch-controls {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-secondary {
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== CARTELAS INDIVIDUAIS ===== */
.user-scratch-card {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.user-scratch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.user-scratch-card.scratched {
  opacity: 0.7;
  cursor: default;
}

.user-scratch-card.scratched:hover {
  transform: none;
}

.card-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

.card-type-badge.basic {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.card-type-badge.silver {
  background: linear-gradient(135deg, #9E9E9E, #616161);
}

.card-type-badge.gold {
  background: linear-gradient(135deg, #FF9800, #F57C00);
}

.card-type-badge.premium {
  background: linear-gradient(135deg, #E91E63, #AD1457);
}

.card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin: 0;
}

.card-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.card-scratched-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.play-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
}

/* ===== MODAL DE CONFIRMAÇÃO DE COMPRA ===== */
.purchase-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.purchase-modal-content {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

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

.purchase-modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.purchase-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px 0;
}

.purchase-modal-subtitle {
  color: var(--text-secondary);
  margin: 0;
}

.purchase-details {
  background: var(--bg-secondary);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.purchase-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.purchase-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.purchase-item-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.purchase-item-value {
  color: var(--primary);
  font-weight: 700;
}

.purchase-total {
  font-size: 1.2rem;
  color: var(--primary);
}

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

.scratch-modal-btn {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scratch-modal-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.scratch-modal-btn-confirm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.scratch-modal-btn:hover {
  transform: translateY(-2px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .scratch-navigation {
    margin-bottom: 20px;
  }

  .nav-tab {
    padding: 10px 12px;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 4px;
    position: relative;
  }

  .nav-tab i {
    font-size: 1.1rem;
  }

  .nav-tab span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .nav-tab .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    margin-left: 0;
  }

  .shop-title {
    font-size: 2rem;
  }

  .ticket-shop-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 5px;
  }

  .shop-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .my-cards-header {
    flex-direction: column;
  }

  .cards-filters {
    justify-content: center;
  }

  .my-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .scratch-game-header {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .current-card-info {
    text-align: center;
  }

  .scratch-canvas-container {
    overflow-x: auto;
    padding: 10px;
  }

  #scratchCanvas {
    width: 280px;
    height: 210px;
  }

  .scratch-card-content {
    width: 280px;
    height: 210px;
    padding: 12px;
  }

  .scratch-symbol {
    font-size: 1.5rem;
  }

  .purchase-modal-content {
    margin: 20px;
    padding: 20px;
  }

  .purchase-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .my-scratch {
    padding: 15px;
  }

  .shop-title-compact {
    font-size: 1.4rem;
  }

  /* .ticket-card {
    min-height: 300px;
  } */

  .card-title {
    font-size: 1.1rem;
  }

  .card-image-section {
    height: 100px;
  }

  .btn-price {
    padding: 5px 8px;
  }

  .price-value {
    font-size: 0.9rem;
  }

  .my-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .user-scratch-card {
    padding: 12px;
  }

  .card-icon {
    font-size: 1.8rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  #scratchCanvas {
    width: 260px;
    height: 195px;
  }

  .scratch-card-content {
    width: 260px;
    height: 195px;
    padding: 10px;
  }

  .scratch-symbol {
    font-size: 1.1rem;
  }
}

/* ===== ANIMAÇÕES EXTRAS ===== */
@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }

  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.package-badge.jackpot::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  animation: shimmer 2s infinite;
}

.loading-card {
  background: linear-gradient(90deg,
      var(--bg-secondary) 25%,
      var(--bg-primary) 50%,
      var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

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

/* Seção de Prêmios Ao Vivo */
.live-winners-bar {
  padding: 8px 0;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.live-icon {
  width: 40px;
  height: 40px;
  filter: invert(1);
  animation: livePulse 1.5s ease-in-out infinite;
}

.live-text {
  color: #00ff00;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.winners-scroll {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.winners-scroll::before,
.winners-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}

.winners-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.winners-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.winners-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
  /* Removida animação CSS para usar JavaScript */
}

/* Classe desabilitada - usando JavaScript para animação tipo slide */
.winners-track.animate-scroll-disabled {
  animation: scrollLeft 30s linear infinite;
}

.winner-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  margin-right: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  white-space: nowrap;
}

.winner-icon {
  margin-right: 10px;
  color: #ffd700;
  font-size: 1rem;
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.winner-name {
  color: var(--text-primary);
  font-weight: 600;
}

.winner-prize {
  color: #4ade80;
  font-weight: 500;
}

.winner-time {
  color: var(--text-secondary);
  font-size: 0.75rem;
  opacity: 0.7;
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #0f1a23;
  flex-shrink: 0;
  min-width: 180px;
  margin: 10px;
  border-radius: 10px;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgb(0 0 0 / 20%);
}



.winner-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.winner-name {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.winner-prize {
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 1.1;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }

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









@keyframes iconGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
    transform: scale(1);
  }

  100% {
    filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.6));
    transform: scale(1.05);
  }
}

/* Enhanced Header Styles */
.scratch-header-enhanced {
  position: relative;
  text-align: center;
  margin-bottom: 25px;
  padding: 20px 15px;
  /* background: linear-gradient(135deg, rgba(42, 193, 185, 0.05) 0%, rgba(18, 29, 39, 0.8) 50%, rgba(42, 193, 185, 0.05) 100%); */
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
  /* border: 1px solid rgba(42, 193, 185, 0.1); */
}

.header-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(42, 193, 185, 0.08), rgba(42, 193, 185, 0.03));
  animation: floatCircle 8s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  top: 10px;
  right: -30px;
  animation-delay: 3s;
}

.circle-3 {
  width: 50px;
  height: 50px;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 6s;
}

.scratch-header-content {
  position: relative;
  z-index: 2;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.title-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), #2ac1b9);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
  animation: iconPulse 4s ease-in-out infinite;
}

.title-icon-container i {
  font-size: 1.6rem;
  color: white;
  z-index: 2;
}

.icon-shine {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 15px;
  height: 15px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
  border-radius: 50%;
  /* animation: shine 3s ease-in-out infinite; */
}

.scratch-title-enhanced {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--text-secondary), var(--primary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 1px;
  animation: gradientShift 6s ease-in-out infinite;
  line-height: 1.2;
}

.scratch-subtitle-enhanced {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 15px 0;
  font-weight: 400;
  opacity: 0.85;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.divider-line {
  height: 1px;
  width: 50px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  border-radius: 1px;
}

.divider-gem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--primary), #2ac1b9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(42, 193, 185, 0.3);
  animation: gemSpin 12s linear infinite;
}

.divider-gem i {
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: var(--primary);
  font-size: 0.9rem;
  animation: floatStar 6s ease-in-out infinite;
  opacity: 0.4;
}

.star-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.star-2 {
  top: 25%;
  right: 15%;
  animation-delay: 1.5s;
}

.star-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 3s;
}

/* Animations */
@keyframes floatCircle {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.2;
  }

  50% {
    transform: translateY(-10px) rotate(90deg);
    opacity: 0.4;
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(42, 193, 185, 0.4);
  }
}

@keyframes shine {

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

  50% {
    opacity: 0.9;
    transform: scale(1.1);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

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

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

@keyframes floatStar {

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

  50% {
    transform: translateY(-8px) scale(1.1);
    opacity: 0.6;
  }
}

.scratch-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease;
}

.scratch-title {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scratch-title:hover {
  transform: translateY(-2px);
}

.scratch-title i {
  font-size: 2.1rem;
  color: #ff6b6b;
  animation: iconGlow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
}

.scratch-subtitle {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin: 0;
  font-weight: 500;
  opacity: 0.9;
}

/* Stats Section */
.scratch-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
}



.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

/* Info Section */
.scratch-info {
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scratch-info h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.scratch-info ol {
  padding-left: 20px;
}

.scratch-info li {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

/* Prizes Section */
.scratch-prizes {
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scratch-prizes h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.prize-item:hover {
  transform: translateX(5px);
}

.prize-symbol {
  font-size: 1.5rem;
  letter-spacing: 5px;
}

.prize-value {
  font-weight: bold;
  color: #4CAF50;
  font-size: 1.1rem;
}

/* History Section */
.scratch-history {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scratch-history h2 {
  color: #333;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.history-list {
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #ccc;
  transition: all 0.3s ease;
}

.history-item.won {
  border-left-color: #4CAF50;
  background: #f1f8f4;
}

.history-item.lost {
  border-left-color: #f44336;
  background: #fef5f5;
}

.history-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.history-time {
  font-size: 0.9rem;
  color: #666;
}

.history-result {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-result i {
  font-size: 1.1rem;
}

.no-history {
  text-align: center;
  padding: 40px;
  color: #999;
}

.no-history i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Modal Styles */
.scratch-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.scratch-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-modal-dialog {
  max-width: 500px;
  width: 90%;
  margin: auto;
}

.scratch-modal-content-alt {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease;
  position: relative;
  z-index: 10000;
}

.scratch-modal-header-alt {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scratch-modal-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
}

.scratch-modal-header-alt .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.scratch-modal-header-alt .close:hover {
  color: #333;
}

.scratch-modal-body-alt {
  padding: 25px;
}

.ticket-options {
  display: grid;
  gap: 15px;
}

.ticket-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.ticket-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.ticket-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.ticket-quantity {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.ticket-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4CAF50;
}

.ticket-discount {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #ff5722;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: bold;
}

.scratch-modal-footer-alt {
  padding: 20px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.scratch-modal-footer-alt .btn {
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scratch-modal-footer-alt .btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.scratch-modal-footer-alt .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.scratch-modal-backdrop-alt {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

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

@keyframes gradient-rotate {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ===== PURCHASE SECTION STYLES ===== */
.purchase-section {
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(42, 193, 185, 0.3);
  position: relative;
  overflow: hidden;
}

.purchase-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(42, 193, 185, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.purchase-card-preview {
  width: 100%;
  height: 150px;
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #2ac1b9 0%, #208e88 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(42, 193, 185, 0.3);
}

.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.card-preview-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

.purchase-title {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.purchase-title i {
  color: #2ac1b9;
}

.quantity-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.qty-btn {
  position: relative;
  padding: 12px;
  background: #121d27;
  border: 2px solid rgba(42, 193, 185, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.qty-btn:hover {
  border-color: #2ac1b9;
  background: rgba(42, 193, 185, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
}

.qty-btn.active {
  border-color: #2ac1b9;
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.2) 0%, rgba(32, 142, 136, 0.2) 100%);
}

.qty-number {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #2ac1b9;
  letter-spacing: -1px;
  text-shadow: 0 2px 6px rgba(42, 193, 185, 0.3);
  line-height: 1;
}

.qty-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.btn-purchase-now {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #2ac1b9 0%, #208e88 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
}

.btn-purchase-now::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-purchase-now:hover::before {
  width: 300px;
  height: 300px;
}

.btn-purchase-now::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #2ac1b9, #fff, #2ac1b9);
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
  background-size: 400%;
  animation: glowing 20s linear infinite;
}

.btn-purchase-now:hover::after {
  opacity: 1;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

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

.btn-purchase-now:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(42, 193, 185, 0.5);
}

.btn-purchase-now i {
  font-size: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.btn-purchase-now:hover i {
  animation: shake 0.5s ease-in-out infinite;
}

.btn-purchase-now:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 10px rgba(42, 193, 185, 0.3);
}

.btn-purchase-now:disabled {
  background: linear-gradient(135deg, #666 0%, #444 100%);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.btn-purchase-now:disabled::before,
.btn-purchase-now:disabled::after {
  display: none;
}

/* ===== MODAL STYLES FROM JS ===== */
.custom-purchase-modal,
.scratch-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
}

.scratch-modal-container {
  position: relative;
  background: #0f1923;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(42, 193, 185, 0.3);
  z-index: 10000;
}

.scratch-modal-header-custom {
  padding: 20px;
  border-bottom: 1px solid rgba(42, 193, 185, 0.2);
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px 16px 0 0;
}

.scratch-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scratch-modal-title-wrapper i {
  color: #2ac1b9;
  font-size: 24px;
}

.scratch-modal-title-wrapper h2 {
  color: #ffffff;
  font-size: 1.4rem;
  margin: 0;
}

.scratch-modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.scratch-modal-close-btn:hover {
  background: rgba(255, 65, 65, 0.8);
  border-color: #FF4141;
  color: white;
  transform: rotate(90deg);
}

.scratch-modal-body-custom {
  padding: 20px;
  background: #0f1923;
  color: #ffffff;
}

.card-preview-section {
  margin-bottom: 24px;
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
  border: 1px solid rgba(42, 193, 185, 0.2);
  padding: 16px;
  border-radius: 12px;
}

.preview-info h3 {
  color: #2ac1b9;
  margin-bottom: 8px;
  font-size: 20px;
}

.preview-info p {
  color: #a0a0a0;
  margin: 0;
}

.preview-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #a0a0a0;
}

.stat-item i {
  color: #2ac1b9;
}

.stat-item strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.quantity-section {
  margin: 24px 0;
}

.quantity-section h4 {
  margin-bottom: 16px;
  color: #ffffff;
}

.quantity-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(42, 193, 185, 0.3);
  border-radius: 8px;
  background: #121d27;
  color: #2ac1b9;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.qty-btn:hover {
  border-color: #2ac1b9;
  background: rgba(42, 193, 185, 0.1);
  transform: scale(1.05);
}

.qty-btn:active,
.qty-btn.holding {
  transform: scale(0.95);
  background: rgba(42, 193, 185, 0.2);
  box-shadow: 0 0 0 3px rgba(42, 193, 185, 0.2);
}

.qty-input {
  width: 80px;
  height: 40px;
  border: 2px solid rgba(42, 193, 185, 0.3);
  border-radius: 8px;
  background: #121d27;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.3s;
}

.qty-input:focus {
  outline: none;
  border-color: #2ac1b9;
  box-shadow: 0 0 0 3px rgba(42, 193, 185, 0.1);
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

.quick-qty-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-qty-btn {
  min-width: 50px;
  width: calc(200px / 6);
  height: calc(200px / 6);
  padding: 0;
  border: 2px solid rgba(42, 193, 185, 0.3);
  border-radius: 8px;
  background: #121d27;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
}

.quick-qty-btn:hover {
  border-color: #2ac1b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.1) 0%, rgba(32, 142, 136, 0.1) 100%);
}

.quick-qty-btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #2ac1b9 0%, #208e88 100%);
  border-color: #2ac1b9;
  color: #ffffff;
}

.qty-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.purchase-summary {
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
  border: 1px solid rgba(42, 193, 185, 0.2);
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #a0a0a0;
}

.summary-row.final {
  padding-top: 8px;
  border-top: 1px solid rgba(42, 193, 185, 0.2);
  font-weight: bold;
  color: #ffffff;
}

.summary-row .positive {
  color: #2ac1b9;
}

.summary-row .negative {
  color: #FF4141;
}

.scratch-modal-footer-custom {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(42, 193, 185, 0.2);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-radius: 0 0 16px 16px;
}

.btn-cancel,
.btn-confirm,
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.btn-cancel,
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-cancel:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-confirm,
.btn-primary {
  background: linear-gradient(135deg, #2ac1b9 0%, #208e88 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
}

.btn-confirm:hover,
.btn-primary:hover {
  background: linear-gradient(135deg, #208e88 0%, #2ac1b9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 193, 185, 0.4);
}

/* Result Modals */
.win-modal .scratch-modal-container,
.lose-modal .scratch-modal-container {
  background: #0f1923;
  border: 2px solid rgba(42, 193, 185, 0.3);
  position: relative;
}

.win-modal .scratch-modal-close-btn,
.lose-modal .scratch-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10001;
}

.win-header,
.lose-header {
  text-align: center;
  padding: 30px 10px 10px;
  background: linear-gradient(135deg, #121d27 0%, #0f1923 100%);
  border-radius: 16px 16px 0 0;
  position: relative;
}

.win-animation,
.lose-animation {
  font-size: 64px;
  margin-bottom: 16px;
}

.win-animation {
  color: #FFD700;
  animation: bounce 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.lose-animation {
  color: #FF4141;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  25% {
    transform: translateY(-12px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  50% {
    transform: translateY(-20px);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  75% {
    transform: translateY(-8px);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

.win-amount {
  font-size: 36px;
  font-weight: bold;
  color: #2ac1b9;
  margin-top: 12px;
}

.win-body,
.lose-body {
  padding: 20px;
  text-align: center;
  color: #ffffff;
}

.balance-update {
  background: rgba(42, 193, 185, 0.1);
  border: 1px solid rgba(42, 193, 185, 0.3);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  display: inline-block;
  color: #2ac1b9;
}

.win-footer,
.lose-footer {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(42, 193, 185, 0.2);
  display: flex;
  gap: 12px;
  justify-content: center;
  border-radius: 0 0 16px 16px;
}

/* Toast */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #121d27;
  border: 1px solid rgba(42, 193, 185, 0.3);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10001;
  animation: slideIn 0.3s;
}

.custom-toast.toast-success {
  background: #083D3A;
  border-color: #2ac1b9;
  color: #2ac1b9;
}

.custom-toast.toast-error {
  background: #330D0D;
  border-color: #FF4141;
  color: #FF4141;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

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

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

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

@keyframes bounce {
  0% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  50% {
    transform: translateY(-10px);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@keyframes winnerGlow {
  0% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }

  100% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
  }
}

@keyframes shake {

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

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}







.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.status-label {
  color: #a0a0a0;
  font-size: 13px;
}

.status-value {
  color: #2ac1b9;
  font-weight: 600;
  font-size: 14px;
}

/* Prize Table */
.prize-table-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.05) 0%, rgba(32, 142, 136, 0.05) 100%);
  border-radius: 8px;
  border: 1px solid rgba(42, 193, 185, 0.1);
  transition: all 0.3s;
}

.prize-item:hover {
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.1) 0%, rgba(32, 142, 136, 0.1) 100%);
  transform: translateX(5px);
}

.prize-symbol {
  font-size: 20px;
  letter-spacing: 2px;
}

.prize-value {
  color: #2ac1b9;
  font-weight: bold;
  font-size: 14px;
}

/* Achievements */
.achievement-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.5;
  transition: all 0.3s;
}

.achievement-badge.unlocked {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

.achievement-badge i {
  font-size: 24px;
  color: #666;
}

.achievement-badge.unlocked i {
  color: #FFD700;
}

.achievement-badge span {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.achievement-badge.unlocked span {
  color: #FFD700;
}



/* Scratch Prizes Section */
.scratch-prizes-section {
  margin: 40px 0;
  transition: all 0.3s ease;

  /* padding: 30px; */
  /* background: linear-gradient(135deg, rgba(42, 193, 185, 0.03) 0%, rgba(18, 29, 39, 0.95) 50%, rgba(42, 193, 185, 0.03) 100%); */
  /* border-radius: 15px; */
  /* border: 1px solid rgba(42, 193, 185, 0.1); */
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
}

/* Destaque temporário quando a seção é selecionada */
.scratch-prizes-section.highlight-section {
  padding: 30px;
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.1) 0%, rgba(18, 29, 39, 0.95) 50%, rgba(42, 193, 185, 0.1) 100%);
  border-radius: 15px;
  border: 2px solid rgba(42, 193, 185, 0.3);
  box-shadow: 0 0 30px rgba(42, 193, 185, 0.3), 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: pulseHighlight 0.5s ease-in-out;
}

@keyframes pulseHighlight {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

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

.prizes-title {
  text-align: start;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.prizes-title i {
  color: #ffd700;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.prizes-carousel {
  overflow-y: auto;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  margin: 0 auto;
}

.prizes-carousel::before,
.prizes-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  pointer-events: none;
  z-index: 2;
}

.prizes-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.prizes-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.prizes-track {
  display: flex;
  gap: 20px;
}

.prizes-carousel:hover .prizes-track {
  animation-play-state: paused;
}

.prize-card {
  position: relative;
  background: linear-gradient(145deg,
      rgba(42, 193, 185, 0.1) 0%,
      rgba(15, 25, 35, 0.95) 100%);
  border: 1px solid rgba(42, 193, 185, 0.25);
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prize-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(42, 193, 185, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.prize-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.prize-card:hover::before {
  left: 100%;
}

.prize-card.featured {
  border-color: #ffd700;
  background: linear-gradient(145deg,
      rgba(255, 215, 0, 0.08) 0%,
      rgba(15, 25, 35, 0.9) 100%);
}

.prize-card.featured:hover {
  transform: translateY(-3px);
}

.prize-medal {
  margin-bottom: 20px;
  position: relative;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.medal-circle {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

/* Remover backgrounds das medal-circle - deixar apenas os emojis */
.medal-circle.bronze,
.medal-circle.silver,
.medal-circle.gold,
.medal-circle.platinum,
.medal-circle.diamond,
.medal-circle.legendary {
  background: none;
  color: inherit;
}

.prize-info {
  color: #fff;
}

.prize-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.prize-value {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prize-card.featured .prize-value {
  color: #ffd700;
  font-size: 1.6rem;
}

.prize-highlight {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

/* Animações */
@keyframes prizesScrollLeft {
  0% {
    transform: translateX(0) translateZ(0);
  }

  100% {
    transform: translateX(-33.33%) translateZ(0);
  }
}

@keyframes legendaryGlow {
  0% {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 107, 107, 0.4);
  }

  100% {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 107, 0.7);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .scratch-container {
    padding: 15px;
  }

  /* Enhanced Header Responsive */
  .scratch-header-enhanced {
    padding: 15px 10px;
    margin-bottom: 20px;
  }

  .title-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .title-icon-container {
    width: 45px;
    height: 45px;
  }

  .title-icon-container i {
    font-size: 1.4rem;
  }

  .scratch-title-enhanced {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .scratch-subtitle-enhanced {
    font-size: 1rem;
  }

  .divider-line {
    width: 40px;
  }

  .divider-gem {
    width: 20px;
    height: 20px;
  }

  .divider-gem i {
    font-size: 0.7rem;
  }

  .floating-star {
    font-size: 0.8rem;
  }

  .decoration-circle {
    opacity: 0.3;
  }

  .circle-1 {
    width: 60px;
    height: 60px;
  }

  .circle-2 {
    width: 45px;
    height: 45px;
  }

  .circle-3 {
    width: 35px;
    height: 35px;
  }

  .scratch-title {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
  }

  .scratch-title i {
    font-size: 1.8rem;
  }

  .scratch-subtitle {
    font-size: 1.1rem;
  }

  .scratch-stats {
    grid-template-columns: 1fr;
  }

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

  .prizes-grid {
    grid-template-columns: 1fr;
  }

  .scratch-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .scratch-modal-dialog {
    width: 95%;
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Responsive para seção de prêmios ao vivo */
  .live-winners-bar {
    padding: 6px 0;
  }

  .live-text {
    font-size: 0.75rem;
  }

  .winner-name {
    font-size: 0.7rem;
  }

  .winner-prize {
    font-size: 0.65rem;
  }

  /* Scratch Prizes Responsive */
  .scratch-prizes-section {
    margin: 25px 0;
    /* padding: 20px 15px; */
  }

  .prizes-title {
    font-size: 1.5rem;
    gap: 8px;
  }

  .prizes-title i {
    font-size: 1.3rem;
  }

  .prizes-track {
    gap: 15px;
  }

  .prize-card {
    min-width: 160px;
    width: 160px;
    padding: 15px;
  }

  .medal-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .prize-label {
    font-size: 0.8rem;
  }

  .prize-value {
    font-size: 1.2rem;
  }

  .prize-card.featured .prize-value {
    font-size: 1.3rem;
  }

  .prize-highlight {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
}

/* How to Play Section */
.how-to-play-section {
  margin: 50px 0;
  padding: 40px 30px;
  background: linear-gradient(135deg, rgba(42, 193, 185, 0.03) 0%, rgba(18, 29, 39, 0.95) 50%, rgba(42, 193, 185, 0.03) 100%);
  border-radius: 20px;
  border: 1px solid rgba(42, 193, 185, 0.1);
  position: relative;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

/* .how-to-play-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(42, 193, 185, 0.05), transparent);
  animation: rotate 30s linear infinite;
} */

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

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

.how-to-play-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.how-to-play-title {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.how-to-play-title i {
  color: var(--primary);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(42, 193, 185, 0.5));
}

.how-to-play-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.9;
}

.how-to-play-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
  margin-top: 30px;
  /* Espaço adicional para os números */
  position: relative;
  z-index: 1;
}

.step-card {
  background: linear-gradient(145deg, rgba(42, 193, 185, 0.08) 0%, rgba(15, 25, 35, 0.9) 100%);
  border: 2px solid rgba(42, 193, 185, 0.2);
  border-radius: 15px;
  padding: 35px 25px 25px 25px;
  /* Mais padding no topo para o número */
  position: relative;
  transition: all 0.3s ease;
  overflow: visible;
  /* Mudado de hidden para visible */
  margin-top: 20px;
  /* Espaço para o número não ser cortado */
}

.step-card:hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 20px rgba(42, 193, 185, 0.15);
  background: linear-gradient(145deg, rgba(42, 193, 185, 0.12) 0%, rgba(15, 25, 35, 0.95) 100%);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #2ac1b9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(42, 193, 185, 0.4);
  z-index: 2;
}

.step-number span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
}

.step-content {
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.step-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title i {
  color: var(--primary);
  font-size: 0.9rem;
}

.step-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.game-rules {
  background: rgba(15, 25, 35, 0.6);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(42, 193, 185, 0.1);
  position: relative;
  z-index: 1;
}

.rules-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules-title i {
  color: #ffd700;
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.rules-list li i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--primary);
  font-size: 0.95rem;
}

.rules-list li:hover {
  color: #fff;
  transform: translateX(5px);
}

.tips-section {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.05) 0%, rgba(15, 25, 35, 0.9) 100%);
  border-radius: 15px;
  padding: 30px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  position: relative;
  z-index: 1;
}

.tips-header {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tips-header i {
  color: #ffd700;
  font-size: 1.6rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  animation: pulse 2s infinite;
}

.tips-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tip-card {
  background: rgba(15, 25, 35, 0.8);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.tip-card:hover {
  transform: translateY(-3px);
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.tip-card i {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {

  /* Card Preview Section Responsiva */
  .card-preview-section {
    margin-bottom: 16px;
    padding: 12px;
  }

  .preview-info h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .preview-info p {
    font-size: 0.9rem;
  }

  .preview-stats {
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .stat-item {
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background: rgba(42, 193, 185, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(42, 193, 185, 0.2);
  }

  .stat-item i {
    font-size: 1.1rem;
  }

  .stat-item span {
    font-weight: 600;
  }

  /* Quantity Section Responsiva */
  .quantity-section {
    margin: 16px 0;
  }

  .quantity-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .quantity-input-container {
    gap: 8px;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .qty-input {
    width: 70px;
    height: 36px;
    font-size: 18px;
  }

  .quick-qty-buttons {
    gap: 6px;
  }

  .quick-qty-btn {
    min-width: 40px;
    width: calc(150px / 3);
    height: calc(150px / 3);
    font-size: 16px;
  }

  /* How to Play Section */
  .how-to-play-section {
    padding: 30px 20px;
    margin: 30px 0;
  }

  .how-to-play-title {
    font-size: 1.3rem;
  }

  .how-to-play-subtitle {
    font-size: 0.85rem;
  }

  .how-to-play-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    padding: 20px;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .step-description {
    font-size: 0.8rem;
  }

  .game-rules {
    padding: 20px;
  }

  .rules-title {
    font-size: 1.1rem;
  }

  .rules-list li {
    font-size: 0.85rem;
    padding-left: 25px;
  }

  .tips-section {
    padding: 20px;
  }

  .tips-header h3 {
    font-size: 1.1rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .tip-card {
    padding: 15px;
  }
}

@media (max-width: 480px) {

  /* Card Preview Section Mobile */
  .card-preview-section {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
  }

  .preview-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .preview-info p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .preview-stats {
    gap: 8px;
    margin-top: 10px;
  }

  .stat-item {
    padding: 8px;
    font-size: 0.9rem;
  }

  .stat-item i {
    font-size: 1rem;
  }

  /* Quantity Section Mobile */
  .quantity-section {
    margin: 12px 0;
  }

  .quantity-section h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .quantity-input-container {
    gap: 6px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 6px;
  }

  .qty-input {
    width: 60px;
    height: 32px;
    font-size: 16px;
    border-radius: 6px;
  }

  .quick-qty-buttons {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .quick-qty-btn {
    min-width: 35px;
    width: calc(120px / 3);
    height: calc(120px / 3);
    font-size: 14px;
    font-weight: 700;
  }

  /* Enhanced Header Mobile */
  .scratch-header-enhanced {
    padding: 12px 8px;
  }

  .title-icon-container {
    width: 40px;
    height: 40px;
  }

  .title-icon-container i {
    font-size: 1.2rem;
  }

  .scratch-title-enhanced {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
  }

  .scratch-subtitle-enhanced {
    font-size: 0.9rem;
  }

  .divider-line {
    width: 30px;
  }

  .divider-gem {
    width: 18px;
    height: 18px;
  }

  .divider-gem i {
    font-size: 0.6rem;
  }

  .floating-star {
    font-size: 0.7rem;
  }

  .circle-1 {
    width: 50px;
    height: 50px;
  }

  .circle-2 {
    width: 35px;
    height: 35px;
  }

  .circle-3 {
    width: 25px;
    height: 25px;
  }

  .scratch-title {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .scratch-title i {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .symbol-item {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .scratch-info,
  .scratch-prizes,
  .scratch-history {
    padding: 20px;
  }

  /* Scratch Prizes Mobile */
  .scratch-prizes-section {
    margin: 20px 0;
    padding: 15px 10px;
  }

  .prizes-title {
    font-size: 1.3rem;
    gap: 6px;
    flex-direction: column;
  }

  .prizes-title i {
    font-size: 1.1rem;
  }

  .prizes-track {
    gap: 12px;
    animation: prizesScrollLeft 25s linear infinite;
  }

  .prize-card {
    min-width: 140px;
    width: 140px;
    padding: 12px;
  }

  .prize-card.featured {
    transform: scale(1);
  }

  .prize-card.featured:hover {
    transform: scale(1.02) translateY(-3px);
  }

  .medal-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .medal-circle::before {
    width: 15px;
    height: 15px;
  }

  .prize-label {
    font-size: 0.75rem;
  }

  .prize-value {
    font-size: 1.1rem;
  }

  .prize-card.featured .prize-value {
    font-size: 1.2rem;
  }

  .prize-highlight {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: -6px;
    right: -6px;
  }
}

/* === Filter Empty State === */
.filter-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.filter-empty-state i {
  font-size: 3.5rem;
  color: var(--text-secondary);
  opacity: 0.4;
  margin-bottom: 10px;
}

.filter-empty-state p {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.filter-empty-state span {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 10px;
}

.filter-empty-state .btn-primary {
  margin-top: 10px;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary) 0%, #22a39f 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filter-empty-state .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(42, 193, 185, 0.3);
}

/* =======================================
   ÁREA DE RASPAGEM COMPACTA - LAYOUT OTIMIZADO
   ======================================= */

/* Container Principal Simplificado */
/* Container Compacto */
/* Layout Horizontal */
.scratch-compact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.95) 0%, rgba(10, 15, 25, 0.95) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(42, 193, 185, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Coluna de Informações */
.scratch-info-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(42, 193, 185, 0.2);
}

.info-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #fff;
}

.cards-badge {
  background: rgba(42, 193, 185, 0.15);
  color: #2ac1b9;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Detalhes Compactos */
.info-details {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
}

.info-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  color: #888;
  font-size: 0.9rem;
}

.info-value {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.info-value.gold {
  color: #ffd700;
  font-size: 1rem;
}

/* Progresso Compacto */
.progress-compact {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 0.75rem;
}

.progress-container {
  position: relative;
}

.progress-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.progress-bar-mini {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, #2ac1b9, #3dd4cc);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-target {
  display: block;
  text-align: center;
  color: #ffd700;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Controles Compactos */
.controls-compact {
  display: flex;
  gap: 0.5rem;
}

.btn-compact {
  flex: 1;
  background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
  border: none;
  color: white;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
}

.btn-compact.primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #1a1a2e;
}

.btn-compact i {
  font-size: 0.9rem;
}

/* Canvas Compacto */
.scratch-canvas-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-wrapper-compact {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(42, 193, 185, 0.3);
}

.canvas-wrapper-compact #scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
}

.symbols-grid-compact {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 6px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

.symbols-grid-compact .symbol-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 6px;
  font-size: 2rem;
  color: #fff;
  opacity: 0;
}

/* Mensagem Sem Cartelas Compacta */
.no-cards-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  margin-top: 1rem;
}

.no-cards-compact i {
  font-size: 2rem;
  color: #555;
}

.no-cards-compact span {
  color: #888;
  font-size: 1rem;
}

.btn-buy-compact {
  background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-buy-compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
}

/* Header da Seção */
.scratch-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(42, 193, 185, 0.3);
}

.scratch-section-header .section-title {
  font-size: 1.75rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.scratch-section-header .section-title i {
  color: #2ac1b9;
  font-size: 1.5rem;
}

.scratch-section-header .cards-counter {
  background: rgba(42, 193, 185, 0.1);
  border: 1px solid rgba(42, 193, 185, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #2ac1b9;
  font-weight: 500;
}

/* Área Principal Simplificada */
.scratch-main-area {
  background: linear-gradient(135deg, rgba(20, 30, 40, 0.95) 0%, rgba(10, 15, 25, 0.95) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(42, 193, 185, 0.2);
}

/* Info da Cartela Atual */
.current-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.card-type,
.prize-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.type-label,
.range-label {
  color: #888;
  font-size: 0.9rem;
}

.type-value {
  color: #2ac1b9;
  font-weight: 600;
}

.range-value {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Container Central Redefinido */
.scratch-only-container .scratch-game-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: visible;
  min-height: auto;
}

/* Barra de Progresso Simplificada */
.scratch-only-container .scratch-progress-bar {
  width: 100%;
  max-width: 500px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-label {
  color: #aaa;
  font-size: 0.95rem;
}

.progress-percent {
  color: #2ac1b9;
  font-weight: bold;
  font-size: 1.25rem;
}

.progress-track {
  position: relative;
  height: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ac1b9 0%, #3dd4cc 100%);
  transition: width 0.3s ease;
  width: 0%;
}

.progress-marker {
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  background: rgba(255, 215, 0, 0.2);
  border-left: 2px solid #ffd700;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  color: #ffd700;
  font-weight: bold;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Canvas Area Simplificada */
.scratch-canvas-area {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(42, 193, 185, 0.3);
}

.scratch-canvas-area #scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 10;
}

.symbols-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  padding: 8px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
}

.symbols-grid .symbol-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 8px;
  font-size: 2.5rem;
  color: #fff;
  opacity: 0;
  transition: all 0.3s ease;
}

.symbols-grid .symbol-cell.revealed {
  opacity: 1;
  animation: symbolReveal 0.5s ease;
}

/* Controles Simplificados */
.scratch-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-control {
  background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
}

.btn-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 193, 185, 0.4);
}

.btn-control.primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #1a1a2e;
}

/* Mensagem Sem Cartelas */
.no-cards-message {
  text-align: center;
  padding: 3rem;
  color: #aaa;
}

.no-cards-message i {
  font-size: 4rem;
  color: #555;
  margin-bottom: 1rem;
}

.no-cards-message h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.btn-buy {
  background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(42, 193, 185, 0.3);
}

@keyframes symbolReveal {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
  }

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

/* Responsividade para Layout Simplificado */
@media (max-width: 768px) {

  /* Layout Horizontal */
  .scratch-compact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 20, 30, 0.95) 0%, rgba(10, 15, 25, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(42, 193, 185, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  /* Coluna de Informações */
  .scratch-info-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(42, 193, 185, 0.2);
  }

  .info-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
  }

  .cards-badge {
    background: rgba(42, 193, 185, 0.15);
    color: #2ac1b9;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Detalhes Compactos */
  .info-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
  }

  .info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .info-label {
    color: #888;
    font-size: 0.9rem;
  }

  .info-value {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .info-value.gold {
    color: #ffd700;
    font-size: 1rem;
  }

  /* Progresso Compacto */
  .progress-compact {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
  }

  .progress-bar-mini {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }

  .progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #2ac1b9, #3dd4cc);
    transition: width 0.3s ease;
    width: 0%;
  }

  .progress-target {
    display: block;
    text-align: center;
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
  }

  /* Controles Compactos */
  .controls-compact {
    display: flex;
    gap: 0.5rem;
  }

  .btn-compact {
    flex: 1;
    background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
    border: none;
    color: white;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
  }

  .btn-compact.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #1a1a2e;
  }

  .btn-compact i {
    font-size: 0.9rem;
  }

  /* Canvas Compacto */
  .scratch-canvas-column {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .canvas-wrapper-compact {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(42, 193, 185, 0.3);
  }

  .canvas-wrapper-compact #scratchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    z-index: 10;
  }

  .symbols-grid-compact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    padding: 6px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  }

  .symbols-grid-compact .symbol-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 6px;
    font-size: 2rem;
    color: #fff;
    opacity: 0;
  }

  /* Mensagem Sem Cartelas Compacta */
  .no-cards-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
  }

  .no-cards-compact i {
    font-size: 2rem;
    color: #555;
  }

  .no-cards-compact span {
    color: #888;
    font-size: 1rem;
  }

  .btn-buy-compact {
    background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
    border: none;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-buy-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 193, 185, 0.3);
  }

  @media (max-width: 480px) {
    .scratch-section-header {
      flex-direction: column;
      gap: 1rem;
      align-items: flex-start;
    }

    .scratch-canvas-area {
      width: 100%;
      max-width: 320px;
      height: 320px;
    }

    .scratch-controls {
      width: 100%;
      justify-content: center;
    }

    .btn-control {
      flex: 1;
      justify-content: center;
    }
  }

  /* =======================================
   SISTEMA MELHORADO DE CARTELAS
   ======================================= */

  /* Barra Seletora de Cartelas */
  .cards-selector-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(42, 193, 185, 0.3);
    backdrop-filter: blur(15px);
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .cards-selector-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(42, 193, 185, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }

  .selector-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #b8e6b8;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
  }

  .selector-info i {
    color: #2ac1b9;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(42, 193, 185, 0.5);
  }

  .selector-title {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }

  .selector-count {
    color: #2ac1b9;
    font-weight: 600;
    background: rgba(42, 193, 185, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(42, 193, 185, 0.3);
  }

  /* Lista de Mini Cards */
  .cards-mini-list {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
    padding: 0.25rem 0;
  }

  .mini-card {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(42, 193, 185, 0.15) 0%, rgba(42, 193, 185, 0.05) 100%);
    border: 1px solid rgba(42, 193, 185, 0.3);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    min-width: fit-content;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 193, 185, 0.3), transparent);
    transition: left 0.6s ease;
  }

  .mini-card:hover::before {
    left: 100%;
  }

  .mini-card:hover {
    background: linear-gradient(135deg, rgba(42, 193, 185, 0.25) 0%, rgba(42, 193, 185, 0.15) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(42, 193, 185, 0.4);
    border-color: rgba(42, 193, 185, 0.5);
  }

  .mini-card.active {
    background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
    border-color: #2ac1b9;
    box-shadow:
      0 8px 25px rgba(42, 193, 185, 0.5),
      0 0 30px rgba(42, 193, 185, 0.3);
    transform: scale(1.05);
  }

  .mini-card .card-icon {
    font-size: 1rem;
  }

  .mini-card .card-mini-type {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
  }

  .mini-card.active .card-mini-type {
    color: #fff;
  }

  .mini-card .card-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  }

  /* Botão Comprar Mais */
  .btn-add-cards {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border: none;
    color: #1a1a2e;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    z-index: 2;
  }

  .btn-add-cards::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn-add-cards:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn-add-cards:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
  }

  /* Box de Status da Cartela */
  .card-status-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(42, 193, 185, 0.2);
    backdrop-filter: blur(15px);
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .card-status-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(42, 193, 185, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }

  .status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .status-type {
    color: #2ac1b9;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .status-id {
    color: #666;
    font-size: 0.85rem;
  }

  .status-prize {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .prize-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .prize-amount {
    color: #ffd700;
    font-size: 1.25rem;
    font-weight: bold;
    margin-top: 0.25rem;
  }

  /* Box de Progresso Visual */
  .scratch-progress-box {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(42, 193, 185, 0.2);
    backdrop-filter: blur(15px);
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .scratch-progress-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at bottom left, rgba(42, 193, 185, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }

  .progress-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

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

  .stat-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  .stat-value {
    color: #2ac1b9;
    font-size: 1.1rem;
    font-weight: bold;
  }

  .progress-bar-visual {
    position: relative;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    overflow: hidden;
  }

  .progress-fill-visual {
    height: 100%;
    background: linear-gradient(90deg, #2ac1b9 0%, #3dd4cc 100%);
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(42, 193, 185, 0.5);
  }

  .progress-milestone {
    position: absolute;
    top: 0;
    left: 70%;
    width: 2px;
    height: 100%;
    background: #ffd700;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
  }

  /* Botões de Ação */
  .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .btn-action {
    background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(42, 193, 185, 0.3);
  }

  .btn-action::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn-action:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn-action:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(42, 193, 185, 0.5);
  }

  .btn-action i {
    font-size: 1.1rem;
  }

  .btn-action span {
    font-size: 0.85rem;
  }

  .btn-action.reveal {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  }

  .btn-action.auto {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  }

  .btn-action.play {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
  }

  /* Box de Resultado */
  .result-box {
    background: linear-gradient(135deg, rgba(42, 193, 185, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(42, 193, 185, 0.3);
    animation: slideIn 0.3s ease;
  }

  .result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2ac1b9;
    font-weight: 600;
    margin-bottom: 0.75rem;
  }

  .result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .result-text {
    color: #fff;
    font-size: 1rem;
  }

  .result-prize {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .btn-next-card {
    width: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    border: none;
    color: #1a1a2e;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .btn-next-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  }

  /* Status do Canvas */
  .canvas-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #2ac1b9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    animation: pulse 2s infinite;
  }

  /* Estado Vazio Melhorado */
  .empty-state-improved {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(20, 30, 40, 0.95) 0%, rgba(10, 15, 25, 0.95) 100%);
    border-radius: 20px;
    border: 1px solid rgba(42, 193, 185, 0.3);
    backdrop-filter: blur(20px);
    box-shadow:
      0 15px 35px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .empty-state-improved::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at 30% 70%, rgba(42, 193, 185, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
  }

  .empty-icon {
    font-size: 5rem;
    color: #2ac1b9;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(42, 193, 185, 0.6);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
  }

  .empty-state-improved h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 1.2rem 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
  }

  .empty-state-improved p {
    color: #aaa;
    margin-bottom: 2rem;
  }

  .btn-shop-primary {
    background: linear-gradient(135deg, #2ac1b9 0%, #1e9b94 100%);
    border: none;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(42, 193, 185, 0.4);
    z-index: 2;
  }

  .btn-shop-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn-shop-primary:hover::before {
    width: 300px;
    height: 300px;
  }

  .btn-shop-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(42, 193, 185, 0.6);
  }

  .price-hints {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .hint {
    color: #b8e6b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    background: rgba(42, 193, 185, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(42, 193, 185, 0.2);
    backdrop-filter: blur(10px);
  }

  .hint::before {
    content: "✓";
    color: #2ac1b9;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(42, 193, 185, 0.5);
  }

  /* Animações */
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

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

  @keyframes float {

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

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

  @keyframes pulse {

    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.7;
    }
  }

  /* Responsividade do Sistema Melhorado */
  @media (max-width: 768px) {
    .cards-selector-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
    }

    .cards-mini-list {
      justify-content: center;
    }

    .btn-add-cards {
      width: 100%;
      justify-content: center;
    }

    .action-buttons {
      grid-template-columns: 1fr;
    }
  }

  /* ========================================
   ÁREA DE JOGO DA RASPADINHA
   ======================================== */



  .scratch-game-container {
    width: 100%;
    height: 100%;
  }

  .scratch-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  }

  .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  }

  .scratch-game-info {
    text-align: center;
    color: white;
  }

  .scratch-game-info h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .prize-info {
    font-size: 16px;
    color: #b8e6b8;
    margin-bottom: 5px;
  }

  .card-counter {
    font-size: 14px;
    color: #87ceeb;
    background: rgba(135, 206, 235, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
  }

  .scratch-game-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    /* gap: 30px; */
  }

  .scratch-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  #scratchCanvas {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
    transition: transform 0.3s ease;
  }

  #scratchCanvas:hover {
    transform: scale(1.02);
  }

  .scratch-symbols-grid {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
    pointer-events: none;
  }

  .symbol-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    animation: symbolReveal 0.5s ease forwards;
  }

  .symbol-cell.winning-symbol {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    animation: winnerGlow 1s ease-in-out infinite alternate;
  }

  .scratch-game-sidebar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  /* .scratch-progress-section {
    margin-bottom: 25px;
  } */

  .scratch-progress-section h4 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
  }

  /* .progress-container {
    margin-bottom: 15px;
  } */

  .progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
  }

  .progress-text {
    color: #b8e6b8;
    font-size: 14px;
    text-align: center;
    display: block;
  }

  .progress-target {
    color: #87ceeb;
    font-size: 12px;
    text-align: center;
    font-style: italic;
  }

  .scratch-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
  }

  .btn-reveal-all,
  .btn-auto-scratch {
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .btn-reveal-all {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }

  .btn-reveal-all:hover {
    transform: translateY(-2px);
  }

  .btn-auto-scratch {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
  }

  .btn-auto-scratch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
  }

  .scratch-result {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .result-content {
    margin-bottom: 20px;
  }

  .result-icon {
    margin-bottom: 15px;
  }

  .result-title {
    color: white;
    font-size: 20px;
    margin: 0 0 10px 0;
    font-weight: 600;
  }

  .result-message {
    color: #b8e6b8;
    margin: 0 0 15px 0;
    line-height: 1.5;
  }

  .result-prize {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  }

  .result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
  }

  .btn-back,
  .btn-next-card,
  .btn-buy-more {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .btn-back {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
  }

  .btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  }

  .btn-next-card {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
  }

  .btn-next-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  }

  .btn-buy-more {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
  }

  .btn-buy-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  }

  /* Animações */
  @keyframes symbolReveal {
    from {
      opacity: 0;
      transform: scale(0.5);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes winnerGlow {
    from {
      box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }

    to {
      box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    }
  }

  @keyframes float {

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

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

  /* Responsividade */
  @media (max-width: 1200px) {
    /* .scratch-game-content {
      grid-template-columns: 1fr;
      gap: 20px;
    } */

    .scratch-game-sidebar {
      order: -1;
    }
  }

  @media (max-width: 768px) {
    .scratch-game-area {
      padding: 15px;
      margin: 10px 0;
    }

    .scratch-game-content {
      flex-direction: column;
      /* gap: 25px; */
      align-items: center;
      padding: 0 10px;
    }

    .scratch-canvas-container {
      padding: 15px;
      /* min-height: 380px; */
      width: 100%;
      max-width: 350px;
      margin: 0 auto;
    }

    #scratchCanvas {
      width: 100%;
      max-width: 320px;
      height: auto;
    }

    .scratch-symbols-grid {
      width: 320px;
      height: 320px;
    }

    .symbol-cell {
      font-size: 28px;
      /* min-height: 90px; */
    }

    .scratch-game-sidebar {
      width: 100%;
      max-width: 350px;
      order: -1;
      margin: 0 auto;
    }

    .result-actions {
      flex-direction: column;
    }

    .btn-back,
    .btn-next-card,
    .btn-buy-more {
      width: 100%;
      justify-content: center;
    }

    .card-counter {
      text-align: center;
      margin-bottom: 15px;
    }
  }

  @media (max-width: 480px) {
    .scratch-game-area {
      padding: 10px;
    }

    .scratch-game-content {
      /* gap: 20px; */
      padding: 0 5px;
    }

    .scratch-canvas-container {
      padding: 10px;
      /* min-height: 320px; */
      max-width: 300px;
      margin: 0 auto;
    }

    #scratchCanvas {
      max-width: 280px;
    }

    .scratch-symbols-grid {
      width: 280px;
      height: 280px;
    }

    .symbol-cell {
      font-size: 24px;
      /* min-height: 80px; */
    }

    .scratch-game-sidebar {
      padding: 15px;
      max-width: 300px;
      margin: 0 auto;
    }

    .scratch-controls {
      width: 100%;
      max-width: 300px;
      margin-left: auto;
      margin-right: auto;
    }

    .btn-reveal-all,
    .btn-auto-scratch {
      padding: 15px 20px;
      font-size: 14px;
    }

    .card-counter {
      font-size: 14px;
      padding: 8px 12px;
    }
  }
}

/* ========================================
   ÁREA DE JOGO DA RASPADINHAS - ESTILIZAÇÃO APRIMORADA
   ======================================== */

.scratch-game-area {
  width: 100%;
  /* min-height: 600px; */
  /* background: linear-gradient(135deg, #1a1f3a 0%, #16213e 50%, #0f1322 100%); */
  border-radius: 16px;
  padding: 25px;
  margin: 20px 0;
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); */
  position: relative;
  overflow: hidden;
  /* border: 1px solid rgba(42, 193, 185, 0.15); */
}

/* .scratch-game-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(42, 193, 185, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: backgroundShift 20s ease-in-out infinite;
}

.scratch-game-area::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="25" cy="25" r="0.5" fill="rgba(255,255,255,0.01)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  opacity: 0.3;
} */

.scratch-game-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.scratch-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.scratch-game-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff6b6b 100%);
  border: none;
  border-radius: 30px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 6px 20px rgba(255, 107, 107, 0.4),
    0 0 0 0 rgba(255, 107, 107, 0.7);
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.back-btn:hover::before {
  width: 300px;
  height: 300px;
}

.back-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 10px 30px rgba(255, 107, 107, 0.6),
    0 0 0 10px rgba(255, 107, 107, 0.1);
}

.back-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.back-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.back-btn:hover i {
  transform: translateX(-3px);
}

.scratch-game-info {
  text-align: center;
  color: white;
  position: relative;
}

.scratch-game-info h3 {
  font-size: 28px;
  margin: 0 0 8px 0;
  background: linear-gradient(45deg, #ffd700 0%, #ffed4e 25%, #ffd700 50%, #ffed4e 75%, #ffd700 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.prize-info {
  font-size: 18px;
  color: #b8e6b8;
  margin-bottom: 8px;
  font-weight: 500;
  /* text-shadow: 0 1px 3px rgba(184, 230, 184, 0.5); */
}

.card-counter {
  font-size: 15px;
  color: #87ceeb;
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.3) 0%, rgba(135, 206, 235, 0.1) 100%);
  padding: 6px 16px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(135, 206, 235, 0.3);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(135, 206, 235, 0.2);
  backdrop-filter: blur(10px);
}

.scratch-game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  /* gap: 30px; */
}

.scratch-canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  /* backdrop-filter: blur(10px); */
  overflow: hidden;
  max-height: 450px;
  max-width: 400px;
  height: 100%;
  width: 100%;
  margin: 0 auto;

}

.scratch-canvas-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(42, 193, 185, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

#scratchCanvas {
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: crosshair;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 8;
}

#scratchCanvas:hover {
  transform: scale(1.03);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(42, 193, 185, 0.3);
}

.scratch-symbols-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5;

}

.symbol-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  opacity: 1;
  color: #333;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  /* min-height: 120px; */
}

.symbol-cell:nth-child(1) {
  animation-delay: 0.1s;
}

.symbol-cell:nth-child(2) {
  animation-delay: 0.2s;
}

.symbol-cell:nth-child(3) {
  animation-delay: 0.3s;
}

.symbol-cell:nth-child(4) {
  animation-delay: 0.4s;
}

.symbol-cell:nth-child(5) {
  animation-delay: 0.5s;
}

.symbol-cell:nth-child(6) {
  animation-delay: 0.6s;
}

.symbol-cell:nth-child(7) {
  animation-delay: 0.7s;
}

.symbol-cell:nth-child(8) {
  animation-delay: 0.8s;
}

.symbol-cell:nth-child(9) {
  animation-delay: 0.9s;
}

.symbol-cell.winning-symbol {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  border-color: #ffd700;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.8),
    0 8px 25px rgba(255, 215, 0, 0.4);
  animation: winnerGlow 1.5s ease-in-out infinite alternate;
  transform: scale(1.1);
}

.scratch-symbols-grid.revealed {
  pointer-events: auto;
  opacity: 1 !important;
  z-index: 10;
}

.scratch-symbols-grid.revealed .symbol-cell {
  opacity: 1 !important;
  visibility: visible !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.scratch-symbols-grid.revealed .symbol-cell.winning-symbol {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
  border-color: #ffd700 !important;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.8),
    0 8px 25px rgba(255, 215, 0, 0.4) !important;
  animation: winnerGlow 1.5s ease-in-out infinite alternate !important;
  transform: scale(1.1) !important;
}

.scratch-game-sidebar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: fit-content;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.scratch-game-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(42, 193, 185, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* .scratch-progress-section {
  margin-bottom: 30px;
} */

.scratch-progress-section h4 {
  color: white;
  margin: 0 0 20px 0;
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* .scratch-progress-section h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 2px;
} */

.progress-bar {
  width: 100%;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 50%, #4CAF50 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 0%;
  animation: progressGlow 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.progress-text {
  color: #b8e6b8;
  font-size: 16px;
  text-align: center;
  display: block;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-target {
  color: #87ceeb;
  font-size: 14px;
  text-align: center;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.scratch-controls {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 30px;
}

.btn-reveal-all,
.btn-auto-scratch {
  padding: 18px 25px;
  border: none;
  border-radius: 15px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-reveal-all::before,
.btn-auto-scratch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-reveal-all:hover::before,
.btn-auto-scratch:hover::before {
  width: 400px;
  height: 400px;
}

.btn-reveal-all {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  color: white;
}

.btn-reveal-all:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.btn-auto-scratch {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f093fb 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.btn-auto-scratch:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(240, 147, 251, 0.6);
}

.scratch-result {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scratch-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.result-content {
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.result-icon {
  margin-bottom: 20px;
}

.result-title {
  color: white;
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-message {
  color: #b8e6b8;
  margin: 0 0 20px 0;
  line-height: 1.6;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.result-prize {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #333;
  padding: 15px 25px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 20px;
  display: inline-block;
  box-shadow:
    0 8px 25px rgba(255, 215, 0, 0.4),
    0 0 40px rgba(255, 215, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: prizePulse 2s ease-in-out infinite;
}

.result-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn-back,
.btn-next-card,
.btn-buy-more {
  padding: 15px 25px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-back::before,
.btn-next-card::before,
.btn-buy-more::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-back:hover::before,
.btn-next-card:hover::before,
.btn-buy-more:hover::before {
  width: 300px;
  height: 300px;
}

.btn-back {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff6b6b 100%);
  color: white;
}

.btn-back:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
}

.btn-next-card {
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 50%, #4CAF50 100%);
  color: white;
}

.btn-next-card:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.6);
}

.btn-buy-more {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
  color: #333;
}

.btn-buy-more:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

/* Animações Aprimoradas */
@keyframes symbolReveal {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-180deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes winnerGlow {
  from {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.8),
      0 8px 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
  }

  to {
    box-shadow:
      0 0 50px rgba(255, 215, 0, 1),
      0 12px 35px rgba(255, 215, 0, 0.6);
    transform: scale(1.15);
  }
}

@keyframes float {

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

  25% {
    transform: translateY(-8px) rotate(2deg);
  }

  50% {
    transform: translateY(-15px) rotate(0deg);
  }

  75% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes backgroundShift {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(1deg);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes progressGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes prizePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 8px 25px rgba(255, 215, 0, 0.4),
      0 0 40px rgba(255, 215, 0, 0.3);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 12px 35px rgba(255, 215, 0, 0.6),
      0 0 60px rgba(255, 215, 0, 0.5);
  }
}

/* ===== CONTADOR DE CARTELAS ===== */
.card-counter {
  color: white;
  text-align: right;
  margin: 10px 0;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 10px;
  padding: 8px 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: fit-content;
  margin: 10px auto 0;
}

/* ===== MODAIS DE RESULTADO ===== */
.scratch-result-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.scratch-modal-backdrop-3,
.scratch-result-modal .scratch-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

.scratch-modal-container-3,
.win-modal .scratch-modal-container,
.lose-modal .scratch-modal-container {
  position: relative;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-width: 350px;
  max-width: 450px;
  text-align: center;
  z-index: 10001;
}

.scratch-modal-close-btn-3 {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
}

.scratch-modal-close-btn-3:hover {
  color: white;
}

/* Modal de Vitória */
.win-animation {
  font-size: 50px;
  color: #FFD700;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.win-modal h2 {
  color: #FFD700;
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 15px 0;
}

.win-amount {
  font-size: 32px;
  font-weight: bold;
  color: #00ff88;
  margin: 15px 0;
}

.win-body {
  margin-bottom: 25px;
}

.win-body p {
  color: white;
  font-size: 16px;
  margin-bottom: 15px;
}

.balance-update {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.balance-update span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.balance-update strong {
  color: #00ff88;
  font-size: 16px;
  margin-left: 8px;
}

/* Modal de Derrota */
.lose-animation {
  font-size: 50px;
  color: #ff6b6b;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.lose-modal h2 {
  color: #ff6b6b;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 15px 0;
}

.lose-body {
  margin-bottom: 25px;
}

.lose-body p {
  color: white;
  font-size: 16px;
}

/* Botões dos Modais */
.win-footer,
.lose-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.win-footer .btn-primary,
.win-footer .btn-secondary,
.lose-footer .btn-primary,
.lose-footer .btn-secondary {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.win-footer .btn-primary,
.lose-footer .btn-primary {
  background: #667eea;
  color: white;
}

.win-footer .btn-primary:hover,
.lose-footer .btn-primary:hover {
  background: #5a6fd8;
}

.win-footer .btn-secondary,
.lose-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.win-footer .btn-secondary:hover,
.lose-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
  .scratch-modal-container {
    /* min-width: 280px;
    max-width: 320px; */
    /* padding: 25px 20px; */
    margin: 15px;
  }

  .win-footer,
  .lose-footer {
    flex-direction: column;
  }

  .win-footer .btn-primary,
  .win-footer .btn-secondary,
  .lose-footer .btn-primary,
  .lose-footer .btn-secondary {
    width: 100%;
    min-width: auto;
  }
}

/* ========================================
   CORREÇÕES RESPONSIVAS APRIMORADAS - MOBILE
   Não obstrui Canvas - Funciona igual Desktop
   ======================================== */

/* Ajuste principal para mobile - Canvas não obstruído */
@media (max-width: 768px) {
  .scratch-game-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  .scratch-game-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* Container do canvas ajustado */
  .scratch-canvas-container {
    position: relative !important;
    width: 100% !important;
    max-width: min(90vw, 400px) !important;
    height: auto !important;
    padding: 10px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
  }

  /* Container wrapper do canvas */
  .scratch-canvas-container>div[style*="position: relative"] {
    position: relative !important;
    width: 100% !important;
    max-width: min(350px, calc(100vw - 40px)) !important;
    aspect-ratio: 1 !important;
    margin: 0 auto !important;
  }

  /* Canvas totalmente responsivo */
  #scratchCanvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 12px !important;
    z-index: 10 !important;
    touch-action: none !important;
  }

  /* Grid de símbolos responsivo */
  .scratch-symbols-grid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 8px !important;
    z-index: 5 !important;
  }

  /* Células adaptativas */
  .symbol-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: calc(1.5rem + 2vw) !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(20, 25, 35, 0.95) !important;
    border-radius: 8px !important;
  }

  /* Progresso compacto */
  .scratch-progress-section {
    width: 100% !important;
    max-width: 350px !important;
    padding: 0 10px !important;
  }

  .scratch-progress-section h4 {
    font-size: 0.95rem !important;
  }

  /* Controles organizados */
  .scratch-controls {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 350px !important;
    padding: 0 10px !important;
    justify-content: center !important;
  }

  /* Resultado responsivo */
  .scratch-result {
    width: 100% !important;
    max-width: 350px !important;
    padding: 15px !important;
    margin: 0 auto !important;
  }

  .result-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .result-actions button {
    width: 100% !important;
    padding: 12px !important;
  }

  /* Contador de cartelas */
  .card-counter {
    font-size: 0.85rem !important;
    padding: 5px 10px !important;
    margin-top: 10px !important;
  }
}

/* Telas muito pequenas */
@media (max-width: 480px) {
  .scratch-canvas-container>div[style*="position: relative"] {
    max-width: calc(100vw - 30px) !important;
  }

  .scratch-symbols-grid {
    gap: 5px !important;
    padding: 8px !important;
  }

  .symbol-cell {
    font-size: calc(1.2rem + 1.5vw) !important;
    border-radius: 6px !important;
  }

  .scratch-controls {
    flex-wrap: wrap !important;
  }

  .scratch-controls button {
    font-size: 0.8rem !important;
  }

  .scratch-progress-section h4 {
    font-size: 0.85rem !important;
  }

  .progress-text {
    font-size: 0.8rem !important;
  }
}

/* Landscape mobile */
@media (max-width: 812px) and (orientation: landscape) {
  .scratch-game-content {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .scratch-canvas-container {
    max-width: 45vh !important;
  }

  .scratch-canvas-container>div[style*="position: relative"] {
    max-width: min(40vh, 300px) !important;
  }

  .scratch-progress-section {
    width: 100% !important;
  }

  .scratch-controls {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Garantir touch funcional */
@media (pointer: coarse) {
  #scratchCanvas {
    touch-action: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
  }

  .scratch-symbols-grid,
  .symbol-cell {
    pointer-events: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }
}

/* Prevenir overflow e garantir visibilidade */
@media (max-width: 768px) {
  body.scratch-active {
    overflow-x: hidden !important;
  }

  .scratch-game-area {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .scratch-symbols-grid.revealed {
    opacity: 1 !important;
    visibility: visible !important;
    display: grid !important;
  }

  #scratchCanvas {
    visibility: visible !important;
  }

  /* Prevenir overflow horizontal */
  .scratch-game-container,
  .scratch-game-content,
  .scratch-canvas-container {
    /* max-width: 100vw !important; */
    overflow-x: hidden !important;
  }

  /* Modais acima de tudo */
  .custom-purchase-modal,
  .scratch-result-modal {
    z-index: 9999 !important;
  }

  .scratch-modal-backdrop {
    z-index: 9998 !important;
  }

  .scratch-modal-container {
    z-index: 9999 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Ajuste específico para o container inline de 400x400 */
@media (max-width: 768px) {
  div[style*="width: 400px"][style*="height: 400px"] {
    width: 100% !important;
    max-width: calc(100vw - 40px) !important;
    height: auto !important;
    aspect-ratio: 1 !important;
  }

  canvas[width="400"][height="400"] {
    width: 100% !important;
    height: 100% !important;
  }

  /* Wrapper do canvas responsivo */
  .scratch-canvas-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: min(350px, calc(100vw - 40px)) !important;
    aspect-ratio: 1 !important;
    margin: 0 auto !important;
  }

  .scratch-canvas-wrapper canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .scratch-canvas-wrapper .scratch-symbols-grid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
  }

}

/* ========================================
   ESTILOS PARA SÍMBOLOS VENCEDORES
   ======================================== */

/* Estilos fortes para símbolos vencedores */
.symbol-cell.winning-symbol,
.symbol-cell[data-winner="true"],
.scratch-symbols-grid .symbol-cell.winning-symbol,
#scratchSymbols .symbol-cell.winning-symbol,
.scratch-symbols-grid.revealed .symbol-cell.winning-symbol,
.scratch-game-container .symbol-cell.winning-symbol {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
  border: 3px solid #ffd700 !important;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.9),
    0 0 50px rgba(255, 215, 0, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.5) !important;
  animation: winnerPulse 1.5s ease-in-out infinite !important;
  transform: scale(1.2) !important;
  z-index: 100 !important;
  position: relative !important;
  /* Símbolo com destaque especial */
  color: #fff !important;
  font-size: 2.5em !important;
  font-weight: 900 !important;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 215, 0, 0.9),
    0 0 40px rgba(255, 165, 0, 0.7) !important;
  /* Adiciona contorno ao emoji/símbolo */
  -webkit-text-stroke: 2px rgba(139, 69, 19, 0.3);
  text-stroke: 2px rgba(139, 69, 19, 0.3);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Spotlight effect para símbolo vencedor */
.symbol-cell.winning-symbol::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 215, 0, 0.2) 40%,
      transparent 70%);
  animation: spotlight 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes spotlight {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

/* Animação de flutuação do símbolo */
@keyframes floatSymbol {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }

  25% {
    transform: translate(-50%, -55%) scale(1.1) rotate(5deg);
  }

  75% {
    transform: translate(-50%, -45%) scale(1.1) rotate(-5deg);
  }
}

/* ========================================
   ANIMAÇÕES PARA CARTELAS PERDEDORAS
   ======================================== */

/* Animação de rotação 360 graus para derrota */
@keyframes flip360 {
  0% {
    transform: scale(1) rotateY(0deg);
  }

  25% {
    transform: scale(0.9) rotateY(90deg);
  }

  50% {
    transform: scale(0.8) rotateY(180deg);
  }

  75% {
    transform: scale(0.9) rotateY(270deg);
  }

  100% {
    transform: scale(1) rotateY(360deg);
  }
}

/* Animação de flip (virada) - mantida para outros usos */
@keyframes flipCard {
  0% {
    transform: scale(1) rotateY(0deg);
  }

  50% {
    transform: scale(0.9) rotateY(90deg);
  }

  100% {
    transform: scale(0.7) rotateY(180deg);
  }
}

/* Animação de shake (tremor) */
@keyframes shake {

  0%,
  100% {
    transform: scale(0.7) rotateY(180deg) translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: scale(0.7) rotateY(180deg) translateX(-2px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: scale(0.7) rotateY(180deg) translateX(2px);
  }
}

/* Classe para símbolos perdedores */
.symbol-cell.loser-symbol {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 50%, #ff4444 100%) !important;
  border: 2px solid #cc0000 !important;
  color: #fff !important;
  opacity: 0.6 !important;
  transition: all 0.5s ease !important;
}

/* Classe para animação de rotação 360 */
.symbol-cell.flip-360-animation {
  animation: flip360 0.8s ease-in-out forwards;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

/* Classe para animação de flip */
.symbol-cell.flip-animation {
  animation: flipCard 0.6s ease-in-out forwards;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Classe para animação de shake */
.symbol-cell.shake-animation {
  animation: shake 0.5s ease-in-out;
}

/* Animação de pulso vermelho para perdedores */
@keyframes losePulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
    transform: scale(0.95);
  }
}

.symbol-cell.lose-pulse {
  animation: losePulse 2s ease-in-out infinite;
}

/* Efeito de fade para cartelas perdedoras */
.symbol-cell.loser-symbol::after {
  content: '✗';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
  z-index: 2;
}

/* Container com efeito de derrota */
.scratch-symbols-grid.lose-effect {
  filter: brightness(0.7) grayscale(30%);
  transition: filter 1s ease;
}

/* Animação de pulso vermelho */
@keyframes redPulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  }
}

.symbol-cell.loser-symbol {
  animation: redPulse 2s ease-in-out infinite;
}

/* Animação de pulso dourado aprimorada */
@keyframes winnerPulse {

  0%,
  100% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.9),
      0 0 50px rgba(255, 215, 0, 0.6),
      inset 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.15) rotate(0deg);
    filter: brightness(1.2);
  }

  25% {
    transform: scale(1.18) rotate(-2deg);
    filter: brightness(1.3);
  }

  50% {
    box-shadow:
      0 0 40px rgba(255, 215, 0, 1),
      0 0 70px rgba(255, 215, 0, 0.8),
      inset 0 0 30px rgba(255, 255, 255, 0.7);
    transform: scale(1.2) rotate(0deg);
    filter: brightness(1.4);
  }

  75% {
    transform: scale(1.18) rotate(2deg);
    filter: brightness(1.3);
  }
}

/* Garantir visibilidade no mobile também */
@media (max-width: 768px) {
  .symbol-cell.winning-symbol {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%) !important;
    box-shadow:
      0 0 20px rgba(255, 215, 0, 0.9),
      0 0 35px rgba(255, 215, 0, 0.6) !important;
  }
}

/* === Novos estilos para cards de prêmios melhorados === */
.prize-card .prize-symbol {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

/* === Estilos melhorados para o carousel de prêmios === */
.prize-card.no-prize {
  opacity: 0.7;
  background: linear-gradient(145deg,
      rgba(108, 117, 125, 0.1) 0%,
      rgba(15, 25, 35, 0.95) 100%);
  border-color: rgba(108, 117, 125, 0.3);
}

.prize-card.gold-prize {
  background: linear-gradient(145deg,
      rgba(255, 215, 0, 0.1) 0%,
      rgba(15, 25, 35, 0.95) 100%);
  border-color: rgba(255, 215, 0, 0.4);
}

.prize-card.legendary-prize {
  background: linear-gradient(145deg,
      rgba(0, 149, 255, 0.15) 0%,
      rgba(0, 212, 255, 0.1) 50%,
      rgba(15, 25, 35, 0.95) 100%);
  border-color: rgba(0, 149, 255, 0.5);
}

.prize-card.rare {
  position: relative;
}

.rarity-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

.no-prize-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(108, 117, 125, 0.8);
  color: white;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.prize-medal .medal-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: none;
}

.prize-value-display {
  margin-bottom: 12px;
}

.prize-value-display .currency-sign {
  font-size: 0.9rem;
  color: white;
}

.prize-value-display .value-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.prize-value-display .no-value {
  font-size: 1.4rem;
  color: #6c757d;
  font-weight: 700;
}

.prize-description {
  font-size: 0.85rem;
  color: white;
  margin: 8px 0;
  line-height: 1.3;
  opacity: 0.9;
  font-weight: 500;
}

.probability-container {
  margin-top: 10px;
}

.probability-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.probability-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ac1b9, #42e0d6);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.probability-text {
  font-size: 0.75rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.probability-text i {
  font-size: 0.65rem;
  opacity: 0.7;
}

.prize-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkle-float 3s ease-in-out infinite;
}

.sparkle-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 60%;
  right: 30%;
  animation-delay: 1s;
}

.sparkle-3 {
  bottom: 30%;
  left: 40%;
  animation-delay: 2s;
}

@keyframes sparkle-float {

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

  50% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
}

.jackpot-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0095ff, #00d4ff);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 149, 255, 0.4);
  animation: bounce 2s ease-in-out infinite;
}

/* Placeholders com shimmer */
.placeholder-card.shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.05) 25%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

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

.placeholder-shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.1) 25%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}

.medal-circle.placeholder-shimmer {
  width: 85px;
  height: 85px;
  border-radius: 50%;
}

.symbol-placeholder {
  width: 60px;
  height: 40px;
  margin: 10px auto;
}

.prize-value.placeholder-shimmer {
  width: 100px;
  height: 24px;
  margin: 0 auto 8px;
}

.prize-probability.placeholder-shimmer {
  width: 80px;
  height: 16px;
  margin: 0 auto;
}

@keyframes float {

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

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

.prize-card .medal-shine {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  animation: shine-pulse 2s ease-in-out infinite;
}

@keyframes shine-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.prize-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-label .prize-emoji {
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.prize-label .prize-chance {
  background: rgba(42, 193, 185, 0.2);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(42, 193, 185, 0.3);
}

.prize-value .currency {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-right: 3px;
}

.prize-value .amount {
  background: linear-gradient(135deg, var(--primary), #4de9df);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 800;
}

.prize-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ff4444);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
  text-transform: uppercase;
  z-index: 10;
}

@keyframes badge-pulse {

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

  50% {
    transform: scale(1.05);
  }
}

.prize-card .prize-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  animation: glow-rotate 8s linear infinite;
  pointer-events: none;
}

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

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