/* ===========================================
   SENINHA - Estilos do Jogo
   Tema escuro seguindo o padrão do play.ejs
   =========================================== */

.seninha-container {
  position: relative;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg,
      var(--bg-secondary) 16.39%,
      var(--bg-secondary) 20.51%,
      var(--bg-secondary) 24.79%,
      var(--bg-secondary) 30.46%,
      var(--bg-secondary) 34.11%,
      var(--bg-secondary) 36.21%,
      var(--bg-secondary) 100%);
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.main-seninha {
  width: calc(100% - 280px);
  padding: 15px 18px;
  padding-bottom: 180px;
  display: flex;
  flex-direction: column;
}

/* TABS DE NAVEGAÇÃO ENTRE JOGOS */
.games-nav-tabs {
  display: flex;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 4px;
  margin: 0 auto 25px;
  max-width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.games-nav-tabs .game-tab {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--game-text-secondary, #6c757d);
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.games-nav-tabs .game-tab:hover:not(.active) {
  color: var(--game-text-primary, #fff);
}

.games-nav-tabs .game-tab.active {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

/* HEADER ETAPAS */
.header-steps {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px;
}

.content-header-steps {
  width: 100%;
  position: relative;
}

.progress-bar {
  display: flex;
}

span.contents-progress {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--game-text-primary);
  height: 4px;
  background: var(--game-step);
  position: relative;
  transition: width 0.5s linear;
}

span.contents-progress:first-child {
  border-radius: 100px 0 0 100px;
}

span.contents-progress:last-child {
  border-radius: 0 100px 100px 0;
}

.line-progress {
  position: absolute;
  left: 0;
  width: 0;
  height: 4px;
  transition: .8s linear;
}

span.contents-progress:first-child .line-progress {
  border-radius: 100px 0 0 100px;
}

span.contents-progress:last-child .line-progress {
  border-radius: 0 100px 100px 0;
}

span.contents-progress.active .line-progress {
  position: absolute;
  left: 0;
  height: 4px;
  width: 100%;
  z-index: 1;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

span.contents-progress.active .content-circle-progress {
  border-color: var(--primary);
}

span.contents-progress.active.finished .line-progress {
  width: 100%;
  z-index: 1;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

span.contents-progress.active.finished .content-circle-progress {
  border-color: var(--primary);
  background: var(--primary);
}

.name-progress {
  position: absolute;
  bottom: 26px;
  font-size: 12px;
  text-align: center;
}

.content-circle-progress {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--game-step);
  border-radius: 100px;
  background: var(--bg-primary);
  transition: ease-in-out .5s;
  position: relative;
  z-index: 2;
}

/* SESSÃO DE JOGOS */
#stepsGame {
  position: relative;
  background-color: var(--bg-primary);
  padding: 35px;
  border-radius: 5px;
}

.effect-first-step::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  bottom: 0px;
  right: 0px;
  background: var(--primary);
  filter: blur(55px);
}

.btn-back {
  color: var(--game-text-secondary);
  margin: 0px 10px 35px;
  font-size: 1.1rem;
  font-weight: 500;
  display: none;
  align-items: center;
}

.btn-back.visible {
  display: flex;
}

.btn-back span {
  font-size: 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--game-text-secondary);
  margin-right: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-back span i {
  color: var(--game-text-card);
}

.separator-steps {
  opacity: 0.1;
  border-radius: 100px;
}

.header-games {
  margin: 10px;
}

.header-games .title {
  font-weight: 500;
  font-size: 22px;
  color: var(--game-text-secondary);
  mix-blend-mode: normal;
  opacity: 0.9;
}

.header-games .subtitle {
  font-weight: 400;
  font-size: 16px;
  display: flex;
  align-items: center;
  color: var(--game-text-secondary);
  mix-blend-mode: normal;
  opacity: 0.6;
}

.bg-content-desc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.bg-content-desc .title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--game-text-secondary);
}

.bg-content-desc .subtitle {
  color: var(--game-text-secondary);
  opacity: 0.7;
  font-size: 1rem;
}

/* CONTAINER STEPS */
.container-steps {
  display: none;
  flex-direction: column;
  margin: 10px 0;
}

.container-steps.active {
  display: flex;
}

/* ===========================================
   ETAPA 1: ESCOLHA DO JOGO
   =========================================== */

.content-game-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 10px;
}

.game-card {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.game-card.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.game-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.game-card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.game-card-badge.popular {
  background: #ff9800;
  color: #fff;
}

.game-card-badge.new {
  background: var(--primary);
  color: #fff;
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--game-text-secondary);
  opacity: 0.8;
}

/* ===========================================
   ETAPA 2: SELEÇÃO DE DEZENAS
   =========================================== */

.prize-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 20px 10px;
}

.prize-label {
  font-size: 0.9rem;
  color: var(--game-text-secondary);
  opacity: 0.8;
}

.prize-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

.prize-info {
  font-size: 0.8rem;
  color: var(--game-text-secondary);
  opacity: 0.6;
}

.quantity-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 10px;
}

.qty-btn {
  min-width: 45px;
  height: 40px;
  background: var(--bg-secondary);
  border: 2px solid var(--game-step);
  border-radius: 8px;
  color: var(--game-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  border-color: var(--primary);
}

.qty-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-surpresinha {
  height: 40px;
  padding: 0 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--game-step);
  border-radius: 8px;
  color: var(--game-text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-surpresinha:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Grid de Bolas */
.balls-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 20px auto;
  justify-items: center;
  max-width: 480px;
}

.ball-wrapper {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ball-wrapper.selected {
  transform: scale(0.98);
  background: transparent;
}

.ball-wrapper:hover {
  transform: scale(1.12);
  z-index: 2;
}

.ball-wrapper.selected {
  z-index: 1;
}

.ball-wrapper.selected:hover {
  transform: scale(1.12);
}

/* SVG Ball Styles */
.ball-svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  transition: filter 0.15s ease;
}

.ball-wrapper:hover .ball-svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.ball-wrapper.selected .ball-svg {
  filter: drop-shadow(0 0 8px var(--primary));
}

/* Ball background - círculo principal */
.ball-bg {
  fill: #1a1f2e;
  transition: all 0.15s ease;
}

.ball-wrapper:hover .ball-bg {
  fill: #252b3d;
}

.ball-wrapper.selected .ball-bg {
  fill: #0d3d30;
}

/* Ball decorations - detalhes nas bordas */
.ball-deco {
  fill: #252b3d;
  transition: fill 0.15s ease;
}

.ball-wrapper:hover .ball-deco {
  fill: #3d4560;
}

.ball-wrapper.selected .ball-deco {
  fill: var(--primary);
  opacity: 0.6;
}

/* Ball inner circle */
.ball-inner {
  fill: #0f1219;
  transition: fill 0.15s ease;
}

.ball-wrapper:hover .ball-inner {
  fill: #181d28;
}

.ball-wrapper.selected .ball-inner {
  fill: #0a2a22;
}

/* Ball center - onde fica o número */
.ball-center {
  fill: #1e2433;
  transition: all 0.15s ease;
}

.ball-wrapper:hover .ball-center {
  fill: #2a3245;
}

.ball-wrapper.selected .ball-center {
  fill: var(--primary);
}

/* Ball number text */
.ball-number {
  fill: #5a6270;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transition: fill 0.15s ease;
}

.ball-wrapper:hover .ball-number {
  fill: #8a92a0;
}

.ball-wrapper.selected .ball-number {
  fill: #fff;
}

/* Ball shine effect */
.ball-shine {
  fill: url(#shineGradient);
  opacity: 0.1;
  transition: opacity 0.15s ease;
}

.ball-wrapper:hover .ball-shine {
  opacity: 0.2;
}

.ball-wrapper.selected .ball-shine {
  opacity: 0.35;
}

/* Pulse ring - desativado por padrão, ativado no selected */
.ball-pulse {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ball-wrapper.selected .ball-pulse {
  animation: ballPulse 2s ease-in-out infinite;
}

@keyframes ballPulse {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }
}

/* Sparkle effect on selection */
.ball-wrapper.just-selected {
  animation: sparkle 0.3s ease-out;
}

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

  50% {
    transform: scale(1.2);
  }

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

/* Ball disabled state */
.ball-wrapper.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.ball-wrapper.disabled:hover {
  transform: none;
}

.selection-counter {
  text-align: center;
  margin: 15px 0;
  font-size: 1rem;
  color: var(--game-text-secondary);
}

.counter-badge {
  background: var(--bg-secondary);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-left: 10px;
}

/* ===========================================
   ETAPA 3: SORTEIOS
   =========================================== */

.sorteios-container {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 10px;
}

.sorteios-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sorteios-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--game-text-secondary);
}

.sorteios-info {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
  opacity: 0.6;
  margin-bottom: 20px;
}

.sorteios-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sorteio-group-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 0 4px;
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
  margin-bottom: 4px;
}

.sorteio-group-header:not(:first-child) {
  margin-top: 12px;
}

.sorteio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--bg-primary);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sorteio-item:hover {
  background: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.sorteio-item.selected {
  background: rgba(var(--primary-rgb), 0.15);
  border: 2px solid var(--primary);
}

.sorteio-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--game-step);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sorteio-item.selected .sorteio-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.sorteio-item.selected .sorteio-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

.sorteio-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sorteio-day {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--game-text-primary);
}

.sorteio-date {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
}

.sorteio-hour {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--game-text-primary);
}

.sorteio-label {
  font-size: 0.9rem;
  color: var(--game-text-secondary);
}

.no-draws {
  text-align: center;
  padding: 30px;
  color: var(--game-text-secondary);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ===========================================
   ETAPA 4: VALOR
   =========================================== */

.valor-display {
  color: var(--primary);
  font-weight: 700;
}

.valor-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 10px;
}

.valor-btn {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--game-step);
  border-radius: 8px;
  color: var(--game-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.valor-btn:hover {
  border-color: var(--primary);
}

.valor-btn.minus:hover {
  border-color: #dc3545;
  color: #dc3545;
}

.valor-btn.plus:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.valor-display-box {
  min-width: 120px;
  padding: 12px 25px;
  background: var(--bg-secondary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: var(--game-text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.divisao-container,
.bonus-container {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 10px;
}

.divisao-container h4,
.bonus-container h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--game-text-secondary);
  margin-bottom: 5px;
}

.divisao-info,
.bonus-info {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
  opacity: 0.6;
  margin-bottom: 15px;
}

.divisao-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.divisao-option,
.bonus-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-primary);
  border-radius: 8px;
  cursor: pointer;
  color: var(--game-text-secondary);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.divisao-option:hover,
.bonus-option:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.divisao-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.divisao-option input,
.bonus-option input {
  display: none;
}

.radio-custom,
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--game-step);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-custom {
  border-radius: 4px;
}

.divisao-option input:checked+.radio-custom,
.bonus-option input:checked+.checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.divisao-option input:checked+.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.bonus-option input:checked+.checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #fff;
}

.disabled-hint {
  font-size: 0.8rem;
  opacity: 0.6;
}

.divisao-result {
  font-size: 0.9rem;
  color: var(--primary);
  padding: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 8px;
  text-align: center;
}

.bonus-status {
  margin-left: auto;
  font-size: 0.8rem;
  color: #dc3545;
}

/* ===========================================
   ETAPA 5: CONFIRMAÇÃO
   =========================================== */

.resumo-aposta {
  background: var(--bg-secondary);
  border-radius: 10px;
  padding: 25px;
  margin: 20px 10px;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.resumo-item:last-child {
  border-bottom: none;
}

.resumo-label {
  font-size: 0.95rem;
  color: var(--game-text-secondary);
  opacity: 0.8;
}

.resumo-value {
  font-size: 0.95rem;
  color: var(--game-text-secondary);
  font-weight: 500;
}

.resumo-divider {
  margin: 15px 0;
  opacity: 0.2;
}

.resumo-item.total {
  padding-top: 20px;
}

.resumo-item.total .resumo-label {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 1;
}

.resumo-item.total .resumo-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* BOTÕES */
.next-step {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-next {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 38px;
  border-radius: 100px;
  display: block;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-next:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.step-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 10px;
}

.btn-final {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 15px 50px;
  border-radius: 100px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-final:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

#error-text {
  display: none;
  width: 100%;
  background: var(--danger);
  text-align: center;
  color: #fff;
  font-weight: 500;
  padding: 10px;
  font-size: 1rem;
  margin: 0 0 20px;
  border-radius: 5px;
}

.footer-purchase {
  margin-top: 20px;
  text-align: center;
}

.footer-purchase p {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--game-text-secondary);
  opacity: 0.6;
}

.footer-purchase span img {
  position: relative;
  top: 6px;
  margin-right: 5px;
}

/* ===========================================
   BOTÃO ADICIONAR À LISTA (na etapa 2)
   =========================================== */

.quick-actions {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.btn-add-to-list {
  background: var(--bg-secondary);
  border: 2px dashed var(--primary);
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-to-list:hover:not(:disabled) {
  background: rgba(var(--primary-rgb), 0.15);
  transform: translateY(-2px);
}

.btn-add-to-list:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--game-step);
  color: var(--game-text-secondary);
}

.btn-add-to-list i {
  font-size: 1rem;
}

/* ===========================================
   BARRA INFERIOR E PAINEL EXPANSÍVEL
   =========================================== */

#listItemsGame {
  width: calc(100% - 280px);
  position: fixed;
  bottom: 60px;
  right: 0;
  z-index: 101;
}

#listItemsGame.hide {
  display: none;
}

/* Painel Expansível */
.bets-expand-panel {
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 0 0;
  margin: 0 15px;
  overflow: hidden;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.expand-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.expand-panel-header:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

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

.expand-panel-info i {
  color: var(--primary);
  font-size: 1.1rem;
}

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

.expand-panel-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.expand-total {
  font-size: 0.9rem;
  color: var(--game-text-secondary);
}

.expand-total strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.expand-panel-toggle i {
  color: var(--game-text-secondary);
  transition: transform 0.3s ease;
}

.bets-expand-panel.expanded .expand-panel-toggle i {
  transform: rotate(180deg);
}

.expand-panel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.bets-expand-panel.expanded .expand-panel-content {
  max-height: 400px;
}

.expand-bets-list {
  padding: 12px 16px;
  max-height: 280px;
  overflow-y: auto;
}

.expand-bets-list::-webkit-scrollbar {
  width: 4px;
}

.expand-bets-list::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 2px;
}

.expand-panel-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--game-text-secondary);
  font-size: 0.85rem;
  opacity: 0.7;
}

.expand-panel-empty i {
  font-size: 1rem;
}

.expand-panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-secondary);
}

.btn-clear-expand {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--game-text-secondary);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-clear-expand:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.btn-finalize-expand {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-finalize-expand:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.btn-finalize-expand:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Card de aposta no painel expansível */
.expand-bet-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.expand-bet-card:hover {
  border-color: var(--primary);
}

.expand-bet-card:last-child {
  margin-bottom: 0;
}

.expand-bet-info {
  flex: 1;
  min-width: 0;
}

.expand-bet-numbers {
  font-size: 0.85rem;
  color: var(--game-text-primary);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expand-bet-details {
  font-size: 0.75rem;
  color: var(--game-text-secondary);
  opacity: 0.8;
}

.expand-bet-value {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 0 10px;
}

.expand-bet-remove {
  background: transparent;
  border: none;
  color: var(--game-text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.expand-bet-remove:hover {
  color: #dc3545;
  opacity: 1;
}

/* Barra fixa inferior */
.bottom-bar {
  background: var(--bg-header, var(--bg-primary));
  width: calc(100% - 280px);
  position: fixed;
  z-index: 100;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-bar-left {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.bottom-bar-left:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.bar-bets-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bets-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bets-text {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
}

.bottom-bar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.total-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.total-display .total-label {
  font-size: 0.85rem;
  color: var(--game-text-secondary);
}

.total-display .total-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.bottom-bar-right {
  display: flex;
  align-items: center;
}

.btn-finalize {
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-finalize:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.btn-finalize:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===========================================
   MODAL SUCCESS - Redesign
   =========================================== */

.modal-success-seninha {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-success-seninha .modal-content {
  background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: 20px;
  padding: 0;
  max-width: 420px;
  width: 92%;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.4s ease;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-success-seninha .btn-close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--game-text-secondary);
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-success-seninha .btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Header do Modal */
.modal-success-header {
  text-align: center;
  padding: 30px 25px 20px;
  position: relative;
}

.success-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.success-icon-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, #00c853 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.5s ease 0.2s both;
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-icon-circle i {
  color: #fff;
  font-size: 2rem;
  animation: checkBounce 0.4s ease 0.6s both;
}

@keyframes checkBounce {
  0% { opacity: 0; transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.success-confetti {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.success-title {
  color: var(--game-text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 5px;
}

.success-subtitle {
  color: var(--game-text-secondary);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

/* Corpo do Modal */
.modal-success-body {
  padding: 0 25px 20px;
}

.success-summary-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.summary-row.highlight {
  background: rgba(var(--primary-rgb), 0.08);
  margin: 0 -15px;
  padding: 12px 15px;
  border-radius: 8px;
}

.summary-icon {
  width: 38px;
  height: 38px;
  background: rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-icon i {
  color: var(--primary);
  font-size: 1rem;
}

.summary-icon.prize {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 152, 0, 0.2) 100%);
}

.summary-icon.prize i {
  color: #ffc107;
}

.summary-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.summary-label {
  font-size: 0.75rem;
  color: var(--game-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 0.95rem;
  color: var(--game-text-primary);
  font-weight: 500;
  word-break: break-word;
}

.summary-value.prize {
  color: #ffc107;
  font-weight: 700;
  font-size: 1.1rem;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0;
}

/* Card de Total */
.success-total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary-rgb), 0.8) 100%);
  border-radius: 12px;
  padding: 15px 18px;
  margin-top: 15px;
}

.total-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.total-value {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
}

/* Footer do Modal */
.modal-success-footer {
  display: flex;
  gap: 10px;
  padding: 0 25px 20px;
}

.btn-success-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-new-bet {
  background: var(--primary);
  color: #fff;
}

.btn-new-bet:hover {
  background: rgba(var(--primary-rgb), 0.85);
  transform: translateY(-2px);
}

.btn-view-bets {
  background: rgba(255, 255, 255, 0.08);
  color: var(--game-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-view-bets:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Badge de Boa Sorte */
.success-luck-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(76, 175, 80, 0.1);
  border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.success-luck-badge img {
  width: 22px;
  height: 22px;
  animation: cloverSpin 3s linear infinite;
}

@keyframes cloverSpin {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.success-luck-badge span {
  font-size: 0.9rem;
  color: #4caf50;
  font-weight: 600;
}

/* ===========================================
   RESPONSIVO
   =========================================== */

@media (max-width: 1024px) {
  .main-seninha {
    width: 100%;
    padding: 10px;
    padding-bottom: 180px;
  }

  .balls-grid {
    grid-template-columns: repeat(10, 1fr);
    max-width: 100%;
    gap: 3px;
  }

  .ball-svg {
    width: 38px;
    height: 38px;
  }

  .ball-number {
    font-size: 11px;
  }

  /* Barra inferior responsivo tablet */
  .bottom-bar {
    width: 100%;
    left: 0;
    padding: 10px 15px;
  }

  #listItemsGame {
    width: 100%;
    left: 0;
    right: auto;
    bottom: 48px;
  }

  .bets-expand-panel {
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .main-seninha {
    padding-bottom: 170px;
  }

  #stepsGame {
    padding: 20px 15px;
  }

  .header-steps {
    margin: 15px 5px;
  }

  .name-progress {
    font-size: 9px;
  }

  .content-circle-progress {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .balls-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-width: 100%;
    padding: 0 5px;
  }

  .ball-svg {
    width: 36px;
    height: 36px;
  }

  .ball-number {
    font-size: 10px;
  }

  .valor-input-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .valor-btn {
    font-size: 0.85rem;
    padding: 10px 15px;
    flex: 1;
    min-width: 100px;
  }

  .valor-display-box {
    order: -1;
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 5px;
  }

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

  .quantity-selector {
    gap: 6px;
    justify-content: center;
  }

  .qty-btn {
    min-width: 40px;
    height: 38px;
    font-size: 0.85rem;
  }

  .btn-surpresinha {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .btn-add-to-list {
    width: 100%;
    justify-content: center;
  }

  /* Painel expansível mobile */
  .bets-expand-panel {
    margin: 0 8px;
    border-radius: 10px 10px 0 0;
  }

  .expand-panel-header {
    padding: 10px 12px;
  }

  .expand-panel-info {
    font-size: 0.85rem;
  }

  .expand-total strong {
    font-size: 1rem;
  }

  .expand-bets-list {
    padding: 10px 12px;
    max-height: 200px;
  }

  .expand-bet-card {
    padding: 10px;
  }

  .expand-bet-numbers {
    font-size: 0.8rem;
  }

  .expand-bet-details {
    font-size: 0.7rem;
  }

  .expand-bet-value {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  /* Barra inferior responsivo mobile */
  .bottom-bar {
    padding: 8px 12px;
  }

  .bets-badge {
    min-width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .bets-text {
    font-size: 0.8rem;
  }

  .total-display .total-label {
    font-size: 0.75rem;
  }

  .total-display .total-value {
    font-size: 1.1rem;
  }

  .btn-finalize {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .main-seninha {
    padding: 8px;
    padding-bottom: 160px;
  }

  .bg-content-desc .title {
    font-size: 1.4rem;
  }

  .bg-content-desc .subtitle {
    font-size: 0.85rem;
  }

  .header-games .title {
    font-size: 1rem;
  }

  .header-games .subtitle {
    font-size: 0.85rem;
  }

  .balls-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    max-width: 100%;
    padding: 0 10px;
  }

  .ball-svg {
    width: 42px;
    height: 42px;
  }

  .ball-number {
    font-size: 12px;
  }

  .game-card {
    padding: 12px;
  }

  .game-card-title {
    font-size: 0.95rem;
  }

  .game-card-desc {
    font-size: 0.8rem;
  }

  .prize-card {
    padding: 15px;
    margin: 15px 5px;
  }

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

  .quantity-selector {
    gap: 5px;
    padding: 0 5px;
  }

  .qty-btn {
    min-width: 38px;
    height: 36px;
    font-size: 0.8rem;
    padding: 0 6px;
  }

  .selection-counter {
    font-size: 0.9rem;
  }

  .btn-add-to-list {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Painel expansível small mobile */
  .bets-expand-panel {
    margin: 0 5px;
  }

  .expand-panel-header {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .expand-panel-info {
    font-size: 0.8rem;
    gap: 8px;
  }

  .expand-panel-toggle {
    gap: 8px;
  }

  .expand-total {
    font-size: 0.8rem;
  }

  .expand-total strong {
    font-size: 0.95rem;
  }

  .expand-bets-list {
    padding: 8px 10px;
    max-height: 180px;
  }

  .expand-bet-card {
    padding: 8px 10px;
    margin-bottom: 8px;
  }

  .expand-bet-numbers {
    font-size: 0.75rem;
  }

  .expand-bet-details {
    font-size: 0.65rem;
  }

  .expand-bet-value {
    font-size: 0.8rem;
    padding: 4px 8px;
    margin: 0 6px;
  }

  .expand-bet-remove {
    padding: 4px;
    font-size: 0.8rem;
  }

  .expand-panel-actions {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-clear-expand {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .btn-finalize-expand {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  /* Barra inferior responsivo small mobile */
  .bottom-bar {
    padding: 8px 10px;
  }

  .bar-bets-indicator {
    gap: 6px;
  }

  .bets-badge {
    min-width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

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

  .total-display .total-label {
    font-size: 0.7rem;
  }

  .total-display .total-value {
    font-size: 1rem;
  }

  .btn-finalize {
    padding: 8px 12px;
    font-size: 0.8rem;
    gap: 4px;
  }

  /* Sorteios mobile */
  .sorteio-item {
    padding: 10px 12px;
  }

  .sorteio-checkbox {
    width: 20px;
    height: 20px;
  }

  .sorteio-hour {
    font-size: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .main-seninha {
    padding-bottom: 150px;
  }

  .balls-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .ball-svg {
    width: 44px;
    height: 44px;
  }

  .ball-number {
    font-size: 12px;
  }

  .qty-btn {
    min-width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .bets-expand-panel {
    margin: 0 4px;
  }

  .expand-panel-header {
    padding: 6px 8px;
  }

  .expand-panel-info {
    font-size: 0.75rem;
  }

  .expand-bet-card {
    padding: 6px 8px;
  }

  .expand-bet-value {
    font-size: 0.75rem;
    padding: 3px 6px;
  }

  .bottom-bar {
    padding: 6px 8px;
  }

  .bets-badge {
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }

  .total-display .total-value {
    font-size: 0.95rem;
  }

  .btn-finalize {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

#listItemsGame {
  height: unset !important
}