/* Stakewinz utility pages (Verify Bet) — compact header, drawer, bottom nav, ticket verification */

/* ---- compact header ---- */
.sw-header--compact .sw-product-nav--utility a.is-active {
  color: var(--sw-yellow);
  border-bottom-color: var(--sw-green);
}

.sw-utility-drawer,
.sw-utility-drawer__backdrop {
  display: none;
}

@media (max-width: 575px) {
  .sw-product-nav--utility { display: none; }
  .sw-utility-back { display: none; }

  .sw-utility-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 135;
    width: min(320px, 88vw);
    height: 100dvh;
    top: 0;
    background: var(--sw-bg-deep);
    border-right: 1px solid var(--sw-border);
    transform: translateX(-105%);
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
  }
  .sw-utility-drawer.is-open { transform: translateX(0); }

  .sw-utility-drawer__backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    visibility: hidden;
  }
  .sw-utility-drawer__backdrop.is-open { opacity: 1; visibility: visible; }

  .sw-utility-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .sw-utility-drawer__close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--sw-surface);
    color: var(--sw-text);
    font-size: 18px;
  }
  .sw-utility-drawer__nav { display: flex; flex-direction: column; gap: 4px; }
  .sw-utility-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 6px;
    color: var(--sw-text);
    font-weight: 900;
    font-size: 14px;
  }
  .sw-utility-drawer__nav a i { color: var(--sw-yellow); font-size: 18px; width: 20px; }
  .sw-utility-drawer__nav a.is-active { background: var(--sw-surface); }

  body.is-locked { overflow: hidden; }
}

/* ---- compact bottom navigation ---- */
.sw-utility-bottom { display: none; }

@media (max-width: 575px) {
  .sw-utility-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--sw-bg-deep);
    border-top: 1px solid var(--sw-border);
  }
  .sw-utility-bottom a {
    color: var(--sw-muted);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    font-size: 11px;
    font-weight: 900;
  }
  .sw-utility-bottom i { font-size: 20px; }
  .sw-utility-bottom a.is-active { background: var(--sw-yellow); color: #111; }
}

/* ---- utility page shell ---- */
.sw-utility-main {
  min-height: calc(100vh - 91px);
  padding: 26px 16px 48px;
  background:
    radial-gradient(circle at 10% 6%, rgba(0, 199, 100, .1), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 229, 0, .07), transparent 26%),
    var(--sw-bg);
}

.sw-verify-page {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.sw-verify-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sw-yellow);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---- hero ---- */
.sw-verify-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 32px;
  border-radius: 14px;
  border: 1px solid var(--sw-border);
  background: linear-gradient(160deg, #153044 0%, #0d2030 62%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.sw-verify-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sw-green), var(--sw-yellow));
}

.sw-verify-hero__text h1 {
  margin: 8px 0 8px;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.15;
  color: #fff;
}

.sw-verify-hero__text p {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sw-muted);
}

.sw-verify-hero__shield {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 199, 100, .12);
  border: 2px dotted var(--sw-green);
  color: var(--sw-green);
}

.sw-verify-hero__shield svg { width: 58px; height: 58px; }

/* ---- search ---- */
.sw-verify-search {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--sw-border);
  background: var(--sw-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.sw-verify-search__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sw-verify-search__field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--sw-bg);
  border: 1px solid var(--sw-border);
}

.sw-verify-search__field i { color: var(--sw-yellow); font-size: 20px; flex: 0 0 auto; }

.sw-verify-search__field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.sw-verify-search__submit {
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: var(--sw-yellow);
  color: #101820;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sw-verify-search__submit:hover { filter: brightness(1.05); }

.sw-verify-search__hint {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--sw-muted);
}

.sw-verify-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(244, 44, 86, .4);
  background: rgba(244, 44, 86, .14);
  color: #ffd7dd;
  font-size: 13px;
  display: grid;
  gap: 4px;
}

/* ---- not found ---- */
.sw-verify-notfound {
  text-align: center;
  padding: 42px 24px;
  border-radius: 14px;
  border: 1px dashed var(--sw-border);
  background: var(--sw-surface);
}

.sw-verify-notfound__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244, 44, 86, .13);
  border: 1px solid rgba(244, 44, 86, .3);
  color: var(--sw-red);
}

.sw-verify-notfound__icon svg { width: 40px; height: 40px; }

.sw-verify-notfound h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  font-weight: 950;
  color: #fff;
}

.sw-verify-notfound p {
  max-width: 540px;
  margin: 0 auto 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sw-muted);
}

.sw-verify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 8px;
  background: var(--sw-yellow);
  color: #101820;
  font-weight: 950;
  text-decoration: none;
}

/* ---- verified result ---- */
.sw-verify-result {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--sw-border);
  background: var(--sw-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.sw-verify-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--sw-border);
}

.sw-verify-result__title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sw-verify-result__badge {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sw-green);
  color: #052313;
  box-shadow: 0 0 0 5px rgba(0, 199, 100, .18);
}

.sw-verify-result__badge svg { width: 32px; height: 32px; }

.sw-verify-result__verified {
  display: block;
  color: var(--sw-green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
}

.sw-verify-result__title h2 {
  margin: 5px 0 3px;
  font-size: 22px;
  font-weight: 950;
  color: #fff;
}

.sw-verify-result__title p {
  margin: 0;
  font-size: 13px;
  color: var(--sw-muted);
}

.sw-verify-status {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sw-verify-status--won { background: var(--sw-green); color: #052313; }
.sw-verify-status--lost { background: var(--sw-red); color: #fff; }
.sw-verify-status--pending { background: var(--sw-yellow); color: #101820; }
.sw-verify-status--refunded { background: #4b6b86; color: #fff; }

/* ---- ticket (perforated) ---- */
.sw-verify-ticket {
  position: relative;
  margin: 22px 24px 0;
  padding: 22px 20px 48px;
  border: 1px dashed var(--sw-border);
  border-radius: 12px;
  background: var(--sw-bg);
}

.sw-verify-ticket__perf {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
}

.sw-verify-ticket__perf--top { top: -9px; }
.sw-verify-ticket__perf--bottom { bottom: -9px; }

.sw-verify-ticket__perf span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--sw-surface);
  border: 1px solid var(--sw-border);
}

.sw-verify-ticket__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
}

.sw-verify-ticket__cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sw-verify-ticket__cell span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.sw-verify-ticket__cell strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  overflow-wrap: anywhere;
}

.sw-verify-ticket__cell--return strong { color: var(--sw-yellow); }

/* ---- selections ---- */
.sw-verify-selections { padding: 20px 24px 14px; }

.sw-verify-selections__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sw-verify-selections__head h3 { margin: 0; font-size: 16px; font-weight: 950; color: #fff; }
.sw-verify-selections__head span { font-size: 13px; color: var(--sw-muted); }

.sw-verify-selections__list { display: grid; gap: 10px; }

.sw-verify-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--sw-border);
  background: var(--sw-bg);
}

.sw-verify-pick__league {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sw-yellow);
}

.sw-verify-pick h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}

.sw-verify-pick h4 em { font-style: normal; font-size: 12px; color: var(--sw-yellow); padding: 0 4px; }

.sw-verify-pick p { margin: 0; font-size: 13px; color: var(--sw-muted); }
.sw-verify-pick p strong { color: #fff; }

.sw-verify-pick__odds {
  min-width: 76px;
  padding: 9px 14px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 229, 0, .22);
  background: rgba(255, 229, 0, .08);
}

.sw-verify-pick__odds span { display: block; font-size: 11px; color: var(--sw-muted); }
.sw-verify-pick__odds strong { font-size: 17px; color: var(--sw-yellow); line-height: 1; }

.sw-verify-leg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sw-verify-leg--is-won { background: rgba(0, 199, 100, .16); color: #4ade80; border: 1px solid rgba(0, 199, 100, .38); }
.sw-verify-leg--is-lost { background: rgba(244, 44, 86, .16); color: #ff8585; border: 1px solid rgba(244, 44, 86, .38); }
.sw-verify-leg--is-refunded { background: rgba(75, 107, 134, .22); color: #9fc0da; border: 1px solid rgba(75, 107, 134, .45); }
.sw-verify-leg--is-waiting { background: rgba(255, 229, 0, .12); color: #ffe500; border: 1px solid rgba(255, 229, 0, .32); }

.sw-verify-privacy {
  padding: 6px 24px 22px;
  margin: 0;
  font-size: 12px;
  color: var(--sw-muted);
}

/* ---- how it works ---- */
.sw-verify-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sw-verify-how__step {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--sw-border);
  background: var(--sw-surface);
}

.sw-verify-how__step > span {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sw-green);
  color: #052313;
  font-weight: 950;
}

.sw-verify-how__step h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: #fff; }
.sw-verify-how__step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--sw-muted); }

.sw-verify-support {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--sw-muted);
}

.sw-verify-support a {
  color: var(--sw-yellow);
  font-weight: 900;
  text-decoration: none;
}

/* ---- responsive ---- */
@media (max-width: 767px) {
  .sw-verify-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .sw-verify-hero__shield { width: 74px; height: 74px; }
  .sw-verify-hero__shield svg { width: 40px; height: 40px; }
  .sw-verify-hero__text h1 { font-size: 24px; }
  .sw-verify-search__form { grid-template-columns: 1fr; }
  .sw-verify-search__submit { min-height: 48px; justify-content: center; }
  .sw-verify-result__head { flex-direction: column; }
  .sw-verify-ticket__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sw-verify-pick { grid-template-columns: minmax(0, 1fr) auto; }
  .sw-verify-pick .sw-verify-leg { grid-column: 1 / -1; justify-self: start; }
  .sw-verify-how { grid-template-columns: 1fr; }
}