/* Confirmacion y resultado de tickets deportivos: mismo lenguaje visual que hipica. */
.sports-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 22, .82);
  backdrop-filter: blur(8px);
}

.sports-confirm-modal {
  width: min(440px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.35rem;
  color: #f5f7ff;
  background: radial-gradient(circle at top left, #182644, #080d1c 68%);
  border: 1px solid rgba(255, 199, 0, .28);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 199, 0, .08);
  animation: sports-confirm-in .18s ease-out;
}

.sports-confirm-modal__top {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
}

.sports-confirm-modal__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
  color: #101522;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #ffd52e, #f2a900);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(255, 199, 0, .2);
}

.sports-confirm-modal__eyebrow {
  color: #ffc700;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.sports-confirm-modal h2 {
  margin: 0;
  color: inherit;
  font-size: 1.2rem;
}

.sports-confirm-modal > p {
  margin: .45rem 0 1rem;
  color: #aeb9ce;
  font-size: .86rem;
  line-height: 1.45;
}

.sports-confirm-modal__picks {
  display: grid;
  gap: .45rem;
  max-height: 190px;
  overflow: auto;
  padding: .65rem;
  background: rgba(3, 7, 17, .42);
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 13px;
}

.sports-confirm-modal__pick {
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.sports-confirm-modal__pick:last-child { border-bottom: 0; padding-bottom: 0; }
.sports-confirm-modal__pick strong { display: flex; justify-content: space-between; gap: .75rem; color: #f8fafc; font-size: .82rem; }
.sports-confirm-modal__pick strong span { color: #ffc700; }
.sports-confirm-modal__pick small { display: block; margin-top: .16rem; overflow: hidden; color: #91a0b8; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.sports-confirm-modal__more { color: #aeb9ce; font-size: .72rem; text-align: center; }

.sports-confirm-modal__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}

.sports-confirm-modal__summary > div {
  display: flex;
  flex-direction: column;
  gap: .16rem;
  padding: .6rem .7rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: 10px;
}

.sports-confirm-modal__summary span { color: #91a0b8; font-size: .68rem; }
.sports-confirm-modal__summary strong { color: #ffc700; font-size: .84rem; }

/* El premio es el punto focal de la confirmación. El halo se mantiene activo
   y pulsa suavemente para llamar la atención sin convertirlo en un destello
   agresivo. */
.sports-confirm-modal__potential {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: linear-gradient(135deg, rgba(255, 199, 0, .3), rgba(242, 169, 0, .14)) !important;
  border-color: rgba(255, 215, 64, .95) !important;
  box-shadow:
    0 0 0 1px rgba(255, 215, 64, .28),
    0 0 16px rgba(255, 199, 0, .72),
    0 0 34px rgba(255, 174, 0, .48),
    inset 0 0 18px rgba(255, 235, 125, .18);
  animation: sports-potential-halo 1.8s ease-in-out infinite;
}
.sports-confirm-modal__potential span,
.sports-confirm-modal__potential strong {
  position: relative;
  z-index: 1;
}
.sports-confirm-modal__potential span { color: #fff3b0; }
.sports-confirm-modal__potential strong {
  color: #fff8d1;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(255, 236, 142, .9);
}
@keyframes sports-potential-halo {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 215, 64, .28),
      0 0 16px rgba(255, 199, 0, .72),
      0 0 34px rgba(255, 174, 0, .48),
      inset 0 0 18px rgba(255, 235, 125, .18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 235, 125, .55),
      0 0 24px rgba(255, 211, 45, .96),
      0 0 52px rgba(255, 174, 0, .7),
      inset 0 0 22px rgba(255, 248, 187, .3);
  }
}

.sports-confirm-modal__actions,
.sports-ticket-result__actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: .6rem;
  margin-top: 1rem;
}

.sports-confirm-modal__actions button,
.sports-ticket-result__actions button,
.sports-ticket-result__actions a {
  min-height: 42px;
  padding: .65rem .85rem;
  border-radius: 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.sports-confirm-modal__cancel,
.sports-ticket-result__close {
  color: #dce4f3;
  background: rgba(148, 163, 184, .16);
  border: 1px solid rgba(148, 163, 184, .28);
}

.sports-confirm-modal__accept,
.sports-ticket-result__history {
  color: #0b1020;
  background: linear-gradient(135deg, #ffc700, #f2a900);
  border: 1px solid rgba(255, 215, 64, .6);
  box-shadow: 0 6px 18px rgba(255, 199, 0, .18);
  text-decoration: none;
}

.sports-confirm-modal__actions button:hover,
.sports-ticket-result__actions button:hover,
.sports-ticket-result__actions a:hover { transform: translateY(-1px); }
.sports-confirm-modal__accept:hover,
.sports-ticket-result__history:hover { box-shadow: 0 9px 22px rgba(255, 199, 0, .3); }
.sports-confirm-modal__actions button:focus-visible,
.sports-ticket-result__actions button:focus-visible,
.sports-ticket-result__actions a:focus-visible { outline: 3px solid rgba(255, 199, 0, .48); outline-offset: 2px; }

.sports-ticket-result-overlay { z-index: 9200; }
.sports-ticket-result { max-width: 420px; }
.sports-ticket-result__actions { grid-template-columns: 1fr 1fr; }
.sports-ticket-result__close { width: 100%; margin-top: 0; }
.sports-ticket-result__history { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 0; }

html[data-theme="light"] .sports-confirm-overlay {
  background: rgba(231, 237, 248, .78);
}

html[data-theme="light"] .sports-confirm-modal {
  color: #172235;
  background: linear-gradient(145deg, #ffffff, #edf3fb);
  border-color: rgba(191, 145, 0, .42);
  box-shadow: 0 24px 60px rgba(56, 67, 88, .28), 0 0 0 1px rgba(255, 199, 0, .1);
}

html[data-theme="light"] .sports-confirm-modal__eyebrow { color: #9b7200; }
html[data-theme="light"] .sports-confirm-modal > p { color: #5e6c80; }
html[data-theme="light"] .sports-confirm-modal__picks { background: rgba(255, 255, 255, .76); border-color: #d6deea; }
html[data-theme="light"] .sports-confirm-modal__pick { border-color: #e1e7f0; }
html[data-theme="light"] .sports-confirm-modal__pick strong { color: #172235; }
html[data-theme="light"] .sports-confirm-modal__pick strong span,
html[data-theme="light"] .sports-confirm-modal__summary strong { color: #9b7200; }
html[data-theme="light"] .sports-confirm-modal__pick small,
html[data-theme="light"] .sports-confirm-modal__more,
html[data-theme="light"] .sports-confirm-modal__summary span { color: #68778c; }
html[data-theme="light"] .sports-confirm-modal__summary > div { background: rgba(255, 255, 255, .65); border-color: #dbe3ee; }
html[data-theme="light"] .sports-confirm-modal__potential {
  background: linear-gradient(135deg, #fff5bd, #ffe38a) !important;
  border-color: #d49b00 !important;
  box-shadow:
    0 0 0 1px rgba(212, 155, 0, .32),
    0 0 16px rgba(225, 169, 0, .52),
    0 0 34px rgba(225, 169, 0, .3),
    inset 0 0 15px rgba(255, 255, 255, .6);
}
html[data-theme="light"] .sports-confirm-modal__potential span { color: #7b5b00; }
html[data-theme="light"] .sports-confirm-modal__potential strong {
  color: #6b4b00;
  text-shadow: 0 0 8px rgba(255, 255, 255, .72);
}
html[data-theme="light"] .sports-confirm-modal__cancel,
html[data-theme="light"] .sports-ticket-result__close { color: #344256; background: #e5ebf3; border-color: #c6d1df; }
html[data-theme="light"] .sports-confirm-modal__accept,
html[data-theme="light"] .sports-ticket-result__history { color: #2a2100; background: linear-gradient(135deg, #f7ca18, #e5a900); border-color: #d19b00; box-shadow: 0 6px 18px rgba(190, 145, 0, .25); }

@keyframes sports-confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sports-confirm-modal__potential { animation: none; }
}

@media (max-width: 480px) {
  .sports-confirm-modal { padding: 1rem; border-radius: 18px; }
  .sports-confirm-modal__actions,
  .sports-ticket-result__actions { grid-template-columns: 1fr; }
}
