/* ================================
   APOSTAS — Main Container
   ================================ */
.my-bets {
  position: relative;
  background-color: var(--bg-primary);
  padding: 30px;
  border-radius: 16px;
}

/* ================================
   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 24px;
  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;
}

/* ================================
   FILTERS TOOLBAR
   ================================ */
.filters-toolbar {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.filters-row {
  display: flex;
  gap: 10px;
}

/* ================================
   FORM GROUP — icon + label + input
   ================================ */
.form-group {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* leading icon */
.form-group .form-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--primary);
  z-index: 3;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.form-group:focus-within .form-icon {
  opacity: 1;
}

/* floating label */
.form-group label {
  position: absolute;
  top: 6px;
  left: 38px;
  color: var(--text-light);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.form-group:focus-within label {
  color: var(--primary);
  opacity: 1;
}

/* ================================
   INPUT FIELD — shared base
   ================================ */
.input-field {
  background: var(--bg-primary);
  padding: 20px 14px 6px 38px;
  font-size: 0.9rem;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}

.input-field:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 86, 202, 152), 0.12);
  background: var(--bg-primary);
}

/* date-specific */
.input-field[type="date"]::-webkit-calendar-picker-indicator {
  background: rgba(255, 255, 255, 0.06);
  padding: 5px;
  cursor: pointer;
  border-radius: 6px;
  margin: 0;
  transition: background-color 0.2s;
}

.input-field[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* select-specific */
.input-field.input-select {
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
}

/* ================================
   SELECT2 — dark theme override
   ================================ */
.my-bets .select2-container--default .select2-selection--single {
  background: var(--bg-primary) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  height: 52px !important;
  padding: 18px 14px 6px 38px !important;
  outline: none !important;
  transition: all 0.25s ease;
}

.my-bets .select2-container--default .select2-selection--single:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.my-bets .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 86, 202, 152), 0.12);
}

.my-bets .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  line-height: 24px !important;
  padding-left: 0 !important;
}

.my-bets .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 52px !important;
  right: 10px !important;
}

.my-bets .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: rgba(255, 255, 255, 0.3) transparent transparent transparent !important;
}

.my-bets .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent rgba(255, 255, 255, 0.3) transparent !important;
}

.select2-dropdown {
  background: var(--bg-secondary) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  margin-top: 6px;
}

.select2-results__option {
  color: var(--text-primary) !important;
  padding: 11px 16px !important;
  font-size: 0.88rem;
  transition: background 0.15s;
  border-radius: 6px;
  margin: 2px 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--primary) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: rgba(var(--primary-rgb, 86, 202, 152), 0.12) !important;
  color: var(--primary) !important;
  font-weight: 600;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--bg-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  padding: 10px 12px !important;
  font-size: 0.9rem;
  margin: 4px;
  width: calc(100% - 8px);
}

.my-bets .select2-container {
  width: 100% !important;
  max-width: none !important;
  flex: unset !important;
  display: block !important;
}

.my-bets .select2-container .select2-selection--single {
  background: var(--bg-primary) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  height: 52px !important;
  padding: 18px 14px 6px 38px !important;
  margin: 0 !important;
}

.select2-results__options {
  padding: 4px 0 !important;
}

/* ================================
   FLATPICKR — dark theme override
   ================================ */
.flatpickr-calendar {
  background: var(--bg-secondary) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  font-family: inherit;
  padding: 4px;
}

.flatpickr-months {
  background: transparent !important;
  border-radius: 14px 14px 0 0;
  padding: 6px 0 2px;
}

.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
}

.flatpickr-current-month input.cur-year {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-primary) !important;
  fill: var(--text-primary) !important;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--primary) !important;
}

span.flatpickr-weekday {
  background: transparent !important;
  color: var(--text-light) !important;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.flatpickr-day {
  color: var(--text-primary) !important;
  border-radius: 8px !important;
  transition: all 0.15s ease;
  font-weight: 500;
}

.flatpickr-day:hover {
  background: rgba(var(--primary-rgb, 86, 202, 152), 0.12) !important;
  border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 86, 202, 152), 0.3);
}

.flatpickr-day.today {
  border-color: var(--primary) !important;
}

.flatpickr-day.today:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255, 255, 255, 0.12) !important;
}

.flatpickr-innerContainer {
  background: transparent !important;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.flatpickr-rContainer {
  width: 100%;
}

.dayContainer {
  width: 100%;
  min-width: 280px;
  max-width: 320px;
}

.flatpickr-input::-webkit-calendar-picker-indicator {
  display: none !important;
}

.flatpickr-input.input-field {
  cursor: pointer;
}

/* Flatpickr altInput */
.form-group input.flatpickr-alt {
  background: var(--bg-primary) !important;
  padding: 20px 14px 6px 38px !important;
  font-size: 0.9rem !important;
  height: 52px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  color: var(--text-primary) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
}

.form-group input.flatpickr-alt:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-group input.flatpickr-alt:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 86, 202, 152), 0.12);
}

/* ================================
   BETS GRID — Jogo do Bicho cards
   ================================ */
.bets-grid {
  width: 100%;
}

.content-games {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.nobets-day,
.empty-state {
  margin: 70px 10px;
  text-align: center;
  width: 100%;
  color: var(--game-text-primary);
  font-weight: 400;
}

.empty-state i {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

/* loading */
.loading-div {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  color: var(--primary);
  font-size: 1.5rem;
}

/* ---------- CARD ---------- */
.box-games {
  margin: 40px 0;
  min-height: 65px;
  width: calc(50% - 10px);
  position: relative;
  cursor: pointer;
  height: max-content;
}

.box-games:nth-child(odd) {
  margin-right: 10px;
}

.box-games:nth-child(even) {
  margin-left: 10px;
}

/* ---------- CARD HEADER ---------- */
.header-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  width: 100%;
  padding: 20px;
  position: absolute;
  color: #848688;
  border-radius: 15px;
  -webkit-box-shadow: 0px 4px 20px rgb(0 0 0 / 25%);
  z-index: 1;
  background-color: var(--bg-secondary);
}

.header-game div {
  flex: 1;
}

.box-games.clicked .header-game {
  padding-bottom: 12px;
}

.header-game .id-game {
  white-space: nowrap;
}

.header-game .game-total {
  font-size: 0.8rem;
  color: #848688;
  white-space: nowrap;
}

.header-game .game-total span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.header-game .game-lottery-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--game-text-primary, #fff);
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- STATUS BADGE ---------- */
.button-award {
  background-color: #d2d3d5d3;
  color: #848688;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  outline-style: none;
  border: none;
  border-radius: 40px;
  padding: 5px 10px;
  transition: opacity 0.2s;
}

.button-award.awarded {
  background-color: #56ca9848;
  color: var(--primary);
  box-shadow: 0 0 10px #56ca9848;
  white-space: nowrap;
}

.button-award.not-awarded,
.button-award.reversed,
.button-award.blocked {
  background-color: #dc354644;
  color: #dc3545;
  box-shadow: 0 0 10px #dc354644;
  white-space: nowrap;
}

.button-award.wait {
  background-color: #e5b02342;
  box-shadow: 0 0 10px #e5b02342;
  color: #e5b023;
  white-space: nowrap;
}

/* ---------- COLUMNS HEADER (expanded) ---------- */
.box-games .header-main-game {
  display: flex;
  flex: 1;
  transition: all .5s;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
}

.box-games .header-main-game div {
  flex: 1;
}

.box-games.clicked .header-main-game {
  opacity: 1;
  visibility: visible;
}

.id-game {
  color: #848688;
}

.id-game > span {
  color: var(--primary);
  font-weight: bold;
}

.content-main-game.awarded .id-game > span {
  color: var(--primary);
}

/* ---------- EXPANDED CONTENT ---------- */
.main-game {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  width: 100%;
  padding-top: 80px;
  margin-top: 30px;
  border-radius: 0 0 15px 15px;
  -webkit-box-shadow: 0px 4px 20px rgb(0 0 0 / 25%);
  max-height: 300px;
  overflow-y: auto;
}

.main-game::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: var(--bg-secondary);
}

.main-game::-webkit-scrollbar {
  width: 5px;
  background-color: var(--bg-secondary);
}

.main-game::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
  background-color: var(--primary);
}

.main-game .title {
  color: #848688;
  font-size: 16px;
}

.main-game .sub-title {
  color: #848688;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-game .modality-game {
  flex: 1;
  margin: 0 10px 0 0;
  display: flex;
  align-items: center;
}

/* ---------- INDIVIDUAL BET ROW ---------- */
.content-main-game {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  margin: 5px 0;
  border-radius: 10px;
}

.content-main-game.awarded {
  background-color: #56ca9852;
}

.content-main-game.not-awarded {
  background-color: #dc354644;
}

.content-main-game .modality-game .icon-awarded {
  background-color: var(--primary);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  box-shadow: 0 0 0 rgba(86, 455, 152, 0.4);
  animation: awarded-pulse 2s infinite;
}

.box-games .numbers-game {
  flex: 1;
  margin: 0 10px;
  overflow: hidden;
  text-align: center;
}

.box-games .numbers-game > div {
  overflow: hidden;
}

.box-games .view-game {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  margin: 0 0 0 10px;
}

.box-games .view > .eye {
  background-color: transparent;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 22px;
  color: #848688;
}

.box-games .view > .eye > i {
  transition: 0.1s all;
}

.box-games .view > .eye:hover > i {
  transform: scale(1.15);
}

/* ---------- CHEVRON ---------- */
.chevron-game {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #848688;
  flex: 1;
  width: 100%;
  height: 10px;
  position: absolute;
  bottom: -20px;
  z-index: 2;
}

.chevron-game > i {
  font-size: 18px;
  transition: 0.7s transform;
  transform: rotate(0deg);
}

.chevron-game.active > i {
  transition: 0.7s transform;
  transform: rotate(-180deg);
}

/* ---------- CLAIM ---------- */
.box-games .view-game .claim {
  justify-content: center;
  align-items: center;
  display: flex;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 20px !important;
  border-radius: 10px;
}

.box-games .view-game .claim:active {
  transform: scale(0.9);
}

.box-games .view-game .claim > i {
  font-size: 16px;
  font-weight: 500;
}

.box-games .view-game .claimed {
  background-color: #56ca9848;
  color: var(--primary);
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  padding: 7px 5.65px !important;
  border-radius: 10px;
  text-transform: uppercase;
}

/* ---------- ANIMATIONS ---------- */
@-webkit-keyframes awarded-pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(86, 455, 152, 0.4);
  }
  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
  }
}

@keyframes awarded-pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(86, 455, 152, 0.4);
    box-shadow: 0 0 0 0 rgba(86, 455, 152, 0.4);
  }
  70% {
    -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
  }
}

/* ================================
   MODAL — Bet Detail
   ================================ */
.modal.modal-mybet {
  transition: .25s cubic-bezier(0.95, 0.01, 0.36, 1);
  transform: translateY(-100%);
}

.modal.modal-mybet.open {
  transform: translateY(0%);
}

.modal-mybet .modal-content {
  background: rgb(62 56 161 / 20%);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgb(255 255 255 / 30%);
}

.container-mybet {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column-reverse;
}

.container-resume, .container-poule {
  margin: 10px;
}

.container-resume {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  flex-wrap: wrap;
}

.container-resume h1 {
  color: #fff;
  margin-bottom: 10px;
}

.container-resume h1.winner {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

.container-resume h1.loser {
  color: #dc3545;
  text-shadow: 0 0 15px #dc3545;
}

.content-resume {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.content-resume div {
  border: 1px solid #fff;
  padding: 5px 15px;
  color: #fff;
}

.content-resume div:first-child {
  border-radius: 5px 0 0 5px;
}

.content-resume div:last-child {
  border-radius: 0 5px 5px 0;
}

.container-resume h2 {
  font-size: 1rem;
  color: var(--primary);
}

.modal-title {
  position: relative;
}

.modal-mybet .btn-close-modal {
  position: absolute;
  right: 0px;
  top: 10px;
  color: #fff;
  font-size: 1.5rem;
}

.container-result {
  color: #fff;
  text-align: center;
}

#resultados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#resultados-info {
  padding: 10px;
  border: 1px solid #fff;
  flex: 1;
  white-space: nowrap;
}

/* ================================
   POULE (receipt)
   ================================ */
.poule {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  background-color: rgb(255, 225, 161);
  width: 200px;
  height: 100%;
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  margin: auto;
}

.poule h2 {
  font-size: .8rem;
  margin: 5px 0;
  color: #636363;
}

.title-poule {
  font-size: 1rem;
}

.poule .user-name {
  color: var(--primary);
  margin: 0 0 5px;
}

.poule hr {
  width: 50%;
  margin: 10px auto;
  border: none;
  border-top: 1px solid rgb(0 0 0 / 20%) !important;
  outline: none;
  border-radius: 100px;
}

blockquote:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 28px;
  right: 0;
  top: -16px;
  left: 0;
  background: linear-gradient(-135deg, transparent 70%, rgb(255, 225, 161) 75%) 0 50%, linear-gradient(135deg, transparent 70%, rgb(255, 225, 161) 75%) 0 50%;
  background-repeat: repeat-x;
  background-size: 5px 4px, 5px 4px;
}

blockquote:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 28px;
  right: 0;
  bottom: -16px;
  left: 0;
  background: linear-gradient(-45deg, transparent 70%, rgb(255, 225, 161) 75%) 0 50%, linear-gradient(45deg, transparent 70%, rgb(255, 225, 161) 75%) 0 50%;
  background-repeat: repeat-x;
  background-size: 5px 4px, 5px 4px;
}

/* ================================
   MODAL — legacy selectors
   ================================ */
#modal_jogo .modal-header,
#modal_detalhe .modal-header {
  background: #fff;
  display: block;
  border-radius: 10px 10px 0 0;
}

#modal_jogo .winning-notice {
  color: var(--primary);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}

#modal_jogo .btn-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 5;
  color: #dc3545;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545' %3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  opacity: 1;
}

#modal_jogo .btn-close:hover {
  opacity: .5;
}

.container-my-games {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.title-jogo {
  font-weight: bold;
  color: var(--primary);
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

.description-jogo {
  width: 100%;
  color: var(--primary);
  text-align: center;
}

#modal_jogo .modal-footer {
  color: #fff;
  text-align: center;
  border-top: none;
  border-radius: 0 0 10px 10px;
  align-self: center;
}

#modal_jogo .modal-body div {
  z-index: 1;
}

#modal_jogo .modal-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url(/website/assets/images/back-loading.jpg) no-repeat center;
  background-size: cover;
  padding: 0px;
}

#modal_jogo .modal-body .col-lg-3:first-child,
#modal_detalhe .modal-body .col-lg-3:first-child {
  background: #fff;
}

#modal_jogo .modal-body .col-lg-3,
#modal_jogo .modal-body .col-lg-6,
#modal_detalhe .modal-body .col-lg-3:first-child,
#modal_detalhe .modal-body .col-lg-6:first-child {
  padding: 20px 0;
}

.description-jogo-jogado {
  font-size: 16px;
  color: #fff;
  padding-top: 20px;
  text-align: center;
}

#modal_detalhe .description-jogo-jogado {
  padding: 10px 10px 10px 20px;
}

.resumo-jogo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

#modal_detalhe .resumo-jogo {
  padding: 10px;
}

#modal_jogo .result-table {
  color: #fff;
  text-align: center;
  flex-direction: column;
}

#modal_jogo .result-table #resultados {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

#modal_jogo .result-table #resultados #resultados-info {
  border: 1px solid #fff;
  padding: 10px;
}

/* ================================
   LOTTERY BETS — Grouped Layout
   ================================ */
.container-lottery-bets {
  width: 100%;
}

.content-lottery-bets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* ---------- GROUP CARD ---------- */
.lottery-group {
  background: var(--bg-secondary);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s;
}

.lottery-group:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.06);
}

.lottery-group.open {
  border-color: rgba(255, 255, 255, 0.08);
}

/* status accent bar */
.lottery-group::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-light, #6c757d);
}

.lottery-group.status-wait::before { background: linear-gradient(90deg, #e5b023, #f5d76e); }
.lottery-group.status-awarded::before { background: linear-gradient(90deg, var(--primary), var(--primary-light, #7dffca)); }
.lottery-group.status-not-awarded::before { background: linear-gradient(90deg, #dc3545, #ff6b7a); }
.lottery-group.status-reversed::before { background: linear-gradient(90deg, #6c757d, #9ea5ad); }

/* ---------- GROUP HEADER ---------- */
.lottery-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  gap: 16px;
  transition: background 0.2s;
}

.lottery-group-header:hover {
  background: rgba(255, 255, 255, 0.015);
}

.lottery-group-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.lottery-group-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--game-text-primary, #fff);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lottery-group-name i {
  color: var(--primary);
  opacity: 0.7;
  font-size: 0.9rem;
}

.lottery-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--game-text-secondary, #848688);
}

.lottery-group-meta span {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lottery-group-meta i {
  opacity: 0.5;
  font-size: 0.7rem;
}

.lottery-group-total {
  font-weight: 600;
  color: var(--game-text-primary, #fff);
}

.lottery-group-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lottery-group-prize {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lottery-group-prize i {
  font-size: 0.8rem;
  opacity: 0.8;
}

.lottery-group-chevron {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--game-text-secondary, #848688);
  transition: all 0.3s ease;
}

.lottery-group-header:hover .lottery-group-chevron {
  background: rgba(255, 255, 255, 0.08);
}

.lottery-group.open .lottery-group-chevron {
  background: rgba(var(--primary-rgb, 86, 202, 152), 0.12);
}

.lottery-group.open .lottery-group-chevron i {
  transform: rotate(-180deg);
}

.lottery-group-chevron i {
  transition: transform 0.3s ease;
  color: var(--game-text-secondary, #848688);
  font-size: 12px;
}

.lottery-group.open .lottery-group-chevron i {
  color: var(--primary);
}

/* ---------- GROUP BODY (accordion) ---------- */
.lottery-group-body {
  padding: 2px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* counter label */
.lottery-group-body::before {
  content: '';
  display: block;
  margin-bottom: 2px;
}

/* ---------- INDIVIDUAL BET ITEM ---------- */
.lottery-bet-item {
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lottery-bet-item:hover {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* status left accent */
.lottery-bet-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.lottery-bet-item.awarded::after { background: var(--primary); }
.lottery-bet-item.not-awarded::after { background: #dc3545; }
.lottery-bet-item.wait::after { background: #e5b023; }
.lottery-bet-item.reversed::after { background: #6c757d; }

.lottery-bet-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---------- NUMBERS INLINE ---------- */
.lottery-bet-numbers-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.lottery-ball {
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--game-text-secondary, #a3a3b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: none;
  user-select: none;
  transition: all 0.2s ease;
}

.lottery-ball.matched {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(var(--primary-rgb, 86, 202, 152), 0.45);
  animation: ballPop 0.4s ease;
}

@keyframes ballPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ---------- BET ITEM BODY ---------- */
.lottery-bet-item-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.lottery-bet-item-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.78rem;
  color: var(--game-text-secondary, #848688);
}

.lottery-bet-item-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lottery-bet-item-info i {
  opacity: 0.45;
  font-size: 0.7rem;
}

.lottery-prize-inline {
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 0.85rem;
}

.lottery-prize-inline i {
  opacity: 0.8 !important;
}

.lottery-bet-item-time {
  font-size: 0.72rem;
  color: var(--game-text-secondary, #848688);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
}

.lottery-bet-item-time i {
  font-size: 0.65rem;
}

/* ---------- MATCHES PROGRESS ---------- */
.lottery-matches-bar {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lottery-matches-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--game-text-secondary, #848688);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lottery-matches-label .match-count {
  color: var(--game-text-primary, #fff);
}

.lottery-matches-label .match-count.has-matches {
  color: var(--primary);
}

.lottery-matches-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}

.lottery-matches-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--text-light, #6c757d);
  transition: width 0.6s ease;
}

.lottery-matches-fill.has-matches {
  background: linear-gradient(90deg, var(--primary), var(--primary-light, #7dffca));
  box-shadow: 0 0 8px rgba(var(--primary-rgb, 86, 202, 152), 0.35);
}


/* ================================
   RESPONSIVE
   ================================ */
@media only screen and (max-width: 1000px) {
  .button-award {
    font-size: 12px;
  }

  .lottery-game {
    font-size: 16px;
  }
}

@media only screen and (max-width: 800px) {
  .my-bets {
    padding: 16px 10px;
    border-radius: 12px;
  }

  .filters-toolbar {
    padding: 10px;
    border-radius: 12px;
  }

  .filters-row {
    gap: 8px;
  }

  .filters-row {
    flex-wrap: wrap;
  }

  .form-group {
    flex: 1 1 100%;
  }

  .input-field,
  .select2-container--default .select2-selection--single {
    height: 48px !important;
    font-size: 0.88rem !important;
  }

  .form-group input.flatpickr-alt {
    height: 48px !important;
  }

  .box-games {
    margin: 40px 0 !important;
    width: 100%;
  }

  /* --- lottery groups mobile --- */
  .lottery-group {
    border-radius: 14px;
  }

  .lottery-group-header {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .lottery-group-info {
    width: 100%;
    gap: 6px;
  }

  .lottery-group-name {
    font-size: 0.88rem;
  }

  .lottery-group-meta {
    gap: 4px;
    font-size: 0.68rem;
  }

  .lottery-group-meta span {
    padding: 2px 7px;
  }

  .lottery-group-right {
    width: 100%;
    gap: 8px;
  }

  .lottery-group-prize {
    font-size: 0.82rem;
    flex: 1;
  }

  .lottery-group-chevron {
    width: 26px;
    height: 26px;
  }

  .lottery-group-body {
    padding: 2px 10px 12px;
    gap: 6px;
  }

  /* --- lottery bet items mobile --- */
  .lottery-bet-item {
    padding: 12px;
    border-radius: 12px;
  }

  .lottery-bet-numbers-inline {
    gap: 4px;
  }

  .lottery-ball {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .lottery-bet-item-header {
    margin-bottom: 8px;
    gap: 8px;
  }

  .lottery-bet-item-body {
    flex-wrap: wrap;
    gap: 4px;
  }

  .lottery-bet-item-info {
    gap: 4px 10px;
    font-size: 0.73rem;
  }

  .lottery-prize-inline {
    font-size: 0.78rem !important;
  }

  .lottery-matches-bar {
    margin-top: 8px;
    padding-top: 8px;
  }

  #footer {
    margin-top: 40px !important;
  }
}
