/* 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(190, 210, 234, .28);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 1px rgba(190, 210, 234, .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, var(--srh-gold, #dce6f2), var(--srh-gold-2, #b7c9df));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(190, 210, 234, .2);
}

.sports-confirm-modal__eyebrow {
  color: var(--srh-gold-ink, #435a74);
  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: var(--srh-gold-ink, #435a74); }
.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: var(--srh-gold-ink, #435a74); 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(190, 210, 234, .3), rgba(190, 210, 234, .14)) !important;
  border-color: rgba(190, 210, 234, .95) !important;
  box-shadow:
    0 0 0 1px rgba(190, 210, 234, .28),
    0 0 16px rgba(190, 210, 234, .72),
    0 0 34px rgba(190, 210, 234, .48),
    inset 0 0 18px rgba(190, 210, 234, .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: var(--srh-gold-ink, #435a74); }
.sports-confirm-modal__potential strong {
  color: var(--srh-gold-ink, #435a74);
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(190, 210, 234, .9);
}
@keyframes sports-potential-halo {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(190, 210, 234, .28),
      0 0 16px rgba(190, 210, 234, .72),
      0 0 34px rgba(190, 210, 234, .48),
      inset 0 0 18px rgba(190, 210, 234, .18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(190, 210, 234, .55),
      0 0 24px rgba(190, 210, 234, .96),
      0 0 52px rgba(190, 210, 234, .7),
      inset 0 0 22px rgba(190, 210, 234, .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, var(--srh-gold-2, #b7c9df), var(--srh-gold-2, #b7c9df));
  border: 1px solid rgba(190, 210, 234, .6);
  box-shadow: 0 6px 18px rgba(190, 210, 234, .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(190, 210, 234, .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(190, 210, 234, .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(190, 210, 234, .42);
  box-shadow: 0 24px 60px rgba(56, 67, 88, .28), 0 0 0 1px rgba(190, 210, 234, .1);
}

html[data-theme="light"] .sports-confirm-modal__eyebrow { color: var(--srh-gold-ink, #435a74); }
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: var(--srh-gold-ink, #435a74); }
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, var(--srh-gold, #dce6f2), var(--srh-gold, #dce6f2)) !important;
  border-color: var(--srh-gold-line, #a9bdd4) !important;
  box-shadow:
    0 0 0 1px rgba(190, 210, 234, .32),
    0 0 16px rgba(190, 210, 234, .52),
    0 0 34px rgba(190, 210, 234, .3),
    inset 0 0 15px rgba(255, 255, 255, .6);
}
html[data-theme="light"] .sports-confirm-modal__potential span { color: var(--srh-gold-ink, #435a74); }
html[data-theme="light"] .sports-confirm-modal__potential strong {
  color: var(--srh-gold-ink, #435a74);
  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, var(--srh-gold-2, #b7c9df), var(--srh-gold-2, #b7c9df)); border-color: var(--srh-gold-line, #a9bdd4); box-shadow: 0 6px 18px rgba(190, 210, 234, .25); }

/* Acabado azul corporativo para confirmar tickets. */
.sports-confirm-modal__icon {
  color: #fff;
  background: linear-gradient(145deg, #46c8ff, #1463ff 72%, #0b45d7);
  border-color: rgba(145, 214, 255, .8);
  box-shadow: 0 8px 22px rgba(20, 99, 255, .3), inset 0 1px 2px rgba(255, 255, 255, .65);
}
.sports-confirm-modal__eyebrow,
.sports-confirm-modal__pick strong span,
.sports-confirm-modal__summary strong,
.sports-confirm-modal__potential span,
.sports-confirm-modal__potential strong { color: #67baff; }
.sports-confirm-modal > p { color: #abc5e9; }
.sports-confirm-modal__picks {
  background: rgba(17, 48, 99, .42);
  border-color: rgba(74, 153, 255, .3);
}
.sports-confirm-modal__pick { border-color: rgba(94, 163, 255, .22); }
.sports-confirm-modal__pick small,
.sports-confirm-modal__more,
.sports-confirm-modal__summary span { color: #9bb8df; }
.sports-confirm-modal__summary > div {
  background: rgba(37, 91, 166, .2);
  border-color: rgba(82, 157, 255, .26);
}
.sports-confirm-modal__potential {
  background: linear-gradient(135deg, rgba(35, 128, 255, .32), rgba(44, 193, 255, .14)) !important;
  border-color: rgba(68, 164, 255, .9) !important;
  box-shadow: 0 0 0 1px rgba(54, 145, 255, .32), 0 0 18px rgba(25, 112, 255, .55), 0 0 38px rgba(34, 166, 255, .3), inset 0 0 18px rgba(84, 183, 255, .16);
}
.sports-confirm-modal__potential span,
.sports-confirm-modal__potential strong { color: #e3f3ff; }
.sports-confirm-modal__potential strong { text-shadow: 0 0 12px rgba(50, 155, 255, .7); }
.sports-confirm-modal__cancel,
.sports-ticket-result__close {
  color: #d9ecff;
  background: rgba(35, 100, 190, .3);
  border-color: rgba(83, 157, 255, .48);
}
.sports-confirm-modal__accept,
.sports-ticket-result__history {
  color: #fff;
  background: linear-gradient(135deg, #22bfff, #1264ff 58%, #084be0);
  border-color: rgba(133, 208, 255, .82);
  box-shadow: 0 7px 20px rgba(13, 93, 255, .35), inset 0 1px 1px rgba(255, 255, 255, .34);
}
.sports-confirm-modal__accept:hover,
.sports-ticket-result__history:hover { box-shadow: 0 9px 25px rgba(16, 106, 255, .5); }
.sports-confirm-modal__actions button:focus-visible,
.sports-ticket-result__actions button:focus-visible,
.sports-ticket-result__actions a:focus-visible { outline-color: rgba(65, 166, 255, .8); }

html[data-theme="light"] .sports-confirm-modal {
  background: linear-gradient(145deg, #ffffff 0%, #f4faff 55%, #e8f5ff 100%);
  border-color: rgba(31, 112, 255, .34);
  box-shadow: 0 24px 60px rgba(29, 91, 174, .2), 0 0 0 1px rgba(50, 139, 255, .14);
}
html[data-theme="light"] .sports-confirm-modal__eyebrow,
html[data-theme="light"] .sports-confirm-modal__pick strong span,
html[data-theme="light"] .sports-confirm-modal__summary strong,
html[data-theme="light"] .sports-confirm-modal__potential span,
html[data-theme="light"] .sports-confirm-modal__potential strong { color: #1459c7; }
html[data-theme="light"] .sports-confirm-modal > p { color: #49678e; }
html[data-theme="light"] .sports-confirm-modal__picks {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(226, 243, 255, .82));
  border-color: rgba(35, 121, 255, .26);
}
html[data-theme="light"] .sports-confirm-modal__pick { border-color: rgba(59, 132, 224, .2); }
html[data-theme="light"] .sports-confirm-modal__pick strong { color: #142f56; }
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: #53739b; }
html[data-theme="light"] .sports-confirm-modal__summary > div {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(224, 242, 255, .82));
  border-color: rgba(48, 128, 239, .24);
}
html[data-theme="light"] .sports-confirm-modal__potential {
  background: linear-gradient(135deg, rgba(28, 124, 255, .2), rgba(52, 197, 255, .12)) !important;
  border-color: rgba(25, 111, 242, .58) !important;
  box-shadow: 0 0 0 1px rgba(41, 129, 255, .2), 0 0 18px rgba(31, 128, 255, .22), 0 0 34px rgba(46, 170, 255, .14), inset 0 0 18px rgba(90, 183, 255, .16);
}
html[data-theme="light"] .sports-confirm-modal__potential span,
html[data-theme="light"] .sports-confirm-modal__potential strong { color: #104fae; }
html[data-theme="light"] .sports-confirm-modal__potential strong { text-shadow: 0 0 10px rgba(53, 149, 255, .22); }
html[data-theme="light"] .sports-confirm-modal__cancel,
html[data-theme="light"] .sports-ticket-result__close {
  color: #174780;
  background: linear-gradient(135deg, #e9f5ff, #d9ecff);
  border-color: rgba(40, 122, 236, .34);
}
html[data-theme="light"] .sports-confirm-modal__accept,
html[data-theme="light"] .sports-ticket-result__history {
  color: #fff;
  background: linear-gradient(135deg, #23bfff, #1264ff 58%, #084be0);
  border-color: rgba(65, 155, 255, .72);
  box-shadow: 0 7px 20px rgba(13, 93, 255, .26), inset 0 1px 1px rgba(255, 255, 255, .4);
}
html[data-theme="light"] .sports-confirm-modal__accept:hover,
html[data-theme="light"] .sports-ticket-result__history:hover { box-shadow: 0 9px 25px rgba(16, 106, 255, .38); }
html[data-theme="light"] .sports-confirm-modal__actions button:focus-visible,
html[data-theme="light"] .sports-ticket-result__actions button:focus-visible,
html[data-theme="light"] .sports-ticket-result__actions a:focus-visible { outline-color: rgba(24, 112, 255, .72); }

@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; }
}
