/* =========================
   ZENTRIXBET PREMIUM BETSLIP
========================= */

:root {
  --zb-green-dark: #08291f;
  --zb-green: #0b3d2e;
  --zb-green-light: #0b6e3f;
  --zb-gold: #f6d57a;
  --zb-bg: #f4f7f5;
  --zb-bottom-nav-height: calc(78px + env(safe-area-inset-bottom));
}

/* FLOAT BUTTON */
#sporty-betslip {
  position: fixed;
  right: 12px;
  bottom: calc(var(--zb-bottom-nav-height) + 14px);
  width: 54px;
  height: 54px;
  z-index: 9100;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(135deg, #08291f, #0b6e3f);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 16px 34px rgba(8,41,31,.34),
    inset 0 1px 0 rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s ease;
}

#sporty-betslip:hover {
  transform: translateY(-2px);
}

#sporty-betslip-count {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e9fff4);
  color: #08291f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 950;
  border: 2px solid rgba(246,213,122,.9);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* OVERLAY */
#betslip-overlay {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  z-index: 10000;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity .2s ease;
}

#betslip-overlay.show {
  display: block;
  opacity: 1;
}

/* PANEL */
#betslip-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100vw - 28px));
  max-height: min(88vh, 860px);
  z-index: 10001;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow:
    0 32px 90px rgba(2,6,23,.34),
    inset 0 1px 0 rgba(255,255,255,.9);
}

#betslip-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* HEADER */
.betslip-header {
  flex-shrink: 0;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, #08291f, #0b3d2e 48%, #062219);
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.betslip-tabs {
  display: flex;
  gap: 8px;
  flex: 1;
}

.betslip-tabs .tab {
  flex: 1;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.betslip-tabs .tab.active {
  color: #08291f;
  background: linear-gradient(135deg, #ffffff, #e9fff4);
  box-shadow: 0 10px 22px rgba(255,255,255,.12);
}

.close-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

/* BODY */
.betslip-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(25,135,84,.06), transparent 34%),
    #f4f7f5;
}

/* BET ITEM */
.bet-item {
  background: #ffffff;
  border: 1px solid rgba(15,61,46,.08);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow:
    0 12px 26px rgba(15,61,46,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.bet-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bet-info {
  min-width: 0;
  flex: 1;
}

.bet-info strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  color: #10251d;
  margin-bottom: 5px;
}

.bet-info small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0b6e3f;
}

.bet-item-buttons {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.bet-link-btn,
.remove-btn {
  border: none;
  cursor: pointer;
  font-weight: 900;
}

.bet-link-btn {
  height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf4;
  color: #0b6e3f;
  border: 1px solid #d7eadc;
  font-size: 11px;
}

.remove-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff1f0;
  color: #b42318;
}

/* SINGLE STAKE */
.single-stake-wrap {
  margin-top: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbf9;
  border: 1px solid #e8efea;
}

.single-win-row span {
  display: block;
  font-size: 11px;
  color: #66746c;
  font-weight: 800;
}

.single-win-row strong {
  font-size: 13px;
  color: #0b3d2e;
  font-weight: 950;
}

/* FOOTER */
.betslip-footer {
  flex-shrink: 0;
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid rgba(15,61,46,.08);
  box-shadow: 0 -12px 30px rgba(15,61,46,.07);
}

.betslip-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.betslip-summary span {
  color: #647067;
  font-size: 13px;
  font-weight: 800;
}

.betslip-summary strong {
  color: #0b3d2e;
  font-size: 14px;
  font-weight: 950;
}

.stake-row {
  align-items: center;
}

#stakeInput,
#bookingCodeInput,
.single-stake-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d8e4dc;
  border-radius: 13px;
  padding: 0 12px;
  outline: none;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

#stakeInput {
  max-width: 170px;
}

.single-stake-input {
  max-width: 150px;
}

#stakeInput:focus,
#bookingCodeInput:focus,
.single-stake-input:focus {
  border-color: #0b6e3f;
  box-shadow: 0 0 0 4px rgba(25,135,84,.12);
}

/* BOOKING */
.booking-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f8fffb, #ffffff);
  border: 1px solid rgba(15,61,46,.08);
}

.booking-card-title {
  margin-bottom: 9px;
  color: #10251d;
  font-size: 13px;
  font-weight: 950;
}

.booking-load-wrap {
  display: flex;
  gap: 8px;
}

.booking-load-wrap input {
  flex: 1;
  min-width: 0;
}

.booking-load-btn {
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #0b6e3f, #084f2d);
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

/* ACTION BUTTONS */
.betslip-action-row,
.bet-success-actions,
.booking-code-popup-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.place-bet-btn {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: none;
  border-radius: 15px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  transition: .18s ease;
}

.place-bet-btn:active {
  transform: scale(.97);
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, #0b6e3f, #084f2d);
  box-shadow: 0 12px 22px rgba(11,110,63,.22);
}

.secondary-action {
  color: #0b6e3f;
  background: #eefaf4;
  border: 1px solid #d7eadc;
}

.place-bet-btn:disabled,
.booking-load-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* NOTES */
.single-mode-note {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7df;
  border: 1px solid #f6e6b7;
  color: #7a5a12;
  font-size: 12px;
  font-weight: 800;
}

/* SELECTED ODDS */
.odd-box {
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.live-section .odd-box.selected,
.live-section.upcoming .odd-box.selected,
.odd-box.selected {
  background: linear-gradient(135deg, #08291f, #0b6e3f) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 8px 18px rgba(11,110,63,.18);
}

.odd-box.selected span {
  color: #ffffff !important;
  font-weight: 950;
}

.odd-box:active {
  transform: scale(.97);
}

/* BOOKING MODAL + SUCCESS MODAL */
.booking-code-overlay,
.bet-success-overlay {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  z-index: 10010;
  background: rgba(2,6,23,.64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity .2s ease;
}

.booking-code-overlay.show,
.bet-success-overlay.show {
  display: block;
  opacity: 1;
}

.booking-code-modal,
.bet-success-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 28px));
  z-index: 10011;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 32px 90px rgba(2,6,23,.34);
}

.booking-code-modal.open,
.bet-success-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.booking-code-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.booking-code-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eefaf4;
  color: #0b6e3f;
  font-size: 12px;
  font-weight: 950;
}

.booking-code-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff1f0;
  color: #b42318;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
}

.booking-code-ticket {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15,61,46,.1);
  background: #ffffff;
}

.booking-code-ticket-head {
  padding: 12px 14px;
  background: linear-gradient(135deg, #08291f, #0b3d2e);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.booking-code-ticket-brand,
.booking-code-ticket-status {
  font-size: 11px;
  font-weight: 950;
}

.booking-code-ticket-body {
  padding: 18px 14px;
  text-align: center;
}

.booking-code-ticket-label {
  font-size: 12px;
  font-weight: 800;
  color: #647067;
}

.booking-code-ticket-value {
  display: block;
  margin-top: 7px;
  color: #0b3d2e;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 2px;
  word-break: break-word;
}

.booking-code-ticket-meta {
  display: block;
  margin-top: 9px;
  color: #647067;
  font-size: 12px;
  line-height: 1.5;
}

.bet-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6d57a, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 14px 28px rgba(245,158,11,.24);
}

.bet-success-title {
  text-align: center;
  color: #0b3d2e;
  font-size: 22px;
  font-weight: 950;
}

.bet-success-message {
  text-align: center;
  margin: 6px 0 14px;
  color: #647067;
  font-size: 13px;
  font-weight: 700;
}

.bet-success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bet-success-card {
  padding: 12px;
  border-radius: 16px;
  background: #f8fffb;
  border: 1px solid rgba(15,61,46,.08);
}

.bet-success-card span {
  display: block;
  color: #647067;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.bet-success-card strong {
  color: #10251d;
  font-size: 14px;
  font-weight: 950;
  word-break: break-word;
}

.bet-success-code {
  grid-column: 1 / -1;
}

/* MOBILE */
@media (max-width: 768px) {
  #sporty-betslip {
    right: 10px;
    bottom: calc(var(--zb-bottom-nav-height) + 10px);
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }

  #sporty-betslip-count {
    width: 27px;
    height: 27px;
    font-size: 11px;
  }

  #betslip-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(90dvh, 90vh);
    max-height: min(90dvh, 90vh);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }

  #betslip-panel.open {
    transform: translateY(0);
  }

  .betslip-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .betslip-header {
    padding: 12px;
  }

  .betslip-tabs .tab {
    min-height: 36px;
    font-size: 12px;
  }

  .close-btn {
    width: 34px;
    height: 34px;
  }

  .betslip-body {
    padding: 12px;
  }

  .bet-item-top {
    flex-direction: column;
  }

  .bet-item-buttons {
    width: 100%;
  }

  .bet-link-btn {
    flex: 1;
    height: 36px;
  }

  .single-stake-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .single-stake-input {
    max-width: 100%;
  }

  #stakeInput {
    max-width: 145px;
  }

  .place-bet-btn {
    height: 46px;
    font-size: 12px;
  }

  .bet-success-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   ZENTRIXBET PREMIUM BETSLIP
========================= */

:root {
  --zb-green-dark: #08291f;
  --zb-green: #0b3d2e;
  --zb-green-soft: #0f5132;
  --zb-green-light: #0b6e3f;
  --zb-gold: #f6d57a;
  --zb-danger: #b42318;
  --zb-bg: #f4f7f5;
  --zb-bottom-nav-height: calc(78px + env(safe-area-inset-bottom));
}

.betslip-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* =========================
   FLOAT BUTTON
========================= */

#sporty-betslip {
  position: fixed;
  right: 12px;
  bottom: calc(var(--zb-bottom-nav-height) + 14px);
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  z-index: 9100;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(135deg, #08291f, #0b6e3f);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 16px 34px rgba(8,41,31,.34),
    inset 0 1px 0 rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}

#sporty-betslip:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(8,41,31,.38),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.sporty-betslip-left {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sporty-betslip-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: rgba(255,255,255,.96);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sporty-betslip-count {
  position: absolute;
  top: -9px;
  right: -8px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #e9fff4);
  color: #08291f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  border: 2px solid rgba(246,213,122,.95);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* =========================
   MAIN OVERLAY + PANEL
========================= */

#betslip-overlay {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  z-index: 10000;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity .2s ease;
}

#betslip-overlay.show {
  display: block;
  opacity: 1;
}

#betslip-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(460px, calc(100vw - 28px));
  max-height: min(88vh, 860px);
  z-index: 10001;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow:
    0 32px 90px rgba(2,6,23,.34),
    inset 0 1px 0 rgba(255,255,255,.9);
}

#betslip-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================
   HEADER
========================= */

.betslip-header {
  flex-shrink: 0;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, #08291f, #0b3d2e 48%, #062219);
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.betslip-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.betslip-tabs .tab {
  flex: 1;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: .18s ease;
}

.betslip-tabs .tab.active {
  color: #08291f;
  background: linear-gradient(135deg, #ffffff, #e9fff4);
  box-shadow: 0 10px 22px rgba(255,255,255,.12);
}

.close-btn,
.booking-code-close {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  flex-shrink: 0;
}

.close-btn svg,
.booking-code-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   BODY + BET ITEMS
========================= */

.betslip-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(25,135,84,.06), transparent 34%),
    #f4f7f5;
}

.bet-item {
  background: #ffffff;
  border: 1px solid rgba(15,61,46,.08);
  border-radius: 18px;
  padding: 13px;
  margin-bottom: 10px;
  box-shadow:
    0 12px 26px rgba(15,61,46,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.bet-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bet-info {
  min-width: 0;
  flex: 1 1 auto;
}

.bet-info strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
  color: #10251d;
  margin-bottom: 5px;
}

.bet-info small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #0b6e3f;
}

.bet-item-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.bet-link-btn,
.remove-btn {
  border: none;
  cursor: pointer;
  font-weight: 900;
}

.bet-link-btn {
  height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eefaf4;
  color: #0b6e3f;
  border: 1px solid #d7eadc;
  font-size: 11px;
}

.remove-btn {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff1f0;
  color: #b42318;
}

/* =========================
   SINGLE STAKE
========================= */

.single-stake-wrap {
  margin-top: 11px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 14px;
  background: #f8fbf9;
  border: 1px solid #e8efea;
}

.single-win-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 110px;
}

.single-win-row span {
  font-size: 11px;
  color: #66746c;
  font-weight: 800;
  margin-bottom: 3px;
}

.single-win-row strong {
  font-size: 13px;
  color: #0b3d2e;
  font-weight: 950;
}

/* =========================
   FOOTER
========================= */

.betslip-footer {
  flex-shrink: 0;
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid rgba(15,61,46,.08);
  box-shadow: 0 -12px 30px rgba(15,61,46,.07);
}

.betslip-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.betslip-summary span {
  color: #647067;
  font-size: 13px;
  font-weight: 800;
}

.betslip-summary strong {
  color: #0b3d2e;
  font-size: 14px;
  font-weight: 950;
}

.stake-row {
  align-items: center;
}

.single-mode-note {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7df;
  border: 1px solid #f6e6b7;
  color: #7a5a12;
  font-size: 12px;
  font-weight: 800;
}

#stakeInput,
#bookingCodeInput,
.single-stake-input {
  width: 100%;
  height: 44px;
  border: 1px solid #d8e4dc;
  border-radius: 13px;
  padding: 0 12px;
  outline: none;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  box-sizing: border-box;
}

#stakeInput {
  max-width: 170px;
}

.single-stake-input {
  max-width: 150px;
}

#stakeInput:focus,
#bookingCodeInput:focus,
.single-stake-input:focus {
  border-color: #0b6e3f;
  box-shadow: 0 0 0 4px rgba(25,135,84,.12);
}

/* =========================
   BOOKING CARD
========================= */

.booking-card {
  margin: 12px 0;
  padding: 12px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f8fffb, #ffffff);
  border: 1px solid rgba(15,61,46,.08);
}

.booking-card-title {
  margin-bottom: 9px;
  color: #10251d;
  font-size: 13px;
  font-weight: 950;
}

.booking-load-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-load-wrap input {
  flex: 1;
  min-width: 0;
}

.booking-load-btn {
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #0b6e3f, #084f2d);
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
  flex-shrink: 0;
}

/* =========================
   ACTION BUTTONS
========================= */

.betslip-action-row,
.bet-success-actions,
.booking-code-popup-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.place-bet-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  border: none;
  border-radius: 15px;
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: .18s ease;
}

.place-bet-btn:active {
  transform: scale(.97);
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, #0b6e3f, #084f2d);
  box-shadow: 0 12px 22px rgba(11,110,63,.22);
}

.secondary-action {
  color: #0b6e3f;
  background: #eefaf4;
  border: 1px solid #d7eadc;
}

.place-bet-btn:disabled,
.booking-load-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* =========================
   BOOKING CODE MODAL
========================= */

.booking-code-overlay,
.bet-success-overlay {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  z-index: 10010;
  background: rgba(2,6,23,.64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity .2s ease;
}

.booking-code-overlay.show,
.bet-success-overlay.show {
  display: block;
  opacity: 1;
}

.booking-code-modal,
.bet-success-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 28px));
  z-index: 10011;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 32px 90px rgba(2,6,23,.34);
}

.booking-code-modal.open,
.bet-success-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.booking-code-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.booking-code-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eefaf4;
  color: #0b6e3f;
  border: 1px solid #d7eadc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .4px;
}

.booking-code-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff1f0;
  color: #b42318;
}

.booking-code-ticket {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15,61,46,.1);
  background: #ffffff;
}

.booking-code-ticket-head {
  padding: 12px 14px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, #08291f, #0b3d2e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-code-ticket-brand,
.booking-code-ticket-status {
  font-size: 11px;
  font-weight: 950;
}

.booking-code-ticket-body {
  padding: 18px 14px;
  text-align: center;
}

.booking-code-ticket-label {
  font-size: 12px;
  font-weight: 800;
  color: #647067;
}

.booking-code-ticket-value {
  display: block;
  margin-top: 7px;
  color: #0b3d2e;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 2px;
  word-break: break-word;
}

.booking-code-ticket-meta {
  display: block;
  margin-top: 9px;
  color: #647067;
  font-size: 12px;
  line-height: 1.5;
}

.booking-code-popup-actions {
  margin-top: 16px;
}

/* =========================
   SUCCESS MODAL
========================= */

.bet-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6d57a, #f59e0b);
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(245,158,11,.24);
}

.bet-success-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bet-success-title {
  text-align: center;
  color: #0b3d2e;
  font-size: 22px;
  font-weight: 950;
}

.bet-success-message {
  text-align: center;
  margin: 6px 0 14px;
  color: #647067;
  font-size: 13px;
  font-weight: 700;
}

.bet-success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bet-success-card {
  padding: 12px;
  border-radius: 16px;
  background: #f8fffb;
  border: 1px solid rgba(15,61,46,.08);
}

.bet-success-card span {
  display: block;
  color: #647067;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.bet-success-card strong {
  color: #10251d;
  font-size: 14px;
  font-weight: 950;
  word-break: break-word;
}

.bet-success-code {
  grid-column: 1 / -1;
}

.bet-success-actions {
  margin-top: 16px;
}

/* =========================
   SELECTED ODDS
========================= */

.odd-box {
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.live-section .odd-box.selected,
.live-section.upcoming .odd-box.selected,
.odd-box.selected {
  background: linear-gradient(135deg, #08291f, #0b6e3f) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.25),
    0 8px 18px rgba(11,110,63,.18);
}

.odd-box.selected span {
  color: #ffffff !important;
  font-weight: 950;
}

.odd-box:active {
  transform: scale(.97);
}

.currency-amount {
  font-variant-numeric: tabular-nums;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  #sporty-betslip {
    right: 10px;
    bottom: calc(var(--zb-bottom-nav-height) + 10px);
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 17px;
  }

  .sporty-betslip-icon {
    width: 23px;
    height: 23px;
  }

  #sporty-betslip-count {
    top: -8px;
    right: -7px;
    min-width: 24px;
    height: 24px;
    font-size: 10px;
  }

  #betslip-panel {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(90dvh, 90vh);
    max-height: min(90dvh, 90vh);
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    opacity: 1;
  }

  #betslip-panel.open {
    transform: translateY(0);
  }

  .betslip-footer {
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  #sporty-betslip {
    right: 8px;
    bottom: calc(var(--zb-bottom-nav-height) + 8px);
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .sporty-betslip-icon {
    width: 21px;
    height: 21px;
  }

  #sporty-betslip-count {
    min-width: 23px;
    height: 23px;
    font-size: 10px;
  }

  #betslip-panel {
    height: min(92dvh, 92vh);
    max-height: min(92dvh, 92vh);
  }

  .betslip-header {
    gap: 8px;
    padding: 12px;
  }

  .betslip-tabs {
    gap: 6px;
  }

  .betslip-tabs .tab {
    min-height: 36px;
    font-size: 12px;
  }

  .close-btn {
    width: 34px;
    height: 34px;
  }

  .betslip-body {
    padding: 12px;
  }

  .bet-item-top {
    flex-direction: column;
  }

  .bet-item-buttons {
    width: 100%;
  }

  .bet-link-btn {
    flex: 1;
    height: 36px;
  }

  .single-stake-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .single-stake-input {
    max-width: 100%;
  }

  .single-win-row {
    align-items: flex-start;
    min-width: 0;
  }

  #stakeInput {
    max-width: 145px;
  }

  .booking-load-wrap {
    gap: 6px;
  }

  .booking-load-btn {
    height: 42px;
    padding: 0 12px;
  }

  .betslip-action-row,
  .bet-success-actions,
  .booking-code-popup-actions {
    gap: 8px;
  }

  .place-bet-btn {
    height: 46px;
    font-size: 12px;
    padding: 0 8px;
  }

  .booking-code-modal,
  .bet-success-modal {
    width: min(420px, calc(100vw - 20px));
    padding: 16px;
  }

  .booking-code-ticket-value {
    font-size: 27px;
    letter-spacing: 1.5px;
  }

  .bet-success-grid {
    grid-template-columns: 1fr;
  }
}