* {
  margin: 0;
  font-family: "Comfortaa", cursive;
}

body {
  background: #fff;
}

.centerFlex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.unread-badge2 {
  background-color: #f9ca07;
  color: #44057a;
  border-radius: 50%;
  width: 22px;
  height: 22px;

  margin-right: 14px;

  font-size: 12px;
  font-weight: bold;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-left: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 800px) {
  #flex2 {
    flex: 2 !important;
  }

  .btn-login {
    padding: 0px 3px !important;
    font-size: 12px !important;
  }
  .sombra {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ant-card-body {
    padding: 7px !important;
  }
}
@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 540px;
  }

  .sombra {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (min-width: 768px) {
  .container,
  .container-md,
  .container-sm {
    max-width: 720px;
  }

  .sombra {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm {
    max-width: 960px;
  }
  .sombra {
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1140px;
  }
  .sombra {
    padding-left: 25px;
    padding-right: 25px;
  }
}
.item {
  flex: 0 0 calc(15.33% - 20px); /* Ancho del 33.33% para cada columna, con un pequeño espacio entre ellas */
  /* Relleno para espacio interno */
  margin-right: 10px;
}

.numerosSeleccionadoHoy {
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: radial-gradient(circle at 50% 25%, #fff, #bbb);
  border-radius: 100%;
  border: 1px solid #c9c9c9;
  font-size: 1.15rem;
}

.sombra {
  -webkit-box-shadow: 0px 3px 43px 0px rgba(12, 0, 255, 0.1);
  box-shadow: 0px 3px 43px 0px rgba(12, 0, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 30px;

  padding-top: 30px;
  padding-bottom: 30px;
}

.a-rose:hover {
  color: #5949b3 !important;
}

.ant-picker-input input {
  text-align: center;
}

#diaSemana .ant-table-cell {
  text-align: center !important;
}
#diaSemana .ant-table-cell {
  border: #f2f1f1 1px solid;
}

.header-active {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 99;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  animation-name: fadeInDown;
  -webkit-animation-name: fadeInDown;
  -moz-animation-name: fadeInDown;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  -moz-animation-duration: 1s;
}

/* Estilos para el selector de sorteo con búsqueda */
.ant-select-selector {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.ant-select-focused .ant-select-selector {
  border-color: #ec1379 !important;
  box-shadow: 0 0 0 2px rgba(236, 19, 121, 0.2) !important;
}

.ant-select-dropdown {
  border-radius: 8px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.ant-select-item-option-selected {
  background-color: rgba(236, 19, 121, 0.1) !important;
}

.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  background-color: rgba(236, 19, 121, 0.05) !important;
}

.ant-select-item {
  transition: all 0.2s ease;
}

.ant-select-item:hover {
  background-color: rgba(236, 19, 121, 0.05) !important;
}

/* Estilos simplificados para las coincidencias */
.coincidence-badge {
  font-weight: bold !important;
}

/* Contenedor simple para la insignia de coincidencia */
.coincidence-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

/* Texto de coincidencia - más simple */
.coincidence-text {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Estilos mejorados para el selector de vista */
.view-mode-selector {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-mode-option {
  padding: 6px 10px;
  color: #666;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-mode-option:hover {
  background-color: rgba(236, 19, 121, 0.05);
}

.view-mode-option.active-view {
  color: #ec1379;
  font-weight: bold;
}

.view-switch {
  margin: 0 10px;
}

.view-switch .ant-switch-checked {
  background-color: #ec1379;
}

/* Estilos para las tarjetas de resultados */
.result-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.15);
}

.result-card .ant-card-cover {
  padding: 0;
  overflow: hidden;
}

.result-card .ant-card-body {
  padding: 16px;
}

.result-card .ant-card-actions {
  background-color: #f9f9f9;
  border-top: 1px solid #f0f0f0;
}

/* Estilos mejorados para el logo en dispositivos móviles */
.mobile-friendly-logo {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative; /* Importante para posicionamiento absoluto */
}

.mobile-friendly-logo .ant-image {
  position: relative;
  z-index: 2;
  display: block !important;
}

.mobile-friendly-logo .ant-image-img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

/* Estilos específicos para la tabla en móvil */
.ant-table .mobile-friendly-logo {
  height: 80px;
}

/* Estilos específicos para las tarjetas */
.card-lottery-logo {
  height: 100px;
  background: linear-gradient(135deg, #f9f0f6, #f5e6f0);
  border-bottom: 1px solid #f0e0eb;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.card-lottery-logo .mobile-friendly-logo {
  height: 100%;
  width: 100%;
}

/* Ajustes específicos para móviles */
@media (max-width: 576px) {
  .ant-table .mobile-friendly-logo {
    height: 60px;
  }

  .card-lottery-logo {
    height: 120px;
  }

  /* Hack para forzar la visualización en Safari iOS */
  .mobile-friendly-logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }
}

.lottery-image-root {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
  width: 100% !important; /* Asegurar que ocupe todo el ancho disponible */
}

.lottery-image-root .ant-image {
  max-width: 140px;
  max-height: 120px;
  width: auto !important; /* Importante para dispositivos móviles */
  height: auto !important; /* Importante para dispositivos móviles */
}

.lottery-image-root .ant-image-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.result-card:hover .ant-image-img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.card-date {
  font-size: 14px;
  color: #666;
  text-align: center;
  font-weight: 500;
}

.card-numbers {
  display: flex;
  justify-content: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.card-coincidences {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
}

.coincidence-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

/* Botón de días siguientes */
.next-days-button {
  background: linear-gradient(90deg, #ec1379, #d11070) !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(236, 19, 121, 0.3) !important;
  transition: all 0.3s ease !important;
}

.next-days-button:hover {
  background: linear-gradient(90deg, #d11070, #ec1379) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(236, 19, 121, 0.4) !important;
}

/* Ajustes responsivos para las tarjetas */
@media (max-width: 576px) {
  .result-card .ant-card-body {
    padding: 12px;
  }

  .card-numbers .numerosSeleccionado,
  .card-numbers .numerosSeleccionadoHoy {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .next-days-button {
    font-size: 12px;
    height: 32px;
    padding: 0 8px;
  }

  .card-lottery-logo {
    height: 120px;
    padding: 10px;
  }

  .mobile-friendly-logo .ant-image {
    max-width: 90% !important;
    max-height: 90% !important;
  }
}

/* Estilos para la paginación de tarjetas */
.cards-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  padding-bottom: 24px;
}

.cards-pagination .ant-pagination-item-active {
  border-color: #ec1379;
}

.cards-pagination .ant-pagination-item-active a {
  color: #ec1379;
}

.cards-pagination .ant-pagination-item:hover {
  border-color: #ec1379;
}

.cards-pagination .ant-pagination-item:hover a {
  color: #ec1379;
}

.cards-pagination
  .ant-pagination-options
  .ant-select-focused
  .ant-select-selector {
  border-color: #ec1379;
}

.cards-pagination .ant-pagination-options-quick-jumper input:focus {
  border-color: #ec1379;
  box-shadow: 0 0 0 2px rgba(236, 19, 121, 0.2);
}

.cards-pagination .ant-select-item-option-selected {
  color: #ec1379;
  font-weight: 600;
}

/* Ajustes responsivos para la paginación */
@media (max-width: 576px) {
  .cards-pagination {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cards-pagination .ant-pagination-options {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* Estilos para el modal de días siguientes */
.next-days-modal .ant-modal-content {
  border-radius: 12px;
  overflow: hidden;
}

.next-days-modal .ant-modal-header {
  background: linear-gradient(90deg, #44057a, #5a0a9e);
  padding: 16px 24px;
  border-bottom: none;
}

.next-days-modal .ant-modal-title {
  color: white;
  font-weight: 600;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.next-days-modal .ant-modal-body {
  padding: 20px;
}

.next-days-modal .ant-modal-footer {
  border-top: none;
  padding: 0 24px 24px;
}

.modal-close-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ec1379, #d11070) !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(236, 19, 121, 0.3) !important;
}

.modal-close-button:hover {
  background: linear-gradient(90deg, #d11070, #ec1379) !important;
  box-shadow: 0 4px 8px rgba(236, 19, 121, 0.4) !important;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.day-result-card {
  background-color: #f9f9f9;
  border-radius: 8px;
}

.day-result-card .ant-card-head {
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;
  min-height: 40px;
}

.day-result-card .ant-card-head-title {
  padding: 8px 0;
}

.day-date {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.day-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px 0;
}

.modal-number {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
}

/* Estilos para el logo en el modal */
.modal-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  width: 50px;
  height: 50px;
}

.modal-logo-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  height: 100% !important;
}

.modal-logo-image .ant-image {
  max-width: 40px;
  max-height: 40px;
}

.modal-logo-image .ant-image-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Ajustes específicos para móviles */
@media (max-width: 576px) {
  .modal-logo-container {
    width: 40px;
    height: 40px;
  }

  .modal-logo-image .ant-image {
    max-width: 30px;
    max-height: 30px;
  }
}



/* Ensure content doesn't get hidden behind fixed InfoBar and Header */
.ant-layout-content {
  padding-top: 0;
}

/* DatePicker móvil centrado tipo modal y limpio */
@media (max-width: 600px) {
  .ant-picker-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: calc(100vw - 24px) !important;
    width: auto !important;
    margin: 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
    border-radius: 16px !important;
  }

  .ant-picker-dropdown.ant-picker-dropdown-hidden {
    display: none !important;
  }

  .ant-picker-dropdown .ant-picker-panel-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: 1px solid #e2e8f0;
    background: #ffffff !important;
  }

  .ant-picker-dropdown .ant-picker-panel {
    width: 100% !important;
  }

  .ant-picker-dropdown .ant-picker-date-panel {
    width: 100% !important;
  }

  .ant-picker-dropdown .ant-picker-content {
    width: 100% !important;
  }

  .ant-picker-dropdown .ant-picker-header {
    padding: 12px 16px !important;
    font-weight: 700 !important;
  }

  .ant-picker-dropdown .ant-picker-cell {
    padding: 5px 0 !important;
  }
}

.historial-page-wrapper .draws-2col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.draws-2col-grid > * {
  min-width: 0;
}

.draws-2col-grid .grid-full-width {
  grid-column: 1 / -1;
}

.draw-tile-card {
  --draw-accent: #44057a;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e9e4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(40, 5, 80, .035);
}

.draw-tile-card.is-today-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #f2d4e5;
  background: linear-gradient(180deg, #fffafd 0%, #ffffff 100%);
  box-shadow: 0 4px 14px rgba(236, 19, 121, .06), 0 2px 6px rgba(68, 5, 122, .04);
}

.draw-tile-card.is-today-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #ec1379 0%, #fbbf24 50%, #44057a 100%);
}

.tile-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0ecf5;
}

.tile-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tile-draw-time,
.tile-header-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #736780;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.is-today-card .tile-header-time-tag {
  background: #fff8eb;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.is-today-card .tile-header-time-tag .anticon {
  color: #d97706 !important;
}

.tile-date {
  color: #40334e;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tile-status-today,
.tile-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

.tile-status-today {
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ec1379, #c70d65);
  color: #fff;
  box-shadow: 0 2px 5px rgba(236, 19, 121, .28);
}

.tile-status-pending {
  background: #fff4da;
  color: #945b08;
}

.tile-today-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 4px rgba(251, 191, 36, .9);
}

.tile-pending-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.is-today-card .tile-ball-label {
  color: #9d174d;
  font-weight: 800;
}

.tile-body-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 66px;
}

.is-today-card .tile-body-row {
  max-width: 520px;
  margin-inline: auto;
  padding-block: 8px;
}

.tile-logo-badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 135px;
  max-width: 145px;
  height: 48px;
  min-width: 0;
}

.tile-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48px;
  min-height: 42px;
  object-fit: contain;
}

.is-today-card .tile-logo-badge {
  flex-basis: 160px;
  max-width: 180px;
  height: 56px;
}

.is-today-card .tile-logo-img {
  max-height: 56px;
  min-height: 50px;
}

.tile-lottery-name {
  min-width: 0;
  color: #40334e;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tile-numbers-row,
.tile-pending-balls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tile-numbers-row {
  flex-shrink: 0;
}

.tile-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.tile-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, #682c9c, #44057a 75%);
  border: 1px solid #582087;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .22), 0 3px 5px rgba(68, 5, 122, .12);
  color: #fff;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.is-today-card .tile-ball {
  width: 54px;
  height: 54px;
  font-size: 27px;
}

.tile-ball-label {
  color: #786587;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tile-pending-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tile-ball.tile-ball-pending {
  background: #f4f0f8;
  border: 1px dashed #c7b9d5;
  box-shadow: none;
  color: #a090ad;
}

.tile-pending-subtext {
  color: #736780;
  font-size: 11px;
}

.tile-winners-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f0ecf5;
  color: #945b08;
  font-size: 11px;
  font-weight: 700;
}

.is-loto-card .tile-body-row {
  flex-direction: column;
  align-items: center;
}

.is-loto-card .tile-logo-badge {
  flex: none;
  max-width: 140px;
}

.is-loto-card .tile-numbers-row {
  flex-shrink: 1;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1199px) {
  .historial-page-wrapper .draws-2col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .historial-page-wrapper .draws-2col-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .draw-tile-card,
  .draw-tile-card.is-today-card {
    padding: 12px;
  }
  .tile-body-row {
    gap: 10px;
  }
  .tile-ball,
  .is-today-card .tile-ball {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }
  .tile-numbers-row,
  .tile-pending-balls {
    gap: 6px;
  }
}


.historial-page-wrapper {
  --history-accent: #44057a;
  --history-magenta: #bc105e;
  --history-ink: oklch(29% .035 310);
  --history-muted: oklch(48% .03 310);
  --history-line: oklch(91% .012 310);
  --history-surface: oklch(99% .003 310);
  --history-tint: oklch(96% .012 310);
  min-width: 0;
  padding-top: 96px;
  padding-bottom: 48px;
  color: var(--history-ink);
}

.historial-page-wrapper .historial-container { min-width: 0; }
.historial-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--history-accent);
  outline-offset: 4px;
}
.historial-page-wrapper :is(#sorteos, #estadisticas) { scroll-margin-top: 104px; }
.historial-page-wrapper .history-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--history-muted);
  font-size: 12px;
  line-height: 1.5;
}
.historial-page-wrapper .history-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--history-accent);
}
.historial-page-wrapper .history-hero { margin-bottom: 24px; }
.historial-page-wrapper :is(.history-overview, .history-result-overview) { min-width: 0; }
.historial-page-wrapper .history-current { margin-bottom: 4px; }
.historial-page-wrapper .history-current :is(.draws-2col-grid, .history-pending) { margin-bottom: 0; }
.historial-page-wrapper .history-all-today {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  padding-block: 8px;
  margin-bottom: 24px;
  border-radius: 4px;
  color: var(--history-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.historial-page-wrapper .history-all-today:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.historial-page-wrapper .history-all-today-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.historial-page-wrapper .history-all-today:hover .history-all-today-arrow {
  transform: translateX(3px);
}
.historial-page-wrapper .history-heading-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.historial-page-wrapper .history-heading-copy { min-width: 0; }
.historial-page-wrapper .history-heading-copy h1 {
  max-width: 32ch;
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.6px;
  text-wrap: balance;
}
.historial-page-wrapper .history-heading-copy p {
  max-width: 72ch;
  margin: 0;
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.6;
}
.historial-page-wrapper .history-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 88px;
  padding: 12px;
  border: 1px solid var(--history-line);
  border-radius: 16px;
  background: var(--history-surface);
}
.historial-page-wrapper .history-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.historial-page-wrapper .history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  margin-top: 14px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.historial-page-wrapper .history-section-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.historial-page-wrapper .history-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 15px;
  background: #ffffff;
  border: 1px solid #e2d9ec;
  border-radius: 9999px;
  color: var(--history-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.historial-page-wrapper .history-action-pill:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #31005a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(68, 5, 122, 0.08);
  text-decoration: none;
}

.historial-page-wrapper .pill-label-mobile {
  display: none;
}

.historial-page-wrapper .history-action-share:hover {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.historial-page-wrapper .history-action-icon {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.historial-page-wrapper .history-action-pill:hover .history-action-icon {
  transform: scale(1.15);
}
/* High-Impact Golden CTA: "Juega ahora" / "Jugar ahora" */
@keyframes cta-shimmer {
  0% {
    transform: translateX(-140%) rotate(25deg);
  }
  25%, 100% {
    transform: translateX(260%) rotate(25deg);
  }
}

.historial-page-wrapper :is(.history-play, .history-pending-play) {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.38), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
}

.historial-page-wrapper :is(.history-play, .history-pending-play)::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}

.historial-page-wrapper :is(.history-play, .history-pending-play):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 165, 0, 0.52), 0 2px 6px rgba(0, 0, 0, 0.1);
  filter: brightness(1.08);
  color: #1a0033;
}

.historial-page-wrapper :is(.history-play, .history-pending-play):active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.35);
}

.historial-page-wrapper :is(.history-play, .history-pending-play):focus-visible {
  outline: 2px solid var(--history-accent);
  outline-offset: 3px;
}

.historial-page-wrapper .history-play {
  min-height: 42px;
  padding: 8px 20px;
  border-radius: 9999px;
}

.historial-page-wrapper .history-play-mobile-row {
  display: none;
}

.historial-page-wrapper .history-pending-play {
  min-height: 42px;
  padding: 8px 20px;
  border-radius: 12px;
}

.historial-page-wrapper :is(.history-play, .history-pending-play) .cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(34, 2, 64, 0.12);
  color: #220240;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.historial-page-wrapper :is(.history-play, .history-pending-play) .cta-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.historial-page-wrapper :is(.history-play, .history-pending-play):hover .cta-icon {
  transform: rotate(-10deg) scale(1.15);
  background: rgba(34, 2, 64, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(34, 2, 64, 0.15);
}

.historial-page-wrapper .history-play .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.historial-page-wrapper .history-play:hover .cta-arrow {
  transform: translate(2.5px, -2.5px);
}
@media (forced-colors: active) {
  .historial-page-wrapper :is(.history-play, .history-pending-play):focus-visible {
    outline-color: Highlight;
  }
}
.historial-page-wrapper .history-pending {
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #ecdfc4;
  border-radius: 16px;
  background: #fffaf0;
  color: #71501f;
}
.historial-page-wrapper .history-pending strong { display: block; font-size: 14px; line-height: 1.5; }
.historial-page-wrapper .history-pending-date { display: block; margin-bottom: 8px; color: var(--history-muted); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.historial-page-wrapper .tile-ball-label { text-transform: none; }
.historial-page-wrapper .history-pending-draw { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 320px; padding-block: 10px; }
.historial-page-wrapper .history-pending-logo { width: 64px; height: 48px; flex: none; object-fit: contain; }
.historial-page-wrapper .history-pending .tile-header-row { border-bottom-color: #ecdfc4; }
.historial-page-wrapper .history-pending .history-pending-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ecdfc4; }
.historial-page-wrapper .history-pending-ball {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d5c7e3;
  background: linear-gradient(145deg, #f8f5fb, #e0d5ec);
  box-shadow: inset 0 2px 3px #fcfaff, 0 2px 3px rgb(68 5 122 / 8%);
}
.historial-page-wrapper .history-pending p { font-size: 13px; line-height: 1.6; margin: 5px 0 0; }
.historial-page-wrapper .history-pending-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.historial-page-wrapper .history-countdown { min-width: 0; flex: 1 1 210px; }
.historial-page-wrapper .history-countdown [role="timer"] { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.historial-page-wrapper .history-countdown-icon { flex: none; margin-top: 2px; font-size: 16px; }
.historial-page-wrapper .history-countdown small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--history-muted); }

.historial-page-wrapper .history-date-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--history-line);
  border-radius: 14px;
  background: var(--history-surface);
  margin-bottom: 16px;
}
.historial-page-wrapper .history-date-field { display: flex; flex-direction: column; gap: 8px; flex: 0 1 300px; min-width: 0; }
.historial-page-wrapper .history-date-field label { font-size: 13px; font-weight: 700; }
.historial-page-wrapper .history-date-field .ant-picker { min-height: 44px; width: 100%; border-radius: 8px; }
.historial-page-wrapper .history-date-field input { font-size: 14px; }
.historial-page-wrapper .history-quick-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.historial-page-wrapper .history-quick-dates button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--history-line);
  border-radius: 8px;
  color: var(--history-muted);
  background: var(--history-surface);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.historial-page-wrapper .history-quick-dates button:hover { border-color: var(--history-accent); color: var(--history-accent); }
.historial-page-wrapper .history-quick-dates button[aria-pressed="true"] { background: var(--history-accent); border-color: var(--history-accent); color: var(--history-surface); }
.historial-page-wrapper .history-results-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.historial-page-wrapper .history-eyebrow { display: block; margin-bottom: 8px; color: var(--history-muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.historial-page-wrapper :is(.history-results-heading, .history-section-heading) h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.4; }
.historial-page-wrapper .history-result-count { color: var(--history-muted); font-size: 12px; white-space: nowrap; padding-bottom: 3px; }
/* Pagination & Navigation Toolbar */
.historial-page-wrapper .history-pagination {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  margin-block: 16px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #ede8f5;
  border-radius: 18px;
  box-shadow: 0 4px 16px -2px rgba(68, 5, 122, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.historial-page-wrapper .history-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.historial-page-wrapper .history-older-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #e2d9ec;
  border-radius: 12px;
  color: var(--history-accent);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.historial-page-wrapper .history-older-link:hover {
  background: #fdfaff;
  border-color: #c084fc;
  color: #31005a;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.09);
  text-decoration: none;
}

.historial-page-wrapper .history-older-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3e8ff;
  color: var(--history-accent);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.historial-page-wrapper .history-older-link:hover .history-older-arrow {
  transform: translateX(-2px);
  background: var(--history-accent);
  color: #ffffff;
}

.historial-page-wrapper .history-back-today-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
  border-radius: 12px;
  color: var(--history-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.historial-page-wrapper .history-back-today-link:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #31005a;
  text-decoration: none;
  transform: translateY(-1px);
}

.historial-page-wrapper .history-back-today-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.historial-page-wrapper .history-back-today-link:hover .history-back-today-arrow {
  transform: translate(2px, -2px);
}

.historial-page-wrapper .history-older-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.historial-page-wrapper .history-older-link:hover .history-older-arrow {
  transform: translateX(-3px);
}

.historial-page-wrapper .history-archive-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 14px;
  border-top: 1px solid #f1ecf7;
}

.historial-page-wrapper .history-archive-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.historial-page-wrapper .history-archive-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--history-accent);
  flex-shrink: 0;
}

.historial-page-wrapper .history-archive-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.historial-page-wrapper .history-archive-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2d9ec;
  border-radius: 9999px;
  color: var(--history-accent);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.historial-page-wrapper .history-archive-chip:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #31005a;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(68, 5, 122, 0.08);
}

/* Hot Numbers & Observed Frequencies */
.historial-page-wrapper .hot-numbers-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  margin-block: 8px 44px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 20px;
  box-shadow: 0 4px 24px -2px rgba(68, 5, 122, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.historial-page-wrapper .hot-numbers-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ec1379 0%, #fbbf24 50%, #44057a 100%);
}

.historial-page-wrapper .hot-numbers-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.historial-page-wrapper .hot-numbers-title {
  max-width: 60ch;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
}

.historial-page-wrapper .hot-numbers-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #fbf8fd;
  border: 1.5px solid #ebdcf5;
  border-radius: 9999px;
  color: var(--history-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.historial-page-wrapper .hot-numbers-link:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #31005a;
  text-decoration: none;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.08);
}

.historial-page-wrapper .hot-numbers-disclaimer {
  max-width: 72ch;
  margin: 12px 0 22px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.historial-page-wrapper .hot-numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.historial-page-wrapper .hot-ball-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.historial-page-wrapper .hot-ball-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}

.historial-page-wrapper .hot-ball {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef3c7 55%, #fde68a 100%);
  color: #78350f;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 4px rgba(180, 83, 9, 0.15), inset 0 1px 1px #ffffff;
}

.historial-page-wrapper .hot-badge {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  background: rgba(245, 158, 11, 0.18);
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.historial-page-wrapper .history-stats-empty {
  color: var(--history-muted);
  font-size: 14px;
  padding: 12px 0;
}

/* Interactive Feature Tools Cards */
.historial-page-wrapper .history-tools {
  margin-bottom: 48px;
  content-visibility: auto;
  contain-intrinsic-size: 0 260px;
}

.historial-page-wrapper .history-tools-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.historial-page-wrapper .history-tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.historial-page-wrapper .history-tool-card:hover {
  background: #ffffff;
  border-color: #d8b4fe;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(68, 5, 122, 0.1), 0 2px 6px rgba(0, 0, 0, 0.02);
  color: #0f172a;
  text-decoration: none;
}

.historial-page-wrapper .history-tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.historial-page-wrapper .history-tool-icon svg {
  width: 22px;
  height: 22px;
}

.historial-page-wrapper .history-tool-card:hover .history-tool-icon {
  transform: scale(1.12);
}

/* Tool color themes */
.historial-page-wrapper .tool-theme-fire .history-tool-icon {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #ea580c;
  border: 1px solid #fecaca;
}

.historial-page-wrapper .tool-theme-stats .history-tool-icon {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.historial-page-wrapper .tool-theme-search .history-tool-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.historial-page-wrapper .tool-theme-calendar .history-tool-icon {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid #fde68a;
}

.historial-page-wrapper .tool-theme-tags .history-tool-icon {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.historial-page-wrapper .tool-theme-all .history-tool-icon {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #059669;
  border: 1px solid #bbf7d0;
}

.historial-page-wrapper .history-tool-body {
  flex: 1;
  min-width: 0;
}

.historial-page-wrapper .history-tool-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  transition: color 0.2s ease;
}

.historial-page-wrapper .history-tool-card:hover .history-tool-name {
  color: var(--history-accent);
}

.historial-page-wrapper .history-tool-desc {
  display: block;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 3px;
}

.historial-page-wrapper .history-tool-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #ede8f5;
  color: #64748b;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.historial-page-wrapper .history-tool-card:hover .history-tool-arrow {
  background: var(--history-accent);
  border-color: var(--history-accent);
  color: #ffffff;
  transform: translateX(3px);
}

/* Editorial About Section */
.historial-page-wrapper .history-about {
  margin-top: 12px;
}

.historial-page-wrapper .history-about-card {
  padding: 28px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #ede8f5;
  border-radius: 20px;
  box-shadow: 0 4px 16px -2px rgba(68, 5, 122, 0.03);
}

.historial-page-wrapper .history-about-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.historial-page-wrapper .history-about-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  border-radius: 9999px;
  color: var(--history-accent);
  font-size: 11.5px;
  font-weight: 700;
}

.historial-page-wrapper .history-about-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.historial-page-wrapper .history-about h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
}

.historial-page-wrapper .history-about p {
  max-width: 80ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}
.historial-page-wrapper :is(.history-empty, .history-error) { padding: 32px; margin-bottom: 24px; border: 1px solid var(--history-line); border-radius: 14px; background: var(--history-surface); text-align: center; }
.historial-page-wrapper :is(.history-empty, .history-error) p { margin: 12px 0; font-size: 14px; line-height: 1.6; color: var(--history-muted); }
.historial-page-wrapper :is(.history-empty, .history-error) :is(button, a) { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--history-line); border-radius: 8px; color: var(--history-accent); background: var(--history-surface); font-size: 13px; cursor: pointer; }
.historial-page-wrapper .history-loading { padding-block: 24px; }
.historial-page-wrapper .lottery-ball-loto { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.historial-page-wrapper .lottery-ball-extra1 { background: #1d4ed8; color: #fff; border-color: #1e40af; }
.historial-page-wrapper .lottery-ball-extra2 { background: #dc2626; color: #fff; border-color: #b91c1c; }

@media (min-width: 1000px) {
  .historial-page-wrapper .history-overview.has-current {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin-bottom: 8px;
  }
  .historial-page-wrapper .has-current .history-result-overview { grid-column: 2; grid-row: 1; }
  .historial-page-wrapper .has-current .history-hero { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .historial-page-wrapper .has-current .history-heading-row { display: block; }
  .historial-page-wrapper .has-current .history-logo { display: none; }
  .historial-page-wrapper .has-current .history-all-today { margin-bottom: 0; }
  .historial-page-wrapper .history-overview.has-current + .history-actions { margin-top: 0; }
  .historial-page-wrapper .has-current .history-heading-copy h1 { font-size: 26px; margin-bottom: 8px; }
  .historial-page-wrapper .history-date-field { flex-direction: row; align-items: center; flex-basis: 400px; gap: 12px; }
  .historial-page-wrapper .history-date-field label { white-space: nowrap; }
  .historial-page-wrapper .history-date-field .ant-picker { flex: 1; min-width: 0; }
}

@media (max-width: 767px) {
  .historial-page-wrapper {
    padding-inline: 14px;
    padding-top: 104px;
    padding-bottom: 32px;
  }

  .historial-page-wrapper .history-overview {
    display: flex;
    flex-direction: column;
  }

  .historial-page-wrapper .history-hero,
  .historial-page-wrapper .history-heading-row,
  .historial-page-wrapper .history-heading-copy {
    display: contents;
  }

  .historial-page-wrapper .history-logo {
    display: none;
  }

  .historial-page-wrapper .history-breadcrumb {
    margin-bottom: 12px;
    font-size: 11px;
    gap: 6px;
  }

  .historial-page-wrapper .history-breadcrumb a {
    min-height: 24px;
  }

  .historial-page-wrapper .history-heading-copy h1 {
    order: -2;
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -.3px;
  }

  .historial-page-wrapper .history-intro {
    order: -1;
    margin-bottom: 14px;
  }

  .historial-page-wrapper .history-intro p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--history-muted);
  }

  .historial-page-wrapper .history-intro:not(.is-expanded) p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .historial-page-wrapper .history-intro-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--history-accent);
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  /* Compact Pending / Today Sorteo Banner */
  .historial-page-wrapper .history-current {
    margin-bottom: 6px;
  }

  .historial-page-wrapper .history-pending {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
  }

  .historial-page-wrapper .history-pending .tile-header-row {
    padding-bottom: 4px;
    margin-bottom: 4px;
  }

  .historial-page-wrapper .history-pending .tile-body-row {
    min-height: auto;
    padding-block: 2px;
    gap: 8px;
  }

  .historial-page-wrapper .history-pending .tile-logo-badge {
    flex: 0 0 62px;
    max-width: 68px;
  }

  .historial-page-wrapper .history-pending .tile-logo-img {
    max-height: 28px;
  }

  .historial-page-wrapper .history-pending-ball {
    width: 30px;
    height: 30px;
  }

  .historial-page-wrapper .history-pending .tile-ball-wrap {
    gap: 2px;
  }

  .historial-page-wrapper .history-pending-footer {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    gap: 8px;
  }

  .historial-page-wrapper .history-countdown {
    flex: 1 1 auto;
    min-width: 0;
  }

  .historial-page-wrapper .history-countdown [role="timer"] {
    font-size: 11.5px;
    gap: 4px;
    white-space: nowrap;
  }

  .historial-page-wrapper .history-countdown-icon {
    font-size: 13px;
    margin-top: 1px;
  }

  .historial-page-wrapper .history-countdown small {
    display: none;
  }

  .historial-page-wrapper .history-pending-play {
    flex-shrink: 0;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 10px;
    white-space: nowrap;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  }

  .historial-page-wrapper .history-today-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
  }

  .historial-page-wrapper .history-all-today {
    margin-bottom: 0;
    min-height: 32px;
    padding-block: 4px;
    font-size: 12px;
  }

  .historial-page-wrapper .history-play-mobile-row {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 9999px;
    white-space: nowrap;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  }

  .historial-page-wrapper .history-actions .history-play-desktop {
    display: none !important;
  }

  /* Compact Action Strip (No Horizontal Scroll) */
  .historial-page-wrapper .history-actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    overflow-x: visible !important;
    align-items: center !important;
    margin-top: 6px !important;
    margin-bottom: 10px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: #fbf9fd !important;
    border: 1px solid #ede8f5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .historial-page-wrapper .history-actions::-webkit-scrollbar {
    display: none;
  }

  .historial-page-wrapper .history-section-links {
    display: contents !important;
  }

  .historial-page-wrapper .history-action-pill {
    flex: none !important;
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 4px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #e2d9ec !important;
    color: var(--history-accent) !important;
  }

  .historial-page-wrapper .pill-label-desktop {
    display: none !important;
  }

  .historial-page-wrapper .pill-label-mobile {
    display: inline !important;
  }

  .historial-page-wrapper .history-action-icon {
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .historial-page-wrapper .history-play {
    flex: 0 0 auto;
    width: auto;
    min-height: 32px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 9999px;
    white-space: nowrap;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  }

  .historial-page-wrapper :is(.history-play, .history-pending-play) .cta-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .historial-page-wrapper :is(.history-play, .history-pending-play) .cta-icon svg {
    width: 13px;
    height: 13px;
  }

  /* App-Style Horizontal Date Filter Bar */
  .historial-page-wrapper .history-date-panel {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 12px 10px !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
    background: var(--history-surface) !important;
    border: 1px solid var(--history-line) !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .historial-page-wrapper .history-date-field {
    width: 100% !important;
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .historial-page-wrapper .history-date-field label {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    color: var(--history-ink) !important;
    margin: 0 !important;
  }

  .historial-page-wrapper .history-date-field .ant-picker {
    min-height: 38px !important;
    height: 38px !important;
    padding: 2px 10px !important;
    border-radius: 10px !important;
    flex: 1 !important;
    max-width: none !important;
  }

  .historial-page-wrapper .history-date-field input {
    font-size: 13px !important;
  }

  /* Full-width Responsive Grid for Quick Dates (No Horizontal Scroll) */
  .historial-page-wrapper .history-quick-dates {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .historial-page-wrapper .history-quick-dates::-webkit-scrollbar {
    display: none;
  }

  .historial-page-wrapper .history-quick-dates button {
    flex: none !important;
    width: 100% !important;
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 2px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    background: #ffffff !important;
    border: 1px solid var(--history-line) !important;
    color: var(--history-muted) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
  }

  .historial-page-wrapper .history-quick-dates button:hover {
    border-color: var(--history-accent) !important;
    color: var(--history-accent) !important;
  }

  .historial-page-wrapper .history-quick-dates button[aria-pressed="true"] {
    background: var(--history-accent) !important;
    border-color: var(--history-accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(68, 5, 122, 0.25) !important;
  }

  /* Results Heading */
  .historial-page-wrapper .history-results-heading {
    margin-bottom: 8px;
    gap: 6px;
  }

  .historial-page-wrapper .history-eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
    letter-spacing: .8px;
  }

  .historial-page-wrapper :is(.history-results-heading, .history-section-heading) h2,
  .historial-page-wrapper .hot-numbers-title {
    font-size: 16px;
    line-height: 1.3;
  }

  .historial-page-wrapper .history-result-count {
    font-size: 11px;
    padding-bottom: 0;
  }

  /* Hot numbers mobile */
  .historial-page-wrapper .hot-numbers-card {
    padding: 18px 16px;
    margin-block: 6px 32px;
    border-radius: 16px;
  }

  .historial-page-wrapper .hot-numbers-title {
    font-size: 16.5px;
  }

  .historial-page-wrapper .hot-numbers-link {
    font-size: 12px;
    padding: 6px 14px;
  }

  .historial-page-wrapper .hot-numbers-disclaimer {
    margin: 8px 0 16px;
    font-size: 12px;
    line-height: 1.55;
  }

  .historial-page-wrapper .hot-numbers-row {
    gap: 8px;
  }

  .historial-page-wrapper .hot-ball-item {
    padding: 5px 11px 5px 5px;
    gap: 8px;
    border-radius: 12px;
  }

  .historial-page-wrapper .hot-ball {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 50%;
  }

  .historial-page-wrapper .hot-badge {
    font-size: 11px;
    padding: 1px 7px;
  }

  /* History tools mobile */
  .historial-page-wrapper .history-tools {
    margin-bottom: 32px;
  }

  .historial-page-wrapper .history-tools-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
  }

  .historial-page-wrapper .history-tool-card {
    padding: 14px 16px;
    gap: 14px;
    border-radius: 14px;
  }

  .historial-page-wrapper .history-tool-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 12px;
  }

  .historial-page-wrapper .history-tool-name {
    font-size: 14px;
  }

  .historial-page-wrapper .history-tool-desc {
    font-size: 12px;
  }

  .historial-page-wrapper .history-tool-arrow {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  /* History pagination mobile */
  .historial-page-wrapper .history-pagination {
    padding: 14px 16px;
    gap: 12px;
    margin-block: 8px 24px;
    border-radius: 14px;
  }

  .historial-page-wrapper .history-pagination-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .historial-page-wrapper .history-older-link {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 12.5px;
  }

  .historial-page-wrapper .history-back-today-link {
    width: 100%;
    justify-content: center;
    padding: 9px 14px;
    font-size: 12px;
  }

  .historial-page-wrapper .history-archive-links {
    padding-top: 10px;
    gap: 6px 8px;
  }

  .historial-page-wrapper .history-archive-title {
    font-size: 11.5px;
  }

  .historial-page-wrapper .history-archive-chips {
    gap: 6px;
  }

  .historial-page-wrapper .history-archive-chip {
    font-size: 11.5px;
    padding: 5px 11px;
  }

  /* History about mobile */
  .historial-page-wrapper .history-about {
    margin-top: 8px;
  }

  .historial-page-wrapper .history-about-card {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .historial-page-wrapper .history-about h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .historial-page-wrapper .history-about p {
    font-size: 13px;
    line-height: 1.65;
  }
}

/* FAQ Interactive Section (SEO & GEO) */
.historial-page-wrapper .history-faq-section {
  margin-bottom: 48px;
  content-visibility: auto;
  contain-intrinsic-size: 0 350px;
}

.historial-page-wrapper .history-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.historial-page-wrapper .history-faq-item {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.historial-page-wrapper .history-faq-item:hover {
  border-color: #d8b4fe;
  box-shadow: 0 6px 18px rgba(68, 5, 122, 0.07);
}

.historial-page-wrapper .history-faq-item[open] {
  border-color: #c084fc;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.09);
}

.historial-page-wrapper .history-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
  cursor: pointer;
  list-style: none;
  user-select: none;
  outline: none;
}

.historial-page-wrapper .history-faq-question::-webkit-details-marker {
  display: none;
}

.historial-page-wrapper .history-faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.historial-page-wrapper .history-faq-item[open] .history-faq-chevron {
  transform: rotate(180deg);
}

.historial-page-wrapper .history-faq-answer {
  padding: 0 22px 20px 22px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.7;
}

.historial-page-wrapper .history-faq-answer p {
  margin: 0;
}

.historial-page-wrapper .history-intro-toggle { display: none; }

/* Mobile readability: preserve the compact layout and desktop rules. */
@media (max-width: 767px) {
  .historial-page-wrapper .history-breadcrumb,
  .historial-page-wrapper .history-result-count,
  .historial-page-wrapper .history-eyebrow,
  .historial-page-wrapper .tile-ball-label,
  .historial-page-wrapper .tile-status-pending,
  .historial-page-wrapper .tile-status-today { font-size: 12px; }
  .historial-page-wrapper .history-intro p,
  .historial-page-wrapper .tile-date,
  .historial-page-wrapper .tile-draw-time,
  .historial-page-wrapper .tile-header-time-tag,
  .historial-page-wrapper .history-countdown [role="timer"],
  .historial-page-wrapper .history-date-field label,
  .historial-page-wrapper .hot-numbers-disclaimer,
  .historial-page-wrapper .history-about p { font-size: 13px; }
  .historial-page-wrapper .history-pending-ball { width: 44px; height: 44px; }
  .historial-page-wrapper .history-pending .tile-logo-badge { flex: 0 1 88px; max-width: 88px; }
  .historial-page-wrapper .history-pending .tile-logo-img { width: 88px; max-height: 52px; }
  .historial-page-wrapper .history-pending .tile-body-row { padding-block: 8px; }
  .historial-page-wrapper .history-countdown-icon { font-size: 15px; }
  .historial-page-wrapper .history-countdown [role="timer"] { white-space: normal; }
  .historial-page-wrapper .history-pending-footer { flex-wrap: wrap; }
  .historial-page-wrapper .history-countdown { flex-basis: 210px; }
  .historial-page-wrapper .history-intro-toggle,
  .historial-page-wrapper .history-all-today,
  .historial-page-wrapper .history-archive-links a,
  .historial-page-wrapper .history-play,
  .historial-page-wrapper .history-pending-play { font-size: 13px; min-height: 44px; height: auto; }
  .historial-page-wrapper .history-date-field { flex: none !important; height: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  .historial-page-wrapper *, .historial-page-wrapper *::before, .historial-page-wrapper *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ==========================================================================
   Buscador Sebastián - Design System Canónico
   Estándar visual unificado con Un Día Como Hoy, Tabla de Números, Loto y Mapa
   ========================================================================== */

.buscador-page-wrapper {
  --buscador-purple: #44057a;
  --buscador-purple-dark: #220240;
  --buscador-purple-light: #6b21a8;
  --buscador-magenta: #be185d;
  --buscador-magenta-light: #ec4899;
  --buscador-pink-bg: #fdf2f8;
  --buscador-pink-border: #fbcfe8;
  --buscador-gold: #fbbf24;
  --buscador-gold-dark: #d97706;
  --buscador-line: #ede8f5;
  --buscador-surface: #ffffff;
  --buscador-text: #1e293b;
  --buscador-muted: #64748b;
  --buscador-glow: rgba(68, 5, 122, 0.08);
  --buscador-radius-sm: 8px;
  --buscador-radius-md: 12px;
  --buscador-radius-lg: 16px;
  --buscador-radius-xl: 20px;

  min-width: 0;
  padding-top: 104px;
  padding-bottom: max(56px, calc(32px + env(safe-area-inset-bottom)));
  padding-inline: max(16px, env(safe-area-inset-left));
  color: var(--buscador-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  box-sizing: border-box;
}

.buscador-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 0;
  min-width: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   1. Compact Breadcrumbs
   ========================================================================== */
.buscador-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--buscador-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.buscador-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--buscador-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.buscador-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--buscador-magenta);
}

.buscador-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

.buscador-breadcrumb-current {
  color: var(--buscador-muted);
  font-weight: 600;
}

/* ==========================================================================
   2. Hero Header Card
   ========================================================================== */
.buscador-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--buscador-line);
  border-radius: var(--buscador-radius-lg);
  box-shadow: 0 4px 18px rgba(68, 5, 122, 0.04);
}

.buscador-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.buscador-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 54px;
  padding: 10px;
  border: 1px solid var(--buscador-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: var(--buscador-purple);
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.07);
  flex-shrink: 0;
}

.buscador-header-titles {
  min-width: 0;
}

.buscador-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--buscador-magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.buscador-header-titles h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.buscador-header-titles p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  max-width: 680px;
}

.buscador-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.buscador-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--buscador-magenta);
  font-size: 12.5px;
  font-weight: 700;
}

/* Canonical Juega Online CTA Button with Shimmer */
.buscador-cta-btn,
.caliente-play-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.buscador-cta-btn:hover,
.caliente-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 165, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #1a0133;
}

.buscador-cta-btn:active,
.caliente-play-cta:active {
  transform: translateY(0);
}

.buscador-cta-btn::after,
.caliente-play-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: caliente-cta-shimmer 3s infinite;
}

@keyframes caliente-cta-shimmer {
  0% {
    left: -75%;
  }
  30% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* ==========================================================================
   3. Panel Canónico de Configuración de la Jugada (better-ui / Sucesión)
   ========================================================================== */
.buscador-controls-card,
.buscador-control-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(68, 5, 122, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Header del Panel */
.buscador-controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.buscador-controls-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buscador-controls-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--buscador-magenta);
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.08);
}

.buscador-controls-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--buscador-purple);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.buscador-controls-subheading {
  margin: 2px 0 0 0;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

/* Backward compatibility title */
.buscador-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--buscador-purple);
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

/* Ant Design Overrides matching canonical sec-controls-card */
.buscador-controls-card .ant-select-selector,
.buscador-control-card .ant-select-selector,
.buscador-controls-card .ant-picker,
.buscador-control-card .ant-picker {
  height: 42px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2d9eb !important;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.buscador-controls-card .ant-select-selector:hover,
.buscador-control-card .ant-select-selector:hover,
.buscador-controls-card .ant-picker:hover,
.buscador-control-card .ant-picker:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.12) !important;
}

.buscador-controls-card .ant-select-focused .ant-select-selector,
.buscador-control-card .ant-select-focused .ant-select-selector,
.buscador-controls-card .ant-picker-focused,
.buscador-control-card .ant-picker-focused {
  border-color: var(--buscador-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
}

.buscador-controls-card .ant-select-selection-item,
.buscador-control-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  line-height: normal !important;
  font-weight: 600;
}

.buscador-controls-card .ant-select-selection-item::after,
.buscador-control-card .ant-select-selection-item::after {
  display: none !important;
}

/* Fila 1: Selectores principales (CSS Grid moderno) */
.buscador-controls-grid,
.buscador-control-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.buscador-controls-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) auto auto;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 0;
}

.buscador-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.buscador-field-sorteos {
  min-width: 260px;
  width: 100%;
}

.buscador-field-modalidad,
.buscador-field-posicion {
  min-width: auto;
}

.buscador-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.buscador-field-hint {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

/* Segmented Pills for Jugada & Posición */
.buscador-segmented-pills,
.buscador-jugada-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  height: 42px;
  box-sizing: border-box;
}

.buscador-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.buscador-pill-btn:hover {
  color: var(--buscador-purple);
  background: rgba(255, 255, 255, 0.8);
}

.buscador-pill-btn.active {
  background: #ffffff;
  border-color: #fbcfe8;
  color: var(--buscador-magenta);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.14), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.buscador-pill-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Panel Canónico de Números de la Jugada
   ========================================================================== */
.buscador-numbers-panel {
  background: linear-gradient(135deg, #fdf4f8 0%, #faf5ff 100%);
  border: 1.5px solid #f3e8f8;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 18px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 3px rgba(68, 5, 122, 0.02);
}

.buscador-numbers-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.buscador-numbers-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.buscador-numbers-badge-icon {
  font-size: 15px;
  line-height: 1;
}

.buscador-numbers-hint-desktop {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.buscador-btn-clear-numbers,
.buscador-btn-text-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--buscador-magenta);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease;
}

.buscador-btn-clear-numbers:hover,
.buscador-btn-text-clear:hover {
  background: #ffffff;
  color: #dc2626;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.buscador-btn-clear-numbers:active,
.buscador-btn-text-clear:active {
  transform: scale(0.96);
}

.buscador-numbers-slots-container,
.buscador-numbers-inputs-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Slot Canónico de Número 2 Dígitos */
.buscador-canonical-number-wrap {
  position: relative;
}

.buscador-canonical-slot-box,
.buscador-number-slot {
  display: inline-flex;
  align-items: center;
  height: 42px;
  background: #ffffff;
  border: 1.5px solid #e2d9eb;
  border-radius: 12px;
  padding: 0 8px 0 10px;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  gap: 6px;
  box-sizing: border-box;
}

.buscador-canonical-slot-box:hover,
.buscador-number-slot:hover {
  border-color: #f472b6;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.12);
}

.buscador-canonical-slot-box:focus-within,
.buscador-number-slot:focus-within {
  border-color: var(--buscador-magenta);
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14);
  background: #ffffff;
}

.buscador-slot-prefix-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.08);
  color: var(--buscador-magenta);
  font-size: 11px;
  flex-shrink: 0;
}

.buscador-canonical-input,
.buscador-slot-input {
  width: 44px !important;
  height: 38px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--buscador-purple) !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
  padding: 0 !important;
}

.buscador-canonical-input::placeholder,
.buscador-slot-input::placeholder {
  color: #cbd5e1;
  font-weight: 600;
}

.buscador-slot-suffix-preview {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3D Mini Bolo Preview */
.buscador-search-mini-bolo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  border: 1.5px solid #ffffff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.buscador-search-mini-bolo-placeholder,
.buscador-bolo-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
}

.buscador-slot-remove-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #ef4444;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.buscador-slot-remove-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.buscador-slot-remove-btn:hover {
  background: #fecaca;
  color: #dc2626;
  transform: scale(1.1);
}

.buscador-slot-remove-btn:active {
  transform: scale(0.96);
}

.buscador-add-num-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px dashed #f472b6;
  background: #ffffff;
  color: var(--buscador-magenta);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.buscador-add-num-btn:hover {
  background: #fdf2f8;
  border-color: var(--buscador-magenta);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.12);
}

.buscador-add-num-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Fila 3: Toolbar de Opciones y Acciones
   ========================================================================== */
.buscador-toolbar-row,
.buscador-control-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding-top: 4px;
}

.buscador-toolbar-options,
.buscador-switches-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.buscador-option-card,
.buscador-switch-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.buscador-option-card:hover,
.buscador-switch-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.buscador-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.buscador-option-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

.buscador-option-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.buscador-toolbar-actions,
.buscador-actions-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.buscador-btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.buscador-btn-clear:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #dc2626;
}

.buscador-btn-clear:active {
  transform: scale(0.96);
}

.buscador-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(190, 24, 93, 0.32);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.buscador-btn-primary:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 5px 16px rgba(190, 24, 93, 0.42);
  background: linear-gradient(135deg, #f472b6 0%, #9d174d 100%);
}

.buscador-btn-primary:active:not(:disabled) {
  transform: scale(0.96);
}

.buscador-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Combinations explanation banner */
.buscador-combinations-info {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.45;
}

/* Loto Date Search Card */
.buscador-loto-date-box {
  margin-top: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fcd34d;
  border-radius: var(--buscador-radius-md);
}

/* ==========================================================================
   4. Canonical 3D Bolos (Esferas Tridimensionales con Relieve)
   ========================================================================== */
.buscador-bolo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.buscador-bolo:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.2),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
}

/* Bolo con Acierto / Coincidencia (Oro Brillante de 1er Premio) */
.buscador-bolo-matched {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow:
    0 4px 12px rgba(217, 119, 6, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  animation: buscador-bolo-glow 2.5s infinite alternate;
}

@keyframes buscador-bolo-glow {
  0% { transform: scale(1); }
  100% { transform: scale(1.04); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.55), inset 0 2px 3px rgba(255, 255, 255, 0.95); }
}

/* Bolo Regular (No Coincidente - Esfera con Relieve Neutro / Púrpura Elegante) */
.buscador-bolo-regular {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow:
    0 4px 10px rgba(109, 40, 217, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  opacity: 0.92;
}

/* Bolo Mini para vista previa de input */
.buscador-bolo-mini {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-width: 1.5px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.buscador-bolos-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Canonical 3D Bolos Color Classes */
.buscador-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.buscador-bolo-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.buscador-bolo-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%) !important;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
}

.buscador-bolo-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.75) !important;
}

/* ==========================================================================
   Guide & Empty States (Estilo Canónico Sucesión)
   ========================================================================== */
.buscador-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid #ede8f5;
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 8px;
  box-shadow: 0 3px 12px rgba(68, 5, 122, 0.03);
}

.buscador-info-banner-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
}

.buscador-info-banner-content h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--buscador-purple);
}

.buscador-info-banner-content p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

.buscador-empty-card {
  text-align: center;
  padding: 44px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #ede8f5;
  margin-top: 8px;
  box-shadow: 0 3px 12px rgba(68, 5, 122, 0.03);
}

.buscador-empty-card .buscador-empty-icon {
  font-size: 38px;
  display: block;
  margin-bottom: 12px;
}

.buscador-empty-card h3 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.buscador-empty-card p {
  color: #64748b;
  font-size: 13.5px;
  margin: 0;
}

/* ==========================================================================
   5. Results Header & Dual View Switcher (Desktop Tabla / Móvil Tarjetas)
   ========================================================================== */
.buscador-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.buscador-results-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--buscador-purple);
}

.buscador-view-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.buscador-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  white-space: nowrap;
}

.buscador-view-tab.active {
  background: #ffffff;
  color: var(--buscador-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   6. Table View (Estándar Canónico Ant Design)
   ========================================================================== */
.buscador-table-wrap {
  background: #ffffff;
  border: 1px solid var(--buscador-line);
  border-radius: var(--buscador-radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 18px rgba(68, 5, 122, 0.03);
}

.buscador-table-wrap .ant-table-thead > tr > th {
  background: #faf7fd !important;
  color: #334155 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border-bottom: 1.5px solid #e9d5ff !important;
  padding: 14px 16px !important;
}

.buscador-table-wrap .ant-table-tbody > tr > td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
}

.buscador-table-wrap .ant-table-tbody > tr:hover > td {
  background: #fdf4f8 !important;
}

/* Columna de Lotería con logo oficial 32×24 */
.buscador-lottery-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.buscador-lottery-logo {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
  flex-shrink: 0;
}

.buscador-lottery-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 13.5px;
}

/* Badge de coincidencias */
.buscador-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
}

.buscador-btn-subsequent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1.5px solid #fbcfe8;
  background: #fdf2f8;
  color: var(--buscador-magenta);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.buscador-btn-subsequent:hover {
  background: #fce7f3;
  border-color: var(--buscador-magenta);
  transform: translateY(-1px);
}

/* ==========================================================================
   7. Cards View (Cuadrícula Responsiva)
   ========================================================================== */
.buscador-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-block-end: 24px;
}

.buscador-card-item {
  background: #ffffff;
  border: 1px solid var(--buscador-line);
  border-radius: var(--buscador-radius-md);
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.buscador-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(68, 5, 122, 0.08);
  border-color: #d8b4fe;
}

.buscador-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.buscador-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 600;
}

.buscador-card-body {
  margin-bottom: 14px;
}

.buscador-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   8. Coincidencias por Fecha (Ticket Cards)
   ========================================================================== */
.buscador-ticket-card {
  background: #ffffff;
  border: 1.5px solid #fcd34d;
  border-radius: var(--buscador-radius-lg);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.07);
  overflow: hidden;
}

.buscador-ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1.5px dashed #fcd34d;
}

.buscador-ticket-date {
  font-size: 15px;
  font-weight: 800;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.buscador-ticket-draws {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buscador-ticket-draw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.buscador-ticket-draw-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* ==========================================================================
   9. Canonical Pagination (Tema Rosado/Magenta de Marca)
   ========================================================================== */
.buscador-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid #fce7f3;
  border-radius: var(--buscador-radius-md);
}

.buscador-pagination-total {
  font-size: 12.5px;
  color: #475569;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}

.buscador-pagination-total strong {
  color: var(--buscador-magenta);
  font-weight: 800;
}

.buscador-pagination-wrap .ant-pagination-item {
  border-radius: 10px !important;
  font-weight: 700 !important;
  border: 1.5px solid #fbcfe8 !important;
  min-width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  transition: all 0.2s ease !important;
}

.buscador-pagination-wrap .ant-pagination-item:hover {
  border-color: var(--buscador-magenta) !important;
  background: #fdf2f8 !important;
}

.buscador-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 12px rgba(188, 16, 94, 0.35) !important;
}

.buscador-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

.buscador-pagination-wrap .ant-pagination-prev .ant-pagination-item-link,
.buscador-pagination-wrap .ant-pagination-next .ant-pagination-item-link {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==========================================================================
   10. Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .buscador-page-wrapper {
    padding-top: 92px;
    padding-bottom: max(40px, calc(24px + env(safe-area-inset-bottom)));
    padding-inline: max(12px, env(safe-area-inset-left));
  }

  .buscador-container {
    padding-inline: 0;
  }

  .buscador-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }

  .buscador-header-left {
    gap: 12px;
  }

  .buscador-header-emblem {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .buscador-header-titles h1 {
    font-size: 19px;
  }

  .buscador-header-titles p {
    font-size: 12.5px;
  }

  .buscador-header-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .buscador-header-right .buscador-stat-badge,
  .buscador-header-right .buscador-cta-btn {
    flex: 1;
    height: 38px;
    justify-content: center;
  }

  .buscador-controls-card,
  .buscador-control-card {
    padding: 16px;
    border-radius: 16px;
  }

  .buscador-controls-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .buscador-controls-heading {
    font-size: 15px;
  }

  .buscador-controls-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .buscador-field-sorteos {
    width: 100%;
    min-width: 100%;
  }

  .buscador-segmented-pills,
  .buscador-jugada-pills {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    height: auto;
    padding: 4px;
    gap: 4px;
  }

  .buscador-pill-btn {
    width: 100%;
    padding: 0 8px;
    font-size: 12.5px;
    height: 36px;
  }

  .buscador-numbers-panel {
    padding: 14px;
    border-radius: 14px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .buscador-numbers-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .buscador-numbers-hint-desktop {
    display: none;
  }

  .buscador-numbers-slots-container,
  .buscador-numbers-inputs-wrap {
    width: 100%;
    gap: 8px;
  }

  .buscador-canonical-slot-box,
  .buscador-number-slot {
    padding: 0 6px 0 8px;
    height: 40px;
  }

  .buscador-canonical-input,
  .buscador-slot-input {
    width: 38px !important;
    font-size: 15px !important;
  }

  .buscador-toolbar-row,
  .buscador-control-row-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .buscador-toolbar-options,
  .buscador-switches-inline {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .buscador-option-card,
  .buscador-switch-item {
    width: 100%;
    justify-content: space-between;
  }

  .buscador-toolbar-actions,
  .buscador-actions-inline {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
  }

  .buscador-btn-clear,
  .buscador-btn-primary {
    width: 100%;
    height: 42px;
    min-height: 42px;
  }

  .buscador-bolo {
    width: 38px;
    height: 38px;
    font-size: 15.5px;
  }

  .buscador-pagination-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .buscador-bolo {
    width: 35px;
    height: 35px;
    font-size: 14.5px;
  }

  .buscador-header-right {
    flex-direction: row;
    gap: 8px;
  }

  .buscador-actions-inline {
    grid-template-columns: 1fr 1.8fr;
    gap: 8px;
  }

  .buscador-btn-primary {
    font-size: 12.5px;
    padding-inline: 12px;
  }

  .buscador-btn-clear {
    font-size: 12.5px;
    padding-inline: 10px;
  }
}
/* Contenedor principal con perspectiva 3D */
.lottery-ball {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Esfera interior con color único coherente con la paleta del sitio */
.lottery-ball__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  
  /* Color principal del sitio #5949b3 con gradiente sutil */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, 
      #5949b3 0%, 
      #4a3d9a 50%, 
      #3d3280 100%
    );
  
  /* Sombras para profundidad */
  box-shadow: 
    0 6px 20px rgba(89, 73, 179, 0.4),
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.3),
    inset 0 -2px 6px rgba(0, 0, 0, 0.2);
  
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Hover effects simples y elegantes */
.lottery-ball:hover {
  transform: translateY(-2px) scale(1.05);
}

.lottery-ball:hover .lottery-ball__inner {
  box-shadow: 
    0 8px 25px rgba(89, 73, 179, 0.5),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(255, 255, 255, 0.4),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}

.lottery-ball:focus-within .lottery-ball__inner {
  outline: 3px solid #1890ff;
  outline-offset: 2px;
}

/* Efecto de brillo superior fijo */
.lottery-ball__inner::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 25%;
  width: 35%;
  height: 25%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
  z-index: 1;
}

/* Números con tipografía limpia y color fijo */
.lottery-ball__number {
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
  color: #ffffff;
  z-index: 3;
  position: relative;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.6);
}

/* Tamaños de bolas */
.lottery-ball--small {
  width: 45px;
  height: 45px;
}

.lottery-ball--small .lottery-ball__inner {
  width: 100%;
  height: 100%;
}

.lottery-ball--small .lottery-ball__number {
  font-size: 14px;
}

.lottery-ball--medium {
  width: 56px;
  height: 56px;
}

.lottery-ball--medium .lottery-ball__inner {
  width: 100%;
  height: 100%;
}

.lottery-ball--medium .lottery-ball__number {
  font-size: 16px;
}

.lottery-ball--large {
  width: 72px;
  height: 72px;
}

.lottery-ball--large .lottery-ball__inner {
  width: 100%;
  height: 100%;
}

.lottery-ball--large .lottery-ball__number {
  font-size: 22px;
}

/* Modo de alto contraste para accesibilidad */
@media (prefers-contrast: high) {
  .lottery-ball__inner {
    border-width: 3px;
    border-color: #000;
  }
  
  .lottery-ball__number {
    text-shadow: 
      3px 3px 0px #000,
      -1px -1px 0px #000,
      1px -1px 0px #000,
      -1px 1px 0px #000;
  }
}

/* Modo de movimiento reducido para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .lottery-ball {
    transition: none;
  }
  
  .lottery-ball:hover {
    transform: none;
  }
  
  .lottery-ball:hover .lottery-ball__inner {
    transform: none;
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .lottery-ball--large {
    width: 56px;
    height: 56px;
  }
  
  .lottery-ball--large .lottery-ball__number {
    font-size: 18px;
  }
  
  .lottery-ball--medium {
    width: 40px;
    height: 40px;
  }
  
  .lottery-ball--medium .lottery-ball__number {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .lottery-ball {
    margin: 2px;
  }
  
  .lottery-ball--medium {
    width: 36px;
    height: 36px;
  }
  
  .lottery-ball--medium .lottery-ball__number {
    font-size: 12px;
  }
}/* Estilos modernos para la página Revisar Ticket */

/* Animaciones y transiciones globales */
.revisar-ticket-container {
  animation: fadeInUp 0.6s ease-out;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(89, 73, 179, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(89, 73, 179, 0.6), 0 0 30px rgba(89, 73, 179, 0.4);
  }
}

/* Tarjetas con efectos modernos */
.modern-card {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(89, 73, 179, 0.12) !important;
  border: 1px solid rgba(89, 73, 179, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
  overflow: hidden;
  position: relative;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5949b3 0%, #ec038b 50%, #fea036 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(89, 73, 179, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(254, 160, 54, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.modern-card .ant-card-body {
  position: relative;
  z-index: 1;
}

.modern-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(89, 73, 179, 0.2) !important;
}

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

/* Tarjeta principal con animación */
.main-card {
  animation: slideInLeft 0.8s ease-out;
}

/* Tarjeta de sorteo con efectos especiales optimizada */
.sorteo-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  animation: slideInRight 0.8s ease-out 0.2s both;
  transition: all 0.3s ease !important;
}

.sorteo-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.sorteo-card .ant-card-head {
  background: rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 12px 16px !important;
  min-height: auto !important;
}

.sorteo-card .ant-card-head-title {
  color: #4B5563 !important;
  font-weight: 600 !important;
}

.sorteo-card .ant-card-body {
  padding: 16px !important;
}

/* Tarjeta del sorteo optimizada con diseño armonioso */
.sorteo-card-optimized {
  background: linear-gradient(135deg, 
    rgba(89, 73, 179, 0.03) 0%, 
    rgba(254, 160, 54, 0.02) 50%,
    rgba(236, 3, 139, 0.01) 100%);
  border: 1px solid rgba(89, 73, 179, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 
    0 8px 32px rgba(89, 73, 179, 0.08),
    0 2px 8px rgba(254, 160, 54, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sorteo-card-optimized::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(89, 73, 179, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(254, 160, 54, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.sorteo-card-optimized > * {
  position: relative;
  z-index: 1;
}

.sorteo-card-optimized:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 73, 179, 0.2);
  box-shadow: 
    0 12px 40px rgba(89, 73, 179, 0.12),
    0 4px 12px rgba(254, 160, 54, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.sorteo-card-optimized .ant-card-head {
  background: linear-gradient(135deg, 
    rgba(89, 73, 179, 0.05) 0%, 
    rgba(254, 160, 54, 0.02) 100%);
  border-bottom: 1px solid rgba(89, 73, 179, 0.1);
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
}

.sorteo-card-optimized .ant-card-head-title {
  color: #5949b3 !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.sorteo-card-optimized .ant-card-body {
  padding: 20px;
  background: transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sorteo-card-optimized {
    border-radius: 12px;
    margin: 8px 0;
  }
  
  .sorteo-card-optimized .ant-card-head {
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
  }
  
  .sorteo-card-optimized .ant-card-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .sorteo-card-optimized {
    border-radius: 10px;
    margin: 6px 0;
  }
  
  .sorteo-card-optimized .ant-card-head {
    padding: 10px 12px;
    border-radius: 10px 10px 0 0;
  }
  
  .sorteo-card-optimized .ant-card-body {
    padding: 12px;
  }
}

/* Contenedor de números de lotería armonioso - OPTIMIZADO */
.lottery-numbers-container {
  background: linear-gradient(135deg, 
    rgba(89, 73, 179, 0.06) 0%, 
    rgba(254, 160, 54, 0.04) 100%);
  border-radius: 10px;
  /*padding: 12px; */
  margin-bottom: 12px;
  border: 1px solid rgba(89, 73, 179, 0.1);
  position: relative;
  overflow: hidden;
}

.lottery-numbers-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(89, 73, 179, 0.02), 
    transparent);
  animation: shimmer 2s infinite;
}

/* Contenedor de información del sorteo armonioso - OPTIMIZADO */
.sorteo-info-container {
  background: linear-gradient(135deg, 
    rgba(89, 73, 179, 0.04) 0%, 
    rgba(254, 160, 54, 0.02) 100%);
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(89, 73, 179, 0.08);
  margin-top: 6px;
}

/* Bolas de lotería con colores armoniosos */
.lottery-ball-optimized {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.lottery-ball-optimized:hover {
  transform: scale(1.08) rotate(5deg);
  filter: brightness(1.1);
}

/* Contenedor de información del sorteo armonioso */
.sorteo-info-container {
  background: linear-gradient(135deg, 
    rgba(89, 73, 179, 0.04) 0%, 
    rgba(254, 160, 54, 0.02) 100%);
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(89, 73, 179, 0.08);
  margin-top: 8px;
}

/* Colores armoniosos para las bolas de lotería - TODO PRIMARY PURPLE */
.lottery-ball.theme-primary {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

.lottery-ball.theme-secondary {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

.lottery-ball.theme-accent {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

.lottery-ball.theme-soft-purple {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

.lottery-ball.theme-warm-orange {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

.lottery-ball.theme-elegant-blue {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.3);
}

/* Animación shimmer para efectos sutiles */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lottery-numbers-container {
   /* padding: 12px; */
    margin-bottom: 12px;
  }
  
  .sorteo-info-container {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .lottery-numbers-container {
    
  }
  
  .sorteo-info-container {
    padding: 8px 10px;
  }
}

/* Combinaciones con animación escalonada */
.combination-card {
  animation: bounceIn 0.6s ease-out;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.combination-card:nth-child(1) { animation-delay: 0.1s; }
.combination-card:nth-child(2) { animation-delay: 0.2s; }
.combination-card:nth-child(3) { animation-delay: 0.3s; }
.combination-card:nth-child(4) { animation-delay: 0.4s; }
.combination-card:nth-child(5) { animation-delay: 0.5s; }

.combination-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(89, 73, 179, 0.15);
}

/* Inputs modernos */
.modern-input {
  border-radius: 12px !important;
  border: 2px solid #e8e8f0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.modern-input:hover {
  border-color: #5949b3 !important;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.1) !important;
}

.modern-input:focus {
  border-color: #5949b3 !important;
  box-shadow: 0 0 0 3px rgba(89, 73, 179, 0.1) !important;
  transform: scale(1.02);
  animation: glow 2s infinite !important;
}

/* Select moderno */
.modern-select .ant-select-selector {
  border-radius: 12px !important;
  border: 2px solid #e8e8f0 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
  height: 48px !important;
}

.modern-select:hover .ant-select-selector {
  border-color: #5949b3 !important;
  box-shadow: 0 4px 12px rgba(89, 73, 179, 0.1) !important;
}

.modern-select.ant-select-focused .ant-select-selector {
  border-color: #5949b3 !important;
  box-shadow: 0 0 0 3px rgba(89, 73, 179, 0.1) !important;
}

/* Botones modernos */
.modern-button {
  border-radius: 12px !important;
  height: 44px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.modern-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(89, 73, 179, 0.3) !important;
}

.modern-button:active {
  transform: translateY(0);
}

/* Botón principal con gradiente primary-purple */
.primary-gradient-button {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(89, 73, 179, 0.3);
  position: relative;
  overflow: hidden;
}

.primary-gradient-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.primary-gradient-button:hover::before {
  left: 100%;
}

.primary-gradient-button:hover {
  background: linear-gradient(135deg, #4a3d9a 0%, #3d3280 100%) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(89, 73, 179, 0.4) !important;
}

.primary-gradient-button:active {
  transform: translateY(0);
}

/* Botón "Nueva Combinación" con color rosado */
.new-combination-button {
  background: linear-gradient(135deg, #E91E63 0%, #F06292 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3) !important;
  position: relative;
  overflow: hidden;
}

.new-combination-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.new-combination-button:hover::before {
  left: 100%;
}

.new-combination-button:hover {
  background: linear-gradient(135deg, #C2185B 0%, #E91E63 100%) !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4) !important;
}

.new-combination-button:active {
  transform: translateY(0) !important;
}

/* Botón secundario profesional con primary-purple */
.secondary-button {
  background: linear-gradient(135deg, rgba(89, 73, 179, 0.1) 0%, rgba(89, 73, 179, 0.05) 100%);
  border: 2px solid rgba(89, 73, 179, 0.2);
  color: #5949b3;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.secondary-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(89, 73, 179, 0.1), transparent);
  transition: left 0.5s;
}

.secondary-button:hover::before {
  left: 100%;
}

.secondary-button:hover {
  background: linear-gradient(135deg, #5949b3 0%, #4a3d9a 100%);
  border-color: rgba(89, 73, 179, 0.4);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(89, 73, 179, 0.2);
}

/* Resultados con animación */
.results-container {
  animation: fadeInUp 0.8s ease-out;
}

.result-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px !important;
  overflow: hidden;
  position: relative;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #52c41a 0%, #389e0d 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.result-card.winner {
  animation: pulse 2s infinite !important;
  position: relative !important;
}

.result-card.winner::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, #faad14 0%, #fa8c16 100%);
}

.result-card.winner::after {
  content: '🎉';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  z-index: 2;
  animation: bounceIn 1s ease-out !important;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(89, 73, 179, 0.15);
}

/* Tags modernos */
.modern-tag {
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modern-tag:hover {
  transform: scale(1.05);
}

/* Badge moderno */
.modern-badge {
  border-radius: 20px !important;
  font-weight: 700 !important;
  padding: 4px 8px !important;
  animation: pulse 2s infinite;
}

/* Efectos de hover para elementos interactivos */
.interactive-element {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* Loader personalizado */
.custom-loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(89, 73, 179, 0.3);
  border-radius: 50%;
  border-top-color: #5949b3;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Micro-interactions and feedback */
.feedback-success {
  animation: successPulse 0.6s ease-out;
}

.feedback-error {
  animation: errorShake 0.5s ease-out;
}

.feedback-loading {
  position: relative;
  overflow: hidden;
}

.feedback-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loadingShimmer 1.5s infinite;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(82, 196, 26, 0.4); }
  100% { transform: scale(1); }
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes loadingShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Interactive hover states */
.interactive-hover {
  transition: all 0.3s ease;
}

.interactive-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Button click feedback */
.button-click-feedback {
  position: relative;
  overflow: hidden;
}

.button-click-feedback::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.button-click-feedback:active::after {
  width: 300px;
  height: 300px;
}

/* Estilos para inputs con validación profesional */
.number-input-valid {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%) !important;
  animation: inputSuccess 0.4s ease-out;
}

.number-input-invalid {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
  animation: inputError 0.3s ease-out;
}

.number-input-duplicate {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  animation: inputDuplicate 0.5s ease-out;
}

.number-input-neutral {
  border-color: #6B7280 !important;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.15) !important;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.02) 0%, rgba(156, 163, 175, 0.02) 100%) !important;
  transition: all 0.2s ease;
}

.number-input-neutral:hover {
  border-color: #5949b3 !important;
  box-shadow: 0 0 0 2px rgba(89, 73, 179, 0.2) !important;
}

@keyframes inputSuccess {
  0% { 
    transform: scale(1); 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% { 
    transform: scale(1.02); 
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.2);
  }
  100% { 
    transform: scale(1); 
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  }
}

@keyframes inputError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes inputDuplicate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Estilos para las marcas de verificación de números */
.verification-mark {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.verification-mark.correct {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  animation: correctPulse 0.6s ease-out;
}

.verification-mark.incorrect {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  animation: incorrectShake 0.5s ease-out;
}

.verification-mark.default {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

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

@keyframes incorrectShake {
  0%, 100% { transform: translateX(0) scale(1); }
  25% { transform: translateX(-2px) scale(1.1); }
  75% { transform: translateX(2px) scale(1.1); }
}

/* Lottery ball hover effects */
.lottery-ball-container {
  transition: all 0.3s ease;
}

.lottery-ball-container:hover {
  transform: scale(1.1) rotate(5deg);
  filter: brightness(1.1);
}

/* Result card animations */
.result-appear {
  animation: resultAppear 0.5s ease-out;
}

@keyframes resultAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Toast-like notifications */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 1000;
  animation: toastSlideIn 0.3s ease-out;
}

.notification-success {
  background: linear-gradient(135deg, #52c41a, #73d13d);
}

.notification-error {
  background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.notification-info {
  background: linear-gradient(135deg, #1890ff, #40a9ff);
}

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

/* Responsive improvements */
@media (max-width: 768px) {
  .modern-card {
    margin: 8px 0 !important;
    border-radius: 12px !important;
  }
  
  .modern-button {
    width: 100% !important;
    margin-bottom: 8px !important;
  }
  
  .combination-card {
    margin-bottom: 12px !important;
  }
  
  .main-container::before {
    height: 120px;
  }
  
  .notification-toast {
    right: 10px;
    left: 10px;
    top: 10px;
  }
}

@media (max-width: 480px) {
  .revisar-ticket-container {
    padding: 20px 10px !important;
  }
  
  .modern-card {
    border-radius: 8px !important;
  }
  
  .primary-gradient-button {
    min-width: 150px !important;
  }
}

/* Efectos de entrada para elementos dinámicos */
.fade-enter {
  opacity: 0;
  transform: translateY(20px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-exit {
  opacity: 1;
  transform: translateY(0);
}

.fade-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mejoras visuales para el contenedor principal */
.main-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

.main-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, rgba(89, 73, 179, 0.1) 0%, rgba(254, 160, 54, 0.1) 100%);
  z-index: 0;
}

.revisar-ticket-container {
  position: relative;
  z-index: 1;
}

/* Efectos de glassmorphism */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ======================================== */

/* Base styles for mobile devices (320px - 767px) */
@media (max-width: 767px) {
  /* Container and layout adjustments */
  .revisar-ticket-container {
    padding: 8px !important;
    margin: 0 !important;
  }
  
  /* Grid system optimization */
  .ant-row {
    margin: 0 !important;
  }
  
  .ant-col {
    padding: 4px !important;
  }
  
  /* Card spacing and sizing for mobile */
  .modern-card {
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(89, 73, 179, 0.08) !important;
  }
  
  .main-card {
    margin-bottom: 16px !important;
  }
  
  /* Combination cards mobile optimization */
  .combination-card {
    margin-bottom: 12px !important;
  }
  
  .combination-card .ant-card-head {
    padding: 8px 12px !important;
    min-height: auto !important;
  }
  
  .combination-card .ant-card-head-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
  
  .combination-card .ant-card-body {
    padding: 12px !important;
  }
  
  /* Input grid for mobile - better spacing */
  .combination-card .ant-row {
    gap: 6px !important;
  }
  
  /* Number inputs mobile optimization */
  .modern-input {
    height: 40px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    padding: 0 8px !important;
  }
  
  .ant-input-number {
    width: 100% !important;
  }
  
  .ant-input-number-input {
    height: 38px !important;
    font-size: 14px !important;
    text-align: center !important;
  }
  
  /* Button optimizations for mobile */
  .modern-button {
    height: 40px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    min-width: auto !important;
  }
  
  .new-combination-button {
    width: 100% !important;
    margin-top: 12px !important;
    height: 44px !important;
  }
  
  /* Delete button mobile optimization */
  .combination-card .ant-card-head-title button {
    font-size: 11px !important;
    padding: 2px 6px !important;
    min-height: 24px !important;
    border-radius: 6px !important;
  }
  
  /* Select dropdown mobile optimization */
  .ant-select {
    height: 40px !important;
  }
  
  .ant-select-selector {
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  
  .ant-select-selection-item {
    line-height: 38px !important;
  }
  
  /* Typography mobile adjustments */
  .ant-typography h1,
  .ant-typography h2,
  .ant-typography h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  
  .ant-typography h4 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
  }
  
  .ant-typography p,
  .ant-typography span {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  /* Results section mobile optimization */
  .results-section {
    padding: 12px !important;
  }
  
  .results-section .ant-tag {
    font-size: 12px !important;
    padding: 2px 6px !important;
    margin: 2px !important;
    border-radius: 6px !important;
  }
  
  /* Lottery balls mobile optimization */
  .lottery-ball {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
    margin: 2px !important;
    border-radius: 50% !important;
  }
  
  /* Alert messages mobile optimization */
  .ant-alert {
    margin-bottom: 12px !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
  }
  
  /* Space component mobile optimization */
  .ant-space {
    gap: 8px !important;
  }
  
  .ant-space-item {
    margin-bottom: 4px !important;
  }
  
  /* Badge mobile optimization */
  .ant-badge {
    font-size: 11px !important;
  }
  
  /* Divider mobile optimization */
  .ant-divider {
    margin: 12px 0 !important;
  }
  
  /* Sorteo card mobile optimization */
  .sorteo-card-optimized {
    margin: 8px 0 !important;
    border-radius: 10px !important;
  }
  
  .sorteo-card-optimized .ant-card-head {
    padding: 10px 12px !important;
    border-radius: 10px 10px 0 0 !important;
  }
  
  .sorteo-card-optimized .ant-card-head-title {
    font-size: 14px !important;
  }
  
  .sorteo-card-optimized .ant-card-body {
    padding: 12px !important;
  }
  
  /* Lottery numbers container mobile */
  .lottery-numbers-container {
    
    margin-bottom: 8px !important;
    border-radius: 8px !important;
  }
  
  /* Sorteo info container mobile */
  .sorteo-info-container {
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  
  /* Touch-friendly interactions */
  .interactive-element {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  
  /* Improved touch targets */
  .ant-btn {
    min-height: 40px !important;
    padding: 0 16px !important;
  }
  
  .ant-input-number {
    min-height: 40px !important;
  }
  
  /* Verification marks mobile */
  .verification-mark {
    width: 16px !important;
    height: 16px !important;
    font-size: 10px !important;
    top: -6px !important;
    right: -6px !important;
  }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
  .revisar-ticket-container {
    padding: 6px !important;
  }
  
  .modern-card {
    border-radius: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .combination-card .ant-card-head {
    padding: 6px 10px !important;
  }
  
  .combination-card .ant-card-body {
    padding: 10px !important;
  }
  
  .modern-input {
    height: 36px !important;
    font-size: 13px !important;
  }
  
  .ant-input-number-input {
    height: 34px !important;
    font-size: 13px !important;
  }
  
  .modern-button {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
  }
  
  .new-combination-button {
    height: 40px !important;
  }
  
  .ant-select-selector {
    height: 36px !important;
    font-size: 13px !important;
  }
  
  .ant-select-selection-item {
    line-height: 34px !important;
  }
  
  .lottery-ball {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  
  .sorteo-card-optimized {
    border-radius: 8px !important;
  }
  
  .sorteo-card-optimized .ant-card-head {
    padding: 8px 10px !important;
    border-radius: 8px 8px 0 0 !important;
  }
  
  .sorteo-card-optimized .ant-card-body {
    padding: 10px !important;
  }
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .revisar-ticket-container {
    padding: 12px !important;
  }
  .lottery-numbers-container{
    height: 90px;
  }
  .modern-card {
    border-radius: 14px !important;
  }
  
  .modern-input {
    height: 42px !important;
    font-size: 15px !important;
  }
  
  .ant-input-number-input {
    height: 40px !important;
    font-size: 15px !important;
  }
  
  .modern-button {
    height: 42px !important;
    font-size: 15px !important;
  }
  
  .combination-card .ant-card-head {
    padding: 10px 14px !important;
  }
  
  .combination-card .ant-card-body {
    padding: 14px !important;
  }
  .lottery-numbers-row{
margin-top: 15px;
  }
  
  .lottery-ball {
    width: 48px !important;
    height: 48px !important;
    font-size: 13px !important;
  }
}

/* Large desktop styles (1024px+) */
@media (min-width: 1024px) {
  .revisar-ticket-container {
    padding: 16px !important;
  }
  .lottery-numbers-container{
    height: 90px;
  }
  .lottery-numbers-row{
margin-top: 15px;
  }
}

/* Desktop-specific input optimizations */
@media (min-width: 768px) {
  .ant-input-number {
    height: 48px !important;
    border-radius: 12px !important;
    border: 2px solid #e8e8f0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%) !important;
    box-shadow: 0 2px 8px rgba(89, 73, 179, 0.08) !important;
  }
  
  .ant-input-number:hover {
    border-color: #5949b3 !important;
    box-shadow: 0 4px 12px rgba(89, 73, 179, 0.15) !important;
    transform: translateY(-1px) !important;
  }
  
  .ant-input-number-focused {
    border-color: #5949b3 !important;
    box-shadow: 0 0 0 3px rgba(89, 73, 179, 0.1) !important;
    transform: scale(1.02) !important;
  }
  
  .ant-input-number-input {
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #5949b3 !important;
    padding: 0 12px !important;
  }
  
  .ant-input-number-handler-wrap {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }
  
  .ant-input-number:hover .ant-input-number-handler-wrap {
    opacity: 1 !important;
  }
  
  .ant-input-number-handler {
    border-left: 1px solid #e8e8f0 !important;
    background: #fafbff !important;
  }
  
  .ant-input-number-handler:hover {
    background: #5949b3 !important;
    color: white !important;
  }

  /* Validation states for desktop */
  .number-input-valid.ant-input-number {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%) !important;
    animation: inputSuccess 0.4s ease-out;
  }
  
  .number-input-invalid.ant-input-number {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    animation: inputError 0.3s ease-out;
  }
  
  .number-input-duplicate.ant-input-number {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
    animation: inputDuplicate 0.5s ease-out;
  }

  .number-input-neutral.ant-input-number {
    border-color: #6B7280 !important;
    box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.15) !important;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.02) 0%, rgba(156, 163, 175, 0.02) 100%) !important;
    transition: all 0.2s ease;
  }

  .number-input-neutral.ant-input-number:hover {
    border-color: #5949b3 !important;
    box-shadow: 0 0 0 2px rgba(89, 73, 179, 0.2) !important;
  }
}
}

/* Landscape orientation optimizations */
@media (max-width: 767px) and (orientation: landscape) {
  .combination-card .ant-card-head {
    padding: 6px 10px !important;
  }
  
  .combination-card .ant-card-body {
    padding: 8px !important;
  }
  
  .modern-input {
    height: 36px !important;
  }
  
  .ant-input-number-input {
    height: 34px !important;
  }
  
  .modern-button {
    height: 36px !important;
  }
}

/* High DPI displays optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .modern-card {
    border-width: 0.5px !important;
  }
  
  .modern-input {
    border-width: 1px !important;
  }
  
  
}

/* Mobile-specific optimizations for forms and components */
@media (max-width: 767px) {
  .lottery-numbers-row {
   height: auto;
    padding-bottom: 24px;
  }
  /* Form optimizations */
  .combinations-section {
    padding: 12px 0 !important;
  }
  
  .combinations-section .ant-card {
    margin-bottom: 12px !important;
  }
  
  .combinations-section .ant-card-head {
    padding: 12px 16px !important;
    min-height: auto !important;
  }
  
  .combinations-section .ant-card-body {
    padding: 12px 16px !important;
  }
  
  /* Input number optimizations */
  .ant-input-number {
    width: 100% !important;
    height: 40px !important;
    border-radius: 8px !important;
    border: 1px solid #e8e8f0 !important;
    box-shadow: none !important;
  }
  
  .ant-input-number-input {
    height: 38px !important;
    font-size: 14px !important;
    text-align: center !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Fix double border issue on mobile */
  .ant-input-number-focused {
    border-color: #5949b3 !important;
    box-shadow: 0 0 0 2px rgba(89, 73, 179, 0.2) !important;
  }
  
  .ant-input-number-focused .ant-input-number-input {
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Validation states for mobile */
  .number-input-valid.ant-input-number {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
  }
  
  .number-input-invalid.ant-input-number {
    border-color: #EF4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
  }
  
  .number-input-duplicate.ant-input-number {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  }
  
  /* Verification marks optimization for mobile */
  .verification-mark {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    color: white !important;
    font-weight: bold !important;
    z-index: 15 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid white !important;
  }
  
  /* Select optimizations */
  .ant-select {
    height: 40px !important;
  }
  
  .ant-select-selector {
    height: 40px !important;
    border-radius: 8px !important;
  }
  
  .ant-select-selection-item {
    line-height: 38px !important;
    font-size: 14px !important;
  }
  
  /* Button optimizations */
  .modern-button {
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
  }
  
  /* Lottery ball optimizations */
  .lottery-ball-optimized {
    margin: 0 auto !important;
    transform: scale(1.2) !important;
   text-align: center;
        display: flex;
       padding-top: 14px;
        justify-content: center;
  }
  
  .lottery-ball-optimized .lottery-ball {
    width: 48px !important;
    height: 48px !important;
    margin: 2px !important;
  }
  
  .lottery-ball-optimized .lottery-ball__inner {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.3) !important,
      inset 0 -2px 6px rgba(0, 0, 0, 0.2) !important,
      inset 0 2px 6px rgba(255, 255, 255, 0.4) !important;
  }
  
  .lottery-ball-optimized .lottery-ball__number {
    font-size: 18px !important;
    font-weight: 900 !important;
    text-shadow: 
      2px 2px 4px rgba(0, 0, 0, 0.8) !important,
      0 0 8px rgba(0, 0, 0, 0.6) !important,
      1px 1px 0px rgba(0, 0, 0, 0.9) !important;
  }
  
  .lottery-ball-optimized .lottery-ball__highlight {
    width: 35% !important;
    height: 35% !important;
    top: 12% !important;
    left: 20% !important;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3)) !important;
  }
  
  /* Results section optimizations */
  .results-section {
    margin-top: 16px !important;
  }
  
  .results-section .ant-card {
    border-radius: 12px !important;
  }
  
  .results-section .ant-card-head {
    padding: 12px 16px !important;
  }
  
  .results-section .ant-card-body {
    padding: 16px !important;
  }
  
  /* Tag optimizations for matched numbers */
  .ant-tag {
    margin: 2px !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    min-width: 22px !important;
    text-align: center !important;
  }
  
  /* Space component optimizations */
  .ant-space {
    gap: 4px !important;
  }
  
  /* Alert optimizations */
  .ant-alert {
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  
  /* Typography optimizations */
  .ant-typography {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  
  .ant-typography strong {
    font-size: 14px !important;
  }
  
  /* Divider optimizations */
  .ant-divider {
    margin: 12px 0 !important;
  }
  
  /* Badge optimizations */
  .ant-badge {
    font-size: 11px !important;
  }
  
  /* Spin optimizations */
  .ant-spin-container {
    min-height: 120px !important;
  }
}

/* Accessibility improvements for mobile */
@media (max-width: 767px) {
  /* Focus states for touch devices */
  .modern-input:focus,
  .ant-input-number-focused .ant-input-number-input {
    outline: 2px solid #5949b3 !important;
    outline-offset: 2px !important;
  }
  
  .modern-button:focus {
    outline: 2px solid #5949b3 !important;
    outline-offset: 2px !important;
  }
  
  /* Improved contrast for small screens */
  .ant-typography {
    color: #1f2937 !important;
  }
  
  /* Better spacing for readability */
  .ant-card-head-title {
    line-height: 1.5 !important;
  }
  
  .ant-card-body p {
    line-height: 1.6 !important;
  }
  
  /* Touch-friendly improvements */
  .ant-btn,
  .modern-button {
    min-height: 44px !important;
    min-width: 44px !important;
    touch-action: manipulation !important;
  }
  
  .ant-input-number,
  .modern-input {
    min-height: 44px !important;
    touch-action: manipulation !important;
  }
  
  .ant-select-selector {
    min-height: 44px !important;
    touch-action: manipulation !important;
  }
  
  /* Prevent zoom on input focus */
  .ant-input-number-input,
  .ant-select-selection-search-input {
    font-size: 16px !important;
  }
  
  /* Improved tap targets */
  .combination-card .ant-card-head-title button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px 12px !important;
  }
  
  /* Better scroll behavior */
  .revisar-ticket-container {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
  }
  
  /* Prevent horizontal scroll */
  .ant-row {
    overflow-x: hidden !important;
  }
  
  /* Improved visual feedback for interactions */
  .modern-button:active,
  .ant-btn:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
  
  .modern-input:focus,
  .ant-input-number-focused {
    transform: scale(1.02) !important;
    transition: transform 0.2s ease !important;
  }
}/* Estilos específicos para la página de estafas */

.estafas-container {
  min-height: 100vh;
  padding: 20px;
  background: #F8F8F8;
}

.estafas-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 32px 16px;
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.estafas-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ec1379 0%, #44057a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.estafas-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-card {
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 60px;
}

.stats-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(68, 5, 122, 0.15);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ec1379, #44057a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stats-label {
  font-size: 0.9rem;
  color: #8c8c8c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-button {
  background: linear-gradient(45deg, #ec1379, #44057a);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(236, 19, 121, 0.3);
  transition: all 0.3s ease;
}

.primary-button:hover {
  background: linear-gradient(45deg, #d11070, #3a046a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 19, 121, 0.4);
}

.secondary-button {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  color: #495057;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.secondary-button:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #495057;
}

.form-section-card {
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: none;
}

.form-section-card .ant-card-head {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #ec1379;
}

.form-section-card .ant-card-head-title {
  color: #44057a;
  font-weight: 600;
}

.search-input {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-input:focus,
.search-input:hover {
  border-color: #ec1379;
  box-shadow: 0 0 0 3px rgba(236, 19, 121, 0.1);
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: white;
}


@media (max-width: 480px) {
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ant-table-thead > tr > th {
    white-space: nowrap;
    min-width: 80px;
  }
  
  .ant-table-tbody > tr > td {
    white-space: nowrap;
    min-width: 80px;
  }
  
  /* Ocultar columnas menos importantes en pantallas muy pequeñas */
  
}

.ant-table-thead > tr > th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #ec1379;
  color: #44057a;
  font-weight: 600;
}

.ant-table-tbody > tr:hover > td {
  background: linear-gradient(135deg, #fff9fc 0%, #fef7fa 100%);
}

.status-tag {
  border-radius: 20px;
  font-weight: 500;
  padding: 4px 12px;
  border: none;
}

.phone-tag {
  background: linear-gradient(45deg, #ff4d4f, #ff7875);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 0.85rem;
}

.amount-text {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(45deg, #ec1379, #44057a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-modal .ant-modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.detail-modal .ant-modal-header {
  background: linear-gradient(135deg, #ec1379, #44057a);
  border-bottom: none;
}

.detail-modal .ant-modal-title {
  color: #fff;
  font-weight: 600;
}

.info-card {
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border: 1px solid #e8ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: #ec1379;
  box-shadow: 0 2px 8px rgba(236, 19, 121, 0.1);
}

.upload-area {
  border: 2px dashed #e8ecef;
  border-radius: 8px;
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #ec1379;
  background: linear-gradient(135deg, #fff9fc 0%, #fef7fa 100%);
}

.pagination-container {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
  text-align: center;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  .estafas-container {
    padding: 12px;
  }
  
  .estafas-header {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
  }
  
  .estafas-title {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .estafas-subtitle {
    font-size: 14px;
    padding: 0 8px;
  }
  
  .stats-number {
    font-size: 20px;
  }
  
  .stats-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  
  .main-card {
    margin: 8px 0;
    border-radius: 8px;
  }
  
  .form-section-card {
    margin-bottom: 12px;
    border-radius: 8px;
  }
  
  .primary-button,
  .secondary-button {
    width: 100%;
    margin-bottom: 8px;
    height: 44px;
    font-size: 14px;
  }
  
  .search-input {
    margin-bottom: 12px;
  }
  
  .table-container {
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px;
  }
  
  .pagination-container {
    text-align: center;
    margin-top: 16px;
  }
  
  .alert-info {
    margin-bottom: 12px;
    font-size: 13px;
  }
  
  /* Modal adjustments */
  .ant-modal {
    margin: 0;
    max-width: 100vw;
    top: 0;
  }
  
  .ant-modal-content {
    border-radius: 0;
  }
  
  .ant-modal-body {
    padding: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Tabs adjustments */
  .ant-tabs-tab {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }
  
  /* Form adjustments */
  .ant-form-item {
    margin-bottom: 16px;
  }
  
  .ant-form-item-label {
    padding-bottom: 4px;
  }
  
  .ant-form-item-label > label {
    font-size: 13px;
    font-weight: 500;
  }
  
  .estafas-container .ant-input,
  .estafas-container .ant-input-number,
  .estafas-container .ant-select-selector,
  .estafas-container .ant-picker {
    height: 40px;
    font-size: 14px;
  }
  
  .estafas-container .ant-input-number-input {
    height: 38px;
  }
  
  /* TextArea specific */
  .estafas-container .ant-input {
    min-height: 40px;
  }
  
  /* Upload component */
  .ant-upload-list-picture-card .ant-upload-list-item {
    width: 80px;
    height: 80px;
  }
  
  .ant-upload-select-picture-card {
    width: 80px;
    height: 80px;
  }
  
  /* Table responsive */
  .ant-table-thead > tr > th {
    font-size: 12px;
    padding: 8px 4px;
  }
  
  .ant-table-tbody > tr > td {
    font-size: 12px;
    padding: 8px 4px;
  }
  
  /* Row gutters adjustment */
  .ant-row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .ant-col {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Form help text */
  .ant-form-item-explain {
    font-size: 11px;
  }
  
  /* Date picker adjustments */
  .ant-picker-dropdown {
    font-size: 13px;
  }
  
  /* Select dropdown */
  .ant-select-dropdown {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .ant-col {
    margin-bottom: 8px;
  }
  
 
  .ant-btn-block {
    margin-bottom: 8px;
  }
  
  .stats-card {
    margin-bottom: 12px;
  }
  
  .ant-card-body {
    padding: 16px;
  }
  
  .ant-form-item {
    margin-bottom: 16px;
  }
  
  .pagination-container {
    margin-top: 16px;
  }
  
  .ant-pagination {
    text-align: center;
  }
  
  .ant-pagination-item, .ant-pagination-prev, .ant-pagination-next {
    min-width: 32px;
    height: 32px;
    line-height: 30px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .ant-btn, .ant-input, .ant-select-selector {
    min-height: 44px;
  }
  
  .ant-table-tbody > tr {
    height: 48px;
  }
  
  .stats-card:hover {
    transform: none;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .estafas-header {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .estafas-title {
    font-size: 1.6rem;
  }
  
  .estafas-subtitle {
    font-size: 0.95rem;
  }
}

.ant-pagination-item-active {
  background: linear-gradient(45deg, #ec1379, #44057a);
  border-color: #ec1379;
}

.ant-pagination-item-active a {
  color: #fff;
}

.alert-info {
  background: linear-gradient(135deg, #e6f7ff 0%, #f0f9ff 100%);
  border: 1px solid #91d5ff;
  border-radius: 8px;
}

.gradient-text {
  background: linear-gradient(45deg, #ec1379, #44057a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.floating-action {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: linear-gradient(45deg, #ec1379, #44057a);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 20px rgba(236, 19, 121, 0.4);
  transition: all 0.3s ease;
}

.floating-action:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(236, 19, 121, 0.5);
}

@media (max-width: 768px) {
  .estafas-title {
    font-size: 2rem;
  }
  
  .estafas-subtitle {
    font-size: 1rem;
  }
  
  .stats-number {
    font-size: 1.8rem;
  }
  
  .floating-action {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(236, 19, 121, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(236, 19, 121, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(236, 19, 121, 0);
  }
}

.pulse-animation {
  animation: pulse 2s infinite;
}
/* ==========================================================================
   Tabla Día de Semana - Boleto Ganador Design System
   Matches Un Día Como Hoy, Predicciones & Historial visual standards
   ========================================================================== */

.dia-page-wrapper {
  --dia-accent: #44057a;
  --dia-accent-light: #7c3aed;
  --dia-magenta: #bc105e;
  --dia-magenta-light: #ec4899;
  --dia-gold: #f59e0b;
  --dia-gold-dark: #d97706;
  --dia-ink: #0f172a;
  --dia-muted: #64748b;
  --dia-line: #ede8f5;
  --dia-surface: #ffffff;
  --dia-tint: #faf7fd;
  --dia-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  color: var(--dia-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.dia-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--dia-accent);
  outline-offset: 3px;
}

.dia-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Compact Breadcrumbs
   ========================================================================== */
.dia-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--dia-muted);
  font-size: 12px;
  line-height: 1.4;
}

.dia-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--dia-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.dia-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--dia-magenta);
}

.dia-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.dia-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.dia-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dia-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--dia-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: var(--dia-accent);
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.06);
  flex-shrink: 0;
}

.dia-header-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dia-header-titles {
  min-width: 0;
}

.dia-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dia-magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.dia-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.dia-header-titles p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  max-width: 720px;
}

.dia-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dia-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: #fdf2f8;
  color: var(--dia-magenta);
  border: 1px solid #fce7f3;
}

/* High-Impact Golden CTA ("Juega online") - Identical to Un Día Como Hoy */
@keyframes cta-shimmer-dia {
  0% { transform: translateX(-140%) rotate(25deg); }
  25%, 100% { transform: translateX(260%) rotate(25deg); }
}

.dia-play-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.dia-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer-dia 3.8s ease-in-out infinite;
  pointer-events: none;
}

.dia-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255, 165, 0, 0.48);
  filter: brightness(1.06);
  color: #1a0033 !important;
}

.dia-play-cta:active {
  transform: translateY(0);
}

.dia-badge-inverted {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

/* ==========================================================================
   Controls Bar & Filter Strip
   ========================================================================== */
.dia-controls-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.dia-controls-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.dia-control-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dia-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dia-accent);
  white-space: nowrap;
}

/* Select Lotería with Image & Proper Centering */
.dia-lottery-select-wrap {
  min-width: 230px;
}

.dia-lottery-select-wrap .ant-select-selector {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
}

.dia-lottery-select-wrap .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  font-weight: 600;
  font-size: 13.5px;
  color: #1e1b4b;
  padding: 0 !important;
}

.dia-lottery-select-wrap .ant-select-selection-item::after {
  display: none !important;
}

.dia-lottery-select-wrap .ant-select-selection-search {
  display: flex !important;
  align-items: center !important;
  inset-inline-start: 12px !important;
}

.dia-lottery-select-wrap .ant-select-focused .ant-select-selector {
  border-color: var(--dia-accent) !important;
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.1) !important;
}

/* Position Select */
.dia-position-select-wrap {
  min-width: 170px;
}

.dia-position-select-wrap .ant-select-selector {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  font-weight: 600;
}

/* Voltear Numbers Switch */
.dia-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.dia-switch-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}
}

/* ==========================================================================
   Day Filter Pill Track (Mobile / Desktop Quick Filter)
   ========================================================================== */
.dia-pill-track-section {
  margin-bottom: 14px;
}

.dia-pill-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.dia-pill-track::-webkit-scrollbar {
  display: none;
}

.dia-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dia-pill-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--dia-accent);
}

.dia-pill-btn-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.32);
}

/* ==========================================================================
   Table Card & 7-Day Grid
   ========================================================================== */
.dia-table-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.dia-table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(180deg, #faf7fd 0%, #ffffff 100%);
  border-bottom: 1.5px solid #f1ecf9;
}

.dia-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
}

.dia-table-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.dia-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dia-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dia-table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.dia-week-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 820px;
}

.dia-col-header {
  padding: 12px 8px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
}

.dia-col-header:last-child {
  border-right: none;
}

.dia-col-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dia-day-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dia-day-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.dia-col-cell {
  padding: 14px 8px;
  vertical-align: top;
  border-right: 1px solid #f1f5f9;
  background: #ffffff;
}

.dia-col-cell:last-child {
  border-right: none;
}

.dia-cell-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Single Number Item Row */
.dia-number-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  position: relative;
  transition: transform 0.15s ease;
}

.dia-number-row:hover {
  transform: translateY(-1px);
}

/* Rank Tag */
.dia-rank-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  min-width: 16px;
  text-align: right;
}

/* 3D Lottery Balls (Idénticos al estándar canónico Un Día Como Hoy) */
.dia-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}

.dia-ball:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 12px rgba(124, 58, 237, 0.45);
}

/* Rank #1: Gold 3D Ball (1er Premio) */
.dia-ball-rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

/* Rank #2: Rosado / Magenta 3D Ball (2do Premio) */
.dia-ball-rank-2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

/* Rank #3: Purple 3D Ball (3er Premio) */
.dia-ball-rank-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* Rank #4-10: Emerald 3D Ball (Idéntico a Números Frecuentes) */
.dia-ball-regular {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Frequency Pill Badge ("veces") */
.dia-freq-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 800;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.dia-freq-badge strong {
  color: var(--dia-magenta);
  font-weight: 900;
}

/* ==========================================================================
   Focused Single Day View (Mobile & Tablet)
   ========================================================================== */
.dia-focused-view {
  padding: 16px;
}

.dia-focused-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.dia-focused-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.dia-focused-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dia-focused-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dia-focused-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(68, 5, 122, 0.08);
  border-color: #dcd3e7;
}

.dia-focused-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dia-focused-rank {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.dia-focused-count {
  font-size: 13px;
  font-weight: 800;
  color: #1e1b4b;
}

.dia-focused-count span {
  color: var(--dia-magenta);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .dia-page-wrapper {
    padding-top: 80px;
  }

  .dia-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .dia-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .dia-header-emblem {
    width: 52px;
    height: 48px;
    padding: 4px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .dia-header-titles h1 {
    font-size: 19px;
    letter-spacing: -0.3px;
    line-height: 1.25;
  }

  .dia-header-titles p {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .dia-header-right {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
  }

  .dia-badge-pill {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
    text-align: center;
  }

  .dia-play-cta {
    flex: 1;
    height: 38px;
    font-size: 12.5px;
    padding: 0 12px;
  }

  .dia-controls-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .dia-controls-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .dia-control-item {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .dia-control-label {
    font-size: 12.5px;
    gap: 5px;
  }

  .dia-lottery-select-wrap,
  .dia-lottery-select-wrap .ant-select,
  .dia-position-select-wrap,
  .dia-position-select-wrap .ant-select {
    width: 100% !important;
    min-width: 100% !important;
  }

  .dia-lottery-select-wrap .ant-select-selector,
  .dia-position-select-wrap .ant-select-selector {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
  }

  .dia-lottery-select-wrap .ant-select-selection-item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    font-size: 13.5px;
    padding: 0 !important;
  }

  .dia-switch-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #ede8f5;
    border-radius: 10px;
  }

  .dia-switch-label {
    font-size: 12.5px;
  }

  .dia-pill-track-section {
    margin-bottom: 14px;
  }

  .dia-pill-btn {
    padding: 6px 13px;
    font-size: 12.5px;
  }

  .dia-table-card {
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .dia-table-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .dia-table-header-bar h2 {
    font-size: 15px;
  }

  .dia-table-legend {
    gap: 10px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .dia-table-col {
    min-width: 100px;
  }

  .dia-table-col-header {
    padding: 8px 6px;
  }

  .dia-col-day-name {
    font-size: 12px;
  }

  .dia-col-day-sub {
    font-size: 10px;
  }

  .dia-table-cell {
    padding: 8px 4px;
  }

  .dia-ball {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .dia-container {
    padding: 0 10px;
  }

  .dia-header-card {
    padding: 12px 14px;
  }

  .dia-header-titles h1 {
    font-size: 17.5px;
  }

  .dia-header-titles p {
    font-size: 11.5px;
  }

  .dia-focused-view {
    padding: 12px 10px;
  }

  .dia-focused-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dia-focused-card {
    padding: 8px 10px;
    gap: 8px;
  }

  .dia-ball {
    width: 36px;
    height: 36px;
    font-size: 15.5px;
  }

  .dia-freq-badge {
    font-size: 11px;
    padding: 2px 5px;
  }

  .dia-table-col {
    min-width: 96px;
  }
}
/* ==========================================================================
   GENERADOR ZEUS - CANONICAL DESIGN SYSTEM
   Standard: Un Día Como Hoy / UI-Consistency Spec
   ========================================================================== */

:root {
  --zeus-purple: #44057a;
  --zeus-purple-light: #59079e;
  --zeus-magenta: #be185d;
  --zeus-magenta-light: #ec4899;
  --zeus-magenta-dark: #9d174d;
  --zeus-gold: #f59e0b;
  --zeus-gold-dark: #d97706;
  --zeus-bg: #f8fafc;
  --zeus-card-bg: #ffffff;
  --zeus-text: #1e293b;
  --zeus-muted: #64748b;
  --zeus-border: #ede8f5;
  --zeus-radius: 16px;
  --zeus-shadow: 0 4px 20px -2px rgba(68, 5, 122, 0.06);
}

/* Base Wrapper & Canonical Header Clearance */
.zeus-page-wrapper {
  background: var(--zeus-bg);
  min-height: 100vh;
  padding-top: 104px;
  padding-bottom: 60px;
  color: var(--zeus-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.zeus-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   CANONICAL BREADCRUMBS
   ========================================================================== */
.zeus-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--zeus-muted);
}

.zeus-breadcrumb a {
  color: var(--zeus-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.zeus-breadcrumb a:hover {
  color: var(--zeus-magenta);
}

.zeus-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   HERO HEADER CARD
   ========================================================================== */
.zeus-header-card {
  background: var(--zeus-card-bg);
  border-radius: var(--zeus-radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--zeus-border);
  box-shadow: var(--zeus-shadow);
  margin-bottom: 20px;
  gap: 20px;
}

.zeus-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.zeus-header-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border: 1.5px solid #f0abfc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.12);
  color: var(--zeus-magenta);
}

.zeus-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.zeus-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zeus-magenta);
}

.zeus-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--zeus-purple);
  line-height: 1.25;
}

.zeus-header-titles p {
  margin: 0;
  font-size: 13.5px;
  color: var(--zeus-muted);
  line-height: 1.4;
}

.zeus-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.zeus-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
}

.zeus-badge-pill strong {
  color: var(--zeus-magenta);
  font-weight: 800;
}

/* Botón Canónico "Juega online" */
.zeus-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #220240;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 1.5px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.zeus-play-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: zeus-shine 3s infinite;
}

@keyframes zeus-shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.zeus-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   CONFIG CARD: PRESETS & RANGOS
   ========================================================================== */
.zeus-card {
  background: var(--zeus-card-bg);
  border-radius: var(--zeus-radius);
  padding: 22px 24px;
  border: 1px solid var(--zeus-border);
  box-shadow: var(--zeus-shadow);
  margin-bottom: 20px;
}

.zeus-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.zeus-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--zeus-purple);
  margin: 0;
}

.zeus-card-title span {
  font-size: 18px;
}

/* Presets Pills */
.zeus-presets-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.zeus-preset-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
  line-height: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.zeus-preset-pill:hover {
  border-color: #f472b6 !important;
  color: var(--zeus-magenta) !important;
  background: #fdf2f8 !important;
  transform: translateY(-1px);
}

.zeus-preset-pill-active {
  background: linear-gradient(135deg, var(--zeus-magenta) 0%, var(--zeus-magenta-light) 100%) !important;
  color: #ffffff !important;
  border-color: var(--zeus-magenta) !important;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.zeus-preset-pill span {
  white-space: nowrap !important;
}

/* Desktop: Presets Mobile Select Hidden */
.zeus-presets-mobile-select-wrap {
  display: none;
}

/* Range & Config Controls Grid */
.zeus-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  align-items: end;
  background: #faf8fc;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 16px 20px;
}

.zeus-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zeus-config-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zeus-config-switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  height: 40px;
}

.zeus-config-switch-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

/* ==========================================================================
   NUMBERS TRAY & SELECTION GRID
   ========================================================================== */
.zeus-tray-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fdf4ff 0%, #fdf2f8 100%);
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.zeus-tray-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.zeus-stat-item {
  font-size: 13px;
  color: #475569;
}

.zeus-stat-item strong {
  color: var(--zeus-magenta);
  font-weight: 800;
  font-size: 14px;
}

.zeus-tray-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zeus-btn-tool {
  border: 1px solid #fbcfe8;
  background: #ffffff;
  color: var(--zeus-magenta);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.zeus-btn-tool:hover {
  background: var(--zeus-magenta);
  color: #ffffff;
  border-color: var(--zeus-magenta);
}

.zeus-btn-tool-clear {
  color: #e11d48;
  border-color: #fecdd3;
}

.zeus-btn-tool-clear:hover {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

/* Selected Numbers Pills Tray */
.zeus-selected-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px;
  background: #ffffff;
  border: 1.5px dashed #f0abfc;
  border-radius: 12px;
  margin-bottom: 20px;
  min-height: 54px;
}

.zeus-tray-empty-hint {
  color: #94a3b8;
  font-size: 12.5px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 3D Numbers Interactive Grid */
.zeus-numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 10px;
  padding: 4px;
}

.zeus-ball-picker {
  aspect-ratio: 1;
  width: 100%;
  max-width: 46px;
  border-radius: 50%;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 14.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  user-select: none;
}

.zeus-ball-picker:hover {
  transform: translateY(-2px);
  border-color: #ec4899;
  color: var(--zeus-magenta);
  background: #fdf2f8;
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.15);
}

/* Selected 3D Ball */
.zeus-ball-picker-selected {
  background: linear-gradient(135deg, var(--zeus-magenta) 0%, var(--zeus-magenta-light) 100%) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
  transform: scale(1.06);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   PRIMARY GENERATE BUTTON
   ========================================================================== */
.zeus-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.zeus-btn-generate {
  background: linear-gradient(135deg, var(--zeus-magenta) 0%, var(--zeus-magenta-light) 100%);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0 32px;
  height: 48px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zeus-btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.45);
}

.zeus-btn-generate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   RESULTS CARD & TABLE / CARDS
   ========================================================================== */
.zeus-results-card {
  scroll-margin-top: 84px;
}

.zeus-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.zeus-results-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--zeus-purple);
  margin: 0;
}

.zeus-results-count {
  font-size: 13.5px;
  color: var(--zeus-muted);
  font-weight: 600;
}

.zeus-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Canonical Search Input */
.zeus-header-search-wrap {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.zeus-header-search-wrap .ant-input-affix-wrapper,
.zeus-search-input.ant-input-affix-wrapper {
  width: 100% !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 12px 0 6px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.zeus-header-search-wrap .ant-input-affix-wrapper:hover,
.zeus-search-input.ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.zeus-header-search-wrap .ant-input-affix-wrapper-focused,
.zeus-search-input.ant-input-affix-wrapper-focused,
.zeus-header-search-wrap.zeus-header-search-active .ant-input-affix-wrapper {
  border-color: var(--zeus-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

.zeus-header-search-wrap .ant-input-prefix,
.zeus-search-input .ant-input-prefix {
  margin-right: 6px !important;
  display: flex !important;
  align-items: center !important;
}

.zeus-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zeus-header-search-wrap input.ant-input,
.zeus-search-input input.ant-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--zeus-purple) !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
  outline: none !important;
}

.zeus-header-search-wrap input.ant-input::placeholder,
.zeus-search-input input.ant-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.zeus-results-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.zeus-export-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zeus-btn-text-short {
  display: none;
}

/* Conmutador Dual [ Tarjetas | Tabla ] */
.zeus-view-toggle {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.zeus-view-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  line-height: 1;
}

.zeus-view-btn-active {
  background: #ffffff;
  color: var(--zeus-purple);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Export Buttons */
.zeus-export-btn {
  border: 1.5px solid #fbcfe8;
  background: #ffffff;
  color: var(--zeus-magenta);
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 16px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.zeus-export-btn:hover {
  background: #fdf2f8;
  border-color: #ec4899;
}

/* Bolos 3D de Combinación en Tabla / Tarjetas */
.zeus-combination-balls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zeus-3d-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(76, 29, 149, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.zeus-3d-ball-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
  border-width: 1.5px;
}

/* Botón de Copiar por Fila */
.zeus-copy-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.zeus-copy-btn:hover {
  background: #fdf2f8;
  color: var(--zeus-magenta);
  border-color: #fbcfe8;
}

/* ==========================================================================
   CANONICAL TABLE OVERRIDES (#faf8fc !important)
   ========================================================================== */
.zeus-page-wrapper .zeus-table .ant-table-thead > tr > th,
.zeus-page-wrapper .zeus-table .ant-table-thead th {
  background: #faf8fc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #ede8f5 !important;
  padding: 14px 16px !important;
  letter-spacing: 0.02em;
}

.zeus-page-wrapper .zeus-table .ant-table-tbody > tr > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px;
  vertical-align: middle;
}

.zeus-page-wrapper .zeus-table .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

/* ==========================================================================
   PAGINACIÓN ROSADA DE MARCA
   ========================================================================== */
.zeus-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.hoy-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.hoy-pagination-total strong {
  color: var(--zeus-magenta);
  font-weight: 800;
}

.zeus-table .ant-pagination-item,
.zeus-pagination-wrap .ant-pagination-item,
.zeus-table .ant-pagination-prev,
.zeus-table .ant-pagination-next,
.zeus-pagination-wrap .ant-pagination-prev,
.zeus-pagination-wrap .ant-pagination-next {
  min-width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.zeus-table .ant-pagination-item a,
.zeus-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
}

.zeus-table .ant-pagination-item:hover,
.zeus-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px);
}

.zeus-table .ant-pagination-item-active,
.zeus-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, var(--zeus-magenta) 0%, var(--zeus-magenta-light) 100%) !important;
  border-color: var(--zeus-magenta) !important;
}

.zeus-table .ant-pagination-item-active a,
.zeus-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

/* ==========================================================================
   MOBILE CARDS VIEW (🗂️ Tarjetas)
   ========================================================================== */
.zeus-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.zeus-combination-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03);
  transition: all 0.2s ease;
}

.zeus-combination-card:hover {
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
}

.zeus-card-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zeus-index-badge {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 28px;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS (Mobile-First Polish)
   ========================================================================== */
@media (max-width: 768px) {
  .zeus-page-wrapper {
    padding-top: 84px;
    padding-bottom: 96px; /* Room for mobile floating thumb bar */
  }

  .zeus-container {
    padding: 0 12px;
  }

  .zeus-breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }

  /* Header Card */
  .zeus-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
    margin-bottom: 14px;
  }

  .zeus-header-left {
    gap: 12px;
  }

  .zeus-header-emblem {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .zeus-header-emblem svg {
    width: 24px;
    height: 24px;
  }

  .zeus-header-titles h1 {
    font-size: 18px;
  }

  .zeus-header-titles p {
    font-size: 12.5px;
  }

  .zeus-header-right {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .zeus-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 11.5px;
    padding: 0 8px;
  }

  .zeus-play-cta {
    flex: 1;
    height: 38px;
    font-size: 13px;
  }

  .zeus-card {
    padding: 14px 12px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .zeus-card-header {
    margin-bottom: 12px;
  }

  .zeus-card-title {
    font-size: 15px;
  }

  /* Mobile: Hide Pills Rail, Show Canonical Select */
  .zeus-presets-wrap {
    display: none !important;
  }

  .zeus-presets-mobile-select-wrap {
    display: block;
    margin-bottom: 12px;
    width: 100%;
  }

  .zeus-presets-select {
    width: 100% !important;
  }

  .zeus-presets-select .ant-select-selector {
    height: 42px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2d9eb !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
  }

  .zeus-presets-select:hover .ant-select-selector {
    border-color: #f472b6 !important;
    box-shadow: 0 2px 8px rgba(190, 24, 93, 0.12) !important;
  }

  .zeus-presets-select.ant-select-focused .ant-select-selector,
  .zeus-presets-select.ant-select-open .ant-select-selector {
    border-color: var(--zeus-magenta) !important;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
  }

  .zeus-presets-select .ant-select-selection-item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    width: 100%;
  }

  .zeus-presets-select .ant-select-selection-item::after {
    display: none !important;
  }

  .zeus-select-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .zeus-select-option-emoji {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
  }

  .zeus-select-option-name {
    font-weight: 700;
    color: var(--zeus-purple);
    font-size: 13.5px;
  }

  .zeus-select-option-size {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin-left: auto;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 6px;
  }

  /* Compact 2-Column Range Grid */
  .zeus-config-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .zeus-config-field {
    gap: 3px;
  }

  .zeus-config-label {
    font-size: 11px;
  }

  .zeus-config-field .ant-input-number {
    width: 100% !important;
    height: 36px;
    border-radius: 8px;
  }

  .zeus-config-field .ant-input-number-input {
    height: 34px;
    font-size: 13.5px;
    text-align: center;
  }

  .zeus-config-switch-field {
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
  }

  .zeus-config-switch-label {
    font-size: 11px;
  }

  /* Tray Stats & Compact 4-Tool Grid */
  .zeus-tray-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
  }

  .zeus-tray-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border: 1px solid #f0abfc;
    border-radius: 10px;
    padding: 6px 10px;
    gap: 6px;
  }

  .zeus-stat-item {
    font-size: 11.5px;
  }

  .zeus-stat-item strong {
    font-size: 13px;
    color: var(--zeus-purple);
  }

  .zeus-tray-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
  }

  .zeus-btn-tool {
    height: 34px;
    padding: 0 2px;
    font-size: 11px;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    gap: 3px;
  }

  .zeus-btn-text-full {
    display: none;
  }

  .zeus-btn-text-short {
    display: inline;
  }

  /* Selected Numbers Tray */
  .zeus-selected-tray {
    padding: 8px 10px;
    min-height: 44px;
    margin-bottom: 12px;
    border-radius: 10px;
    gap: 6px;
  }

  .zeus-tray-empty-hint {
    font-size: 11.5px;
    line-height: 1.35;
  }

  /* Numbers Picker Grid */
  .zeus-numbers-grid {
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr));
    gap: 5px;
    justify-items: center;
    padding: 2px 0;
  }

  .zeus-ball-picker {
    width: 100%;
    max-width: 38px;
    height: 38px;
    font-size: 13px;
    font-weight: 700;
    border-width: 1.5px;
    border-radius: 50%;
  }

  /* Action Row & Generate Button */
  .zeus-action-row {
    margin-top: 16px;
  }

  .zeus-btn-generate {
    width: 100%;
    height: 44px;
    font-size: 14px;
    padding: 0 16px;
    border-radius: 12px;
  }

  /* Results Card & Header */
  .zeus-results-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .zeus-results-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .zeus-results-title {
    font-size: 15px;
  }

  .zeus-results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .zeus-header-search-wrap {
    width: 100% !important;
  }

  .zeus-header-search-wrap .ant-input-affix-wrapper,
  .zeus-search-input.ant-input-affix-wrapper {
    width: 100% !important;
    height: 40px !important;
  }

  .zeus-results-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .zeus-view-toggle {
    display: flex;
  }

  .zeus-view-btn {
    padding: 6px 11px;
    font-size: 12px;
    white-space: nowrap !important;
  }

  .zeus-export-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .zeus-export-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap !important;
  }

  /* Mobile Cards Grid */
  .zeus-cards-grid {
    gap: 8px;
  }

  .zeus-combination-card {
    padding: 10px 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .zeus-card-left-info {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .zeus-index-badge {
    font-size: 11px;
    min-width: 24px;
  }

  .zeus-combination-balls {
    flex-wrap: wrap;
    gap: 5px;
  }

  .zeus-3d-ball-sm {
    width: 30px;
    height: 30px;
    font-size: 12.5px;
  }

  .zeus-copy-btn {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
    flex-shrink: 0;
  }

  /* Pagination Wrap */
  .zeus-pagination-wrap {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
  }
}

/* ==========================================================================
   MOBILE FLOATING ACTION BAR (Thumb Zone)
   ========================================================================== */
.zeus-mobile-floating-bar {
  display: none;
}

@media (max-width: 768px) {
  .zeus-mobile-floating-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
    transform: translateY(130%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }

  .zeus-mobile-floating-bar.zeus-floating-bar-visible {
    transform: translateY(0);
  }

  .zeus-floating-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
    padding: 7px 8px 7px 18px;
    border-radius: 9999px;
    background: rgba(30, 3, 54, 0.88);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1.5px solid rgba(240, 171, 252, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 2px 10px rgba(190, 24, 93, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    pointer-events: auto;
  }

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

  .zeus-floating-count {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .zeus-floating-count strong {
    color: #f472b6;
    font-size: 15px;
    font-weight: 900;
  }

  .zeus-floating-theor {
    font-size: 11px;
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .zeus-floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--zeus-magenta) 0%, var(--zeus-magenta-dark) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(190, 24, 93, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .zeus-floating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
  }

  .zeus-floating-btn:not(:disabled):active {
    transform: scale(0.96);
  }
}

/* Accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}
/* ==========================================================================
   Tabla de Números - Boleto Ganador Design System
   Matches Un Día Como Hoy & Tabla Día de Semana visual standards
   ========================================================================== */

.tabla-page-wrapper {
  --tabla-accent: #44057a;
  --tabla-accent-light: #7c3aed;
  --tabla-magenta: #bc105e;
  --tabla-magenta-light: #ec4899;
  --tabla-gold: #f59e0b;
  --tabla-gold-dark: #d97706;
  --tabla-ink: #0f172a;
  --tabla-muted: #64748b;
  --tabla-line: #ede8f5;
  --tabla-surface: #ffffff;
  --tabla-tint: #faf7fd;
  --tabla-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  color: var(--tabla-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.tabla-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--tabla-accent);
  outline-offset: 3px;
}

.tabla-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Compact Breadcrumbs
   ========================================================================== */
.tabla-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--tabla-muted);
  font-size: 12px;
  line-height: 1.4;
}

.tabla-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--tabla-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.tabla-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--tabla-magenta);
}

.tabla-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.tabla-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.tabla-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tabla-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--tabla-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: var(--tabla-accent);
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.06);
  flex-shrink: 0;
}

.tabla-header-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tabla-header-titles {
  min-width: 0;
}

.tabla-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tabla-magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tabla-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.tabla-header-titles p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  max-width: 720px;
}

.tabla-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tabla-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: #fdf2f8;
  color: var(--tabla-magenta);
  border: 1px solid #fce7f3;
  height: 38px;
  box-sizing: border-box;
}

/* High-Impact Golden CTA ("Juega online") - Identical to Un Día Como Hoy */
@keyframes cta-shimmer-tabla {
  0% { transform: translateX(-140%) rotate(25deg); }
  25%, 100% { transform: translateX(260%) rotate(25deg); }
}

.tabla-play-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240 !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.tabla-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer-tabla 3.8s ease-in-out infinite;
  pointer-events: none;
}

.tabla-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255, 165, 0, 0.48);
  filter: brightness(1.06);
  color: #1a0033 !important;
}

.tabla-play-cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   Controls Bar & Filter Strip
   ========================================================================== */
.tabla-controls-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.tabla-controls-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tabla-control-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tabla-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tabla-accent);
  white-space: nowrap;
}

/* Select Lotería with Image & Proper Centering */
.tabla-lottery-select-wrap {
  width: 210px;
}

.tabla-lottery-select-wrap .ant-select-selector {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
}

.tabla-lottery-select-wrap .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  font-weight: 600;
  font-size: 13px;
  color: #1e1b4b;
  padding: 0 !important;
}

.tabla-lottery-select-wrap .ant-select-selection-item::after {
  display: none !important;
}

.tabla-position-select-wrap {
  width: 145px;
}

.tabla-position-select-wrap .ant-select-selector {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center !important;
}

.tabla-position-select-wrap .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  font-weight: 600;
  font-size: 13px;
  color: #1e1b4b;
}

.tabla-date-picker-wrap {
  width: 130px;
}

.tabla-date-picker-wrap .ant-picker {
  height: 40px !important;
  width: 100% !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 10px !important;
}

/* Quick Date Pill Track */
.tabla-quick-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tabla-quick-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabla-quick-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tabla-quick-btn-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  color: #ffffff !important;
  border-color: #be185d !important;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
}

/* ==========================================================================
   Canonical 3D Relief Lottery Bolos
   ========================================================================== */
.tabla-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border: 2px solid #ffffff;
  cursor: default;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.tabla-ball:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Top 1 Delay (Gold) */
.tabla-ball-rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Top 2 Delay (Magenta) */
.tabla-ball-rank-2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Top 3 Delay (Brand Purple) */
.tabla-ball-rank-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Regular / Other Delays (Emerald / Purple Base) */
.tabla-ball-regular {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

.tabla-ball.blur {
  filter: blur(5px);
}

/* Detail Button ("Ver en otras loterías") */
.tabla-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  height: 26px;
  margin-top: 6px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--tabla-magenta);
  color: var(--tabla-magenta);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tabla-detail-btn:hover {
  background: #fdf2f8;
  border-color: #be185d;
  color: #be185d;
  transform: translateY(-1px);
}

/* ==========================================================================
   Table Styling & Delay Badges
   ========================================================================== */
.tabla-table-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.04);
  margin-bottom: 20px;
}

.tabla-table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, #fbf9fd 0%, #f6f0fc 100%);
  border-bottom: 1px solid #ede8f5;
}

.tabla-table-header-bar h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #220240;
}

.tabla-table-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.tabla-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tabla-legend-ball {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Custom Table Overrides */
.tabla-custom-table .ant-table {
  font-size: 13.5px;
}

.tabla-custom-table .ant-table-thead > tr > th {
  background: #f8fafc !important;
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  border-bottom: 1px solid #ede8f5 !important;
  padding: 12px 16px !important;
}

.tabla-custom-table .ant-table-tbody > tr > td {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 12px 16px !important;
}

.tabla-custom-table .ant-table-tbody > tr:hover > td {
  background: #faf7fd !important;
}

/* Delay Badges */
.tabla-delay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.tabla-delay-badge-top {
  background: #fef2f2;
  color: #dc2626;
  border-color: #f87171;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
}

.tabla-max-delay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.tabla-date-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tabla-date-day {
  font-size: 11px;
  font-weight: 800;
  color: var(--tabla-magenta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tabla-date-val {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* ==========================================================================
   Pagination: Canonical Un Día Como Hoy Style (Rosado / Magenta)
   ========================================================================== */
.tabla-pagination-wrap,
.tabla-mob-pagination-wrap {
  display: flex;
  background: #ffffff;
  border-top: 1.5px solid #fce7f3;
  padding: 14px 20px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.tabla-custom-table .ant-pagination,
.tabla-pagination-wrap .ant-pagination,
.tabla-mob-pagination-wrap .ant-pagination {
  margin: 18px 20px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100%;
}

.tabla-custom-table .ant-pagination-total-text,
.tabla-pagination-wrap .ant-pagination-total-text,
.tabla-mob-pagination-wrap .ant-pagination-total-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hoy-pagination-total,
.tabla-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(190, 24, 93, 0.05);
  font-size: 12.5px;
  color: #475569;
}

.hoy-pagination-total strong,
.tabla-pagination-total strong {
  color: #be185d;
  font-weight: 800;
}

/* Page Numbers */
.tabla-custom-table .ant-pagination-item,
.tabla-pagination-wrap .ant-pagination-item,
.tabla-mob-pagination-wrap .ant-pagination-item {
  border-radius: 10px;
  border: 1.5px solid #fbcfe8;
  background: #ffffff;
  min-width: 38px;
  height: 38px;
  line-height: 35px;
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabla-custom-table .ant-pagination-item a,
.tabla-pagination-wrap .ant-pagination-item a,
.tabla-mob-pagination-wrap .ant-pagination-item a {
  color: #334155;
  font-weight: 700;
}

.tabla-custom-table .ant-pagination-item:hover,
.tabla-pagination-wrap .ant-pagination-item:hover,
.tabla-mob-pagination-wrap .ant-pagination-item:hover {
  border-color: #ec4899;
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.18);
}

.tabla-custom-table .ant-pagination-item:hover a,
.tabla-pagination-wrap .ant-pagination-item:hover a,
.tabla-mob-pagination-wrap .ant-pagination-item:hover a {
  color: #be185d;
}

/* Active Page Item (Rosado / Magenta) */
.tabla-custom-table .ant-pagination-item-active,
.tabla-pagination-wrap .ant-pagination-item-active,
.tabla-mob-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.38) !important;
  transform: translateY(-1px);
}

.tabla-custom-table .ant-pagination-item-active a,
.tabla-pagination-wrap .ant-pagination-item-active a,
.tabla-mob-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Prev / Next Buttons */
.tabla-custom-table .ant-pagination-prev,
.tabla-custom-table .ant-pagination-next,
.tabla-pagination-wrap .ant-pagination-prev,
.tabla-pagination-wrap .ant-pagination-next,
.tabla-mob-pagination-wrap .ant-pagination-prev,
.tabla-mob-pagination-wrap .ant-pagination-next {
  border-radius: 10px;
  border: 1.5px solid #fbcfe8;
  background: #ffffff;
  min-width: 38px;
  height: 38px;
  line-height: 35px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabla-custom-table .ant-pagination-prev button,
.tabla-custom-table .ant-pagination-next button,
.tabla-pagination-wrap .ant-pagination-prev button,
.tabla-pagination-wrap .ant-pagination-next button,
.tabla-mob-pagination-wrap .ant-pagination-prev button,
.tabla-mob-pagination-wrap .ant-pagination-next button {
  color: #be185d;
  font-weight: 700;
}

.tabla-custom-table .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.tabla-custom-table .ant-pagination-next:hover:not(.ant-pagination-disabled),
.tabla-pagination-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.tabla-pagination-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled),
.tabla-mob-pagination-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.tabla-mob-pagination-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) {
  border-color: #ec4899;
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.18);
}

.tabla-custom-table .ant-pagination-prev:hover:not(.ant-pagination-disabled) button,
.tabla-custom-table .ant-pagination-next:hover:not(.ant-pagination-disabled) button,
.tabla-pagination-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled) button,
.tabla-pagination-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) button,
.tabla-mob-pagination-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled) button,
.tabla-mob-pagination-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) button {
  color: #be185d;
}

.tabla-custom-table .ant-pagination-disabled,
.tabla-pagination-wrap .ant-pagination-disabled,
.tabla-mob-pagination-wrap .ant-pagination-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.tabla-custom-table .ant-pagination-disabled button,
.tabla-pagination-wrap .ant-pagination-disabled button,
.tabla-mob-pagination-wrap .ant-pagination-disabled button {
  cursor: not-allowed !important;
  color: #94a3b8 !important;
}

/* Jump Ellipses */
.tabla-custom-table .ant-pagination-jump-prev,
.tabla-custom-table .ant-pagination-jump-next,
.tabla-pagination-wrap .ant-pagination-jump-prev,
.tabla-pagination-wrap .ant-pagination-jump-next,
.tabla-mob-pagination-wrap .ant-pagination-jump-prev,
.tabla-mob-pagination-wrap .ant-pagination-jump-next {
  min-width: 38px;
  height: 38px;
  line-height: 35px;
}

.tabla-custom-table .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.tabla-custom-table .ant-pagination-jump-next .ant-pagination-item-link-icon,
.tabla-pagination-wrap .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.tabla-pagination-wrap .ant-pagination-jump-next .ant-pagination-item-link-icon,
.tabla-mob-pagination-wrap .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.tabla-mob-pagination-wrap .ant-pagination-jump-next .ant-pagination-item-link-icon {
  color: #be185d !important;
}

/* Page Size Changer Dropdown */
.tabla-custom-table .ant-pagination-options,
.tabla-pagination-wrap .ant-pagination-options,
.tabla-mob-pagination-wrap .ant-pagination-options {
  margin-left: 10px;
}

.tabla-custom-table .ant-pagination-options .ant-select-selector,
.tabla-pagination-wrap .ant-pagination-options .ant-select-selector,
.tabla-mob-pagination-wrap .ant-pagination-options .ant-select-selector {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  height: 38px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  font-weight: 700;
  font-size: 13px;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabla-custom-table .ant-pagination-options .ant-select:hover .ant-select-selector,
.tabla-pagination-wrap .ant-pagination-options .ant-select:hover .ant-select-selector,
.tabla-mob-pagination-wrap .ant-pagination-options .ant-select:hover .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15) !important;
}

.tabla-custom-table .ant-pagination-options .ant-select-focused .ant-select-selector,
.tabla-pagination-wrap .ant-pagination-options .ant-select-focused .ant-select-selector,
.tabla-mob-pagination-wrap .ant-pagination-options .ant-select-focused .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
}

.tabla-custom-table .ant-pagination-options .ant-select-arrow,
.tabla-pagination-wrap .ant-pagination-options .ant-select-arrow,
.tabla-mob-pagination-wrap .ant-pagination-options .ant-select-arrow {
  color: #be185d !important;
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media (max-width: 768px) {
  .tabla-page-wrapper {
    padding-top: 88px;
    padding-bottom: 36px;
  }

  .tabla-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .tabla-header-left {
    width: 100%;
    gap: 12px;
  }

  .tabla-header-emblem {
    width: 52px;
    height: 48px;
  }

  .tabla-header-titles h1 {
    font-size: 19px;
  }

  /* Canonical Mobile Row: Badge + CTA side-by-side */
  .tabla-header-right {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .tabla-header-right .tabla-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 11.5px;
    padding: 0 8px;
    margin: 0;
  }

  .tabla-header-right .tabla-play-cta {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 12.5px;
    padding: 0 12px;
    margin: 0;
  }

  /* Controls Strip Mobile */
  .tabla-controls-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 12px;
  }

  .tabla-controls-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .tabla-control-item {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .tabla-lottery-select-wrap,
  .tabla-position-select-wrap,
  .tabla-date-picker-wrap,
  .tabla-numero-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .tabla-lottery-select-wrap .ant-select,
  .tabla-position-select-wrap .ant-select,
  .tabla-date-picker-wrap .ant-picker,
  .tabla-numero-search-wrap .ant-input-affix-wrapper {
    width: 100% !important;
    height: 42px !important;
  }

  .tabla-lottery-select-wrap .ant-select-selector,
  .tabla-position-select-wrap .ant-select-selector,
  .tabla-date-picker-wrap .ant-picker {
    height: 42px !important;
  }

  .tabla-quick-dates {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }

  .tabla-quick-btn {
    flex: 1;
    height: 36px;
    font-size: 12px;
  }

  .tabla-table-header-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    gap: 12px;
  }

  .tabla-table-header-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tabla-table-header-left h2 {
    width: 100%;
    margin-bottom: 0;
    font-size: 16.5px;
    line-height: 1.35;
    text-align: left;
  }

  .tabla-header-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .tabla-header-search-wrap:focus-within {
    width: 100% !important;
  }

  .tabla-header-search-wrap .ant-input-affix-wrapper {
    width: 100% !important;
    height: 42px !important;
    border-radius: 9999px !important;
    padding: 0 10px 0 6px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2d9eb !important;
    box-shadow: 0 2px 6px rgba(68, 5, 122, 0.04) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .tabla-search-hint-pill {
    display: inline-flex !important;
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 700 !important;
  }

  .tabla-view-switcher {
    width: 100%;
    display: flex;
    justify-content: stretch;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .tabla-view-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 9px;
  }

  .tabla-table-legend {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed #ede8f5;
    justify-content: flex-start;
  }

  .tabla-ball {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .tabla-custom-table .ant-pagination,
  .tabla-pagination-wrap .ant-pagination,
  .tabla-mob-pagination-wrap .ant-pagination {
    margin: 12px 10px !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .tabla-custom-table .ant-pagination-total-text,
  .tabla-pagination-wrap .ant-pagination-total-text,
  .tabla-mob-pagination-wrap .ant-pagination-total-text {
    width: 100% !important;
    justify-content: center !important;
    margin-right: 0 !important;
    margin-bottom: 8px !important;
  }

  .tabla-custom-table .ant-pagination-item,
  .tabla-custom-table .ant-pagination-prev,
  .tabla-custom-table .ant-pagination-next,
  .tabla-pagination-wrap .ant-pagination-item,
  .tabla-pagination-wrap .ant-pagination-prev,
  .tabla-pagination-wrap .ant-pagination-next,
  .tabla-mob-pagination-wrap .ant-pagination-item,
  .tabla-mob-pagination-wrap .ant-pagination-prev,
  .tabla-mob-pagination-wrap .ant-pagination-next {
    min-width: 35px !important;
    height: 35px !important;
    line-height: 33px !important;
    font-size: 13px !important;
    margin: 0 2px !important;
    border-radius: 9px !important;
  }

  .hoy-pagination-total,
  .tabla-pagination-total {
    font-size: 12px !important;
    padding: 3px 10px;
  }
}

@media (max-width: 480px) {
  .tabla-container {
    padding: 0 10px;
  }

  .tabla-header-card {
    padding: 12px 12px;
  }

  .tabla-header-titles h1 {
    font-size: 17px;
  }

  .tabla-header-titles p {
    font-size: 11.5px;
  }

  .tabla-ball {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .tabla-detail-btn {
    font-size: 10px;
    padding: 0 8px;
    height: 24px;
  }

  .tabla-mob-card {
    padding: 12px;
  }

  .tabla-mob-ball {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ==========================================================================
   Mobile-First App UI: View Switcher & Mobile Cards List
   ========================================================================== */
.tabla-table-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .tabla-table-header-left {
    flex-wrap: nowrap;
  }
}

/* Header Search Wrap (Beside section title) */
.tabla-header-search-wrap {
  width: 250px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tabla-header-search-wrap .ant-input-affix-wrapper {
  width: 100% !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 8px 0 6px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.tabla-header-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.tabla-header-search-wrap .ant-input-affix-wrapper-focused,
.tabla-header-search-wrap.tabla-header-search-active .ant-input-affix-wrapper {
  border-color: var(--tabla-magenta) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

/* Micro-badge icon container */
.tabla-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tabla-header-search-wrap .ant-input-affix-wrapper-focused .tabla-search-icon-badge,
.tabla-header-search-wrap.tabla-header-search-active .tabla-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
}

.tabla-header-search-wrap .ant-input-affix-wrapper-focused .tabla-search-icon-badge .anticon,
.tabla-header-search-wrap.tabla-header-search-active .tabla-search-icon-badge .anticon {
  color: #ffffff !important;
}

.tabla-header-search-wrap .ant-input {
  font-weight: 700;
  font-size: 13.5px;
  color: #1e1b4b;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  height: 100% !important;
  min-height: unset !important;
  max-height: 100% !important;
  padding: 0 4px !important;
  line-height: normal !important;
}

.tabla-header-search-wrap .ant-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.tabla-header-search-wrap .ant-input::placeholder {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12.5px;
  letter-spacing: normal;
}

/* Suffix 00-99 hint badge */
.tabla-search-hint-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 5px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Suffix 3D mini bolo preview */
@keyframes popInBolo {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.tabla-search-mini-bolo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  animation: popInBolo 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Clear Icon */
.tabla-header-search-wrap .ant-input-clear-icon {
  color: #be185d !important;
  font-size: 12px !important;
  transition: all 0.15s ease !important;
}

.tabla-header-search-wrap .ant-input-clear-icon:hover {
  color: #9d174d !important;
  transform: scale(1.2) !important;
}

.tabla-view-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px;
  border-radius: 9999px;
  gap: 2px;
}

.tabla-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabla-view-btn:hover {
  color: #1e293b;
}

.tabla-view-btn-active {
  background: #ffffff !important;
  color: var(--tabla-magenta) !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.12);
}

/* Cards Grid - Responsive: 1 col on mobile, 2 on tablet, 3 on desktop, 4 on wide desktop */
.tabla-mobile-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 14px;
}

@media (min-width: 640px) {
  .tabla-mobile-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 16px;
  }
}

@media (min-width: 992px) {
  .tabla-mobile-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 18px;
  }
}

@media (min-width: 1200px) {
  .tabla-mobile-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 18px 20px;
  }
}

.tabla-mob-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tabla-mob-card:hover {
  border-color: #dcd3e7;
  box-shadow: 0 8px 20px rgba(68, 5, 122, 0.08);
  transform: translateY(-3px);
}

.tabla-mob-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tabla-mob-ball-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.tabla-mob-ball {
  width: 42px;
  height: 42px;
  font-size: 17px;
  flex-shrink: 0;
}

.tabla-mob-ball-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tabla-mob-ball-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.tabla-mob-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
  width: fit-content;
}

.tabla-mob-rank-1 {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.tabla-mob-rank-2 {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fce7f3;
}

.tabla-mob-rank-3 {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.tabla-mob-delay-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.tabla-mob-delay-wrap .tabla-delay-badge {
  font-size: 11.5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.tabla-mob-delay-caption {
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tabla-mob-card-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 12px 0;
}

.tabla-mob-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tabla-mob-detail-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--tabla-magenta);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tabla-mob-detail-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabla-mob-action-btn {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #fbcfe8;
  color: var(--tabla-magenta);
  font-weight: 700;
  font-size: 12px;
  border-radius: 9999px;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.15s ease;
}

.tabla-mob-action-btn:hover,
.tabla-mob-action-btn:active {
  background: #fdf2f8;
  border-color: var(--tabla-magenta);
  transform: translateY(-1px);
}

/* Empty search filter state */
.tabla-no-results {
  padding: 48px 20px;
  text-align: center;
  background: #ffffff;
}

.tabla-no-results p {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 14px;
}

.tabla-no-results strong {
  color: var(--tabla-magenta);
}

.tabla-clear-search-btn {
  background: #fdf2f8;
  color: var(--tabla-magenta);
  border: 1.5px solid #fbcfe8;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tabla-clear-search-btn:hover {
  background: #fce7f3;
  border-color: var(--tabla-magenta);
}

/* ==========================================================================
   TABLA DE LOTO - HOJA DE ESTILOS CANÓNICA
   Estándar Canónico: "Un Día Como Hoy" / "Tabla de Números" / "Números Calientes"
   ========================================================================== */

:root {
  --loto-purple: #44057a;
  --loto-purple-dark: #2a034d;
  --loto-purple-light: #595192;
  --loto-magenta: #be185d;
  --loto-magenta-light: #ec4899;
  --loto-magenta-dark: #9d174d;
  --loto-gold: #f59e0b;
  --loto-gold-dark: #d97706;
  --loto-bg: #f8fafc;
  --loto-surface: #ffffff;
  --loto-border: #ede8f5;
  --loto-border-focus: #f472b6;
  --loto-ink: #1e1b4b;
  --loto-muted: #64748b;
  --loto-green: #10b981;
}

/* ==========================================================================
   PAGE WRAPPER & CONTAINER (HEADER CLEARANCE)
   ========================================================================== */
.loto-page-wrapper {
  background-color: var(--loto-bg);
  min-height: 100vh;
  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  font-family: inherit;
  color: #1e293b;
}

.loto-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   BREADCRUMBS CANÓNICAS
   ========================================================================== */
.loto-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--loto-muted);
}

.loto-breadcrumb a {
  color: var(--loto-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.loto-breadcrumb a:hover {
  color: var(--loto-magenta);
}

.loto-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   HERO HEADER CARD
   ========================================================================== */
.loto-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--loto-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.loto-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.loto-header-emblem {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.loto-header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loto-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loto-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--loto-magenta);
}

.loto-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--loto-purple);
  line-height: 1.25;
}

.loto-header-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--loto-muted);
}

.loto-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.loto-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 12px;
  color: #831843;
  font-weight: 600;
  white-space: nowrap;
}

.loto-badge-pill strong {
  color: var(--loto-magenta);
  font-weight: 800;
}

/* Botón Canónico Dorado "Juega online" */
.loto-play-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  border: 1.5px solid #ffffff;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.loto-play-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.45);
  filter: brightness(1.05);
}

.loto-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: loto-shimmer 3.2s infinite ease-in-out;
}

@keyframes loto-shimmer {
  0% { left: -70%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* ==========================================================================
   CANONICAL FILTER CARD (100% REACTIVE)
   ========================================================================== */
.loto-filter-card {
  background: #ffffff;
  border: 1px solid var(--loto-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.loto-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.loto-filter-group-loteria {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loto-filter-group-pills {
  flex: 2;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loto-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Selector Canónico con Miniaturas */
.loto-loteria-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.loto-loteria-thumb {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
  padding: 1px;
}

.loto-loteria-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 13.5px;
}

/* Corrección de alineación vertical en Ant Design Select */
.loto-page-wrapper .ant-select-selection-item {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: normal;
}

.loto-page-wrapper .ant-select-selection-item::after {
  display: none !important;
}

.loto-page-wrapper .ant-select-selector {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

.loto-page-wrapper .ant-select-selector:hover {
  border-color: var(--loto-border-focus) !important;
}

.loto-page-wrapper .ant-select-focused .ant-select-selector {
  border-color: var(--loto-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12) !important;
}

/* Píldoras de Nivel Interactivas */
.loto-level-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loto-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loto-level-pill:hover {
  border-color: #f472b6;
  color: var(--loto-magenta);
  background: #fdf2f8;
  transform: translateY(-1px);
}

.loto-level-pill-active {
  background: linear-gradient(135deg, var(--loto-magenta) 0%, var(--loto-magenta-light) 100%);
  border-color: var(--loto-magenta);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.28);
}

.loto-level-pill-active:hover {
  background: linear-gradient(135deg, var(--loto-magenta-dark) 0%, var(--loto-magenta) 100%);
  color: #ffffff !important;
}

/* ==========================================================================
   RESULTS CARD (DUAL VIEW & INSTANT SEARCH)
   ========================================================================== */
.loto-results-card {
  background: #ffffff;
  border: 1px solid var(--loto-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
  margin-bottom: 24px;
}

.loto-results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.loto-results-header-left h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--loto-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.loto-results-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buscador Canónico de Bolos */
.loto-header-search-wrap {
  width: 220px;
}

.loto-header-search-wrap .ant-input-affix-wrapper {
  height: 38px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  padding: 0 12px 0 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.loto-header-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6;
}

.loto-header-search-wrap .ant-input-affix-wrapper-focused,
.loto-header-search-active .ant-input-affix-wrapper {
  border-color: var(--loto-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12) !important;
}

.loto-header-search-wrap input {
  font-weight: 700;
  font-size: 13px;
  color: var(--loto-purple);
}

.loto-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #fdf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

/* Conmutador Dual [ Tarjetas | Tabla ] */
.loto-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.loto-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loto-view-btn:hover {
  color: var(--loto-purple);
}

.loto-view-btn-active {
  background: #ffffff;
  color: var(--loto-purple) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CANONICAL 3D BALLS (LOTO)
   ========================================================================== */
.loto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loto-ball-md {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.loto-ball-sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-width: 1.5px;
}

.loto-ball-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.loto-ball-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.loto-ball-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.loto-ball-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

/* Contenedor de Combinación de Bolos */
.loto-combination-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Badges de Nivel y Frecuencia */
.loto-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #a21caf;
}

.loto-freq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--loto-magenta);
}

/* Desglose de Fechas */
.loto-dates-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loto-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  width: fit-content;
}

.loto-date-expand-btn {
  background: none;
  border: none;
  color: var(--loto-magenta);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.loto-date-expand-btn:hover {
  color: var(--loto-magenta-dark);
  text-decoration: underline;
}

/* ==========================================================================
   CANONICAL TABLE OVERRIDES (#faf8fc !important)
   ========================================================================== */
.loto-page-wrapper .loto-table .ant-table-thead > tr > th,
.loto-page-wrapper .loto-table .ant-table-thead th {
  background: #faf8fc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #ede8f5 !important;
  padding: 14px 16px !important;
  letter-spacing: 0.02em;
}

.loto-page-wrapper .loto-table .ant-table-tbody > tr > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px;
  vertical-align: middle;
}

.loto-page-wrapper .loto-table .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

/* ==========================================================================
   PAGINACIÓN ROSADA DE MARCA
   ========================================================================== */
.loto-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 12px;
}

.hoy-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.hoy-pagination-total strong {
  color: var(--loto-magenta);
  font-weight: 800;
}

.loto-table .ant-pagination-item,
.loto-pagination-wrap .ant-pagination-item,
.loto-table .ant-pagination-prev,
.loto-table .ant-pagination-next,
.loto-pagination-wrap .ant-pagination-prev,
.loto-pagination-wrap .ant-pagination-next {
  min-width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.loto-table .ant-pagination-item a,
.loto-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
}

.loto-table .ant-pagination-item:hover,
.loto-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px);
}

.loto-table .ant-pagination-item-active,
.loto-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, var(--loto-magenta) 0%, var(--loto-magenta-light) 100%) !important;
  border-color: var(--loto-magenta) !important;
}

.loto-table .ant-pagination-item-active a,
.loto-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

/* ==========================================================================
   MOBILE CARDS VIEW (🗂️ Tarjetas)
   ========================================================================== */
.loto-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.loto-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03);
  transition: all 0.2s ease;
}

.loto-card:hover {
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
}

.loto-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.loto-card-combination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.loto-card-dates-row {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .loto-page-wrapper {
    padding-top: 84px;
    padding-bottom: 36px;
  }

  .loto-container {
    padding: 0 12px;
  }

  .loto-breadcrumb {
    font-size: 11.5px;
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .loto-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .loto-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .loto-header-left {
    gap: 12px;
  }

  .loto-header-titles h1 {
    font-size: 18px;
  }

  .loto-header-right {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .loto-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 11.5px;
  }

  .loto-play-cta {
    flex: 1;
    height: 38px;
  }

  .loto-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .loto-filter-group-loteria,
  .loto-filter-group-pills {
    width: 100%;
    min-width: 100%;
  }

  .loto-results-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .loto-results-header-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .loto-header-search-wrap {
    flex: 1;
  }
}

/* Visually hidden text for screen readers and accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

/* ==========================================================================
   Super Palé - Boleto Ganador Design System
   Matches Un Día Como Hoy, Caliente & Predicciones canonical standards
   ========================================================================== */

.superpale-wrapper {
  --superpale-accent: #44057a;
  --superpale-accent-light: #7c3aed;
  --superpale-magenta: #be185d;
  --superpale-magenta-light: #ec4899;
  --superpale-gold: #f59e0b;
  --superpale-gold-dark: #d97706;
  --superpale-emerald: #10b981;
  --superpale-emerald-dark: #059669;
  --superpale-ink: #0f172a;
  --superpale-muted: #64748b;
  --superpale-line: #ede8f5;
  --superpale-surface: #ffffff;
  --superpale-tint: #faf7fd;
  --superpale-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 56px;
  color: var(--superpale-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.superpale-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--superpale-magenta);
  outline-offset: 3px;
}

.superpale-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.superpale-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--superpale-muted);
  font-size: 12px;
  line-height: 1.4;
}

.superpale-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--superpale-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.superpale-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--superpale-magenta);
}

.superpale-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.superpale-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.superpale-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.superpale-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1.5px solid #fce7f3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: var(--superpale-magenta);
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.12);
  flex-shrink: 0;
}

.superpale-hero-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.superpale-hero-titles {
  min-width: 0;
}

.superpale-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--superpale-magenta);
  margin-bottom: 4px;
}

.superpale-hero-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--superpale-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.superpale-hero-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--superpale-muted);
  font-weight: 500;
  line-height: 1.45;
}

.superpale-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.superpale-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.superpale-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--superpale-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: superpale-pulse 2s infinite;
}

@keyframes superpale-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Canonical Shimmer CTA Button "Juega online" */
.superpale-cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.superpale-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.45);
}

.superpale-cta-btn:active {
  transform: translateY(0);
}

.superpale-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: superpale-shimmer 3s infinite ease-in-out;
}

@keyframes superpale-shimmer {
  0% { left: -120%; }
  30%, 100% { left: 180%; }
}

/* ==========================================================================
   Frequent Super Pales Panel ("Los que más repiten hoy")
   ========================================================================== */
.superpale-frecuentes-card {
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.superpale-frecuentes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.superpale-frecuentes-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.superpale-frecuentes-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--superpale-ink);
  margin: 0;
}

.superpale-frecuentes-subtitle {
  font-size: 12.5px;
  color: var(--superpale-muted);
}

.superpale-date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.superpale-date-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--superpale-ink);
}

.superpale-frecuentes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.superpale-frecuente-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.superpale-frecuente-pill:hover {
  background: #fdf2f8;
  border-color: #fbcfe8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.12);
}

.superpale-frecuente-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
}

/* ==========================================================================
   Search Controls Card
   ========================================================================== */
.superpale-controls-card {
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.superpale-controls-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--superpale-ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.superpale-controls-desc {
  font-size: 13px;
  color: var(--superpale-muted);
  margin-bottom: 18px;
}

.superpale-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.superpale-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}

/* Canonical Lottery Select Items */
.superpale-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.superpale-lottery-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
  flex-shrink: 0;
}

/* Select vertical alignment fix */
.superpale-controls-card .ant-select-selector {
  height: 42px !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.superpale-controls-card .ant-select:hover .ant-select-selector {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.superpale-controls-card .ant-select-focused .ant-select-selector {
  border-color: var(--superpale-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

.superpale-controls-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #1e1b4b !important;
}

.superpale-controls-card .ant-select-selection-item::after {
  display: none !important;
}

/* ==========================================================================
   Canonical Number Search Inputs (Pill shape, micro-badge, zero inner box)
   ========================================================================== */
.superpale-number-wrap .ant-input-affix-wrapper {
  width: 100% !important;
  height: 42px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 10px 0 6px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.superpale-number-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.superpale-number-wrap .ant-input-affix-wrapper-focused,
.superpale-number-wrap.superpale-number-active .ant-input-affix-wrapper {
  border-color: var(--superpale-magenta) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

/* Micro-badge icon prefix container */
.superpale-search-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.superpale-number-wrap .ant-input-affix-wrapper-focused .superpale-search-icon-badge,
.superpale-number-wrap.superpale-number-active .superpale-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
}

.superpale-number-wrap .ant-input-affix-wrapper-focused .superpale-search-icon-badge .anticon,
.superpale-number-wrap.superpale-number-active .superpale-search-icon-badge .anticon {
  color: #ffffff !important;
}

/* The actual text input: pure transparent, NO white rectangular background */
.superpale-number-wrap input.ant-input,
.superpale-number-wrap .ant-input {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #1e1b4b !important;
  letter-spacing: 0.5px !important;
  font-variant-numeric: tabular-nums !important;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  height: 100% !important;
  min-height: unset !important;
  max-height: 100% !important;
  padding: 0 4px !important;
  line-height: normal !important;
}

.superpale-number-wrap input.ant-input:focus,
.superpale-number-wrap .ant-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.superpale-number-wrap input.ant-input::placeholder,
.superpale-number-wrap .ant-input::placeholder {
  font-weight: 500 !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  letter-spacing: normal !important;
}

/* Suffix 00-99 hint badge */
.superpale-search-hint-pill {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 9999px;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

/* Suffix 3D mini-bolo */
.superpale-search-mini-bolo {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  animation: popInBolo 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.superpale-search-mini-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

.superpale-search-mini-bolo-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

/* Voltear Numbers Switch Row */
.superpale-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.superpale-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* Actions Row */
.superpale-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.superpale-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #44057a 0%, #6b21a8 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 4px 14px rgba(68, 5, 122, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.superpale-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(68, 5, 122, 0.38);
}

.superpale-btn-primary:active {
  transform: translateY(0);
}

.superpale-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.superpale-btn-secondary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.35);
}

.superpale-btn-secondary:active {
  transform: translateY(0);
}

/* ==========================================================================
   Canonical 3D Bolos (Relief, shadow & shine)
   ========================================================================== */
.superpale-bolo-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.superpale-bolo-3d:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Gold: Primer Premio / Número Coincidente */
.superpale-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Magenta: Segundo Premio / Palé Número 1 */
.superpale-bolo-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Purple: Tercer Premio / Palé Número 2 */
.superpale-bolo-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Mini bolos (for headers/pills) */
.superpale-bolo-mini {
  width: 28px;
  height: 28px;
  font-size: 12.5px;
  border-width: 1.5px;
}

.superpale-bolo-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.superpale-bolo-divider {
  width: 10px;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #7c3aed);
  border-radius: 2px;
  opacity: 0.75;
}

/* ==========================================================================
   Results Header & Controls Strip
   ========================================================================== */
.superpale-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.superpale-results-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.superpale-results-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--superpale-ink);
  letter-spacing: -0.01em;
}

.superpale-results-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--superpale-magenta);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #fbcfe8;
}

.superpale-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sort Buttons Track */
.superpale-sort-track {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.superpale-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.superpale-sort-btn:hover {
  color: var(--superpale-magenta);
  background: #fdf2f8;
}

.superpale-sort-btn.active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.25);
}

/* Dual View Mode Switcher Track */
.superpale-view-track {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.superpale-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.superpale-view-btn:hover {
  color: var(--superpale-magenta);
}

.superpale-view-btn.active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.25);
}

/* ==========================================================================
   Table View (Canonical Antd Styling)
   ========================================================================== */
.superpale-table-wrap {
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
  margin-bottom: 24px;
}

.superpale-table-wrap .ant-table-thead > tr > th {
  background: #faf7fd !important;
  color: #334155 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 18px !important;
  border-bottom: 1.5px solid #f1e8f8 !important;
}

.superpale-table-wrap .ant-table-tbody > tr > td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
}

.superpale-table-wrap .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

.superpale-table-loteria-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.superpale-table-loteria-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.superpale-table-loteria-img {
  width: 36px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
}

.superpale-table-loteria-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.superpale-table-premios {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.superpale-table-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #334155;
  font-size: 13.5px;
}

/* ==========================================================================
   Cards View (Responsive Grid)
   ========================================================================== */
.superpale-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.superpale-card-item {
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(68, 5, 122, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.superpale-card-item:hover {
  transform: translateY(-2px);
  border-color: #fbcfe8;
  box-shadow: 0 8px 24px rgba(190, 24, 93, 0.1);
}

.superpale-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.superpale-card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.superpale-card-combo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--superpale-magenta);
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid #fbcfe8;
}

.superpale-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.superpale-card-lot-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 10px;
}

.superpale-card-lot-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.superpale-card-lot-img {
  width: 30px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
}

.superpale-card-lot-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.superpale-card-bolos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.superpale-card-search-action {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f8fafc;
  display: flex;
  justify-content: flex-end;
}

.superpale-card-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--superpale-magenta);
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.superpale-card-search-btn:hover {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   Canonical Pagination (Brand Pink Theme)
   ========================================================================== */
.superpale-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1.5px solid #fce7f3;
  border-radius: 0 0 20px 20px;
}

.hoy-pagination-total {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid #fbcfe8;
  background: #ffffff;
  border-radius: 20px;
  font-size: 12.5px;
  color: #475569;
}

.hoy-pagination-total strong {
  color: #be185d;
  margin: 0 3px;
}

.superpale-pagination-wrap .ant-pagination-item {
  width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #334155 !important;
}

.superpale-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px);
}

.superpale-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 12px rgba(188, 16, 94, 0.35) !important;
}

.superpale-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

.superpale-pagination-wrap .ant-pagination-prev .ant-pagination-item-link,
.superpale-pagination-wrap .ant-pagination-next .ant-pagination-item-link {
  height: 38px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
}

/* ==========================================================================
   Loading & Empty States
   ========================================================================== */
.superpale-state-card {
  background: #ffffff;
  border: 1px solid var(--superpale-line);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
  margin-bottom: 24px;
}

.superpale-empty-icon {
  font-size: 42px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.superpale-empty-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.superpale-empty-desc {
  font-size: 13.5px;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .superpale-wrapper {
    padding-top: 88px;
  }

  .superpale-hero-card {
    padding: 16px;
  }

  .superpale-hero-title {
    font-size: 20px;
  }

  .superpale-hero-right {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .superpale-status-badge,
  .superpale-cta-btn {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    justify-content: center;
  }

  .superpale-frecuentes-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .superpale-date-picker-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .superpale-form-grid {
    grid-template-columns: 1fr;
  }

  .superpale-actions-row {
    flex-direction: column;
  }

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

  .superpale-bolo-3d {
    width: 38px;
    height: 38px;
    font-size: 15.5px;
  }

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

@media (max-width: 480px) {
  .superpale-bolo-3d {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .superpale-card-body {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Tabla de Sucesión y Acompañantes - Boleto Ganador Design System
   Matches Un Día Como Hoy, Generador Zeus & Historial canonical visual standards
   ========================================================================== */

.secuencias-page-wrapper {
  --sec-accent: #44057a;
  --sec-accent-light: #7c3aed;
  --sec-magenta: #be185d;
  --sec-magenta-light: #ec4899;
  --sec-gold: #f59e0b;
  --sec-gold-dark: #d97706;
  --sec-emerald: #10b981;
  --sec-emerald-dark: #059669;
  --sec-ink: #0f172a;
  --sec-muted: #64748b;
  --sec-line: #ede8f5;
  --sec-surface: #ffffff;
  --sec-tint: #faf7fd;
  --sec-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 56px;
  color: var(--sec-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.secuencias-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--sec-accent);
  outline-offset: 3px;
}

.sec-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.sec-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--sec-muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.sec-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--sec-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.sec-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--sec-magenta);
}

.sec-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.sec-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.sec-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sec-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #ede8f5;
  box-shadow: 0 3px 10px rgba(68, 5, 122, 0.06);
  flex-shrink: 0;
  padding: 4px;
}

.sec-header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sec-header-titles {
  min-width: 0;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sec-magenta);
  margin-bottom: 4px;
}

.sec-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--sec-accent);
  line-height: 1.25;
}

.sec-header-titles p {
  margin: 4px 0 0 0;
  font-size: 13.5px;
  color: var(--sec-muted);
  line-height: 1.45;
}

.sec-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sec-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--sec-magenta);
  font-size: 12.5px;
  font-weight: 700;
  height: 38px;
  box-sizing: border-box;
}

/* Canonical Shimmer CTA Button */
.sec-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.sec-play-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.sec-play-cta:active {
  transform: translateY(0);
}

.sec-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: sec-cta-shimmer 3.5s infinite ease-in-out;
}

@keyframes sec-cta-shimmer {
  0% {
    left: -70%;
  }
  30% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

/* ==========================================================================
   Ultimo Sorteo Card (Highlighted Feature)
   ========================================================================== */
.sec-ultimo-sorteo-card {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px solid #ede8f5;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
}

.sec-sorteo-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-sorteo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--sec-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sec-sorteo-text h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--sec-accent);
}

.sec-sorteo-text p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--sec-muted);
}

.sec-sorteo-bolos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sec-sorteo-bolo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.15s ease;
  position: relative;
}

.sec-sorteo-bolo-btn:hover {
  transform: translateY(-2px) scale(1.08);
}

.sec-sorteo-bolo-btn:active {
  transform: scale(0.95);
}

.sec-sorteo-hint {
  font-size: 11.5px;
  color: #8b5cf6;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   Configuration Controls Card
   ========================================================================== */
.sec-controls-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.sec-controls-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--sec-accent);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sec-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: flex-end;
}

.sec-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sec-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sec-field-label .label-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Ant Design Overrides for Canonical Styling */
.sec-controls-card .ant-select-selector,
.sec-controls-card .ant-picker,
.sec-controls-card .ant-input-number {
  height: 42px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2d9eb !important;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sec-controls-card .ant-select-selector:hover,
.sec-controls-card .ant-picker:hover,
.sec-controls-card .ant-input-number:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.12) !important;
}

.sec-controls-card .ant-select-focused .ant-select-selector,
.sec-controls-card .ant-picker-focused,
.sec-controls-card .ant-input-number-focused {
  border-color: var(--sec-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
}

/* Centered Select text */
.sec-controls-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
}

.sec-controls-card .ant-select-selection-item::after {
  display: none !important;
}

/* Canonical 2-Digit Number Search Input */
.sec-number-search-wrap {
  width: 100%;
}

.sec-number-search-wrap .ant-input-affix-wrapper {
  height: 42px !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 10px !important;
  background: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sec-number-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
}

.sec-number-search-wrap .ant-input-affix-wrapper-focused {
  border-color: var(--sec-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
}

.sec-number-search-wrap input.ant-input {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--sec-ink) !important;
  background: transparent !important;
  text-align: center;
}

.sec-search-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.08);
  flex-shrink: 0;
}

.sec-search-hint-pill {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
}

.sec-search-mini-bolo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  border: 1.5px solid #ffffff;
}

/* Action Search Button */
.sec-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sec-magenta-light) 0%, var(--sec-magenta) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(190, 24, 93, 0.32);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.sec-submit-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 5px 16px rgba(190, 24, 93, 0.42);
  background: linear-gradient(135deg, #f472b6 0%, #9d174d 100%);
}

.sec-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.sec-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   Canonical 3D Bolos
   ========================================================================== */
.sec-bolo-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.sec-bolo-3d:hover {
  transform: translateY(-2px) scale(1.06);
}

/* 1er Premio / Top 1: Gold */
.sec-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 2do Premio / Top 2: Magenta */
.sec-bolo-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 3er Premio / Top 3: Purple */
.sec-bolo-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* Regular / Secuencias: Emerald */
.sec-bolo-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Results Container & Cards
   ========================================================================== */
.sec-results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sec-result-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.sec-result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}

.sec-result-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sec-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sec-result-icon-sucesion {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.sec-result-icon-acompanante {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #be185d;
}

.sec-result-title-group h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--sec-accent);
}

.sec-result-title-group p {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: var(--sec-muted);
}

.sec-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sec-action-btn:hover {
  border-color: var(--sec-magenta);
  color: var(--sec-magenta);
  background: #fdf2f8;
  transform: translateY(-1px);
}

.sec-action-btn:active {
  transform: translateY(0);
}

.sec-action-btn-primary {
  background: linear-gradient(135deg, var(--sec-magenta-light) 0%, var(--sec-magenta) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.28);
}

.sec-action-btn-primary:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9d174d 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.38);
  transform: translateY(-1px);
}

/* Bolos Grid within Results */
.sec-bolos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 16px 12px;
  padding: 8px 0;
}

.sec-bolo-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.sec-bolo-card-item:hover {
  background: #ffffff;
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.1);
  transform: translateY(-2px);
}

.sec-bolo-rank {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
}

/* Empty / Info States */
.sec-info-banner {
  background: #ffffff;
  border: 1.5px solid #ede8f5;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.sec-info-banner-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.sec-info-banner-content h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--sec-accent);
}

.sec-info-banner-content p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

/* ==========================================================================
   Responsive Adaptations (Mobile First)
   ========================================================================== */
@media (max-width: 768px) {
  .secuencias-page-wrapper {
    padding-top: 84px;
    padding-bottom: 40px;
  }

  .sec-container {
    padding: 0 12px;
  }

  .sec-header-card {
    padding: 16px;
    gap: 14px;
  }

  .sec-header-left {
    gap: 12px;
    width: 100%;
  }

  .sec-header-emblem {
    width: 48px;
    height: 44px;
  }

  .sec-header-titles h1 {
    font-size: 18px;
  }

  .sec-header-titles p {
    font-size: 12.5px;
  }

  .sec-header-right {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .sec-badge-pill {
    flex: 1;
    justify-content: center;
    font-size: 11.5px;
    padding: 0 8px;
    height: 38px;
  }

  .sec-play-cta {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .sec-ultimo-sorteo-card {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .sec-sorteo-bolos {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .sec-controls-card {
    padding: 16px;
  }

  .sec-controls-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sec-submit-btn {
    width: 100%;
  }

  .sec-result-card {
    padding: 16px;
  }

  .sec-result-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sec-result-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .sec-bolos-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 10px 8px;
  }

  .sec-bolo-3d {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }
}
/* ==========================================================================
   Página de Números Calientes - Boleto Ganador Design System
   Matches Un Día Como Hoy & Tabla de Números canonical standards
   ========================================================================== */

.caliente-page-wrapper {
  --caliente-accent: #44057a;
  --caliente-accent-light: #7c3aed;
  --caliente-magenta: #bc105e;
  --caliente-magenta-light: #ec4899;
  --caliente-gold: #f59e0b;
  --caliente-gold-dark: #d97706;
  --caliente-fire: #ea580c;
  --caliente-fire-light: #f97316;
  --caliente-ink: #0f172a;
  --caliente-muted: #64748b;
  --caliente-line: #ede8f5;
  --caliente-surface: #ffffff;
  --caliente-tint: #faf7fd;
  --caliente-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  color: var(--caliente-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.caliente-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--caliente-accent);
  outline-offset: 3px;
}

.caliente-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Compact Breadcrumbs
   ========================================================================== */
.caliente-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--caliente-muted);
  font-size: 12px;
  line-height: 1.4;
}

.caliente-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--caliente-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.caliente-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--caliente-magenta);
}

.caliente-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.caliente-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.caliente-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.caliente-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  padding: 6px;
  border: 1px solid var(--caliente-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: var(--caliente-fire);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.08);
  flex-shrink: 0;
}

.caliente-header-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.caliente-header-titles {
  min-width: 0;
}

.caliente-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--caliente-magenta);
  margin-bottom: 4px;
}

.caliente-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--caliente-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.caliente-header-titles p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--caliente-muted);
  line-height: 1.4;
  max-width: 680px;
}

.caliente-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.caliente-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 12px;
  color: var(--caliente-magenta);
  font-weight: 600;
  white-space: nowrap;
}

.caliente-badge-pill strong {
  color: #9d174d;
  font-weight: 800;
}

/* ==========================================================================
   Canonical CTA "Juega online" (Golden Shimmer Pill)
   ========================================================================== */
.caliente-play-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.caliente-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(255, 165, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #1a0133;
}

.caliente-play-cta:active {
  transform: translateY(0);
}

.caliente-play-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: caliente-cta-shimmer 3s infinite;
}

@keyframes caliente-cta-shimmer {
  0% {
    left: -75%;
  }
  30% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

/* ==========================================================================
   Filter & Controls Card
   ========================================================================== */
.caliente-filter-card {
  padding: 18px 20px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.caliente-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.caliente-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.caliente-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.caliente-filter-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #bc105e 0%, #9d174d 100%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.caliente-filter-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(188, 16, 94, 0.4);
}

.caliente-filter-action-btn:active {
  transform: translateY(0);
}

/* Quick Period Pills */
.caliente-quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #ede8f5;
}

.caliente-quick-pill-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--caliente-muted);
  margin-right: 4px;
}

.caliente-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.caliente-quick-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: var(--caliente-ink);
}

.caliente-quick-pill-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
}

.caliente-quick-pill-active:hover {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  color: #ffffff;
}

/* ==========================================================================
   Selector de Lotería: Miniaturas y alineación vertical estricta
   ========================================================================== */
.caliente-loteria-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.caliente-filter-group .ant-select-selector {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

.caliente-lottery-select-wrap .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
  gap: 8px;
}

.caliente-lottery-select-wrap .ant-select-selection-item::after {
  display: none !important;
}

.caliente-page-wrapper .ant-picker {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  height: 40px !important;
}

.caliente-page-wrapper .ant-input-number {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  height: 40px !important;
}

.caliente-page-wrapper .ant-input-number-input {
  height: 38px !important;
  line-height: 38px !important;
}

/* ==========================================================================
   CANONICAL 3D LOTTERY BALLS
   Strictly adheres to .agents/rules/ui-consistency.md
   ========================================================================== */
.caliente-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #ffffff;
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.caliente-ball:hover {
  transform: translateY(-2px) scale(1.06);
}

/* Top 1 / 1er Premio (Oro) */
.caliente-ball-rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

/* Top 2 / 2do Premio (Magenta) */
.caliente-ball-rank-2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

/* Top 3 / 3er Premio (Púrpura de Marca) */
.caliente-ball-rank-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* Posiciones 4 a 10 / Hot regulares (Esmeralda) */
.caliente-ball-hot {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* Regular / Números no calientes en sorteos */
.caliente-ball-regular {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 2px 6px rgba(71, 85, 105, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   PODIUM SECTION (Top Números Más Calientes - Compact Chip Design)
   ========================================================================== */
.caliente-podium-card {
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.caliente-podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede8f5;
}

.caliente-podium-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--caliente-ink);
}

.caliente-podium-subtitle {
  font-size: 12px;
  color: var(--caliente-muted);
}

.caliente-podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.caliente-podium-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
  box-sizing: border-box;
}

.caliente-podium-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(68, 5, 122, 0.06);
  border-color: #d8b4fe;
}

.caliente-podium-item-rank-1 {
  background: linear-gradient(135deg, #fffdf5 0%, #fef9c3 100%);
  border-color: #fde047;
}

.caliente-podium-item-rank-2 {
  background: linear-gradient(135deg, #fdf4f8 0%, #fce7f3 100%);
  border-color: #fbcfe8;
}

.caliente-podium-item-rank-3 {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-color: #e9d5ff;
}

.caliente-podium-item .caliente-ball {
  width: 36px;
  height: 36px;
  font-size: 15px;
  flex-shrink: 0;
}

.caliente-podium-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.caliente-podium-top-row {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.caliente-podium-medal {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caliente-medal-1 { color: #b45309; }
.caliente-medal-2 { color: #be185d; }
.caliente-medal-3 { color: #6b21a8; }
.caliente-medal-regular { color: #047857; }

.caliente-podium-bottom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.caliente-podium-freq {
  color: #475569;
  font-weight: 600;
  font-size: 11px;
}

.caliente-podium-freq strong {
  color: var(--caliente-magenta);
  font-weight: 800;
}

.caliente-podium-dot {
  color: #cbd5e1;
  font-weight: 800;
  font-size: 11px;
}

.caliente-podium-action {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--caliente-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.caliente-podium-action:hover {
  color: var(--caliente-magenta);
}

/* ==========================================================================
   RESULTS CARD & VIEW CONTROLS
   ========================================================================== */
.caliente-results-card {
  padding: 0;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  overflow: hidden;
}

.caliente-results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border-bottom: 1px solid #ede8f5;
  margin-bottom: 0;
}

.caliente-results-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.caliente-results-header-left h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--caliente-ink);
}

.caliente-results-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CANONICAL SEARCH INPUT (Identical to Tabla de Números & Un Día Como Hoy)
   ========================================================================== */
.caliente-header-search-wrap {
  width: 250px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.caliente-header-search-wrap .ant-input-affix-wrapper {
  width: 100% !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 8px 0 6px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.caliente-header-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.caliente-header-search-wrap .ant-input-affix-wrapper-focused,
.caliente-header-search-wrap.caliente-header-search-active .ant-input-affix-wrapper {
  border-color: var(--caliente-magenta) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

/* Micro-badge icon container */
.caliente-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.caliente-header-search-wrap .ant-input-affix-wrapper-focused .caliente-search-icon-badge,
.caliente-header-search-wrap.caliente-header-search-active .caliente-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
}

.caliente-header-search-wrap .ant-input-affix-wrapper-focused .caliente-search-icon-badge .anticon,
.caliente-header-search-wrap.caliente-header-search-active .caliente-search-icon-badge .anticon {
  color: #ffffff !important;
}

.caliente-header-search-wrap .ant-input {
  font-weight: 700;
  font-size: 13.5px;
  color: #1e1b4b;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  height: 100% !important;
  min-height: unset !important;
  max-height: 100% !important;
  padding: 0 4px !important;
  line-height: normal !important;
}

.caliente-header-search-wrap .ant-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.caliente-header-search-wrap .ant-input::placeholder {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12.5px;
  letter-spacing: normal;
}

/* Suffix 00-99 hint badge */
.caliente-search-hint-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 5px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  margin-left: 2px;
  flex-shrink: 0;
}

/* Suffix 3D mini bolo preview */
@keyframes calientePopInBolo {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.caliente-search-mini-bolo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  animation: calientePopInBolo 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.caliente-header-search-wrap .ant-input-clear-icon {
  color: #be185d !important;
  font-size: 12px !important;
  transition: all 0.15s ease !important;
}

.caliente-header-search-wrap .ant-input-clear-icon:hover {
  color: #9d174d !important;
  transform: scale(1.2) !important;
}

.caliente-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.caliente-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.caliente-view-btn:hover {
  color: var(--caliente-ink);
}

.caliente-view-btn-active {
  background: #ffffff;
  color: var(--caliente-magenta);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CARDS VIEW (Móvil / Desktop Grid)
   ========================================================================== */
.caliente-mob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px 20px;
}

.caliente-mob-card {
  padding: 14px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.caliente-mob-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.08);
}

.caliente-mob-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ede8f5;
}

.caliente-mob-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--caliente-accent);
}

.caliente-mob-day-tag {
  background: #fdf2f8;
  color: var(--caliente-magenta);
  border: 1px solid #fbcfe8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: capitalize;
}

.caliente-mob-loteria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.caliente-mob-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.caliente-mob-ball-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.caliente-mob-ball-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.caliente-mob-hot-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #ea580c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   TABLE VIEW (Desktop Table Customization - Canonical "Un Día Como Hoy" Style)
   ========================================================================== */
.caliente-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.caliente-table {
  border-radius: 0;
}

.caliente-table .ant-table {
  border-radius: 0 !important;
  background: transparent !important;
}

.caliente-page-wrapper .caliente-table .ant-table-thead > tr > th,
.caliente-page-wrapper .caliente-table .ant-table-thead th,
.caliente-table-wrap .ant-table-thead > tr > th,
.caliente-table .ant-table-thead > tr > th {
  background: #faf8fc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1.5px solid #ede8f5 !important;
  padding: 12px 16px !important;
}

.caliente-page-wrapper .caliente-table .ant-table-tbody > tr > td,
.caliente-table-wrap .ant-table-tbody > tr > td,
.caliente-table .ant-table-tbody > tr > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  vertical-align: middle !important;
}

.caliente-page-wrapper .caliente-table .ant-table-tbody > tr:hover > td,
.caliente-table .ant-table-tbody > tr:hover > td {
  background: #faf8fd !important;
}

.caliente-table-date-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 100px !important;
}

.caliente-table-day-text {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: var(--caliente-magenta) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  line-height: 1.2 !important;
}

.caliente-table-date-text {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
}

.caliente-table-balls-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.caliente-table-loteria-cell {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.caliente-table-loteria-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}

/* ==========================================================================
   CANONICAL PAGINATION (Identical to Tabla de Números & Un Día Como Hoy)
   ========================================================================== */
.caliente-pagination-wrap {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
  border-top: 1.5px solid #fce7f3;
  padding: 16px 20px !important;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  margin-top: 0;
}

.caliente-table .ant-table-pagination.ant-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
  border-top: 1.5px solid #fce7f3;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.caliente-pagination-wrap .ant-pagination {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.caliente-table .ant-pagination-total-text,
.caliente-pagination-wrap .ant-pagination-total-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hoy-pagination-total,
.caliente-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(190, 24, 93, 0.05);
  font-size: 12.5px;
  color: #475569;
}

.hoy-pagination-total strong,
.caliente-pagination-total strong {
  color: #be185d;
  font-weight: 800;
}

/* Page numbers */
.caliente-table .ant-pagination-item,
.caliente-pagination-wrap .ant-pagination-item {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  background: #ffffff !important;
  min-width: 38px !important;
  height: 38px !important;
  line-height: 35px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  margin: 0 4px !important;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.caliente-table .ant-pagination-item a,
.caliente-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
  font-weight: 700 !important;
}

.caliente-table .ant-pagination-item:hover,
.caliente-pagination-wrap .ant-pagination-item:hover {
  border-color: #ec4899 !important;
  background: #fdf2f8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.18) !important;
}

.caliente-table .ant-pagination-item:hover a,
.caliente-pagination-wrap .ant-pagination-item:hover a {
  color: #be185d !important;
}

.caliente-table .ant-pagination-item-active,
.caliente-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 12px rgba(188, 16, 94, 0.35) !important;
}

.caliente-table .ant-pagination-item-active a,
.caliente-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Prev / Next buttons */
.caliente-table .ant-pagination-prev,
.caliente-table .ant-pagination-next,
.caliente-pagination-wrap .ant-pagination-prev,
.caliente-pagination-wrap .ant-pagination-next {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  background: #ffffff !important;
  min-width: 38px !important;
  height: 38px !important;
  line-height: 35px !important;
  margin: 0 4px !important;
  transition: all 0.2s ease !important;
}

.caliente-table .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.caliente-table .ant-pagination-next:hover:not(.ant-pagination-disabled),
.caliente-pagination-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.caliente-pagination-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) {
  border-color: #ec4899 !important;
  background: #fdf2f8 !important;
}

.caliente-table .ant-pagination-prev button,
.caliente-table .ant-pagination-next button,
.caliente-pagination-wrap .ant-pagination-prev button,
.caliente-pagination-wrap .ant-pagination-next button {
  color: #be185d !important;
  font-weight: 700 !important;
}

.caliente-table .ant-pagination-disabled,
.caliente-pagination-wrap .ant-pagination-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.caliente-table .ant-pagination-disabled button,
.caliente-pagination-wrap .ant-pagination-disabled button {
  cursor: not-allowed !important;
  color: #94a3b8 !important;
}

/* Jump Ellipses */
.caliente-table .ant-pagination-jump-prev,
.caliente-table .ant-pagination-jump-next,
.caliente-pagination-wrap .ant-pagination-jump-prev,
.caliente-pagination-wrap .ant-pagination-jump-next {
  min-width: 38px !important;
  height: 38px !important;
  line-height: 35px !important;
}

.caliente-table .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.caliente-table .ant-pagination-jump-next .ant-pagination-item-link-icon,
.caliente-pagination-wrap .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.caliente-pagination-wrap .ant-pagination-jump-next .ant-pagination-item-link-icon {
  color: #be185d !important;
}

/* Page Size Changer Dropdown */
.caliente-table .ant-pagination-options,
.caliente-pagination-wrap .ant-pagination-options {
  margin-left: 10px !important;
}

.caliente-table .ant-pagination-options .ant-select,
.caliente-pagination-wrap .ant-pagination-options .ant-select {
  height: 38px !important;
}

.caliente-table .ant-pagination-options .ant-select-selector,
.caliente-pagination-wrap .ant-pagination-options .ant-select-selector {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  height: 38px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.caliente-table .ant-pagination-options .ant-select:hover .ant-select-selector,
.caliente-pagination-wrap .ant-pagination-options .ant-select:hover .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15) !important;
}

.caliente-table .ant-pagination-options .ant-select-focused .ant-select-selector,
.caliente-pagination-wrap .ant-pagination-options .ant-select-focused .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
}

.caliente-table .ant-pagination-options .ant-select-selection-item,
.caliente-pagination-wrap .ant-pagination-options .ant-select-selection-item {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  line-height: normal !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 2px !important;
  gap: 0 !important;
}

.caliente-table .ant-pagination-options .ant-select-arrow,
.caliente-pagination-wrap .ant-pagination-options .ant-select-arrow {
  color: #be185d !important;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .caliente-page-wrapper {
    padding-top: 84px;
  }

  .caliente-header-card {
    padding: 14px;
    gap: 12px;
  }

  .caliente-header-titles h1 {
    font-size: 18px;
  }

  .caliente-header-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .caliente-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .caliente-play-cta {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .caliente-ball {
    width: 38px;
    height: 38px;
    font-size: 15.5px;
  }

  .caliente-podium-card {
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .caliente-podium-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 6px;
  }

  .caliente-podium-item {
    padding: 5px 8px;
    gap: 6px;
    min-height: 44px;
  }

  .caliente-podium-item .caliente-ball {
    width: 32px;
    height: 32px;
    font-size: 13.5px;
  }

  .caliente-podium-medal {
    font-size: 10px;
  }

  .caliente-podium-bottom-row {
    font-size: 10px;
  }

  .caliente-podium-freq {
    font-size: 10px;
  }

  .caliente-podium-action {
    font-size: 10px;
  }

  .caliente-results-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .caliente-results-header-left {
    justify-content: space-between;
    width: 100%;
  }

  .caliente-results-header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .caliente-header-search-wrap {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .caliente-view-toggle {
    flex-shrink: 0;
    align-self: center;
  }

  /* Table & Cards Pagination Mobile */
  .caliente-table .ant-table-pagination.ant-pagination,
  .caliente-pagination-wrap .ant-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 4px !important;
    padding: 14px 10px !important;
  }

  .caliente-table .ant-pagination-total-text,
  .caliente-pagination-wrap .ant-pagination-total-text {
    width: 100% !important;
    margin-right: 0 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 4px;
  }

  .caliente-table .ant-pagination-options,
  .caliente-pagination-wrap .ant-pagination-options {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px;
    display: flex !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .caliente-podium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .caliente-filter-group {
    width: 100%;
  }

  .caliente-filter-group .ant-select,
  .caliente-filter-group .ant-picker,
  .caliente-filter-group .ant-input-number {
    width: 100% !important;
  }

  .caliente-filter-action-btn {
    width: 100%;
  }
}
/* ==========================================================================
   Un Día Como Hoy - Boleto Ganador Design System
   Matches Predicciones & Historial visual hierarchy and high-density layout
   ========================================================================== */

.hoy-page-wrapper {
  --hoy-accent: #44057a;
  --hoy-magenta: #bc105e;
  --hoy-ink: oklch(29% .035 310);
  --hoy-muted: oklch(48% .03 310);
  --hoy-line: oklch(91% .012 310);
  --hoy-surface: oklch(99% .003 310);
  --hoy-tint: oklch(96% .012 310);
  --hoy-gold: #f59e0b;
  --hoy-gold-dark: #d97706;
  --hoy-success: #16a34a;
  --hoy-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  color: var(--hoy-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.hoy-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--hoy-accent);
  outline-offset: 3px;
}

.hoy-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Compact Breadcrumbs
   ========================================================================== */
.hoy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--hoy-muted);
  font-size: 12px;
  line-height: 1.4;
}

.hoy-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--hoy-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.hoy-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--hoy-magenta);
}

.hoy-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.hoy-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 20px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.hoy-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hoy-header-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 52px;
  padding: 8px;
  border: 1px solid var(--hoy-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: var(--hoy-accent);
  box-shadow: 0 2px 6px rgba(68, 5, 122, 0.06);
  flex-shrink: 0;
}

.hoy-header-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hoy-header-titles {
  min-width: 0;
}

.hoy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hoy-magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hoy-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.hoy-header-titles p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  max-width: 720px;
}

.hoy-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Counter Stat Badges */
.hoy-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--hoy-tint);
  border: 1px solid var(--hoy-line);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hoy-accent);
}

.hoy-stat-badge strong {
  color: var(--hoy-magenta);
  font-weight: 800;
}

/* High-Impact Golden CTA ("Juega online") */
@keyframes cta-shimmer-hoy {
  0% { transform: translateX(-140%) rotate(25deg); }
  25%, 100% { transform: translateX(260%) rotate(25deg); }
}

.hoy-play-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.hoy-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer-hoy 3.8s ease-in-out infinite;
  pointer-events: none;
}

.hoy-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255, 165, 0, 0.48);
  filter: brightness(1.06);
  color: #1a0033;
}

.hoy-play-cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   Unified Control Toolbar Strip
   ========================================================================== */
.hoy-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.02);
}

.hoy-control-group-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hoy-date-field .ant-picker {
  height: 36px;
  border-radius: 10px;
  border-color: #dcd3e7;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  width: 250px;
  transition: all 0.2s ease;
}

.hoy-date-field .ant-picker:hover,
.hoy-date-field .ant-picker-focused {
  border-color: var(--hoy-accent);
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.1);
}

.hoy-date-field .ant-picker input {
  font-size: 13px;
  font-weight: 600;
  color: #1e1b4b;
  cursor: pointer;
}

.hoy-quick-dates {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.hoy-quick-dates button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2d9ec;
  border-radius: 8px;
  color: #64748b;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hoy-quick-dates button:hover {
  border-color: var(--hoy-accent);
  color: var(--hoy-accent);
  background: #faf5ff;
}

.hoy-quick-dates button[aria-pressed="true"] {
  background: var(--hoy-accent);
  border-color: var(--hoy-accent);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.18);
}

.hoy-control-group-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hoy-lottery-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hoy-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--hoy-accent);
  white-space: nowrap;
  cursor: pointer;
}

.hoy-lottery-select-wrap .ant-select {
  min-width: 220px;
}

.hoy-lottery-select-wrap .ant-select-selector {
  height: 40px !important;
  border-radius: 10px !important;
  border-color: #dcd3e7 !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
}

.hoy-lottery-select-wrap .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  font-weight: 600;
  font-size: 13.5px;
  color: #1e1b4b;
  padding: 0 !important;
}

.hoy-lottery-select-wrap .ant-select-selection-item::after {
  display: none !important;
}

.hoy-lottery-select-wrap .ant-select-selection-search {
  display: flex !important;
  align-items: center !important;
  inset-inline-start: 12px !important;
}

.hoy-lottery-select-wrap .ant-select-focused .ant-select-selector {
  border-color: var(--hoy-accent) !important;
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.1) !important;
}

/* Secondary Controls Row (Filter, Toggles & Analysis Button) */
.hoy-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 12px;
}

.hoy-filter-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hoy-search-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hoy-search-input {
  height: 34px;
  width: 190px;
  border: 1px solid #dcd3e7;
  border-radius: 8px;
  padding: 0 10px 0 32px;
  font-size: 13px;
  font-weight: 600;
  color: #1e1b4b;
  transition: all 0.2s ease;
}

.hoy-search-input:focus {
  border-color: var(--hoy-accent);
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.08);
  outline: none;
}

.hoy-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hoy-accent);
  pointer-events: none;
}

.hoy-toggle-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.hoy-offset-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hoy-offset-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hoy-offset-input-wrap .ant-input-number {
  width: 64px;
  border-radius: 6px;
}

.hoy-btn-analysis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #fbf7ff;
  border: 1px solid #c084fc;
  border-radius: 8px;
  color: #7e22ce;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hoy-btn-analysis:hover {
  background: #7e22ce;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(126, 34, 206, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   Top Insights Grid (Pales Repetidos & Frecuentes)
   ========================================================================== */
.hoy-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.hoy-insight-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.02);
  display: flex;
  flex-direction: column;
}

.hoy-insight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.hoy-insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}

.hoy-insight-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ede9fe;
  color: #6d28d9;
}

/* Super Pales List */
.hoy-pales-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hoy-pale-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  transition: all 0.15s ease;
}

.hoy-pale-item:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  transform: translateY(-1px);
}

.hoy-pale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-radius: 6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 800;
}

/* Frequent Numbers List */
.hoy-frecuentes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hoy-freq-ball-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.hoy-freq-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}

.hoy-freq-ball:hover {
  transform: scale(1.08);
}

.hoy-freq-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  border: 1.5px solid #ffffff;
  padding: 0 5px;
  height: 18px;
  min-width: 18px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.hoy-more-toggle {
  background: none;
  border: none;
  color: var(--hoy-accent);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  margin-top: 8px;
  align-self: flex-start;
  transition: color 0.15s ease;
}

.hoy-more-toggle:hover {
  color: var(--hoy-magenta);
  text-decoration: underline;
}

/* ==========================================================================
   Historical Results Table
   ========================================================================== */
.hoy-table-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  overflow: hidden;
  margin-bottom: 24px;
}

.hoy-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border-bottom: 1px solid #ede8f5;
}

.hoy-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.hoy-table-counter {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 9999px;
}

/* Ant Design Table Overrides for Hoy Page */
.hoy-table-wrap .ant-table {
  background: transparent;
  font-family: inherit;
}

.hoy-table-wrap .ant-table-thead > tr > th {
  background: #faf8fc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  border-bottom: 1px solid #ede8f5;
}

.hoy-table-wrap .ant-table-tbody > tr > td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.hoy-table-wrap .ant-table-tbody > tr:hover > td {
  background: #faf8fd !important;
}

/* Table Cells */
.hoy-cell-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
}

.hoy-cell-weekday {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--hoy-accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.hoy-cell-date-str {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.hoy-cell-lottery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-width: 100px;
}

.hoy-cell-lottery-logo {
  width: 58px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  padding: 2px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hoy-cell-lottery-tag {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.2;
}

/* Prizes / Balls Cell */
.hoy-cell-premios {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hoy-balls-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hoy-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hoy-ball:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 12px rgba(124, 58, 237, 0.45);
}

.hoy-ball-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.hoy-ball-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hoy-ball-match {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4) !important;
}

.hoy-btn-cercanos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hoy-btn-cercanos:hover {
  border-color: var(--hoy-accent);
  color: var(--hoy-accent);
  background: #faf5ff;
}

/* ==========================================================================
   Custom Modern Table Pagination Toolbar (Rosado / Magenta Theme)
   ========================================================================== */
.hoy-table-wrap .ant-table-pagination.ant-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
  border-top: 1.5px solid #fce7f3;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.hoy-table-wrap .ant-pagination-total-text {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hoy-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(190, 24, 93, 0.05);
  font-size: 12.5px;
  color: #475569;
}

.hoy-pagination-total strong {
  color: #be185d;
  font-weight: 800;
}

/* Page Numbers */
.hoy-table-wrap .ant-pagination-item {
  border-radius: 10px;
  border: 1.5px solid #fbcfe8;
  background: #ffffff;
  min-width: 38px;
  height: 38px;
  line-height: 35px;
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hoy-table-wrap .ant-pagination-item a {
  color: #334155;
  font-weight: 700;
}

.hoy-table-wrap .ant-pagination-item:hover {
  border-color: #ec4899;
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.18);
}

.hoy-table-wrap .ant-pagination-item:hover a {
  color: #be185d;
}

/* Active Page Item (Rosado / Magenta) */
.hoy-table-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.38) !important;
  transform: translateY(-1px);
}

.hoy-table-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Prev / Next Buttons */
.hoy-table-wrap .ant-pagination-prev,
.hoy-table-wrap .ant-pagination-next {
  border-radius: 10px;
  border: 1.5px solid #fbcfe8;
  background: #ffffff;
  min-width: 38px;
  height: 38px;
  line-height: 35px;
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hoy-table-wrap .ant-pagination-prev button,
.hoy-table-wrap .ant-pagination-next button {
  color: #be185d;
  font-weight: 700;
}

.hoy-table-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled),
.hoy-table-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) {
  border-color: #ec4899;
  background: #fdf2f8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(188, 16, 94, 0.18);
}

.hoy-table-wrap .ant-pagination-prev:hover:not(.ant-pagination-disabled) button,
.hoy-table-wrap .ant-pagination-next:hover:not(.ant-pagination-disabled) button {
  color: #be185d;
}

.hoy-table-wrap .ant-pagination-disabled {
  opacity: 0.4;
  cursor: not-allowed !important;
  background: #f8fafc;
  border-color: #e2e8f0;
}

.hoy-table-wrap .ant-pagination-disabled button {
  cursor: not-allowed !important;
  color: #94a3b8 !important;
}

/* Jump Ellipses */
.hoy-table-wrap .ant-pagination-jump-prev,
.hoy-table-wrap .ant-pagination-jump-next {
  min-width: 38px;
  height: 38px;
  line-height: 35px;
}

.hoy-table-wrap .ant-pagination-jump-prev .ant-pagination-item-link-icon,
.hoy-table-wrap .ant-pagination-jump-next .ant-pagination-item-link-icon {
  color: #be185d !important;
}

/* Page Size Changer Dropdown */
.hoy-table-wrap .ant-pagination-options {
  margin-left: 10px;
}

.hoy-table-wrap .ant-pagination-options .ant-select-selector {
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  height: 38px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(188, 16, 94, 0.04);
  font-weight: 700;
  font-size: 13px;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hoy-table-wrap .ant-pagination-options .ant-select:hover .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15) !important;
}

.hoy-table-wrap .ant-pagination-options .ant-select-focused .ant-select-selector {
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18) !important;
}

.hoy-table-wrap .ant-pagination-options .ant-select-arrow {
  color: #be185d !important;
}

/* ==========================================================================
   Ganadores Cell (Winner Cards)
   ========================================================================== */
@keyframes winner-pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hoy-winner-badge-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
  animation: winner-pulse 2.2s infinite;
}

.hoy-winners-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.hoy-winner-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hoy-winner-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.hoy-winner-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hoy-winner-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.avatar-masculino { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.avatar-femenino { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.avatar-default { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }

.hoy-winner-info {
  min-width: 0;
  flex: 1;
}

.hoy-winner-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hoy-winner-gender {
  font-size: 10.5px;
  color: #64748b;
}

.hoy-winner-amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}

.hoy-winner-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
}

.hoy-winner-desc {
  margin-top: 6px;
  padding: 4px 8px;
  background: #f8fafc;
  border-left: 2.5px solid #818cf8;
  border-radius: 4px;
  font-size: 11px;
  font-style: italic;
  color: #4338ca;
  line-height: 1.35;
}

.hoy-no-winners {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #94a3b8;
  font-size: 12.5px;
  text-align: center;
  gap: 4px;
}

/* ==========================================================================
   Modals (Sorteos Cercanos & Análisis de Patrones)
   ========================================================================== */
/* ==========================================================================
   Sorteos Cercanos Modal
   ========================================================================== */
.hoy-modal-cercanos .ant-modal-content {
  border-radius: 20px !important;
  overflow: hidden;
  padding: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(68, 5, 122, 0.25) !important;
}

.hoy-modal-cercanos .ant-modal-close {
  display: none !important;
}

.hoy-modal-drag-handle {
  display: none;
}

.hoy-modal-cercanos-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}

.hoy-modal-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.hoy-modal-dismiss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hoy-modal-dismiss-btn:hover,
.hoy-modal-dismiss-btn:active {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: scale(1.02);
}

.hoy-modal-dismiss-icon {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.hoy-modal-dismiss-text {
  font-size: 13px;
  font-weight: 800;
}

.hoy-modal-cercanos-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 2px;
}

.hoy-modal-lottery-logo {
  width: 44px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.hoy-modal-cercanos-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.hoy-modal-cercanos-sub {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.4;
}

.hoy-modal-cercanos-body {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.hoy-modal-cercanos-body::-webkit-scrollbar {
  width: 6px;
}
.hoy-modal-cercanos-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.hoy-modal-balls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hoy-modal-ball {
  width: 38px !important;
  height: 38px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.hoy-timeline-section {
  margin-bottom: 16px;
}

.hoy-timeline-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.heading-antes {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.heading-despues {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.hoy-timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.hoy-timeline-row:hover {
  border-color: #c084fc;
  background: #faf5ff;
}

.hoy-timeline-date-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hoy-timeline-date {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

.hoy-timeline-lottery-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hoy-timeline-lottery-logo {
  width: 34px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hoy-timeline-lottery {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.hoy-modal-cercanos-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1.5px solid #f1f5f9;
}

/* ==========================================================================
   Pattern Analysis Modal (Bento Dashboard)
   ========================================================================== */
.hoy-modal-analysis .ant-modal-content {
  border-radius: 20px !important;
  overflow: hidden;
  padding: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 25px 50px -12px rgba(68, 5, 122, 0.25) !important;
}

.hoy-modal-analysis-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.hoy-modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hoy-magenta);
  background: rgba(188, 16, 94, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.hoy-modal-analysis-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hoy-modal-analysis-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.hoy-modal-analysis .ant-modal-footer {
  margin-top: 12px !important;
  padding: 12px 0 0 0 !important;
  border-top: 1px solid #f1f5f9 !important;
}

.hoy-modal-analysis-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  flex-wrap: wrap;
}

.hoy-modal-footer-note {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.hoy-modal-analysis .ant-modal-footer button.hoy-modal-close-btn,
button.hoy-modal-close-btn {
  background-color: #44057a !important;
  background: #44057a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 9px !important;
  height: 36px !important;
  padding: 0 20px !important;
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.25) !important;
  cursor: pointer;
}

.hoy-modal-analysis .ant-modal-footer button.hoy-modal-close-btn span,
button.hoy-modal-close-btn span {
  color: #ffffff !important;
}

.hoy-modal-close-btn:hover {
  background: #5b07a5 !important;
  background-color: #5b07a5 !important;
  color: #ffffff !important;
}

.hoy-analysis-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-height: 56vh;
  overflow-y: auto;
  padding-right: 6px;
}

.hoy-analysis-bento::-webkit-scrollbar {
  width: 6px;
}
.hoy-analysis-bento::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.hoy-analysis-card {
  background: #ffffff;
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hoy-analysis-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 6px 16px rgba(68, 5, 122, 0.05);
}

.hoy-analysis-card-full {
  grid-column: 1 / -1;
}

.hoy-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hoy-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hoy-card-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.hoy-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}

.hoy-card-caption {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  display: block;
}

/* Hot numbers horizontal row */
.hoy-hot-numbers-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 4px;
}

.hoy-hot-ball-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hoy-hot-rank-pill {
  font-size: 10px;
  font-weight: 800;
  color: #a21caf;
  background: rgba(162, 28, 175, 0.12);
  padding: 1px 6px;
  border-radius: 9999px;
}

.hoy-hot-count-text {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

/* Exact matches chips */
.hoy-exact-matches-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.hoy-match-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 4px 8px;
}

.hoy-match-type {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.hoy-match-type.type-tripleta {
  background: #7c3aed;
  color: #ffffff;
}

.hoy-match-type.type-pale {
  background: #ec4899;
  color: #ffffff;
}

.hoy-match-numbers {
  font-weight: 700;
  font-size: 12px;
  color: #1e1b4b;
}

.hoy-match-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Sequences */
.hoy-sequences-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.hoy-seq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid #8b5cf6;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}

.hoy-seq-label {
  color: #64748b;
  margin-right: 4px;
}

.hoy-seq-numbers {
  color: #1e1b4b;
  font-size: 12.5px;
}

.hoy-seq-next-pill {
  font-size: 11px;
  color: #6d28d9;
  background: #ede9fe;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.hoy-empty-pattern {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  padding: 10px 0;
}

/* Parity & Range Ratio Split Bar */
.hoy-parity-lead-tag,
.hoy-range-lead-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.hoy-ratio-split-bar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  background: #f1f5f9;
}

.hoy-ratio-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  transition: width 0.4s ease;
  overflow: hidden;
  white-space: nowrap;
}

.hoy-ratio-segment.ratio-even { background: #44057a; }
.hoy-ratio-segment.ratio-odd { background: #bc105e; }
.hoy-ratio-segment.ratio-low { background: #4f46e5; }
.hoy-ratio-segment.ratio-high { background: #06b6d4; }

.hoy-ratio-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-top: 6px;
}

/* Meter List (Terminals and Decades) */
.hoy-meter-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hoy-meter-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hoy-meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
}

.hoy-meter-val {
  font-weight: 700;
  color: #64748b;
  font-size: 11px;
}

.hoy-meter-track {
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.hoy-meter-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.meter-fill-blue {
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
}

.meter-fill-purple {
  background: linear-gradient(90deg, #c084fc 0%, #9333ea 100%);
}


/* ==========================================================================
   Responsive Adaptations (Mobile First & Modern UX)
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hoy-container {
    padding: 0 16px;
  }
  .hoy-header-titles h1 {
    font-size: 20px;
  }
  .hoy-analysis-bento {
    max-height: 65vh;
  }
}

/* Medium Tablets & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .hoy-page-wrapper {
    padding-top: 84px;
    padding-bottom: 36px;
  }

  .hoy-container {
    padding: 0 12px;
  }

  .hoy-breadcrumb {
    font-size: 11.5px;
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hoy-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .hoy-header-card {
    padding: 14px;
    gap: 12px;
    border-radius: 14px;
  }

  .hoy-header-left {
    gap: 12px;
  }

  .hoy-header-emblem {
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 6px;
    border-radius: 12px;
  }

  .hoy-header-titles h1 {
    font-size: 18px;
    letter-spacing: -0.3px;
  }

  .hoy-header-titles p {
    font-size: 12px;
    line-height: 1.4;
  }

  .hoy-header-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
  }

  .hoy-play-cta {
    flex: 1;
    height: 38px;
    font-size: 12.5px;
    padding: 0 14px;
  }

  .hoy-control-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .hoy-control-group-left,
  .hoy-control-group-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hoy-date-field,
  .hoy-date-field .ant-picker {
    width: 100% !important;
    min-width: 100% !important;
    height: 42px;
    font-size: 13.5px;
    border-radius: 10px;
  }

  .hoy-quick-dates {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding: 2px 0 4px;
    width: 100%;
  }
  .hoy-quick-dates::-webkit-scrollbar {
    display: none;
  }

  .hoy-quick-dates button {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    border-radius: 9999px;
    white-space: nowrap;
  }

  .hoy-lottery-control {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .hoy-lottery-select-wrap,
  .hoy-lottery-select-wrap .ant-select {
    width: 100% !important;
    min-width: 100% !important;
  }

  .hoy-lottery-select-wrap .ant-select-selector {
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
  }

  .hoy-lottery-select-wrap .ant-select-selection-item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    line-height: normal !important;
    font-size: 13.5px;
    padding: 0 !important;
  }

  .hoy-lottery-select-wrap .ant-select-selection-item::after {
    display: none !important;
  }

  .hoy-lottery-select-wrap .ant-select-selection-search {
    display: flex !important;
    align-items: center !important;
    inset-inline-start: 12px !important;
  }

  .hoy-filter-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .hoy-filter-left {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .hoy-search-wrap {
    width: 100%;
  }

  .hoy-search-input {
    width: 100%;
    height: 40px;
    font-size: 13px;
    border-radius: 10px;
  }

  .hoy-toggle-item {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
  }

  .hoy-offset-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .hoy-offset-input-wrap {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .hoy-btn-analysis {
    width: 100%;
    height: 42px;
    font-size: 13px;
    justify-content: center;
    border-radius: 10px;
  }

  .hoy-insights-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hoy-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Smartphone Viewports (<= 640px) */
@media (max-width: 640px) {
  .hoy-container {
    padding: 0 10px;
  }

  .hoy-header-card {
    padding: 12px;
    gap: 12px;
  }

  .hoy-header-emblem {
    width: 56px;
    height: 52px;
    min-width: 56px;
    border-radius: 12px;
    padding: 4px;
  }

  .hoy-header-titles h1 {
    font-size: 17.5px;
  }

  .hoy-header-titles p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hoy-stat-badge {
    height: 36px;
    padding: 0 10px;
    font-size: 11.5px;
  }

  .hoy-play-cta {
    height: 36px;
    font-size: 12px;
  }

  /* Table Specific Optimizations for Mobile */
  .hoy-table-card {
    border-radius: 14px;
    margin-bottom: 18px;
  }

  .hoy-table-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .hoy-table-title {
    font-size: 14px;
    gap: 6px;
  }

  .hoy-table-counter {
    font-size: 11px;
    padding: 2px 8px;
  }

  .hoy-table-wrap .ant-table-thead > tr > th {
    padding: 10px 6px !important;
    font-size: 11.5px !important;
  }

  .hoy-table-wrap .ant-table-tbody > tr > td {
    padding: 8px 6px !important;
  }

  /* Column 1: Fecha (Enhanced readability for adult audience) */
  .hoy-col-fecha {
    width: 84px !important;
    min-width: 80px !important;
    max-width: 90px !important;
    padding: 8px 4px !important;
  }

  .hoy-cell-date {
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .hoy-cell-weekday {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 1px;
    color: var(--hoy-accent);
  }

  .hoy-cell-date-str {
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.2;
    color: #0f172a;
  }

  .hoy-cell-date span:last-child {
    font-size: 11px !important;
    font-weight: 600;
    color: #64748b;
  }

  /* Column 2: Lotería */
  .hoy-col-loteria {
    width: 62px !important;
    min-width: 58px !important;
    max-width: 66px !important;
    padding: 8px 2px !important;
    text-align: center;
  }

  .hoy-cell-lottery {
    min-width: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
  }

  .hoy-cell-lottery-logo {
    width: 54px !important;
    height: 40px !important;
    border-radius: 8px;
    padding: 2px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    object-fit: contain;
  }

  /* Hide the text tag on mobile to save 70px+ horizontal space */
  .hoy-cell-lottery-tag {
    display: none !important;
  }

  /* Column 3: Premios Sorteados (Large Bolos for Adult Readers) */
  .hoy-col-premios {
    padding: 8px 8px !important;
  }

  .hoy-cell-premios {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .hoy-balls-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hoy-ball {
    width: 38px;
    height: 38px;
    font-size: 16px;
    font-weight: 800;
    border-width: 1.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
  }

  .hoy-ball:hover {
    transform: none;
  }

  .hoy-btn-cercanos {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    gap: 5px;
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #44057a;
    white-space: nowrap;
  }

  /* Top Insight Widgets on Mobile: Adult friendly sizes */
  .hoy-pale-item {
    font-size: 15px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 10px;
    gap: 8px;
  }

  .hoy-pale-badge {
    font-size: 12px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
  }

  .hoy-freq-ball {
    width: 42px;
    height: 42px;
    font-size: 17px;
    font-weight: 800;
  }

  .hoy-freq-count {
    height: 20px;
    min-width: 20px;
    font-size: 11px;
    font-weight: 800;
  }

  /* Table Pagination Mobile */
  .hoy-table-wrap .ant-table-pagination.ant-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 4px !important;
    padding: 14px 10px !important;
  }

  .hoy-table-wrap .ant-pagination-total-text {
    width: 100% !important;
    margin-right: 0 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    display: flex !important;
    justify-content: center;
    margin-bottom: 4px;
  }

  .hoy-table-wrap .ant-pagination-item,
  .hoy-table-wrap .ant-pagination-prev,
  .hoy-table-wrap .ant-pagination-next {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    font-size: 13.5px;
    margin: 0 2px;
  }

  .hoy-table-wrap .ant-pagination-options {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px;
    display: flex !important;
    justify-content: center;
  }

  /* Modals on Mobile: Full Bottom Sheet Design */
  .hoy-modal-analysis.ant-modal,
  .hoy-modal-analysis .ant-modal {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    position: fixed !important;
    padding-bottom: 0 !important;
  }

  .hoy-modal-analysis .ant-modal-content {
    border-radius: 24px 24px 0 0 !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 12px 16px max(14px, env(safe-area-inset-bottom)) 16px !important;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.3) !important;
  }

  .hoy-modal-analysis .ant-modal-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .hoy-modal-analysis .hoy-modal-drag-handle {
    display: block !important;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 0 auto 10px auto;
    flex-shrink: 0;
  }

  .hoy-modal-analysis-header {
    flex-shrink: 0;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .hoy-modal-eyebrow {
    font-size: 11px;
    padding: 3px 10px;
    white-space: normal;
    line-height: 1.3;
  }

  .hoy-modal-analysis-title {
    font-size: 17px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hoy-card-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hoy-card-head .ant-tag {
    margin-right: 0;
    align-self: flex-start;
  }

  .hoy-modal-analysis-sub {
    font-size: 12px;
  }

  .hoy-analysis-bento {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: calc(88vh - 180px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    padding-right: 2px;
  }

  .hoy-analysis-card {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .hoy-card-title {
    font-size: 14px;
  }

  .hoy-card-caption {
    font-size: 11.5px;
  }

  .hoy-hot-numbers-row {
    gap: 8px;
    padding-bottom: 4px;
  }

  .hoy-hot-ball-item {
    padding: 8px;
    min-width: 60px;
  }

  .hoy-hot-count-text {
    font-size: 11.5px;
  }

  .hoy-modal-analysis-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
    margin-top: 8px;
    flex-shrink: 0;
  }

  .hoy-modal-footer-note {
    text-align: center;
    font-size: 11px;
  }

  button.hoy-modal-close-btn,
  .hoy-modal-analysis .ant-modal-footer button.hoy-modal-close-btn {
    width: 100% !important;
    justify-content: center;
    height: 46px;
    font-size: 14.5px;
    font-weight: 800;
    border-radius: 12px;
  }

  /* Cercanos Modal Mobile -> Bottom Sheet */
  .hoy-modal-cercanos.ant-modal,
  .hoy-modal-cercanos .ant-modal {
    max-width: 100vw !important;
    width: 100vw !important;
    margin: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    position: fixed !important;
    padding-bottom: 0 !important;
  }

  .hoy-modal-cercanos .ant-modal-content {
    padding: 12px 16px max(14px, env(safe-area-inset-bottom)) 16px !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 86vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.3) !important;
  }

  .hoy-modal-cercanos .ant-modal-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .hoy-modal-cercanos .hoy-modal-drag-handle {
    display: block !important;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 0 auto 10px auto;
    flex-shrink: 0;
  }

  .hoy-modal-cercanos-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    flex-shrink: 0;
  }

  .hoy-modal-dismiss-btn {
    padding: 6px 14px;
    font-size: 13.5px;
    height: 36px;
  }

  .hoy-modal-cercanos-title {
    font-size: 17px;
    font-weight: 800;
  }

  .hoy-modal-cercanos-sub {
    font-size: 12.5px;
  }

  .hoy-modal-cercanos-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-right: 2px;
  }

  .hoy-timeline-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 10px;
    border-radius: 14px;
  }

  .hoy-timeline-date {
    font-size: 15px;
    font-weight: 800;
  }

  .hoy-timeline-lottery {
    font-size: 13px;
    font-weight: 600;
  }

  .hoy-modal-balls-row {
    gap: 6px;
  }

  .hoy-modal-ball {
    width: 42px !important;
    height: 42px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .hoy-modal-cercanos-footer {
    flex-shrink: 0 !important;
    padding-top: 10px;
    margin-top: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
  }

  .hoy-modal-cercanos-footer button.hoy-modal-close-btn {
    width: 100% !important;
    justify-content: center;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #44057a 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(68, 5, 122, 0.25) !important;
  }
}

/* Extra Compact Phones (<= 390px - e.g. iPhone SE, iPhone 12/13/14/15 Mini) */
@media (max-width: 390px) {
  .hoy-header-card {
    padding: 10px;
  }

  .hoy-header-emblem {
    width: 48px;
    height: 46px;
    min-width: 48px;
    border-radius: 10px;
    padding: 3px;
  }

  .hoy-header-titles h1 {
    font-size: 16px;
  }

  .hoy-col-fecha {
    width: 78px !important;
    min-width: 74px !important;
    max-width: 82px !important;
  }

  .hoy-cell-weekday {
    font-size: 10.5px;
  }

  .hoy-cell-date-str {
    font-size: 12.5px;
  }

  .hoy-col-loteria {
    width: 58px !important;
    min-width: 54px !important;
  }

  .hoy-cell-lottery-logo {
    width: 50px !important;
    height: 36px !important;
    border-radius: 7px;
    padding: 1.5px;
  }

  .hoy-ball {
    width: 35px;
    height: 35px;
    font-size: 15px;
  }

  .hoy-balls-row {
    gap: 5px;
  }

  .hoy-btn-cercanos {
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hoy-modal-ball {
    width: 38px !important;
    height: 38px !important;
    font-size: 15.5px !important;
  }

  .hoy-table-wrap .ant-pagination-item,
  .hoy-table-wrap .ant-pagination-prev,
  .hoy-table-wrap .ant-pagination-next {
    min-width: 35px !important;
    height: 35px !important;
    line-height: 33px !important;
    font-size: 13px !important;
    margin: 0 2px !important;
    border-radius: 9px !important;
  }

  .hoy-pagination-total {
    font-size: 12px !important;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   CLASIFICACIÓN NUMÉRICA - HOJA DE ESTILOS CANÓNICA
   Estándar Canónico: "Un Día Como Hoy" / "Tabla de Números" / "Números Calientes"
   ========================================================================== */

:root {
  --clasificacion-purple: #44057a;
  --clasificacion-purple-dark: #2a034d;
  --clasificacion-purple-light: #595192;
  --clasificacion-magenta: #be185d;
  --clasificacion-magenta-light: #ec4899;
  --clasificacion-magenta-dark: #9d174d;
  --clasificacion-gold: #f59e0b;
  --clasificacion-gold-dark: #d97706;
  --clasificacion-bg: #f8fafc;
  --clasificacion-surface: #ffffff;
  --clasificacion-border: #ede8f5;
  --clasificacion-border-focus: #f472b6;
  --clasificacion-ink: #1e1b4b;
  --clasificacion-muted: #64748b;
  --clasificacion-green: #10b981;
}

/* ==========================================================================
   PAGE WRAPPER & CONTAINER (HEADER CLEARANCE)
   ========================================================================== */
.clasificacion-page-wrapper {
  background-color: var(--clasificacion-bg);
  min-height: 100vh;
  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  font-family: inherit;
  color: #1e293b;
}

.clasificacion-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   BREADCRUMBS CANÓNICAS
   ========================================================================== */
.clasificacion-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--clasificacion-muted);
}

.clasificacion-breadcrumb a {
  color: var(--clasificacion-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.clasificacion-breadcrumb a:hover {
  color: var(--clasificacion-magenta);
}

.clasificacion-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   HERO HEADER CARD
   ========================================================================== */
.clasificacion-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--clasificacion-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.clasificacion-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.clasificacion-header-emblem {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.clasificacion-header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.clasificacion-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clasificacion-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clasificacion-magenta);
}

.clasificacion-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--clasificacion-purple);
  line-height: 1.25;
}

.clasificacion-header-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--clasificacion-muted);
}

.clasificacion-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.clasificacion-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 9999px;
  font-size: 12px;
  color: #831843;
  font-weight: 600;
  white-space: nowrap;
}

.clasificacion-badge-pill strong {
  color: var(--clasificacion-magenta);
  font-weight: 800;
}

/* Botón Canónico Dorado "Juega online" */
.clasificacion-play-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  border: 1.5px solid #ffffff;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.clasificacion-play-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.45);
  filter: brightness(1.05);
}

.clasificacion-play-cta::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: clasificacion-shimmer 3.2s infinite ease-in-out;
}

@keyframes clasificacion-shimmer {
  0% { left: -70%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

/* ==========================================================================
   CANONICAL CLASSIFICATION TABS
   ========================================================================== */
.clasificacion-tabs-card {
  background: #ffffff;
  border: 1px solid var(--clasificacion-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.clasificacion-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.clasificacion-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clasificacion-tab-btn:hover {
  border-color: var(--clasificacion-border-focus);
  color: var(--clasificacion-magenta);
  background: #fdf2f8;
  transform: translateY(-1px);
}

.clasificacion-tab-btn-active {
  background: linear-gradient(135deg, var(--clasificacion-magenta) 0%, var(--clasificacion-magenta-light) 100%);
  border-color: var(--clasificacion-magenta);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.3);
}

.clasificacion-tab-btn-active:hover {
  background: linear-gradient(135deg, var(--clasificacion-magenta-dark) 0%, var(--clasificacion-magenta) 100%);
  color: #ffffff !important;
}

.clasificacion-tab-desc-box {
  background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
  border: 1px solid #f3e8ff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.clasificacion-tab-desc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e9d5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clasificacion-purple);
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.06);
}

.clasificacion-tab-desc-content {
  flex: 1;
}

.clasificacion-tab-desc-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--clasificacion-purple);
  margin-bottom: 2px;
}

.clasificacion-tab-desc-text {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   CANONICAL FILTER CARD (100% REACTIVE)
   ========================================================================== */
.clasificacion-filter-card {
  background: #ffffff;
  border: 1px solid var(--clasificacion-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.clasificacion-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.clasificacion-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.clasificacion-filter-group-loteria {
  flex: 2;
  min-width: 280px;
}

.clasificacion-filter-group-posicion {
  flex: 1;
  min-width: 170px;
}

.clasificacion-filter-group-fecha {
  flex: 1;
  min-width: 160px;
}

.clasificacion-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Selector Canónico con Miniaturas */
.clasificacion-loteria-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.clasificacion-loteria-thumb {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
  padding: 1px;
}

.clasificacion-loteria-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
}

/* Corrección de alineación vertical en Ant Design Select */
.clasificacion-page-wrapper .ant-select-selection-item {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: normal;
}

.clasificacion-page-wrapper .ant-select-selection-item::after {
  display: none !important;
}

.clasificacion-page-wrapper .ant-picker,
.clasificacion-page-wrapper .ant-select-selector {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

.clasificacion-page-wrapper .ant-picker:hover,
.clasificacion-page-wrapper .ant-select-selector:hover {
  border-color: var(--clasificacion-border-focus) !important;
}

.clasificacion-page-wrapper .ant-picker-focused,
.clasificacion-page-wrapper .ant-select-focused .ant-select-selector {
  border-color: var(--clasificacion-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12) !important;
}

/* ==========================================================================
   RESULTS CARD (DUAL VIEW & INSTANT SEARCH)
   ========================================================================== */
.clasificacion-results-card {
  background: #ffffff;
  border: 1px solid var(--clasificacion-border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
  margin-bottom: 24px;
}

.clasificacion-results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.clasificacion-results-header-left h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--clasificacion-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.clasificacion-results-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buscador Canónico de Bolos 00-99 */
.clasificacion-header-search-wrap {
  width: 170px;
}

.clasificacion-header-search-wrap .ant-input-affix-wrapper {
  height: 38px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  padding: 0 12px 0 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.clasificacion-header-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6;
}

.clasificacion-header-search-wrap .ant-input-affix-wrapper-focused,
.clasificacion-header-search-active .ant-input-affix-wrapper {
  border-color: var(--clasificacion-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12) !important;
}

.clasificacion-header-search-wrap input {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--clasificacion-purple);
}

.clasificacion-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: #fdf2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.clasificacion-search-hint-pill {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}

.clasificacion-search-mini-bolo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clasificacion-magenta) 0%, var(--clasificacion-magenta-light) 100%);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.3);
}

/* Conmutador Dual [ Tarjetas | Tabla ] */
.clasificacion-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.clasificacion-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clasificacion-view-btn:hover {
  color: var(--clasificacion-purple);
}

.clasificacion-view-btn-active {
  background: #ffffff;
  color: var(--clasificacion-purple) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CANONICAL 3D BALLS
   ========================================================================== */
.clasificacion-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.clasificacion-ball-md {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.clasificacion-ball-sm {
  width: 32px;
  height: 32px;
  font-size: 13px;
  border-width: 1.5px;
}

.clasificacion-ball-xs {
  width: 26px;
  height: 26px;
  font-size: 11px;
  border-width: 1.5px;
}

/* Gradientes Canónicos */
.clasificacion-ball-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.clasificacion-ball-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.clasificacion-ball-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.clasificacion-ball-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.clasificacion-ball-gray {
  background: linear-gradient(135deg, #94a3b8 0%, #475569 100%);
}

/* Range Presentation (Desde / Hasta) para Decenas y Quintetos */
.clasificacion-range-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 12px;
}

.clasificacion-range-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.clasificacion-range-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clasificacion-range-arrow {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

/* Badges de Sorteos de Retraso */
.clasificacion-delay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.clasificacion-delay-green {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.clasificacion-delay-blue {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.clasificacion-delay-orange {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.clasificacion-delay-red {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Stat Pills (Retraso Máx & Veces Salido) */
.clasificacion-stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.clasificacion-stat-pill-max {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.clasificacion-stat-pill-times {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Lotería Badge en Celda */
.clasificacion-loteria-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clasificacion-loteria-cell-thumb {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  object-fit: contain;
  padding: 1px;
}

.clasificacion-loteria-cell-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}

/* Fecha y Día en Celda */
.clasificacion-date-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clasificacion-date-day {
  font-size: 12px;
  font-weight: 700;
  color: var(--clasificacion-purple);
  text-transform: capitalize;
}

.clasificacion-date-val {
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   CANONICAL TABLE OVERRIDES (#faf8fc !important)
   ========================================================================== */
.clasificacion-page-wrapper .clasificacion-table .ant-table-thead > tr > th,
.clasificacion-page-wrapper .clasificacion-table .ant-table-thead th {
  background: #faf8fc !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #ede8f5 !important;
  padding: 14px 16px !important;
  letter-spacing: 0.02em;
}

.clasificacion-page-wrapper .clasificacion-table .ant-table-tbody > tr > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px;
  vertical-align: middle;
}

.clasificacion-page-wrapper .clasificacion-table .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

/* Primera fila destacada */
.clasificacion-page-wrapper .clasificacion-table tr.clasificacion-row-leader > td {
  background: #fffbeb !important;
}

/* ==========================================================================
   MOBILE CARDS VIEW (🗂️ Tarjetas)
   ========================================================================== */
.clasificacion-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.clasificacion-card {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03);
  transition: all 0.2s ease;
}

.clasificacion-card:hover {
  border-color: #f472b6;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
}

.clasificacion-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clasificacion-card-number-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.clasificacion-card-mid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
}

.clasificacion-card-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  border-top: 1px dashed #ede8f5;
  padding-top: 8px;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .clasificacion-page-wrapper {
    padding-top: 84px;
    padding-bottom: 36px;
  }

  .clasificacion-container {
    padding: 0 12px;
  }

  .clasificacion-breadcrumb {
    font-size: 11.5px;
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .clasificacion-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .clasificacion-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .clasificacion-header-left {
    gap: 12px;
  }

  .clasificacion-header-titles h1 {
    font-size: 18px;
  }

  .clasificacion-header-right {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .clasificacion-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
    font-size: 11.5px;
  }

  .clasificacion-play-cta {
    flex: 1;
    height: 38px;
  }

  .clasificacion-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .clasificacion-filter-group,
  .clasificacion-filter-group-loteria,
  .clasificacion-filter-group-posicion,
  .clasificacion-filter-group-fecha {
    width: 100%;
    min-width: 100%;
  }

  .clasificacion-results-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .clasificacion-results-header-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .clasificacion-header-search-wrap {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .clasificacion-tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .clasificacion-tab-btn {
    justify-content: center;
    padding: 0 10px;
    font-size: 12.5px;
  }
}
/* ==========================================================================
   Predicciones Page Styling - Boleto Ganador Design System
   High-density, compact, modern visual design matching historial aesthetic
   ========================================================================== */

.predicciones-page-wrapper {
  --pred-accent: #44057a;
  --pred-magenta: #bc105e;
  --pred-ink: oklch(29% .035 310);
  --pred-muted: oklch(48% .03 310);
  --pred-line: oklch(91% .012 310);
  --pred-surface: oklch(99% .003 310);
  --pred-tint: oklch(96% .012 310);
  --pred-gold: #f59e0b;
  --pred-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 40px;
  color: var(--pred-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.predicciones-page-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--pred-accent);
  outline-offset: 3px;
}

.predicciones-page-wrapper :is(#calientes, #ia-sucesion, #como-hoy, #atrasados, #decenas, #terminales, #unidades, #herramientas) {
  scroll-margin-top: 104px;
}

/* Compact Breadcrumbs */
.predicciones-page-wrapper .pred-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--pred-muted);
  font-size: 12px;
  line-height: 1.4;
}

.predicciones-page-wrapper .pred-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--pred-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.predicciones-page-wrapper .pred-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--pred-magenta);
}

.predicciones-page-wrapper .pred-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 10px;
}

/* Compact Integrated Hero Header */
.predicciones-page-wrapper .pred-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 18px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.predicciones-page-wrapper .pred-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.predicciones-page-wrapper .pred-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 48px;
  padding: 5px;
  border: 1px solid var(--pred-line);
  border-radius: 12px;
  background: var(--pred-surface);
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04);
  flex-shrink: 0;
}

.predicciones-page-wrapper .pred-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.predicciones-page-wrapper .pred-header-titles {
  min-width: 0;
}

.predicciones-page-wrapper .pred-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pred-magenta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.predicciones-page-wrapper .pred-header-titles h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #0f172a;
}

.predicciones-page-wrapper .pred-header-titles p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}

.predicciones-page-wrapper .pred-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* High-Impact Golden CTA ("Juega online") */
@keyframes cta-shimmer-pred {
  0% {
    transform: translateX(-140%) rotate(25deg);
  }
  25%, 100% {
    transform: translateX(260%) rotate(25deg);
  }
}

.predicciones-page-wrapper .pred-play {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.predicciones-page-wrapper .pred-play::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: cta-shimmer-pred 3.8s ease-in-out infinite;
  pointer-events: none;
}

.predicciones-page-wrapper .pred-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(255, 165, 0, 0.48);
  filter: brightness(1.06);
  color: #1a0033;
}

.predicciones-page-wrapper .pred-play:active {
  transform: translateY(0);
}

.predicciones-page-wrapper .pred-play .cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #220240;
}

/* Compact Toolbar Strip (Dates & Lottery Selector) */
.predicciones-page-wrapper .pred-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.02);
}

.predicciones-page-wrapper .pred-date-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.predicciones-page-wrapper .pred-date-field .ant-picker {
  height: 34px;
  border-radius: 9px;
  border-color: #dcd3e7;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  width: 260px;
  min-width: 250px;
  transition: all 0.2s ease;
}

.predicciones-page-wrapper .pred-date-field .ant-picker:hover,
.predicciones-page-wrapper .pred-date-field .ant-picker-focused {
  border-color: var(--pred-accent);
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.1);
}

.predicciones-page-wrapper .pred-date-field .ant-picker input {
  font-size: 13px;
  font-weight: 600;
  color: #1e1b4b;
  cursor: pointer;
}

.predicciones-page-wrapper .pred-quick-dates {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.predicciones-page-wrapper .pred-quick-dates button {
  height: 30px;
  padding: 0 9px;
  border: 1px solid #e2d9ec;
  border-radius: 7px;
  color: #64748b;
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.predicciones-page-wrapper .pred-quick-dates button:hover {
  border-color: var(--pred-accent);
  color: var(--pred-accent);
  background: #faf5ff;
}

.predicciones-page-wrapper .pred-quick-dates button[aria-pressed="true"] {
  background: var(--pred-accent);
  border-color: var(--pred-accent);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.18);
}

/* Integrated Lottery Selector in Controls Bar */
.predicciones-page-wrapper .pred-lottery-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.predicciones-page-wrapper .pred-control-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--pred-accent);
  white-space: nowrap;
  cursor: pointer;
}

.predicciones-page-wrapper .pred-lottery-select-wrap {
  width: 220px;
}

.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select {
  width: 100%;
}

.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select-selector {
  border-radius: 9px !important;
  border: 1.5px solid #dcd3e7 !important;
  background: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1e1b4b !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.04) !important;
  transition: all 0.2s ease !important;
}

.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select:hover .ant-select-selector,
.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select-focused .ant-select-selector {
  border-color: var(--pred-accent) !important;
  box-shadow: 0 0 0 3px rgba(68, 5, 122, 0.12) !important;
}

.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select-selection-item {
  font-weight: 700 !important;
  color: #1e1b4b !important;
}

.predicciones-page-wrapper .pred-lottery-select-wrap .ant-select-arrow {
  color: var(--pred-accent) !important;
  font-size: 12px !important;
}

/* Ultra-Compact Sorteo Oficial de Referencia Strip */
.predicciones-page-wrapper .pred-reference-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 16px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #fffcfd 0%, #ffffff 50%, #faf8fc 100%);
  border: 1px solid #f0e2ec;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(236, 19, 121, 0.03);
}

.predicciones-page-wrapper .pred-reference-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.predicciones-page-wrapper .pred-reference-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #ec1379;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.predicciones-page-wrapper .pred-reference-date {
  color: #475569;
  font-weight: 700;
}

.predicciones-page-wrapper .pred-reference-balls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.predicciones-page-wrapper .pred-ref-ball-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.predicciones-page-wrapper .pred-ref-ball {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(155deg, #682c9c, #44057a 75%);
  border: 1px solid #582087;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.15);
}

.predicciones-page-wrapper .pred-ref-label {
  font-size: 10px;
  font-weight: 800;
  color: #7c3aed;
  text-transform: uppercase;
}

/* ==========================================================================
   2-Column Prediction Grid (Visible immediately above the fold!)
   ========================================================================== */

.predicciones-page-wrapper .pred-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.predicciones-page-wrapper .pred-grid-full {
  grid-column: 1 / -1;
}

.predicciones-page-wrapper .pred-card {
  position: relative;
  overflow: hidden;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.predicciones-page-wrapper .pred-card:hover {
  box-shadow: 0 6px 18px rgba(68, 5, 122, 0.07);
}

/* Color thematic top accents */
.predicciones-page-wrapper .pred-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
}

.predicciones-page-wrapper .card-theme-caliente::before {
  background: linear-gradient(90deg, #ea580c 0%, #fbbf24 100%);
}

.predicciones-page-wrapper .card-theme-ia::before {
  background: linear-gradient(90deg, #7c3aed 0%, #c084fc 100%);
}

.predicciones-page-wrapper .card-theme-hoy::before {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.predicciones-page-wrapper .card-theme-atrasados::before {
  background: linear-gradient(90deg, #d97706 0%, #fde68a 100%);
}

.predicciones-page-wrapper .card-theme-decenas::before {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.predicciones-page-wrapper .card-theme-terminales::before {
  background: linear-gradient(90deg, #db2777 0%, #f472b6 100%);
}

.predicciones-page-wrapper .card-theme-unidades::before {
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}

/* Card Header */
.predicciones-page-wrapper .pred-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.predicciones-page-wrapper .pred-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.predicciones-page-wrapper .badge-caliente {
  background: #fef2f2;
  color: #ea580c;
  border: 1px solid #fecaca;
}

.predicciones-page-wrapper .badge-ia {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.predicciones-page-wrapper .badge-hoy {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.predicciones-page-wrapper .badge-atrasados {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.predicciones-page-wrapper .badge-decenas {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.predicciones-page-wrapper .badge-terminales {
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.predicciones-page-wrapper .badge-unidades {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.predicciones-page-wrapper .pred-card-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
}

.predicciones-page-wrapper .pred-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #fbf8fd;
  border: 1px solid #ebdcf5;
  border-radius: 9999px;
  color: var(--pred-accent);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.predicciones-page-wrapper .pred-card-link:hover {
  background: #f3e8ff;
  border-color: #c084fc;
  color: #31005a;
  text-decoration: none;
}

.predicciones-page-wrapper .pred-card-desc {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}

/* Card Numbers Row */
.predicciones-page-wrapper .pred-numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.predicciones-page-wrapper .pred-number-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: linear-gradient(135deg, #ffffff 0%, #faf8fc 100%);
  border: 1px solid #e8e2f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(68, 5, 122, 0.03);
  transition: all 0.15s ease;
  cursor: default;
}

.predicciones-page-wrapper .pred-number-item:hover {
  transform: translateY(-1.5px);
  border-color: #c084fc;
  box-shadow: 0 4px 10px rgba(68, 5, 122, 0.08);
}

/* 3D Glossy Lottery Ball */
.predicciones-page-wrapper .pred-ball {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(155deg, #682c9c, #44057a 75%);
  border: 1px solid #582087;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 2px 5px rgba(68, 5, 122, 0.15);
  color: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.predicciones-page-wrapper .pred-ball.is-golden {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef3c7 55%, #fde68a 100%);
  color: #78350f;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: inset 0 1px 1px #ffffff, 0 2px 5px rgba(180, 83, 9, 0.15);
}

.predicciones-page-wrapper .pred-ball.is-ai {
  background: linear-gradient(155deg, #8b5cf6, #5b21b6 75%);
  border: 1px solid #7c3aed;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(124, 58, 237, 0.18);
}

.predicciones-page-wrapper .pred-ball.is-history {
  background: linear-gradient(155deg, #3b82f6, #1d4ed8 75%);
  border: 1px solid #2563eb;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(37, 99, 235, 0.18);
}

.predicciones-page-wrapper .pred-ball.is-delayed {
  background: linear-gradient(155deg, #f59e0b, #b45309 75%);
  border: 1px solid #d97706;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 2px 5px rgba(217, 119, 6, 0.18);
}

.predicciones-page-wrapper .pred-pill-box {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding-inline: 6px;
  border-radius: 9px;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #44057a;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 14.5px;
}

.predicciones-page-wrapper .pred-count-badge {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.predicciones-page-wrapper .pred-count-value {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.predicciones-page-wrapper .pred-count-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  text-transform: lowercase;
}

/* Hit / Coincidence Styling - User Success Feedback */
.predicciones-page-wrapper .pred-card-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.predicciones-page-wrapper .pred-card-hits-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 9999px;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.12);
}

.predicciones-page-wrapper .pred-number-item.is-hit {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #fffbeb 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18), 0 4px 12px rgba(16, 185, 129, 0.15);
  position: relative;
  animation: predHitPulse 3s ease-in-out infinite alternate;
}

@keyframes predHitPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18), 0 2px 6px rgba(16, 185, 129, 0.1);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 4px 14px rgba(16, 185, 129, 0.22);
  }
}

.predicciones-page-wrapper .pred-ball.is-hit {
  background: radial-gradient(circle at 35% 28%, #34d399 0%, #059669 55%, #047857 100%) !important;
  border: 2px solid #f59e0b !important;
  color: #ffffff !important;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.6), 0 0 10px rgba(16, 185, 129, 0.45), 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  position: relative;
}

.predicciones-page-wrapper .pred-pill-box.is-hit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 2px solid #f59e0b !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
}

.predicciones-page-wrapper .pred-ball-hit-star {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #f59e0b;
  color: #78350f;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  line-height: 1;
}

.predicciones-page-wrapper .pred-hit-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.predicciones-page-wrapper .pred-count-sub {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.2;
}

.predicciones-page-wrapper .pred-reference-hits-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fef3c7 100%);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 12px;
  color: #065f46;
  margin-left: auto;
}

.predicciones-page-wrapper .pred-reference-hits-banner strong {
  color: #047857;
}

.predicciones-page-wrapper .pred-hits-trophy {
  font-size: 14px;
}

.predicciones-page-wrapper .pred-helper-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #475569;
}

.predicciones-page-wrapper .pred-helper-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: #e2e8f0;
  border-radius: 5px;
  font-weight: 700;
  color: #1e293b;
  font-size: 11px;
}

/* Tools Section */
.predicciones-page-wrapper .pred-tools {
  margin-block: 28px 36px;
  content-visibility: auto;
  contain-intrinsic-size: 0 180px;
}

/* FAQ and Disclaimer Below-the-fold optimization */
.predicciones-page-wrapper .pred-faq-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 280px;
}

.predicciones-page-wrapper .pred-disclaimer-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 100px;
}

.predicciones-page-wrapper .pred-tools-heading {
  margin-bottom: 14px;
}

.predicciones-page-wrapper .pred-tools-heading h2 {
  margin: 3px 0 0;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.predicciones-page-wrapper .pred-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.predicciones-page-wrapper .pred-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.predicciones-page-wrapper .pred-tool-card:hover {
  background: #ffffff;
  border-color: #d8b4fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(68, 5, 122, 0.08);
  color: #0f172a;
  text-decoration: none;
}

.predicciones-page-wrapper .pred-tool-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.predicciones-page-wrapper .pred-tool-card:hover .pred-tool-icon {
  transform: scale(1.1);
}

.predicciones-page-wrapper .pred-tool-body {
  min-width: 0;
  flex: 1;
}

.predicciones-page-wrapper .pred-tool-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1px;
}

.predicciones-page-wrapper .pred-tool-desc {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

.predicciones-page-wrapper .pred-tool-arrow {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.predicciones-page-wrapper .pred-tool-card:hover .pred-tool-arrow {
  transform: translateX(3px);
  color: var(--pred-accent);
}

/* Tool color themes matching historial */
.predicciones-page-wrapper .tool-theme-fire .pred-tool-icon {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #ea580c;
  border: 1px solid #fecaca;
}

.predicciones-page-wrapper .tool-theme-ai .pred-tool-icon {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.predicciones-page-wrapper .tool-theme-history .pred-tool-icon {
  background: linear-gradient(135deg, #fbf7ff 0%, #f3ebfc 100%);
  color: #44057a;
  border: 1px solid #d8b4fe;
}

.predicciones-page-wrapper .tool-theme-stats .pred-tool-icon {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.predicciones-page-wrapper .tool-theme-search .pred-tool-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.predicciones-page-wrapper .tool-theme-calendar .pred-tool-icon {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #d97706;
  border: 1px solid #fde68a;
}

.predicciones-page-wrapper .tool-theme-tags .pred-tool-icon {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: #db2777;
  border: 1px solid #fbcfe8;
}

.predicciones-page-wrapper .tool-theme-all .pred-tool-icon {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #059669;
  border: 1px solid #bbf7d0;
}

/* Disclaimer */
.predicciones-page-wrapper .pred-disclaimer-card {
  padding: 18px 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 20px;
}

.predicciones-page-wrapper .pred-disclaimer-header {
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.predicciones-page-wrapper .pred-disclaimer-text {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Loading & Error */
.predicciones-page-wrapper .pred-loading {
  padding-block: 16px;
}

.predicciones-page-wrapper .pred-error {
  text-align: center;
  padding: 36px 20px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  margin-block: 16px;
}

.predicciones-page-wrapper .pred-error p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .predicciones-page-wrapper .pred-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .predicciones-page-wrapper .pred-grid {
    grid-template-columns: 1fr;
  }

  .predicciones-page-wrapper .pred-header-card {
    flex-direction: column;
    align-items: stretch;
  }

  .predicciones-page-wrapper .pred-header-right {
    justify-content: flex-start;
  }

  .predicciones-page-wrapper .pred-lottery-control {
    width: 100%;
    justify-content: flex-start;
  }

  .predicciones-page-wrapper .pred-lottery-select-wrap {
    flex: 1;
    min-width: 180px;
  }

  .predicciones-page-wrapper .pred-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .predicciones-page-wrapper {
    padding-top: 96px;
    padding-bottom: 30px;
  }

  .predicciones-page-wrapper .pred-header-titles h1 {
    font-size: 18px;
  }

  .predicciones-page-wrapper .pred-control-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .predicciones-page-wrapper .pred-date-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .predicciones-page-wrapper .pred-date-field .ant-picker {
    min-width: 0;
    width: 100%;
  }

  .predicciones-page-wrapper .pred-reference-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .predicciones-page-wrapper .pred-reference-hits-banner {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .predicciones-page-wrapper .pred-card {
    padding: 14px 14px;
  }

  .predicciones-page-wrapper .pred-ball {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}
/* ==========================================================================
   NÚMEROS REPETIDOS HISTÓRICOS - HOJA DE ESTILOS CANÓNICA
   Estándar Canónico: "Un Día Como Hoy" / "Tabla de Números" / "Números Calientes"
   ========================================================================== */

:root {
  --repetidos-purple: #44057a;
  --repetidos-purple-dark: #2a034d;
  --repetidos-purple-light: #595192;
  --repetidos-magenta: #be185d;
  --repetidos-magenta-light: #ec4899;
  --repetidos-magenta-dark: #9d174d;
  --repetidos-gold: #f59e0b;
  --repetidos-gold-dark: #d97706;
  --repetidos-bg: #f8fafc;
  --repetidos-surface: #ffffff;
  --repetidos-border: #ede8f5;
  --repetidos-border-focus: #f472b6;
  --repetidos-ink: #1e1b4b;
  --repetidos-muted: #64748b;
  --repetidos-green: #10b981;
}

/* ==========================================================================
   PAGE WRAPPER & CONTAINER
   ========================================================================== */
.repetidos-page-wrapper {
  background-color: var(--repetidos-bg);
  min-height: 100vh;
  min-width: 0;
  padding-top: 104px;
  padding-bottom: 48px;
  font-family: inherit;
  color: #1e293b;
}

.repetidos-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   BREADCRUMBS CANÓNICAS
   ========================================================================== */
.repetidos-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--repetidos-muted);
}

.repetidos-breadcrumb a {
  color: var(--repetidos-purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.repetidos-breadcrumb a:hover {
  color: var(--repetidos-magenta);
}

.repetidos-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

/* ==========================================================================
   HERO HEADER CARD
   ========================================================================== */
.repetidos-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--repetidos-border);
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.04);
}

.repetidos-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.repetidos-header-emblem {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.repetidos-header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.repetidos-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.repetidos-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--repetidos-magenta);
  text-transform: uppercase;
}

.repetidos-header-titles h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--repetidos-ink);
  line-height: 1.25;
}

.repetidos-header-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--repetidos-muted);
  line-height: 1.4;
}

.repetidos-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.repetidos-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf2f8;
  border: 1px solid #fce7f3;
  color: var(--repetidos-magenta);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.repetidos-badge-pill strong {
  font-weight: 800;
}

/* CTA "Juega online" (Canónico) */
.repetidos-play-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.repetidos-play-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.45);
}

.repetidos-play-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: cta-shimmer 3.2s infinite ease-in-out;
}

@keyframes cta-shimmer {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

/* ==========================================================================
   FILTER CARD
   ========================================================================== */
.repetidos-filter-card {
  background: #ffffff;
  border: 1px solid var(--repetidos-border);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.repetidos-filter-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.repetidos-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.repetidos-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-transform: capitalize;
}

/* Selector de Lotería: Miniaturas y alineación vertical estricta */
.repetidos-loteria-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 2px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.repetidos-lottery-select-wrap {
  width: 250px;
}

.repetidos-filter-group .ant-select-selector {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 10px !important;
}

.repetidos-filter-group .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
}

.repetidos-filter-group .ant-select-selection-item::after {
  display: none !important;
}

.repetidos-filter-group .ant-picker,
.repetidos-filter-group .ant-input-number {
  border-radius: 10px !important;
  border-color: #cbd5e1 !important;
  height: 40px !important;
}

.repetidos-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.repetidos-switch-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* Píldoras rápidas de período */
.repetidos-quick-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #f1f5f9;
}

.repetidos-quick-pill-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--repetidos-muted);
}

.repetidos-quick-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.repetidos-quick-pill:hover {
  border-color: #f472b6;
  color: var(--repetidos-magenta);
}

.repetidos-quick-pill-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: var(--repetidos-magenta) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
}

/* ==========================================================================
   BOLOS DE LOTERÍA 3D (Estándar Canónico Unificado)
   ========================================================================== */
.repetidos-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  flex-shrink: 0;
}

.repetidos-ball:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Top 1 / Oro */
.repetidos-ball-rank-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

/* Top 2 / Magenta */
.repetidos-ball-rank-2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  color: #ffffff;
}

/* Top 3 / Púrpura de Marca */
.repetidos-ball-rank-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* Posiciones 4+ / Esmeralda */
.repetidos-ball-regular {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

/* ==========================================================================
   PODIUM SECTION (Top Números Más Repetidos - Compact Chip Design)
   ========================================================================== */
.repetidos-podium-card {
  padding: 14px 18px;
  margin-bottom: 18px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
}

.repetidos-podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede8f5;
}

.repetidos-podium-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--repetidos-ink);
}

.repetidos-podium-subtitle {
  font-size: 12px;
  color: var(--repetidos-muted);
}

.repetidos-podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.repetidos-podium-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
  min-height: 48px;
}

.repetidos-podium-item:hover {
  background: #ffffff;
  border-color: #fbcfe8;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.08);
  transform: translateY(-1px);
}

.repetidos-podium-item-rank-1 {
  background: #fffbeb;
  border-color: #fde68a;
}

.repetidos-podium-item-rank-2 {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.repetidos-podium-item-rank-3 {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.repetidos-podium-item .repetidos-ball {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

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

.repetidos-podium-top-row {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.repetidos-podium-medal {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.repetidos-medal-1 { color: #d97706; }
.repetidos-medal-2 { color: #be185d; }
.repetidos-medal-3 { color: #6d28d9; }
.repetidos-medal-regular { color: #047857; }

.repetidos-podium-bottom-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--repetidos-muted);
  line-height: 1;
}

.repetidos-podium-freq strong {
  color: #1e293b;
  font-weight: 700;
}

.repetidos-podium-dot {
  color: #cbd5e1;
  font-size: 10px;
}

.repetidos-podium-action {
  color: var(--repetidos-purple);
  font-weight: 600;
  font-size: 10.5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.repetidos-podium-action:hover {
  color: var(--repetidos-magenta);
}

/* ==========================================================================
   RESULTS CARD & CONTROLS HEADER BAR
   ========================================================================== */
.repetidos-results-card {
  padding: 0;
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  overflow: hidden;
}

.repetidos-results-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border-bottom: 1px solid #ede8f5;
}

.repetidos-results-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repetidos-results-header-left h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--repetidos-ink);
}

.repetidos-results-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buscador Canónico de Números (Píldora 00-99 y Mini-Bolo 3D) */
.repetidos-header-search-wrap {
  width: 250px;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.repetidos-header-search-wrap .ant-input-affix-wrapper {
  width: 100% !important;
  height: 38px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #e2d9eb !important;
  padding: 0 8px 0 6px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.repetidos-header-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.repetidos-header-search-wrap .ant-input-affix-wrapper-focused,
.repetidos-header-search-wrap.repetidos-header-search-active .ant-input-affix-wrapper {
  border-color: var(--repetidos-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

.repetidos-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(190, 24, 93, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  flex-shrink: 0;
}

.repetidos-header-search-wrap input.ant-input {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--repetidos-ink) !important;
  letter-spacing: 0.5px !important;
}

.repetidos-search-hint-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.repetidos-search-mini-bolo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  border: 1.5px solid #ffffff;
  animation: mini-bolo-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mini-bolo-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Toggle de Vistas [Tarjetas | Tabla] */
.repetidos-view-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  gap: 2px;
  flex-shrink: 0;
}

.repetidos-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.repetidos-view-btn:hover {
  color: #1e293b;
}

.repetidos-view-btn-active {
  background: #ffffff !important;
  color: var(--repetidos-purple) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   DESKTOP TABLE CUSTOMIZATION (Canonical Style overriding #595192)
   ========================================================================== */
.repetidos-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.repetidos-table {
  border-radius: 0;
}

.repetidos-table .ant-table {
  border-radius: 0 !important;
  background: transparent !important;
}

.repetidos-page-wrapper .repetidos-table .ant-table-thead > tr > th,
.repetidos-page-wrapper .repetidos-table .ant-table-thead th,
.repetidos-table-wrap .ant-table-thead > tr > th,
.repetidos-table .ant-table-thead > tr > th {
  background: #faf8fc !important;
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1.5px solid #ede8f5 !important;
  padding: 12px 16px !important;
}

.repetidos-page-wrapper .repetidos-table .ant-table-tbody > tr > td,
.repetidos-table-wrap .ant-table-tbody > tr > td,
.repetidos-table .ant-table-tbody > tr > td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  vertical-align: middle !important;
}

.repetidos-page-wrapper .repetidos-table .ant-table-tbody > tr:hover > td,
.repetidos-table .ant-table-tbody > tr:hover > td {
  background: #faf8fd !important;
}

.repetidos-table-number-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repetidos-table-freq-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 700;
}

.repetidos-table-freq-badge strong {
  font-size: 14px;
  font-weight: 800;
  color: #047857;
}

.repetidos-table-last-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.repetidos-table-last-loteria {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.repetidos-table-last-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.repetidos-table-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e2d9eb;
  background: #ffffff;
  color: var(--repetidos-purple);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.repetidos-table-action-btn:hover {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: var(--repetidos-magenta);
}

/* ==========================================================================
   CARDS GRID VIEW (Tarjetas Limpias y Responsivas)
   ========================================================================== */
.repetidos-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  padding: 16px;
}

.repetidos-card-item {
  background: #ffffff;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.repetidos-card-item:hover {
  border-color: #fbcfe8;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.08);
  transform: translateY(-2px);
}

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

.repetidos-card-number-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.repetidos-card-freq-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
}

.repetidos-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.repetidos-card-body-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--repetidos-magenta);
  text-transform: uppercase;
}

.repetidos-card-last-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.repetidos-card-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #fce7f3;
  background: #fdf2f8;
  color: var(--repetidos-magenta);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.repetidos-card-footer-btn:hover {
  background: var(--repetidos-magenta);
  color: #ffffff;
}

/* ==========================================================================
   CANONICAL PAGINATION (Tema Rosado de Marca)
   ========================================================================== */
.repetidos-pagination-wrap {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
  border-top: 1.5px solid #fce7f3;
  padding: 16px 20px !important;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.repetidos-table .ant-table-pagination.ant-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fdf4f8 100%);
  border-top: 1.5px solid #fce7f3;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.repetidos-pagination-wrap .ant-pagination {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Pastilla "Mostrando X-Y de Z" */
.hoy-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
}

.hoy-pagination-total strong {
  color: var(--repetidos-magenta);
  font-weight: 800;
}

/* Botones de Paginación 38px */
.repetidos-table .ant-pagination-item,
.repetidos-pagination-wrap .ant-pagination-item,
.repetidos-table .ant-pagination-prev,
.repetidos-table .ant-pagination-next,
.repetidos-pagination-wrap .ant-pagination-prev,
.repetidos-pagination-wrap .ant-pagination-next {
  min-width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  background: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.repetidos-table .ant-pagination-item a,
.repetidos-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
}

.repetidos-table .ant-pagination-item:hover,
.repetidos-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px);
}

.repetidos-table .ant-pagination-item-active,
.repetidos-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: var(--repetidos-magenta) !important;
  box-shadow: 0 4px 12px rgba(188, 16, 94, 0.35) !important;
}

.repetidos-table .ant-pagination-item-active a,
.repetidos-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

/* Selector "X por pág." */
.repetidos-table .ant-pagination-options,
.repetidos-pagination-wrap .ant-pagination-options {
  margin-left: auto !important;
}

.repetidos-table .ant-pagination-options .ant-select-selector,
.repetidos-pagination-wrap .ant-pagination-options .ant-select-selector {
  border-radius: 9999px !important;
  border: 1.5px solid #fbcfe8 !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #475569 !important;
}

/* ==========================================================================
   MODAL DE DETALLES DEL NÚMERO
   ========================================================================== */
.repetidos-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ede8f5;
}

.repetidos-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--repetidos-ink);
  margin: 0;
}

.repetidos-modal-subtitle {
  font-size: 12.5px;
  color: var(--repetidos-muted);
}

.repetidos-modal-body {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.repetidos-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.repetidos-modal-item:hover {
  background: #ffffff;
  border-color: #fce7f3;
}

.repetidos-modal-date {
  display: flex;
  flex-direction: column;
}

.repetidos-modal-day {
  font-size: 11px;
  font-weight: 800;
  color: var(--repetidos-magenta);
  text-transform: uppercase;
}

.repetidos-modal-date-text {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.repetidos-modal-loteria {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .repetidos-page-wrapper {
    padding-top: 84px;
    padding-bottom: 36px;
  }

  .repetidos-container {
    padding: 0 12px;
  }

  .repetidos-breadcrumb {
    font-size: 11.5px;
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .repetidos-breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .repetidos-header-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 12px;
  }

  .repetidos-header-left {
    gap: 12px;
  }

  .repetidos-header-titles h1 {
    font-size: 18px;
  }

  .repetidos-header-right {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px;
  }

  .repetidos-badge-pill {
    flex: 1;
    justify-content: center;
    height: 38px;
  }

  .repetidos-play-cta {
    flex: 1;
    height: 38px;
  }

  .repetidos-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .repetidos-filter-group,
  .repetidos-lottery-select-wrap {
    width: 100% !important;
  }

  .repetidos-filter-group .ant-select,
  .repetidos-filter-group .ant-picker,
  .repetidos-filter-group .ant-input-number,
  .repetidos-switch-wrap {
    width: 100% !important;
  }

  .repetidos-podium-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .repetidos-results-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .repetidos-results-header-left {
    justify-content: space-between;
    width: 100%;
  }

  .repetidos-results-header-right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .repetidos-header-search-wrap {
    flex: 1;
    min-width: 0;
    width: auto;
  }

  .repetidos-view-toggle {
    flex-shrink: 0;
    align-self: center;
  }

  .repetidos-table .ant-table-pagination.ant-pagination,
  .repetidos-pagination-wrap .ant-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px 4px !important;
    padding: 14px 10px !important;
  }

  .repetidos-table .ant-pagination-total-text,
  .repetidos-pagination-wrap .ant-pagination-total-text {
    width: 100% !important;
    text-align: center;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 4px;
  }

  .repetidos-table .ant-pagination-options,
  .repetidos-pagination-wrap .ant-pagination-options {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 6px;
    display: flex !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .repetidos-podium-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Canonical Design System: Mapa de Ganadores
   Estándar Canónico: "Un Día Como Hoy", "SuperPalé", "Loto"
   ========================================================================== */

:root {
  --mapa-purple: #44057a;
  --mapa-purple-hover: #5a07a3;
  --mapa-purple-light: #f5f0fb;
  --mapa-magenta: #be185d;
  --mapa-magenta-hover: #9d174d;
  --mapa-pink: #ec4899;
  --mapa-pink-light: #fdf2f8;
  --mapa-gold: #fbbf24;
  --mapa-gold-dark: #d97706;
  --mapa-gold-light: #fef3c7;
  --mapa-emerald: #10b981;
  --mapa-emerald-dark: #047857;
  --mapa-bg: #f8fafc;
  --mapa-card-bg: #ffffff;
  --mapa-line: #e2e8f0;
  --mapa-line-subtle: #f1f5f9;
  --mapa-text: #0f172a;
  --mapa-muted: #64748b;
  --mapa-radius-sm: 8px;
  --mapa-radius-md: 12px;
  --mapa-radius-lg: 16px;
  --mapa-radius-xl: 20px;
}

/* Page Wrapper */
.mapa-page-wrapper {
  padding-top: 104px;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--mapa-bg);
  min-height: 100vh;
  box-sizing: border-box;
}

.mapa-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Breadcrumbs */
.mapa-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--mapa-muted);
}

.mapa-breadcrumb a {
  color: var(--mapa-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mapa-breadcrumb a:hover {
  color: var(--mapa-magenta);
}

.mapa-breadcrumb-separator {
  color: #cbd5e1;
  font-size: 11px;
}

.mapa-breadcrumb-current {
  color: var(--mapa-purple);
  font-weight: 700;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.mapa-header-card {
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-xl);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(68, 5, 122, 0.04);
  position: relative;
  overflow: hidden;
}

.mapa-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mapa-purple) 0%, var(--mapa-pink) 50%, var(--mapa-gold) 100%);
}

.mapa-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.mapa-header-emblem {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f5f0fb 0%, #fdf2f8 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(68, 5, 122, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.mapa-header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mapa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mapa-magenta);
}

.mapa-header-titles h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--mapa-purple);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.mapa-header-titles p {
  margin: 0;
  font-size: 13.5px;
  color: var(--mapa-muted);
  line-height: 1.45;
}

.mapa-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mapa-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--mapa-magenta);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mapa-badge-pill strong {
  font-weight: 800;
  color: #9d174d;
}

/* Gold CTA Button "Juega online" */
.mapa-play-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.mapa-play-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mapa-play-cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   Quick Stats Grid (Summary Metrics)
   ========================================================================== */
.mapa-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mapa-stat-card {
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-lg);
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mapa-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(68, 5, 122, 0.07);
}

.mapa-stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.mapa-stat-icon-wrap.gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #b45309;
}

.mapa-stat-icon-wrap.magenta {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: var(--mapa-magenta);
}

.mapa-stat-icon-wrap.purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: var(--mapa-purple);
}

.mapa-stat-icon-wrap.emerald {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: var(--mapa-emerald-dark);
}

.mapa-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mapa-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mapa-muted);
  margin-bottom: 2px;
}

.mapa-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--mapa-purple);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mapa-stat-subtext {
  font-size: 11.5px;
  color: var(--mapa-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Filter Card
   ========================================================================== */
.mapa-filter-card {
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.mapa-primary-search-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.mapa-search-input-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mapa-search-clear-col {
  flex-shrink: 0;
}

.mapa-mobile-filter-bar {
  display: none;
}

.mapa-secondary-filters {
  display: block;
}

.mapa-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: flex-end;
}

.mapa-filter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mapa-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mapa-filter-label span {
  font-size: 14px;
}

/* Ant Design Inputs and Selects inside filter card */
.mapa-filter-card .ant-input-affix-wrapper {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1.5px solid #dcd3e7 !important;
  padding: 0 12px 0 8px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.mapa-filter-card .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.mapa-filter-card .ant-input-affix-wrapper-focused {
  border-color: var(--mapa-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
  background: #ffffff !important;
}

/* Fix inner input: transparent background to avoid white rectangular box */
.mapa-filter-card .ant-input-affix-wrapper input.ant-input,
.mapa-filter-card .ant-input-affix-wrapper .ant-input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e1b4b !important;
  padding: 0 4px !important;
}

.mapa-filter-card .ant-input-affix-wrapper input.ant-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Micro-badge icon container for search prefix */
.mapa-search-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 8px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: var(--mapa-magenta);
}

.mapa-filter-card .ant-input-affix-wrapper-focused .mapa-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
  color: #ffffff !important;
}

.mapa-filter-card .ant-input-affix-wrapper-focused .mapa-search-icon-badge .anticon {
  color: #ffffff !important;
}

/* Canonical Selects (Matches clasificacion, loto, hoy) */
.mapa-filter-card .ant-select-selector {
  height: 42px !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 10px !important;
  border: 1.5px solid #dcd3e7 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mapa-filter-card .ant-select:hover .ant-select-selector {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.mapa-filter-card .ant-select-focused .ant-select-selector {
  border-color: var(--mapa-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14), 0 3px 10px rgba(68, 5, 122, 0.08) !important;
}

.mapa-filter-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
  padding: 0 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #1e1b4b !important;
}

.mapa-filter-card .ant-select-selection-item::after {
  display: none !important;
}

.mapa-filter-card .ant-select-selection-placeholder {
  line-height: normal !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

/* Canonical Lottery Select Option Items */
.mapa-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.mapa-lottery-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
  flex-shrink: 0;
}

.mapa-clear-btn {
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mapa-clear-btn:hover {
  background: #e2e8f0;
  color: var(--mapa-magenta);
  border-color: #cbd5e1;
}

/* ==========================================================================
   Interactive SVG Map Section
   ========================================================================== */
.mapa-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.mapa-map-card,
.mapa-detail-card {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-xl);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(68, 5, 122, 0.04);
}

.mapa-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.mapa-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--mapa-purple);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mapa-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f5f0fb;
  border: 1px solid #e9d5ff;
  font-size: 12px;
  font-weight: 700;
  color: var(--mapa-purple);
}

.mapa-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #15803d;
}

.dr-svg-map-wrapper {
  position: relative;
  background: #fcfbfe;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
  box-shadow: inset 0 2px 8px rgba(68, 5, 122, 0.02);
  overflow: hidden;
}

.dr-province-path {
  stroke: #ffffff;
  stroke-width: 0.9;
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.dr-province-path:hover {
  stroke: var(--mapa-gold) !important;
  stroke-width: 2.8 !important;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.85));
}

.dr-province-path.active-selected {
  stroke: #f59e0b !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.95)) !important;
}

/* Labels on top of SVG Map */
.map-province-label {
  pointer-events: none;
  user-select: none;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;
  transition: all 0.2s ease;
}

.map-province-label.no-winners {
  font-size: 7.5px;
  font-weight: 600;
  fill: #64748b;
  opacity: 0.75;
}

.map-province-label.has-winners {
  font-size: 9.5px;
  font-weight: 800;
  fill: var(--mapa-purple);
  opacity: 1;
}

.map-province-label.selected-text {
  fill: var(--mapa-magenta) !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
}

.map-badge-group {
  pointer-events: none;
  user-select: none;
}

.map-winner-badge-circle {
  animation: badge-pulse 2s infinite ease-in-out;
}

@keyframes badge-pulse {
  0% {
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  }
  50% {
    stroke-width: 2.2;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.7));
  }
  100% {
    stroke-width: 1.5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  }
}

/* Floating Tooltip */
.mapa-floating-tooltip {
  position: fixed;
  background: rgba(30, 27, 75, 0.96);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.4);
  transform: translate(-50%, -100%);
  margin-top: -12px;
  transition: opacity 0.15s ease;
}

.tooltip-prov-name {
  color: var(--mapa-gold);
  font-weight: 800;
  font-size: 13.5px;
  margin-bottom: 2px;
}

.tooltip-winners-badge {
  font-size: 12px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Heatmap Legend Box */
.map-legend-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--mapa-line);
}

.map-legend-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
  margin-bottom: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.legend-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.reset-zoom-button {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 12px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.reset-zoom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.55);
}

/* ==========================================================================
   Dual View Switcher (Canonical Floating White Pill)
   ========================================================================== */
.mapa-view-switcher {
  display: flex;
  align-items: center;
}

.mapa-view-track {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.mapa-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mapa-view-btn:hover {
  color: var(--mapa-magenta);
}

.mapa-view-btn.active {
  background: #ffffff;
  color: var(--mapa-magenta);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Canonical 3D Bolos (Lotto Spheres)
   ========================================================================== */
.mapa-bolo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  user-select: none;
  flex-shrink: 0;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mapa-bolo-md {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.mapa-bolo-sm {
  width: 30px;
  height: 30px;
  font-size: 12px;
  border-width: 1.5px;
}

.mapa-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
}

.mapa-bolo-magenta {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.mapa-bolo-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

.mapa-bolo-emerald {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.mapa-bolos-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Table View (Canonical Ant Design Table Styling)
   ========================================================================== */
.mapa-table-wrap {
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-md);
  overflow: hidden;
  background: #ffffff;
}

.mapa-table-wrap .ant-table-thead > tr > th {
  background: #faf7fd !important;
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  border-bottom: 1.5px solid #e9d5ff !important;
  padding: 12px 14px !important;
}

.mapa-table-wrap .ant-table-tbody > tr > td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13px !important;
}

.mapa-table-wrap .ant-table-tbody > tr:hover > td {
  background: #fdf4f8 !important;
}

.mapa-winner-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mapa-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.mapa-avatar-masculino {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
}

.mapa-avatar-femenino {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border-color: #f9a8d4;
}

.mapa-avatar-anonimo {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-color: #d1d5db;
}

.mapa-winner-name {
  font-weight: 700;
  color: #1e293b;
  display: block;
}

.mapa-province-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f5f0fb;
  border: 1px solid #e9d5ff;
  color: var(--mapa-purple);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.mapa-province-tag:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #3b0764;
}

.mapa-lottery-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mapa-monto-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  color: #b45309;
  font-weight: 800;
  font-size: 13.5px;
  font-feature-settings: "tnum";
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   Cards Grid View
   ========================================================================== */
.mapa-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.winner-premium-card {
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  border-radius: var(--mapa-radius-lg);
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(68, 5, 122, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.winner-premium-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(68, 5, 122, 0.08);
  border-color: #d8b4fe;
}

.winner-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

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

.winner-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* ==========================================================================
   Canonical Pagination (Theme Magenta)
   ========================================================================== */
.mapa-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--mapa-line);
}

.mapa-pagination-total {
  font-size: 12.5px;
  color: var(--mapa-muted);
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 500;
}

.mapa-pagination-total strong {
  color: var(--mapa-magenta);
  font-weight: 800;
}

.mapa-pagination-wrap .ant-pagination-item {
  border-radius: 8px;
  font-weight: 700;
  border-color: #fbcfe8;
  transition: all 0.2s ease;
}

.mapa-pagination-wrap .ant-pagination-item:hover {
  border-color: var(--mapa-magenta);
}

.mapa-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: transparent !important;
}

.mapa-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

/* ==========================================================================
   Quick Horizontal Province Chips Bar
   ========================================================================== */
.mapa-quick-provinces-wrap {
  margin-bottom: 20px;
  position: relative;
}

.mapa-quick-provinces-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mapa-quick-provinces-scroll::-webkit-scrollbar {
  display: none;
}

.mapa-province-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--mapa-line);
  color: var(--mapa-purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(68, 5, 122, 0.04);
}

.mapa-province-pill:hover {
  border-color: #d8b4fe;
  background: #faf5ff;
}

.mapa-province-pill:active {
  transform: scale(0.96);
}

.mapa-province-pill.active {
  background: linear-gradient(135deg, var(--mapa-pink) 0%, var(--mapa-magenta) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.25);
}

.mapa-province-pill.active .mapa-pill-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.mapa-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--mapa-muted);
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   Mobile Segmented Tabs Controller
   ========================================================================== */
.mapa-mobile-tabs-container {
  display: none;
  margin-bottom: 16px;
}

/* ==========================================================================
   Mobile Selection Banner inside Map Card
   ========================================================================== */
.mapa-mobile-selection-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #f5f0fb 100%);
  border: 1.5px solid #fbcfe8;
  border-radius: var(--mapa-radius-md);
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
  animation: slideUpFade 0.25s ease-out;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.selection-banner-prov {
  font-weight: 800;
  font-size: 14px;
  color: var(--mapa-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-banner-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--mapa-magenta);
}

.mapa-mobile-see-winners-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--mapa-pink) 0%, var(--mapa-magenta) 100%);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.25);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mapa-mobile-see-winners-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (min-width: 769px) {
  .mapa-map-card.mobile-hidden,
  .mapa-detail-card.mobile-hidden {
    display: block !important;
  }
}

@media (max-width: 1200px) {
  .mapa-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mapa-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .mapa-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mapa-page-wrapper {
    padding-top: 92px;
    padding-bottom: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .mapa-header-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
    margin-bottom: 14px;
  }

  .mapa-header-left {
    gap: 12px;
  }

  .mapa-header-emblem {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: 14px;
  }

  .mapa-header-titles h1 {
    font-size: 19px;
  }

  .mapa-header-titles p {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .mapa-header-right {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mapa-badge-pill {
    flex: 1;
    justify-content: center;
    font-size: 11.5px;
    height: 38px;
    padding: 0 8px;
  }

  .mapa-play-cta {
    flex: 1;
    justify-content: center;
    font-size: 12.5px;
    height: 38px;
    padding: 0 12px;
  }

  /* 2x2 Compact Stats Grid: saves ~250px vertical scroll */
  .mapa-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
    margin-bottom: 14px;
  }

  .mapa-stat-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: var(--mapa-radius-md);
  }

  .mapa-stat-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }

  .mapa-stat-label {
    font-size: 10.5px;
    line-height: 1.2;
  }

  .mapa-stat-value {
    font-size: 14px;
    line-height: 1.2;
  }

  .mapa-stat-subtext {
    display: none;
  }

  /* Filter Card Mobile */
  .mapa-filter-card {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: var(--mapa-radius-md);
  }

  .mapa-primary-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 0;
  }

  .mapa-search-clear-col .mapa-clear-btn {
    width: 100%;
    justify-content: center;
    height: 38px;
  }

  .mapa-mobile-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
  }

  .mapa-mobile-filter-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--mapa-line);
    color: var(--mapa-purple);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .mapa-mobile-filter-toggle-btn.active {
    background: var(--mapa-purple-light);
    border-color: #d8b4fe;
    color: var(--mapa-purple);
  }

  .mapa-secondary-filters.mobile-collapsed {
    display: none;
  }

  .mapa-secondary-filters {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--mapa-line);
  }

  .mapa-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .desktop-clear-col {
    display: none;
  }

  /* Mobile Segmented Tabs: Sticky below navbar */
  .mapa-mobile-tabs-container {
    display: block;
    position: sticky;
    top: 72px;
    z-index: 20;
    background: var(--mapa-bg);
    padding: 4px 0 10px;
  }

  .mapa-mobile-tabs-track {
    display: flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 9999px;
    gap: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .mapa-mobile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    min-height: 44px;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .mapa-mobile-tab-btn:active {
    transform: scale(0.97);
  }

  .mapa-mobile-tab-btn.active {
    background: #ffffff;
    color: var(--mapa-purple);
    box-shadow: 0 2px 8px rgba(68, 5, 122, 0.12);
  }

  /* Mobile Content Grid Switching */
  .mapa-map-card.mobile-hidden,
  .mapa-detail-card.mobile-hidden {
    display: none !important;
  }

  .dr-svg-map-wrapper {
    min-height: 260px;
  }

  .winner-premium-card {
    padding: 14px 16px;
  }

  .mapa-pagination-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}
/* ==========================================================================
   Predicciones de Palés - Boleto Ganador Design System
   Matches Un Día Como Hoy, Caliente & Tabla de Números canonical standards
   ========================================================================== */

.pred-pales-wrapper {
  --pale-accent: #44057a;
  --pale-accent-light: #7c3aed;
  --pale-magenta: #be185d;
  --pale-magenta-light: #ec4899;
  --pale-gold: #f59e0b;
  --pale-gold-dark: #d97706;
  --pale-emerald: #10b981;
  --pale-emerald-dark: #059669;
  --pale-ink: #0f172a;
  --pale-muted: #64748b;
  --pale-line: #ede8f5;
  --pale-surface: #ffffff;
  --pale-tint: #faf7fd;
  --pale-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 56px;
  color: var(--pale-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.pred-pales-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--pale-magenta);
  outline-offset: 3px;
}

.pred-pales-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.pred-pales-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--pale-muted);
  font-size: 12px;
  line-height: 1.4;
}

.pred-pales-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--pale-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.pred-pales-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--pale-magenta);
}

.pred-pales-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.pred-pales-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.pred-pales-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pred-pales-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1.5px solid #fce7f3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: var(--pale-magenta);
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.12);
  flex-shrink: 0;
}

.pred-pales-hero-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pred-pales-hero-titles {
  min-width: 0;
}

.pred-pales-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pale-magenta);
  margin-bottom: 4px;
}

.pred-pales-hero-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--pale-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pred-pales-hero-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--pale-muted);
  font-weight: 500;
  line-height: 1.45;
}

.pred-pales-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pred-pales-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pred-pales-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pale-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Canonical Shimmer CTA Button "Juega online" */
.pred-pales-cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pred-pales-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.45);
}

.pred-pales-cta-btn:active {
  transform: translateY(0);
}

.pred-pales-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: pales-shimmer 3s infinite ease-in-out;
}

@keyframes pales-shimmer {
  0% { left: -120%; }
  30%, 100% { left: 180%; }
}

/* ==========================================================================
   Controls Card & Algorithm Selector
   ========================================================================== */
.pred-pales-controls-card {
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.pred-pales-algo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pred-pales-algo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.pred-pales-algo-card:hover {
  border-color: #fbcfe8;
  background: #fdf2f8;
  transform: translateY(-1.5px);
}

.pred-pales-algo-card.active {
  border-color: var(--pale-magenta);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.12), inset 0 0 0 1px var(--pale-magenta);
}

.pred-pales-algo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--pale-muted);
  font-size: 17px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pred-pales-algo-card.active .pred-pales-algo-icon {
  background: linear-gradient(135deg, var(--pale-magenta-light) 0%, var(--pale-magenta) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.3);
}

.pred-pales-algo-info {
  flex: 1;
  min-width: 0;
}

.pred-pales-algo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pale-ink);
  margin-bottom: 2px;
}

.pred-pales-algo-card.active .pred-pales-algo-title {
  color: var(--pale-magenta);
}

.pred-pales-algo-desc {
  font-size: 11.5px;
  color: var(--pale-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pred-pales-algo-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--pale-magenta);
  border: 1px solid #fbcfe8;
}

.pred-pales-tab-desc {
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

.pred-pales-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.pred-pales-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}

/* ==========================================================================
   Canonical Lottery Selector (32x24px images, centered, no jump)
   ========================================================================== */
.pred-pales-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1e293b;
  min-height: 32px;
}

.pred-pales-lottery-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
  flex-shrink: 0;
}

.pred-pales-controls-card .ant-select-selector {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
}

.pred-pales-controls-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
}

.pred-pales-controls-card .ant-select-selection-item::after {
  display: none !important;
}

.pred-pales-controls-card .ant-picker {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
  width: 100% !important;
}

.pred-pales-controls-card .ant-input-affix-wrapper {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
}

/* ==========================================================================
   Top 10 Most Frequent Numbers Panel
   ========================================================================== */
.pred-pales-top-panel {
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.pred-pales-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.pred-pales-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--pale-ink);
  margin: 0;
}

.pred-pales-top-hint {
  font-size: 12px;
  color: var(--pale-muted);
}

.pred-pales-top-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  justify-content: flex-start;
  align-items: center;
}

.pred-pales-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 62px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pred-pales-top-item:hover {
  transform: translateY(-2px);
  border-color: var(--pale-magenta);
  background: #fdf2f8;
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.12);
}

.pred-pales-top-count {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Canonical 3D Bolos (Relief, shadow & shine)
   ========================================================================== */
.pale-bolo-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pale-bolo-3d:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Palé 1st number: Brand Magenta */
.pale-bolo-1 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Palé 2nd number: Brand Purple */
.pale-bolo-2 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

/* Regular / Gold bolo */
.pale-bolo-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Emerald bolo */
.pale-bolo-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.pale-bolo-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pale-bolo-divider {
  width: 12px;
  height: 3px;
  background: linear-gradient(90deg, #ec4899, #7c3aed);
  border-radius: 2px;
  opacity: 0.7;
}

/* ==========================================================================
   Results Section & Dual View Switcher
   ========================================================================== */
.pred-pales-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.pred-pales-results-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pred-pales-results-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--pale-ink);
}

.pred-pales-results-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--pale-magenta);
  border: 1px solid #fbcfe8;
}

.pred-pales-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Canonical Search input */
.pred-pales-search-wrap {
  width: 220px;
}

.pred-pales-search-wrap .ant-input-affix-wrapper {
  border-radius: 9999px !important;
  border: 1.5px solid #cbd5e1 !important;
  height: 38px !important;
  padding: 0 10px 0 6px !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
}

.pred-pales-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.pred-pales-search-wrap .ant-input-affix-wrapper-focused,
.pred-pales-search-wrap.pred-pales-search-active .ant-input-affix-wrapper {
  border-color: var(--pale-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
}

.pred-pales-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pred-pales-search-wrap .ant-input-affix-wrapper-focused .pred-pales-search-icon-badge,
.pred-pales-search-wrap.pred-pales-search-active .pred-pales-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
}

.pred-pales-search-wrap .ant-input-affix-wrapper-focused .pred-pales-search-icon-badge .anticon,
.pred-pales-search-wrap.pred-pales-search-active .pred-pales-search-icon-badge .anticon {
  color: #ffffff !important;
}

.pred-pales-search-wrap .ant-input {
  font-weight: 700;
  font-size: 13px;
  color: #1e1b4b;
  font-variant-numeric: tabular-nums;
  border: none !important;
  background: transparent !important;
}

.pred-pales-search-wrap .ant-input::placeholder {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12.5px;
}

.pred-pales-search-hint-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  margin-left: 2px;
  flex-shrink: 0;
}

.pred-pales-search-mini-bolo {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  animation: popInBolo 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInBolo {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Dual View Toggle Track */
.pred-pales-view-track {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.pred-pales-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-pales-view-btn:hover:not(.active) {
  color: var(--pale-ink);
  background: rgba(255, 255, 255, 0.6);
}

.pred-pales-view-btn.active {
  background: #ffffff;
  color: var(--pale-magenta);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Table View (Ant Design Table Canonical Customization)
   ========================================================================== */
.pred-pales-table-card {
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
  margin-bottom: 24px;
}

.pred-pales-table .ant-table-thead > tr > th {
  background: #faf7fd !important;
  color: #475569 !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1.5px solid #ede8f5 !important;
  padding: 14px 16px !important;
}

.pred-pales-table .ant-table-tbody > tr > td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
}

.pred-pales-table .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

.pred-pales-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.pred-pales-rank-top1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.pred-pales-rank-top2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.35);
}

.pred-pales-rank-top3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

/* Action Button: Jugar en Zeus */
.pred-pales-btn-zeus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--pale-magenta-light) 0%, var(--pale-magenta) 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-pales-btn-zeus:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9d174d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.35);
  color: #ffffff;
}

.pred-pales-btn-sorteos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-pales-btn-sorteos:hover {
  border-color: var(--pale-magenta);
  color: var(--pale-magenta);
  background: #fdf2f8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Cards Grid View
   ========================================================================== */
.pred-pales-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pred-pales-item-card {
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pred-pales-item-card:hover {
  transform: translateY(-3px);
  border-color: #fbcfe8;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.08);
}

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

.pred-pales-card-bolos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 16px 0;
}

.pred-pales-card-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  flex: 1;
}

.pred-pales-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.pred-pales-stat-row:last-child {
  border-bottom: none;
}

.pred-pales-stat-label {
  color: var(--pale-muted);
  font-weight: 500;
}

.pred-pales-stat-value {
  color: var(--pale-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pred-pales-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.pred-pales-card-actions .pred-pales-btn-zeus,
.pred-pales-card-actions .pred-pales-btn-sorteos {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   Canonical Pink/Magenta Pagination
   ========================================================================== */
.pred-pales-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--pale-line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.02);
  margin-bottom: 24px;
}

.pred-pales-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #475569;
  font-size: 12.5px;
}

.pred-pales-pagination-total strong {
  color: var(--pale-magenta);
  font-weight: 800;
}

.pred-pales-pagination-wrap .ant-pagination-item {
  width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}

.pred-pales-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
}

.pred-pales-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px) !important;
}

.pred-pales-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.35) !important;
}

.pred-pales-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

.pred-pales-pagination-wrap .ant-pagination-prev button,
.pred-pales-pagination-wrap .ant-pagination-next button {
  height: 38px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pred-pales-pagination-wrap .ant-pagination-prev:hover button,
.pred-pales-pagination-wrap .ant-pagination-next:hover button {
  border-color: #ec4899 !important;
  background: #fdf2f8 !important;
}

/* ==========================================================================
   Ticket Strip Modal
   ========================================================================== */
.pales-modal .ant-modal-content {
  border-radius: 20px !important;
  padding: 24px !important;
}

.ticket-strip {
  display: flex;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.ticket-left {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #faf7fd;
  border-right: 1.5px dashed #cbd5e1;
  min-width: 170px;
}

.ticket-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  padding: 12px 16px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .pred-pales-algo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pred-pales-wrapper {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .pred-pales-hero-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pred-pales-hero-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .pred-pales-cta-btn,
  .pred-pales-status-badge {
    flex: 1;
    justify-content: center;
  }

  .pred-pales-hero-title {
    font-size: 20px;
  }

  .pred-pales-controls-card {
    padding: 16px;
  }

  .pred-pales-form-grid {
    grid-template-columns: 1fr;
  }

  .pred-pales-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pred-pales-results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pred-pales-search-wrap {
    width: 100%;
  }

  .pred-pales-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .pale-bolo-3d {
    width: 38px;
    height: 38px;
    font-size: 15.5px;
  }
}

@media (max-width: 480px) {
  .pred-pales-cards-grid {
    grid-template-columns: 1fr;
  }

  .pred-pales-top-grid {
    justify-content: center;
  }
}
/* ==========================================================================
   Predicciones de Tripletas - Boleto Ganador Design System
   Matches Un Día Como Hoy, Caliente & Tabla de Números canonical standards
   ========================================================================== */

.pred-tripletas-wrapper {
  --trip-accent: #44057a;
  --trip-accent-light: #7c3aed;
  --trip-magenta: #be185d;
  --trip-magenta-light: #ec4899;
  --trip-gold: #f59e0b;
  --trip-gold-dark: #d97706;
  --trip-emerald: #10b981;
  --trip-emerald-dark: #059669;
  --trip-ink: #0f172a;
  --trip-muted: #64748b;
  --trip-line: #ede8f5;
  --trip-surface: #ffffff;
  --trip-tint: #faf7fd;
  --trip-glow: rgba(68, 5, 122, 0.08);

  min-width: 0;
  padding-top: 104px;
  padding-bottom: 56px;
  color: var(--trip-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
}

.pred-tripletas-wrapper :is(a, button, input):focus-visible {
  outline: 3px solid var(--trip-magenta);
  outline-offset: 3px;
}

.pred-tripletas-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  min-width: 0;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.pred-tripletas-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--trip-muted);
  font-size: 12px;
  line-height: 1.4;
}

.pred-tripletas-breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: var(--trip-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.pred-tripletas-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--trip-magenta);
}

.pred-tripletas-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 10px;
}

/* ==========================================================================
   Hero Header Card
   ========================================================================== */
.pred-tripletas-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.04);
}

.pred-tripletas-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pred-tripletas-hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1.5px solid #fce7f3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  color: var(--trip-magenta);
  box-shadow: 0 3px 10px rgba(190, 24, 93, 0.12);
  flex-shrink: 0;
}

.pred-tripletas-hero-emblem img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pred-tripletas-hero-titles {
  min-width: 0;
}

.pred-tripletas-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--trip-magenta);
  margin-bottom: 4px;
}

.pred-tripletas-hero-title {
  margin: 0 0 4px 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--trip-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pred-tripletas-hero-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--trip-muted);
  font-weight: 500;
  line-height: 1.45;
}

.pred-tripletas-hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pred-tripletas-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.pred-tripletas-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trip-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* Canonical Shimmer CTA Button "Juega online" */
.pred-tripletas-cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #220240;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.35);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pred-tripletas-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 165, 0, 0.45);
}

.pred-tripletas-cta-btn:active {
  transform: translateY(0);
}

.pred-tripletas-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: tripletas-shimmer 3s infinite ease-in-out;
}

@keyframes tripletas-shimmer {
  0% { left: -120%; }
  30%, 100% { left: 180%; }
}

/* ==========================================================================
   Controls Card & Algorithm Selector
   ========================================================================== */
.pred-tripletas-controls-card {
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.pred-tripletas-algo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pred-tripletas-algo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.pred-tripletas-algo-card:hover {
  border-color: #fbcfe8;
  background: #fdf2f8;
  transform: translateY(-1.5px);
}

.pred-tripletas-algo-card.active {
  border-color: var(--trip-magenta);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.12), inset 0 0 0 1px var(--trip-magenta);
}

.pred-tripletas-algo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--trip-muted);
  font-size: 17px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pred-tripletas-algo-card.active .pred-tripletas-algo-icon {
  background: linear-gradient(135deg, var(--trip-magenta-light) 0%, var(--trip-magenta) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.3);
}

.pred-tripletas-algo-info {
  flex: 1;
  min-width: 0;
}

.pred-tripletas-algo-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--trip-ink);
  margin-bottom: 2px;
}

.pred-tripletas-algo-card.active .pred-tripletas-algo-title {
  color: var(--trip-magenta);
}

.pred-tripletas-algo-desc {
  font-size: 11.5px;
  color: var(--trip-muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pred-tripletas-algo-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--trip-magenta);
  border: 1px solid #fbcfe8;
}

.pred-tripletas-tab-desc {
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

.pred-tripletas-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: flex-end;
}

.pred-tripletas-field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}

/* ==========================================================================
   Canonical Lottery Selector (32x24px images, centered, no jump)
   ========================================================================== */
.pred-tripletas-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #1e293b;
  min-height: 32px;
}

.pred-tripletas-lottery-thumb {
  width: 32px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1px;
  flex-shrink: 0;
}

.pred-tripletas-controls-card .ant-select-selector {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
}

.pred-tripletas-controls-card .ant-select-selection-item {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  line-height: normal !important;
}

.pred-tripletas-controls-card .ant-select-selection-item::after {
  display: none !important;
}

.pred-tripletas-controls-card .ant-picker {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
  width: 100% !important;
}

.pred-tripletas-controls-card .ant-input-affix-wrapper {
  border-radius: 12px !important;
  border-color: #cbd5e1 !important;
  height: 42px !important;
}

/* ==========================================================================
   Top 10 Most Frequent Numbers Panel
   ========================================================================== */
.pred-tripletas-top-panel {
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
}

.pred-tripletas-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.pred-tripletas-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--trip-ink);
  margin: 0;
}

.pred-tripletas-top-hint {
  font-size: 12px;
  color: var(--trip-muted);
}

.pred-tripletas-top-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  justify-content: flex-start;
  align-items: center;
}

.pred-tripletas-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #faf7fd;
  border: 1px solid #ede8f5;
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 62px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pred-tripletas-top-item:hover {
  transform: translateY(-2px);
  border-color: var(--trip-magenta);
  background: #fdf2f8;
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.12);
}

.pred-tripletas-top-count {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Canonical 3D Bolos (Relief, shadow & shine)
   ========================================================================== */
.triple-bolo-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.triple-bolo-3d:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Tripleta 1st number: Gold / Amber */
.triple-bolo-1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tripleta 2nd number: Brand Magenta */
.triple-bolo-2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  box-shadow: 0 3px 8px rgba(190, 24, 93, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Tripleta 3rd number: Brand Purple */
.triple-bolo-3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.38), inset 0 1px 2px rgba(255, 255, 255, 0.75);
}

/* Emerald bolo */
.triple-bolo-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.triple-bolo-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.triple-bolo-divider {
  width: 8px;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #ec4899);
  border-radius: 2px;
  opacity: 0.7;
}

/* ==========================================================================
   Results Section & Dual View Switcher
   ========================================================================== */
.pred-tripletas-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.pred-tripletas-results-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pred-tripletas-results-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--trip-ink);
}

.pred-tripletas-results-count {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #fdf2f8;
  color: var(--trip-magenta);
  border: 1px solid #fbcfe8;
}

.pred-tripletas-results-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Canonical Search input */
.pred-tripletas-search-wrap {
  width: 220px;
}

.pred-tripletas-search-wrap .ant-input-affix-wrapper {
  border-radius: 9999px !important;
  border: 1.5px solid #cbd5e1 !important;
  height: 38px !important;
  padding: 0 10px 0 6px !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
}

.pred-tripletas-search-wrap .ant-input-affix-wrapper:hover {
  border-color: #f472b6 !important;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.1) !important;
}

.pred-tripletas-search-wrap .ant-input-affix-wrapper-focused,
.pred-tripletas-search-wrap.pred-tripletas-search-active .ant-input-affix-wrapper {
  border-color: var(--trip-magenta) !important;
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.14) !important;
}

.pred-tripletas-search-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.08);
  margin-right: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pred-tripletas-search-wrap .ant-input-affix-wrapper-focused .pred-tripletas-search-icon-badge,
.pred-tripletas-search-wrap.pred-tripletas-search-active .pred-tripletas-search-icon-badge {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.3);
}

.pred-tripletas-search-wrap .ant-input-affix-wrapper-focused .pred-tripletas-search-icon-badge .anticon,
.pred-tripletas-search-wrap.pred-tripletas-search-active .pred-tripletas-search-icon-badge .anticon {
  color: #ffffff !important;
}

.pred-tripletas-search-wrap .ant-input {
  font-weight: 700;
  font-size: 13px;
  color: #1e1b4b;
  font-variant-numeric: tabular-nums;
  border: none !important;
  background: transparent !important;
}

.pred-tripletas-search-wrap .ant-input::placeholder {
  font-weight: 500;
  color: #94a3b8;
  font-size: 12.5px;
}

.pred-tripletas-search-hint-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  margin-left: 2px;
  flex-shrink: 0;
}

.pred-tripletas-search-mini-bolo {
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(190, 24, 93, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  animation: popInBolo 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInBolo {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Dual View Toggle Track */
.pred-tripletas-view-track {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.pred-tripletas-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-tripletas-view-btn:hover:not(.active) {
  color: var(--trip-ink);
  background: rgba(255, 255, 255, 0.6);
}

.pred-tripletas-view-btn.active {
  background: #ffffff;
  color: var(--trip-magenta);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Table View (Ant Design Table Canonical Customization)
   ========================================================================== */
.pred-tripletas-table-card {
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(68, 5, 122, 0.03);
  margin-bottom: 24px;
}

.pred-tripletas-table .ant-table-thead > tr > th {
  background: #faf7fd !important;
  color: #475569 !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1.5px solid #ede8f5 !important;
  padding: 14px 16px !important;
}

.pred-tripletas-table .ant-table-tbody > tr > td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
}

.pred-tripletas-table .ant-table-tbody > tr:hover > td {
  background: #fdf2f8 !important;
}

.pred-tripletas-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.pred-tripletas-rank-top1 {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

.pred-tripletas-rank-top2 {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.35);
}

.pred-tripletas-rank-top3 {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

/* Action Button: Jugar en Zeus */
.pred-tripletas-btn-zeus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--trip-magenta-light) 0%, var(--trip-magenta) 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.25);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-tripletas-btn-zeus:hover {
  background: linear-gradient(135deg, #f472b6 0%, #9d174d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(190, 24, 93, 0.35);
  color: #ffffff;
}

.pred-tripletas-btn-sorteos {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #ffffff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.pred-tripletas-btn-sorteos:hover {
  border-color: var(--trip-magenta);
  color: var(--trip-magenta);
  background: #fdf2f8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Cards Grid View
   ========================================================================== */
.pred-tripletas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pred-tripletas-item-card {
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pred-tripletas-item-card:hover {
  transform: translateY(-3px);
  border-color: #fbcfe8;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.08);
}

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

.pred-tripletas-card-bolos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 16px 0;
}

.pred-tripletas-card-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  flex: 1;
}

.pred-tripletas-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.pred-tripletas-stat-row:last-child {
  border-bottom: none;
}

.pred-tripletas-stat-label {
  color: var(--trip-muted);
  font-weight: 500;
}

.pred-tripletas-stat-value {
  color: var(--trip-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pred-tripletas-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.pred-tripletas-card-actions .pred-tripletas-btn-zeus,
.pred-tripletas-card-actions .pred-tripletas-btn-sorteos {
  flex: 1;
  justify-content: center;
}

/* ==========================================================================
   Canonical Pink/Magenta Pagination
   ========================================================================== */
.pred-tripletas-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--trip-line);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(68, 5, 122, 0.02);
  margin-bottom: 24px;
}

.pred-tripletas-pagination-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #475569;
  font-size: 12.5px;
}

.pred-tripletas-pagination-total strong {
  color: var(--trip-magenta);
  font-weight: 800;
}

.pred-tripletas-pagination-wrap .ant-pagination-item {
  width: 38px !important;
  height: 38px !important;
  line-height: 36px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  transition: all 0.15s ease !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-item a {
  color: #334155 !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-item:hover {
  background: #fdf2f8 !important;
  border-color: #ec4899 !important;
  transform: translateY(-1px) !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-item-active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%) !important;
  border-color: #be185d !important;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.35) !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-item-active a {
  color: #ffffff !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-prev button,
.pred-tripletas-pagination-wrap .ant-pagination-next button {
  height: 38px !important;
  border-radius: 10px !important;
  border: 1.5px solid #fbcfe8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pred-tripletas-pagination-wrap .ant-pagination-prev:hover button,
.pred-tripletas-pagination-wrap .ant-pagination-next:hover button {
  border-color: #ec4899 !important;
  background: #fdf2f8 !important;
}

/* ==========================================================================
   Ticket Strip Modal
   ========================================================================== */
.tripletas-modal .ant-modal-content {
  border-radius: 20px !important;
  padding: 24px !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .pred-tripletas-algo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pred-tripletas-wrapper {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .pred-tripletas-hero-card {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .pred-tripletas-hero-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .pred-tripletas-cta-btn,
  .pred-tripletas-status-badge {
    flex: 1;
    justify-content: center;
  }

  .pred-tripletas-hero-title {
    font-size: 20px;
  }

  .pred-tripletas-controls-card {
    padding: 16px;
  }

  .pred-tripletas-form-grid {
    grid-template-columns: 1fr;
  }

  .pred-tripletas-results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pred-tripletas-results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pred-tripletas-search-wrap {
    width: 100%;
  }

  .pred-tripletas-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .triple-bolo-3d {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .pred-tripletas-cards-grid {
    grid-template-columns: 1fr;
  }

  .pred-tripletas-top-grid {
    justify-content: center;
  }
}
/* Shared navigation with refined, rich deep-purple tone (#2e0452 to #480780) */
.modern-nav.polished-nav {
  background: linear-gradient(135deg, rgba(46, 4, 82, 0.98) 0%, rgba(60, 5, 108, 0.98) 50%, rgba(72, 7, 128, 0.97) 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(46, 4, 82, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.polished-nav .nav-container {
  max-width: 1200px;
  padding-inline: 20px;
}

.polished-nav .desktop-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.polished-nav .desktop-brand-link:hover {
  transform: translateY(-1px);
}

.polished-nav .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.polished-nav .logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.polished-nav .logo-image {
  width: 56px !important;
  height: 56px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

.polished-nav .logo-image img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  filter: drop-shadow(0 3px 8px rgba(236, 19, 121, 0.45)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.polished-nav .desktop-brand-link:hover .logo-image img {
  transform: scale(1.06) !important;
  filter: drop-shadow(0 4px 12px rgba(236, 19, 121, 0.7)) drop-shadow(0 0 10px rgba(250, 201, 10, 0.35));
}

.polished-nav .brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  user-select: none;
}

.polished-nav .brand-name {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.polished-nav .desktop-brand-link:hover .brand-name {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.polished-nav .brand-tagline {
  color: #fac90a;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-style: italic;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s ease;
}

.polished-nav .desktop-brand-link:hover .brand-tagline {
  filter: brightness(1.15);
}

.polished-nav .menu-container {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.polished-nav .menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  min-height: 38px;
  padding: 8px 15px !important;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.polished-nav .menu-button:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.polished-nav .menu-button:active {
  transform: translateY(0);
}

.polished-nav .menu-button.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 -2.5px 0 #fac90a;
}

/* Juega Online golden CTA */
@keyframes nav-cta-shimmer {
  0% { transform: translateX(-150%) rotate(25deg); }
  35%, 100% { transform: translateX(260%) rotate(25deg); }
}

.polished-nav .play-online-button,
.polished-drawer .mobile-play-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #350460 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 4px 14px rgba(255, 165, 0, 0.42), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.2px;
  min-height: 38px;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
}

.polished-drawer .mobile-play-button {
  width: calc(100% - 32px) !important;
  margin: 16px 16px 20px !important;
  min-height: 46px;
  font-size: 15px;
  border-radius: 14px !important;
}

.polished-nav .play-online-button::after,
.polished-drawer .mobile-play-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: nav-cta-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}

.polished-nav .play-online-button:hover,
.polished-drawer .mobile-play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 165, 0, 0.58), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  filter: brightness(1.08);
  color: #240242 !important;
}

.polished-nav .play-online-button:active,
.polished-drawer .mobile-play-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.35) !important;
}

.nav-cta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(53, 4, 96, 0.14);
  color: #350460;
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
  flex-shrink: 0;
}

.polished-nav .play-online-button:hover .nav-cta-chip,
.polished-drawer .mobile-play-button:hover .nav-cta-chip {
  transform: rotate(-10deg) scale(1.14);
  background: rgba(53, 4, 96, 0.2);
}

.nav-cta-text {
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* Social & Account Section */
.polished-nav .nav-account-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.polished-nav .mobile-social-icon-wrapper,
.polished-drawer .mobile-social-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.polished-nav .mobile-social-icon,
.polished-drawer .mobile-social-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: #fff !important;
}

.polished-nav .mobile-social-row,
.polished-drawer .mobile-social-row {
  gap: 12px;
}

@media (hover: hover) {
  .polished-nav .mobile-social-icon-wrapper:hover,
  .polished-drawer .mobile-social-icon-wrapper:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
  }

  .polished-drawer .mobile-youtube-wrapper:hover {
    background: rgba(255, 0, 0, 0.22) !important;
    border-color: rgba(255, 0, 0, 0.55) !important;
    color: #ff4d4f !important;
  }

  .polished-drawer .mobile-facebook-wrapper:hover {
    background: rgba(24, 119, 242, 0.22) !important;
    border-color: rgba(24, 119, 242, 0.55) !important;
    color: #4096ff !important;
  }

  .polished-drawer .mobile-instagram-wrapper:hover {
    background: rgba(228, 64, 95, 0.22) !important;
    border-color: rgba(228, 64, 95, 0.55) !important;
    color: #ff7875 !important;
  }
}

/* Mobile Header & Toggle - Standard 64px Height */
.polished-nav .nav-mobile-header {
  padding: 0 16px !important;
  min-height: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.polished-nav .nav-mobile-bar {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.polished-nav .mobile-brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  min-width: 0 !important;
}

.polished-nav .mobile-brand-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  min-width: 0 !important;
}

.polished-nav .mobile-brand-name {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.2px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
  white-space: nowrap !important;
}

.polished-nav .mobile-brand-slogan {
  color: #fac90a !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.15px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  white-space: nowrap !important;
  font-style: italic !important;
}

.polished-nav .nav-mobile-header .logo-image {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.polished-nav .nav-mobile-header .logo-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.polished-nav .mobile-menu-button {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 11px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  flex-shrink: 0 !important;
}

.polished-nav .mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  transform: scale(1.04);
}

/* Accessible focus states */
.polished-nav :is(button, a):focus-visible,
.polished-drawer :is(button, a):focus-visible {
  outline: 2px solid #fac90a;
  outline-offset: 3px;
}

/* Mobile Drawer */
.polished-drawer.mobile-drawer,
.polished-drawer .ant-drawer-content,
.polished-drawer .ant-drawer-body,
.polished-drawer .ant-drawer-wrapper-body {
  background: linear-gradient(180deg, #2e0452 0%, #3c056c 50%, #480780 100%) !important;
}

.polished-drawer .ant-drawer-header {
  display: none !important;
}

.polished-drawer .nav-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.polished-drawer .nav-drawer-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.08);
}

.polished-drawer .nav-drawer-close:active {
  transform: scale(0.95);
}

.polished-drawer .mobile-header {
  position: relative;
  padding: 16px 18px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.polished-drawer .mobile-logo-wrapper {
  margin: 0;
}

.polished-drawer .mobile-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.polished-drawer .mobile-logo::before,
.polished-drawer .mobile-logo::after {
  content: none !important;
}

.polished-drawer .mobile-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  filter: none;
}

.polished-drawer .mobile-play-button {
  margin: 14px 12px 10px;
  background: linear-gradient(135deg, #fac90a 0%, #ff9800 100%) !important;
  color: #2e0452 !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(250, 201, 10, 0.35) !important;
}

.polished-drawer .mobile-menu-item,
.polished-drawer .mobile-submenu-header {
  width: calc(100% - 20px);
  margin: 3px 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.polished-drawer .mobile-menu-item:hover,
.polished-drawer .mobile-submenu-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.polished-drawer .mobile-menu-item.active,
.polished-drawer .mobile-submenu-header.active {
  background: rgba(250, 201, 10, 0.14) !important;
  border-color: rgba(250, 201, 10, 0.35) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 3.5px 0 0 #fac90a;
}

.polished-drawer .mobile-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.polished-drawer .mobile-menu-item:hover .mobile-menu-icon,
.polished-drawer .mobile-submenu-header:hover .mobile-menu-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.polished-drawer .mobile-menu-item.active .mobile-menu-icon,
.polished-drawer .mobile-submenu-header.active .mobile-menu-icon {
  background: #fac90a;
  border-color: #fac90a;
  color: #2e0452;
  box-shadow: 0 0 12px rgba(250, 201, 10, 0.4);
}

.polished-drawer .mobile-submenu-toggle {
  margin: 4px 0;
}

/* Tablas Submenu Content: Spacious, Accessible Card Grid (No cramped stacking, No nested scroll) */
.polished-drawer .mobile-submenu-content {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
  margin: 6px 10px 16px !important;
  border-radius: 16px !important;
  padding: 12px 10px 14px !important;
  overflow: visible !important;
  overflow-x: hidden !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-sizing: border-box !important;
  width: calc(100% - 20px) !important;
}

.polished-drawer .mobile-submenu-content:not(.open) {
  display: none !important;
}

.polished-drawer .mobile-submenu-content.open {
  max-height: none !important;
  overflow: visible !important;
}

.polished-drawer .nav-table-group {
  padding: 2px 0 !important;
}

.polished-drawer .nav-table-group:not(:first-child) {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-top: 14px !important;
  margin-top: 12px !important;
}

.polished-drawer .nav-table-group h3 {
  margin: 2px 4px 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #fac90a !important; /* Gold category tag */
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.polished-drawer .mobile-submenu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 46px !important;
  padding: 11px 14px !important;
  margin: 6px 0 !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.polished-drawer .mobile-submenu-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
}

.polished-drawer .mobile-submenu-item.active {
  color: #fac90a !important;
  font-weight: 700 !important;
  background: rgba(250, 201, 10, 0.16) !important;
  border-color: rgba(250, 201, 10, 0.4) !important;
  box-shadow: inset 3.5px 0 0 #fac90a, 0 2px 8px rgba(250, 201, 10, 0.15) !important;
}

.polished-drawer .submenu-item-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.polished-drawer .submenu-item-arrow {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 13px !important;
  margin-left: 8px !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.polished-drawer .mobile-submenu-item:hover .submenu-item-arrow,
.polished-drawer .mobile-submenu-item.active .submenu-item-arrow {
  color: #fac90a !important;
  transform: translateX(3px) !important;
}

.polished-drawer .mobile-footer {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.polished-drawer .mobile-footer-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

/* Desktop Dropdown Tables Menu - Clean White Background Theme */
.dropdown-menu,
.ant-dropdown-menu.dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(46, 4, 82, 0.08) !important;
  padding: 8px !important;
}

.dropdown-menu .ant-dropdown-menu-item {
  color: #1e293b !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  margin: 2px 4px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.dropdown-menu .ant-dropdown-menu-item:hover {
  background: #f5f3ff !important;
  color: #2e0452 !important;
  font-weight: 600 !important;
  transform: translateX(2px);
}

.dropdown-menu .ant-dropdown-menu-item-group-title {
  color: #581c87 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  padding: 10px 14px 4px !important;
}

.dropdown-menu .ant-dropdown-menu-item-group:not(:first-child) {
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
  padding-top: 4px;
}

.dropdown-menu .ant-dropdown-menu-item a {
  display: block;
  min-height: 24px;
  color: inherit !important;
}

.dropdown-menu .ant-dropdown-menu-item-selected {
  background: #ede9fe !important;
  color: #581c87 !important;
  font-weight: 700 !important;
  border-left: 3px solid #fac90a !important;
}

#desktop-tables-menu {
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#desktop-tables-menu::-webkit-scrollbar {
  width: 6px;
}

#desktop-tables-menu::-webkit-scrollbar-track {
  background: transparent;
}

#desktop-tables-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#desktop-tables-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#desktop-tables-menu .ant-dropdown-menu-item-group-title {
  color: #581c87 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

#desktop-tables-menu a:focus-visible {
  outline: 2px solid #581c87;
  outline-offset: 2px;
}

/* Responsive Grid Configuration */
@media (min-width: 1219px) {
  .polished-nav .nav-container > .ant-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
  }
  .polished-nav .nav-container > .ant-row > .ant-col {
    width: auto;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 1218px) {
  .polished-nav > .nav-container {
    display: none;
  }
  .polished-nav .nav-mobile-header .nav-container {
    padding-inline: 16px !important;
  }
  .polished-nav .nav-mobile-header .ant-col:last-child > div {
    padding-right: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .polished-nav *, .polished-drawer * {
    animation: none !important;
    transition: none !important;
  }
}
/* ==========================================================================
   El Boleto Ganador - Compact High-Contrast Footer
   Harmonizes with Luxury Deep-Purple Nav & Light Data Views (#f8fafc)
   Slim, elegant, and space-efficient across Desktop and Mobile
   ========================================================================== */

.site-footer-wrapper {
  position: relative;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  color: #f1f5f9;
  /* Harmonized directly with header royal purple (#2e0452 -> #3c056c -> #480780) */
  background: linear-gradient(135deg, #1b0230 0%, #260344 35%, #300454 70%, #3e0569 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -8px 25px rgba(46, 4, 82, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

.site-footer-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.2) 0%, transparent 60%),
              radial-gradient(circle at 15% 100%, rgba(236, 19, 121, 0.12) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Slim luminous top accent line */
.site-footer-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(236, 19, 121, 0) 0%,
    rgba(236, 19, 121, 0.7) 20%,
    rgba(250, 201, 10, 0.9) 50%,
    rgba(124, 58, 237, 0.8) 80%,
    rgba(124, 58, 237, 0) 100%
  );
  filter: drop-shadow(0 0 4px rgba(250, 201, 10, 0.4));
  z-index: 2;
}

.site-footer-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 14px;
}

/* ==========================================================================
   Main Content Layout: Brand Pane (Left) + 3 Link Columns (Right)
   ========================================================================== */
.site-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Brand Pane */
.site-footer-brand-pane {
  flex: 0 0 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.site-footer-logo-link:hover {
  transform: scale(1.05);
}

.site-footer-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(236, 19, 121, 0.5));
}

.site-footer-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-footer-brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.site-footer-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
}

.site-footer-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: footer-pulse 2s infinite;
}

@keyframes footer-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.site-footer-brand-tagline {
  font-size: 11.5px;
  font-weight: 600;
  color: #fac90a;
  font-style: italic;
  margin-top: 1px;
}

.site-footer-brand-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.site-footer-brand-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.site-footer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer-social-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-footer-social-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.site-footer-social-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.site-footer-social-btn.yt:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.site-footer-social-btn.fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.site-footer-social-btn.ig:hover {
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  border-color: #dc2743;
}

.site-footer-scrolltop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-footer-scrolltop-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(250, 201, 10, 0.4);
  transform: translateY(-1px);
}

/* Links Columns Grid */
.site-footer-links-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
}

.site-footer-col-header-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: default;
}

.site-footer-accordion-chevron {
  display: none;
}

.site-footer-col-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.site-footer-col-title-accent {
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ec4899 0%, #be185d 100%);
}

.site-footer-col-title-accent.gold {
  background: linear-gradient(180deg, #ffd700 0%, #d97706 100%);
}

.site-footer-col-title-accent.cyan {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.site-footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #d2d5fc;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.35;
}

.site-footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.site-footer-badge-pill {
  display: inline-block;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #ffffff;
  line-height: 14px;
}

.site-footer-badge-pill.gold {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #1e0338;
}

/* ==========================================================================
   Compact Meta Strip (Trust & Brief Disclaimer)
   ========================================================================== */
.site-footer-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer-trust-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
}

.site-footer-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.site-footer-disclaimer-compact {
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
  max-width: 680px;
}

/* ==========================================================================
   Bottom Bar
   ========================================================================== */
.site-footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 11.5px;
  color: #94a3b8;
}

.site-footer-legal-quicklinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer-legal-quicklink {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-legal-quicklink:hover {
  color: #fac90a;
}

/* Override Ant Design Default Footer Styles */
.ant-layout-footer.footer {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* ==========================================================================
   Responsive Adaptations (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 991px) {
  .site-footer-main {
    flex-direction: column;
    gap: 22px;
  }

  .site-footer-brand-pane {
    flex: none;
    width: 100%;
  }

  .site-footer-links-grid {
    width: 100%;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .site-footer-container {
    padding: 14px 16px 10px;
  }

  .site-footer-main {
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: none;
  }

  .site-footer-brand-pane {
    gap: 6px;
  }

  .site-footer-brand-desc {
    display: none; /* Removed verbose clutter on mobile per mobile-app-ui-design */
  }

  .site-footer-brand-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 2px;
  }

  /* Progressive Disclosure: Sleek Interactive Mobile Accordion */
  .site-footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
  }

  .site-footer-col-header-btn {
    cursor: pointer;
    padding: 11px 2px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .site-footer-col-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
  }

  .site-footer-accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, color 0.2s;
  }

  .site-footer-col.is-open .site-footer-accordion-chevron {
    transform: rotate(180deg);
    background: rgba(236, 19, 121, 0.25);
    color: #f472b6;
  }

  .site-footer-links-list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 0 0 10px;
    gap: 8px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, padding 0.2s ease;
  }

  .site-footer-col.is-open .site-footer-links-list {
    max-height: 480px;
    opacity: 1;
    padding: 4px 0 14px 10px;
  }

  .site-footer-link {
    font-size: 13px;
    padding: 4px 0;
    min-height: 30px; /* Comfortable mobile thumb tap target */
  }

  .site-footer-meta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer-trust-inline {
    font-size: 10.5px;
    gap: 6px;
  }

  .site-footer-disclaimer-compact {
    font-size: 10px;
    line-height: 1.35;
    color: #94a3b8;
  }

  .site-footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 6px;
    font-size: 10.5px;
  }

  /* Hide redundant quicklinks on mobile that repeat the columns above */
  .site-footer-legal-quicklinks {
    display: none;
  }
}
.notification-campaign-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 18% 12%, rgba(244, 186, 46, 0.16), transparent 34%),
    rgba(21, 10, 42, 0.76);
  backdrop-filter: blur(9px);
  animation: notification-backdrop-in 180ms ease-out both;
}

.notification-campaign-card {
  --notification-purple: #5949b3;
  --notification-pink: #c20b63;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 620px);
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(25, 12, 62, 0.34), 0 3px 16px rgba(89, 73, 179, 0.14);
  color: #241b3d;
  overscroll-behavior: contain;
  animation: notification-card-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.notification-campaign-card--with-image {
  width: min(100%, 880px);
  grid-template-columns: minmax(260px, 0.92fr) minmax(360px, 1.08fr);
}

.notification-campaign-media {
  min-height: 390px;
  overflow: hidden;
  background: #f1effb;
}

.notification-campaign-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-campaign-media-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notification-campaign-media-button:disabled {
  cursor: wait;
}

.notification-campaign-media-button:focus-visible {
  outline: 4px solid #150b24;
  outline-offset: -8px;
}

.notification-campaign-content {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(89, 73, 179, 0.055), transparent 45%),
    #fff;
}

.notification-campaign-eyebrow {
  align-self: flex-start;
  margin-bottom: 14px;
  color: var(--notification-pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notification-campaign-content h2 {
  margin: 0;
  color: var(--notification-purple);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.notification-campaign-content p {
  margin: 18px 0 0;
  color: #5f5970;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.68;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notification-campaign-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(89, 73, 179, 0.09);
  color: var(--notification-purple);
  cursor: pointer;
}

.notification-campaign-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.notification-campaign-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.notification-campaign-actions button {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.notification-campaign-secondary {
  border: 1px solid rgba(89, 73, 179, 0.24);
  background: #fff;
  color: var(--notification-purple);
}

.notification-campaign-primary {
  border: 1px solid transparent;
  background: linear-gradient(100deg, #b50b5c, #8f1f76 52%, #49369d);
  box-shadow: 0 10px 24px rgba(181, 37, 146, 0.24);
  color: #fff;
}

.notification-campaign-actions button:hover:not(:disabled),
.notification-campaign-close:hover:not(:disabled) {
  transform: translateY(-1px);
}

.notification-campaign-actions button:focus-visible,
.notification-campaign-close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #150b24;
}

.notification-campaign-actions button:disabled,
.notification-campaign-close:disabled {
  cursor: wait;
  opacity: 0.68;
}

@media (max-width: 720px) {
  .notification-campaign-backdrop {
    align-items: end;
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }

  .notification-campaign-card,
  .notification-campaign-card--with-image {
    width: 100%;
    max-height: calc(100dvh - 24px);
    grid-template-columns: minmax(0, 1fr);
    border-radius: 22px;
  }

  .notification-campaign-media {
    min-height: 0;
    aspect-ratio: 16 / 8.7;
  }

  .notification-campaign-content {
    padding: 32px 22px 22px;
  }

  .notification-campaign-content h2 {
    padding-right: 30px;
  }

  .notification-campaign-actions {
    flex-direction: column-reverse;
  }

  .notification-campaign-actions button {
    width: 100%;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-campaign-backdrop,
  .notification-campaign-card {
    animation: none;
  }

  .notification-campaign-actions button,
  .notification-campaign-close {
    transition: none;
  }
}

@keyframes notification-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes notification-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/*Color del menu principal*/
.ant-menu-dark.ant-menu-horizontal > .ant-menu-item,
.ant-menu-dark.ant-menu-horizontal > .ant-menu-submenu-horizontal {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0px;
}

.ant-menu-dark.ant-menu-horizontal > .ant-menu-item-selected {
  border-bottom: 2px solid white;
}

.start {
  float: left;
}

.end {
  float: right;
}

.btn {
  border-radius: 5px;
  padding: 5px 15px;
  font-size: 16px;
  line-height: 26px;
  color: #ffffff;
  display: inline-block;
  cursor: pointer;
  width: auto;
  height: auto;
  -webkit-box-shadow: 0px 3px 2px 0px rgba(32, 29, 30, 0.25);
  box-shadow: 0px 3px 2px 0px rgba(32, 29, 30, 0.25);
}

.btn-amarillo {
  background-image: -o-linear-gradient(bottom, #ffcc00 0%, #fea036 100%);
  background-image: linear-gradient(0deg, #f4ba2e 0%, #fea036 100%);
  border: 1px solid #fea036;
}

.btn-rosado {
  background-image: linear-gradient(7deg, #ff419b 0%, #6c0092 100%);
  border: 1px solid #6c0092;
  border-radius: 5px;
  margin-top: 38px !important;
}

.banner-primary {
  padding: 114px 0 222px;
  position: relative;
  background: url("/assets/primary-67acb6a3.png");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.banner-secondary {
  background: url(/assets/secondary-f6fcb336.jpg);
  background-size: cover;
  background-position: center bottom;
  padding: 49px 0px 177px;
  position: relative;
}

.banner-secondary .title {
  font-size: 50px;
  line-height: 60px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0px 10px 6px rgba(49, 64, 71, 0.1);
  text-transform: uppercase;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Responsive styles for banner title */
@media (max-width: 768px) {
  .banner-secondary .title {
    font-size: 28px;
    line-height: 34px;
    padding: 0 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .banner-secondary .title {
    font-size: 22px;
    line-height: 28px;
    padding: 0 15px;
    word-break: break-word;
  }
}

@media (max-width: 360px) {
  .banner-secondary .title {
    font-size: 18px;
    line-height: 24px;
    padding: 0 10px;
  }
}

.steps {
  border-radius: 10px;
  -webkit-box-shadow: 2.505px 17.825px 59px 0px rgba(45, 112, 196, 0.2);
  box-shadow: 2.505px 17.825px 59px 0px rgba(45, 112, 196, 0.2);
  padding: 33px 30px 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #fff;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.footer {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.titleContent {
  font-size: 25px;
  line-height: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
  color: #5949b3;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

.cajaNumero {
  -webkit-box-shadow: 0px 5px 13px 0px rgba(40, 63, 163, 0.2);
  box-shadow: 0px 5px 13px 0px rgba(40, 63, 163, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.cajaNumero .header-area {
  background: #fef1f1;
  padding: 10px 20px 20px;
}

.cajaNumero .body-area {
  padding: 14px 20px 14px;
}
.cajaNumero .title {
  font-weight: 600;
  margin-top: 10px;
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 12px;
  color: #5949b3;
}

/* Responsive styles for cajaNumero titles */
@media (max-width: 768px) {
  .cajaNumero .title {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .cajaNumero .title {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 6px;
    text-align: center;
  }
  
  .cajaNumero .header-area {
    padding: 8px 15px 15px;
  }
  
  .cajaNumero .body-area {
    padding: 10px 15px 10px;
  }
}
.cajaNumero .body-area .numero {
  width: 41px;
  font-family: "Comfortaa", cursive;
  height: 41px;
  line-height: 30px;
  font-weight: 600;
  background: #ededff;
  color: #595192;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}
.cajaNumero .body-area .numero:hover,
.cajaNumero .body-area .ant-space-item .active {
  color: #fff;
  background-image: linear-gradient(
    86deg,
    #ec038b 0%,
    #fb6468 44%,
    #fbb936 100%
  );
  -webkit-box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  transition: width 2s;
}

.numerosSeleccionado {
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-image: linear-gradient(
    86deg,
    #ec038b 0%,
    #fb6468 44%,
    #fbb936 100%
  );
  -webkit-box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  transition: width 2s;
  border-radius: 100%;
  font-size: 1.15rem;
}

.numerosSeleccionadoHoy {
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  background: radial-gradient(circle at 50% 25%, #fff, #bbb);
  border-radius: 100%;
  border: 1px solid #c9c9c9;
  font-size: 1.15rem;
}
.numerosSeleccionadoUnico {
  width: 2.5rem;
  height: 2.5rem;
  font-weight: 600;
  display: inline-flex;
  margin-left: 4px;
  align-items: center;
  justify-content: center;
  color: black;
  background: radial-gradient(circle at 50% 25%, #fff, #bbb);
  border-radius: 100%;
  border: 1px solid #c9c9c9;
  font-size: 1.15rem;
}

.ant-table-thead tr th {
  color: #eceefe !important;
  background: #595192 !important;
}
.ant-table-tbody tr td {
  font-weight: 500;
  font-size: 15px;
  color: #595192 !important;
}

.ant-modal-title {
  font-size: 24px !important;
  line-height: 34px !important;
  font-weight: 700;
  display: block;
  margin: 0 auto 24px;
  color: #5949b3 !important;
  text-align: center;
}
.ant-form-item-required {
  font-size: 18px;
  line-height: 28px;
  color: #5949b3 !important;
  font-weight: 700;
}

.ant-form-item-control-input-content input {
  background-color: #f6f6fa;
  font-size: 16px;
  color: #273bff;
  padding: 0px 30px;
  height: 30px;
}
.ant-input-affix-wrapper {
  background-color: #f6f6fa;
  border: 1px solid #ebebf3;
}
.btn-sociales {
  width: 45px !important;
  height: 45px;
  line-height: 45px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #6b79b2;
  font-size: 16px;
  display: inline-block;
  margin: 0px 5px;
}

.btn-sociales span {
  padding-bottom: 60px;
}

.btn-sociales:hover {
  color: #fff;
  background-image: linear-gradient(
    86deg,
    #ec038b 0%,
    #fb6468 44%,
    #fbb936 100%
  );
  -webkit-box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  box-shadow: 0px 7px 7px 0px rgba(243, 42, 126, 0.23);
  transition: width 2s;
}

.btn-google {
  margin-top: 9px;
  border: 1px solid rgba(59, 54, 140, 0.1);
  background-color: #eaf2fc;
  -webkit-box-shadow: 1.948px 13.864px 6px 0px rgba(220, 234, 251, 0.3);
  box-shadow: 1.948px 13.864px 6px 0px rgba(220, 234, 251, 0.3);
  border-radius: 50px;
  margin-bottom: 19px;
  -webkit-transition: all ease 0.3s;
  -o-transition: all ease 0.3s;
  transition: all ease 0.3s;
  height: 40px;
  width: 70% !important;
}

.btn-google span {
  color: #007bff !important;
  margin-left: 9px;
}

.ant-divider-horizontal.ant-divider-with-text::after {
  border-block-start: 1px solid #00000026;
}

.ant-divider-horizontal.ant-divider-with-text::before {
  border-block-start: 1px solid #00000026;
}

.aciertos {
  border-radius: 10px;
  padding: 7px;
  color: #6257af;
  font-weight: 700;
  background: #eff4fa;
}

.ant-table-column-sorter-up,
.ant-table-column-sorter-down {
  font-size: 16px !important;
}

.ant-table-wrapper .ant-table-column-sorter-up.active,
.ant-table-wrapper .ant-table-column-sorter-down.active {
  color: white !important;
}

.ant-table-wrapper .ant-table-filter-trigger {
  font-size: 18px !important;
}

.c-morado {
  color: #5949b3;
}

.b-morado {
  background: #5949b3;
}

.b-rosado {
  background: #ec1379;
}

.b-multi {
  background-image: linear-gradient(
    86deg,
    #ec038b82 0%,
    #fb6468a8 44%,
    #fbb93661 100%
  );
}
.b-multi2 {
  background-image: linear-gradient(7deg, #ff419b 0%, #6c0092 100%);
}
.caja-result {
  -webkit-box-shadow: 2.505px 17.825px 59px 0px rgba(45, 112, 196, 0.2);
  box-shadow: 2.505px 17.825px 59px 0px rgba(45, 112, 196, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

.divider {
  display: flex;
  clear: both;
  width: 100%;
  min-width: 100%;
  height: 1px;
  margin: 16px 0;
  background-color: #e5e5e5a1;
}

.ant-drawer .ant-drawer-body {
  padding: 0px !important;
}

.ant-menu-dark.ant-menu-root.ant-menu-vertical {
  height: 100% !important;
}

.ant-menu-dark {
  color: white !important;
  font-size: 16px !important;
}

.over {
  overflow: auto;
}

#menu.ant-menu-dark.ant-menu-horizontal li {
  padding: 12px;
}

#menu.ant-menu-overflow {
  margin-left: 30px;
}

.social-icon:hover {
  color: #ec1379 !important;
  font-size: 27px !important;
}

.sorteo-actualizado {
  background-image: linear-gradient(
    86deg,
    #ec038b82 0%,
    #fb6468a8 44%,
    #fbb93661 100%
  ) !important;
}

.ant-menu-dark.ant-menu-submenu > .ant-menu,
.ant-menu-dark.ant-menu-inline .ant-menu-sub.ant-menu-inline {
  background-color: white !important;
}
.ant-menu-dark.ant-menu-inline .ant-menu-sub.ant-menu-inline {
  border-radius: 12px;
}
.ant-menu-sub .ant-menu-item-only-child .ant-menu-title-content {
  color: black !important;
}

#mobile {
  height: 100vh;
}
.ant-menu-dark.ant-menu-inline
  .ant-menu-sub.ant-menu-inline
  .ant-menu-title-content {
  font-weight: 500;
}

.name-sorteo {
  color: rgb(0, 0, 0);
}

.name-sorteo:hover {
  color: #4f0a8c !important;
  text-decoration: underline;
}

.borange {
  background: #f51b1b36 !important;
}

.titleDesc {
  font-size: 25px;
  line-height: 65px;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
  color: #5949b3;
  text-transform: uppercase;
}

.contentDesc {
  font-size: 18px;
  line-height: 28px;
  color: #5949b3;
}

.ad-banner {
  position: relative;
  width: 100%;
  max-width: 700px; /* Puedes ajustar este tamaño según necesites */
  margin: 20px auto;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ad-image {
  width: 100%;
  height: auto;
  display: block;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 600px) {
  .ad-banner {
    max-width: 100%;
  }

  .anuncio {
    height: 60vh !important;
  }
}
.blur {
  filter: blur(4px); /* Efecto de difuminado */
  opacity: 0.9; /* Opacidad reducida */
  pointer-events: none; /* No permite interacción con el contenido */
}

.unread-badge {
  /* position: absolute; */

  background-color: #f9ca07;
  color: #44057a;
  border-radius: 50%;
  width: 20px;
  height: 19px;
  display: table-caption;
  margin-right: 14px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.large-checkbox .ant-checkbox-inner {
  width: 19px; /* Ancho del checkbox */
  height: 19px; /* Alto del checkbox */
}

.large-checkbox .ant-checkbox {
  transform: scale(1.5); /* Ajusta el tamaño del cuadro completo */
}

.large-checkbox .ant-checkbox + span {
  font-size: 16px; /* Opcional: Ajusta el tamaño del texto */
}

/* Estilos para los filtros expandibles */
.filtros-collapse .ant-collapse-header:hover {
  background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.15) 100%) !important;
  border-color: rgba(253, 126, 20, 0.3) !important;
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.15) !important;
  transform: translateY(-1px);
}

.filtros-collapse .ant-collapse-header {
  padding: 0 !important;
}

.filtros-collapse .ant-collapse-content-box {
  padding: 0 !important;
}

/* Responsive para filtros */
@media (max-width: 768px) {
  .filtros-collapse .ant-collapse-header:hover {
    transform: none; /* Evitar efectos de hover en móviles */
  }
}

@media (max-width: 480px) {
  .cajaNumero {
    padding: 10px !important;
    margin-bottom: 15px !important;
  }
  
  .filtros-collapse .ant-collapse-header > div {
    min-height: 50px;
    align-items: flex-start !important;
    padding-top: 8px !important;
  }
}

/* Animación pulse mejorada */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
    .ant-input, .ant-input-number, .ant-select-selector, .ant-picker #selectR {
        height: auto; 
        
    }
}

/* Prevenir que el scroll del menú desplegable del Select propague el scroll al body (scroll chaining) */
.ant-select-dropdown,
.ant-select-dropdown .rc-virtual-list-holder,
.ant-select-dropdown .rc-virtual-list-holder-inner {
  overscroll-behavior: contain !important;
}

/* Proveer contexto de posicionamiento para los dropdowns de Ant Design y evitar desalineaciones */
.container,
.ant-layout-content {
  position: relative;
}

/* Componentes Nativos Personalizados para Móvil (Boleto Ganador) */
.custom-mobile-select {
  width: 100%;
  padding: 11px 35px 11px 12px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #d8d8e2;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2344057a' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  box-sizing: border-box;
  text-transform: capitalize;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.custom-mobile-select:focus {
  border-color: #44057a;
  box-shadow: 0 0 0 2px rgba(68, 5, 122, 0.15);
  background-color: #ffffff;
}

.custom-mobile-select option {
  text-transform: capitalize;
  color: #1e293b;
  background-color: #ffffff;
  padding: 10px;
}

.custom-mobile-date {
  width: 100%;
  padding: 11px 12px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #d8d8e2;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.custom-mobile-date:focus {
  border-color: #44057a;
  box-shadow: 0 0 0 2px rgba(68, 5, 122, 0.15);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}