/* =========================
   TITAN BLUE PREMIUM BETSLIP
   File: /assets/css/betslip.css
========================= */

:root{
  --tb-blue-dark:#143858;
  --tb-blue:#2b5c86;
  --tb-blue-soft:#edf5fb;
  --tb-blue-light:#f6f9fc;
  --tb-text:#0f2233;
  --tb-muted:#7b8794;
  --tb-border:rgba(20,56,88,.12);
  --tb-border-strong:rgba(20,56,88,.20);
  --tb-shadow:0 12px 28px rgba(20,56,88,.14);
  --tb-white:#ffffff;
  --tb-danger:#b42318;
  --tb-danger-soft:#fff1f0;
  --tb-success:#16a36a;
  --tb-gold:#f6d57a;
  --zb-bottom-nav-height:calc(78px + env(safe-area-inset-bottom));
}

.betslip-svg-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

#sporty-betslip,
#sporty-betslip *,
#betslip-panel,
#betslip-panel *,
#bookingCodeModal,
#bookingCodeModal *,
#betSuccessModal,
#betSuccessModal *{
  box-sizing:border-box;
}

/* =========================
   FLOATING BUTTON
========================= */

#sporty-betslip{
  position:fixed;
  right:12px;
  bottom:calc(var(--zb-bottom-nav-height) + 14px);
  width:56px;
  height:56px;
  min-width:56px;
  min-height:56px;
  z-index:9100;
  border:1px solid rgba(255,255,255,.18);
  border-radius:20px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.24), transparent 34%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  color:#ffffff;
  box-shadow:
    0 16px 34px rgba(20,56,88,.32),
    inset 0 1px 0 rgba(255,255,255,.18);
  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, opacity .18s ease;
}

#sporty-betslip:hover{
  transform:translateY(-2px);
  box-shadow:
    0 20px 42px rgba(20,56,88,.38),
    inset 0 1px 0 rgba(255,255,255,.22);
}

#sporty-betslip:active{
  transform:scale(.96);
}

.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:currentColor;
  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 7px;
  border-radius:999px;
  background:linear-gradient(135deg,#ffffff,#edf5fb);
  color:var(--tb-blue-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:1000;
  line-height:1;
  border:2px solid rgba(246,213,122,.95);
  box-shadow:0 8px 20px rgba(0,0,0,.20);
}

/* =========================
   OVERLAYS + SHEETS
========================= */

#betslip-overlay,
.booking-code-overlay,
.bet-success-overlay{
  position:fixed;
  inset:0;
  display:none;
  opacity:0;
  z-index:10000;
  background:rgba(5,13,31,.56);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:opacity .2s ease;
}

#betslip-overlay.show,
.booking-code-overlay.show,
.bet-success-overlay.show{
  display:block;
  opacity:1;
}

.booking-code-overlay,
.bet-success-overlay{
  z-index:10010;
}

#betslip-panel{
  position:fixed;
  left:50%;
  top:50%;
  width:min(472px, calc(100vw - 28px));
  max-height:min(90vh, 860px);
  z-index:10001;
  background:#ffffff;
  border:1px solid rgba(255,255,255,.88);
  border-radius:26px;
  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 92px rgba(5,13,31,.32),
    inset 0 1px 0 rgba(255,255,255,.96);
}

#betslip-panel.open{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, -50%) scale(1);
}

/* =========================
   HEADER
========================= */

.betslip-header{
  flex-shrink:0;
  padding:14px;
  color:#ffffff;
  background:
    radial-gradient(circle at 14% 0%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  border-bottom:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.betslip-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.betslip-brand-icon{
  width:40px;
  height:40px;
  border-radius:16px;
  flex:0 0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}

.betslip-brand-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.05;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.betslip-brand-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.betslip-brand-text strong{
  display:block;
  font-size:16px;
  font-weight:1000;
  line-height:1;
  letter-spacing:-.2px;
  text-transform:lowercase;
}

.betslip-brand-text small{
  display:block;
  color:rgba(255,255,255,.74);
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-transform:lowercase;
}

.close-btn,
.booking-code-close{
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  -webkit-tap-highlight-color:transparent;
}

.close-btn{
  width:40px;
  height:40px;
  border-radius:15px;
  background:rgba(255,255,255,.13);
  color:#ffffff;
  border:1px solid rgba(255,255,255,.14);
  flex-shrink:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}

.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;
}

/* =========================
   MODE TABS
========================= */

.betslip-tabs{
  flex-shrink:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  padding:8px;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.08), transparent 36%),
    #f6f8fb;
  border-bottom:1px solid rgba(20,56,88,.08);
}

.betslip-tabs .tab{
  min-height:38px;
  border:1px solid rgba(20,56,88,.10);
  border-radius:14px;
  background:#ffffff;
  color:#7b8794;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
  text-transform:lowercase;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  box-shadow:0 8px 18px rgba(20,56,88,.055);
}

.betslip-tabs .tab.active{
  color:#ffffff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 42%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  border-color:rgba(255,255,255,.18);
  box-shadow:0 12px 24px rgba(20,56,88,.22);
  transform:translateY(-1px);
}

/* =========================
   BODY + EMPTY
========================= */

.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(43,92,134,.08), transparent 34%),
    #f6f8fb;
}

.betslip-empty{
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px 18px;
  color:var(--tb-muted);
  border:1px dashed rgba(20,56,88,.18);
  border-radius:22px;
  background:#ffffff;
  box-shadow:0 10px 24px rgba(20,56,88,.06);
}

.betslip-empty-icon{
  width:54px;
  height:54px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:12px;
  color:#ffffff;
  background:linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  box-shadow:0 14px 28px rgba(20,56,88,.20);
}

.betslip-empty-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.betslip-empty strong{
  color:var(--tb-text);
  font-size:15px;
  font-weight:1000;
  text-transform:lowercase;
}

.betslip-empty small{
  display:block;
  margin-top:5px;
  font-size:12px;
  font-weight:850;
  color:var(--tb-muted);
}

/* =========================
   BET ITEM
========================= */

.bet-item{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.075), transparent 35%),
    linear-gradient(135deg,#ffffff,#fbfdff);
  border:1px solid rgba(20,56,88,.10);
  border-radius:20px;
  padding:12px;
  margin-bottom:10px;
  box-shadow:
    0 12px 26px rgba(20,56,88,.08),
    inset 0 1px 0 rgba(255,255,255,.94);
}

.bet-item::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--tb-blue),var(--tb-blue-dark));
}

.bet-item-top{
  position:relative;
  z-index:1;
  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:13px;
  font-weight:1000;
  color:var(--tb-text);
  line-height:1.25;
  margin-bottom:7px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bet-info small{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:5px 9px;
  border-radius:999px;
  background:#edf5fb;
  color:var(--tb-blue-dark);
  border:1px solid rgba(20,56,88,.10);
  font-size:10.5px;
  font-weight:1000;
  line-height:1.1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bet-item-buttons{
  display:flex;
  align-items:center;
  gap:7px;
  flex-shrink:0;
}

.bet-link-btn,
.remove-btn{
  border:none;
  cursor:pointer;
  font-weight:1000;
  -webkit-tap-highlight-color:transparent;
}

.bet-link-btn{
  height:32px;
  padding:0 10px;
  border-radius:999px;
  background:#edf5fb;
  color:var(--tb-blue-dark);
  border:1px solid rgba(20,56,88,.10);
  font-size:10px;
  text-transform:lowercase;
}

.remove-btn{
  width:32px;
  height:32px;
  border-radius:999px;
  background:#fff1f0;
  color:var(--tb-danger);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.remove-btn svg,
.bet-link-btn svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* =========================
   SINGLE STAKE
========================= */

.single-stake-wrap{
  position:relative;
  z-index:1;
  margin-top:11px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border-radius:16px;
  background:#f6f9fc;
  border:1px solid rgba(20,56,88,.09);
}

.single-win-row{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:110px;
}

.single-win-row span{
  color:var(--tb-muted);
  font-size:10px;
  font-weight:850;
  margin-bottom:3px;
  text-transform:lowercase;
}

.single-win-row strong{
  color:var(--tb-blue-dark);
  font-size:13px;
  font-weight:1000;
}

/* =========================
   FOOTER
========================= */

.betslip-footer{
  flex-shrink:0;
  padding:14px;
  background:#ffffff;
  border-top:1px solid rgba(20,56,88,.08);
  box-shadow:0 -12px 30px rgba(20,56,88,.08);
}

.quickbet-card{
  padding:12px;
  border-radius:18px;
  margin-bottom:10px;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.08), transparent 38%),
    linear-gradient(135deg,#ffffff,#f7fbff);
  border:1px solid rgba(20,56,88,.10);
  box-shadow:0 10px 22px rgba(20,56,88,.06);
}

.quickbet-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}

.quickbet-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--tb-text);
  font-size:11px;
  font-weight:1000;
  text-transform:lowercase;
}

.quickbet-title svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:var(--tb-blue);
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.quickbet-head small{
  color:var(--tb-muted);
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
  text-transform:lowercase;
}

.quickbet-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:7px;
}

.quickbet-chip{
  min-height:34px;
  border:1px solid rgba(20,56,88,.10);
  border-radius:13px;
  background:#edf5fb;
  color:var(--tb-blue-dark);
  font-size:11px;
  font-weight:1000;
  cursor:pointer;
  text-transform:lowercase;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
  -webkit-tap-highlight-color:transparent;
}

.quickbet-chip:hover{
  background:linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  color:#ffffff;
  box-shadow:0 10px 18px rgba(20,56,88,.18);
}

.quickbet-chip:active{
  transform:scale(.96);
}

.quickbet-chip-soft{
  background:#fff1f0;
  color:var(--tb-danger);
}

.betslip-summary-card{
  padding:12px;
  border-radius:18px;
  margin-bottom:10px;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.08), transparent 38%),
    #f6f9fc;
  border:1px solid rgba(20,56,88,.09);
}

.betslip-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:4px 0;
}

.betslip-summary + .betslip-summary{
  border-top:1px solid rgba(20,56,88,.075);
  margin-top:5px;
  padding-top:9px;
}

.betslip-summary span{
  color:var(--tb-muted);
  font-size:12px;
  font-weight:900;
  text-transform:lowercase;
}

.betslip-summary strong{
  color:var(--tb-text);
  font-size:13px;
  font-weight:1000;
  font-variant-numeric:tabular-nums;
  text-align:right;
}

.betslip-summary-win strong{
  color:var(--tb-blue-dark);
  font-size:16px;
}

.stake-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  padding:10px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid rgba(20,56,88,.10);
}

.stake-row label{
  color:var(--tb-text);
  font-size:12px;
  font-weight:1000;
  text-transform:lowercase;
}

.stake-input-wrap{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:6px;
  min-width:0;
  border:1px solid rgba(20,56,88,.12);
  border-radius:14px;
  background:#f6f9fc;
  padding:0 10px;
}

.stake-input-wrap span{
  color:var(--tb-blue-dark);
  font-size:11px;
  font-weight:1000;
}

#stakeInput,
#bookingCodeInput,
.single-stake-input{
  width:100%;
  height:42px;
  border:0;
  outline:none;
  background:transparent;
  color:#111827;
  font-size:14px;
  font-weight:900;
  box-sizing:border-box;
}

.single-stake-input{
  height:40px;
  padding:0 10px;
  border:1px solid rgba(20,56,88,.12);
  border-radius:13px;
  background:#ffffff;
}

#stakeInput::placeholder,
#bookingCodeInput::placeholder,
.single-stake-input::placeholder{
  color:#9aa6b2;
  font-weight:800;
  text-transform:lowercase;
}

.stake-input-wrap:focus-within,
.booking-load-wrap:focus-within,
.single-stake-input:focus{
  border-color:rgba(43,92,134,.42);
  box-shadow:0 0 0 4px rgba(43,92,134,.10);
}

.single-mode-note{
  display:none;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#fff8e1;
  border:1px solid rgba(246,213,122,.55);
  color:#7a5a12;
  font-size:11.5px;
  font-weight:850;
  line-height:1.45;
}

/* =========================
   BOOKING
========================= */

.booking-card{
  margin-bottom:10px;
  padding:12px;
  border-radius:18px;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.08), transparent 38%),
    #ffffff;
  border:1px solid rgba(20,56,88,.10);
  box-shadow:0 10px 22px rgba(20,56,88,.055);
}

.booking-card-title{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:9px;
  color:var(--tb-text);
  font-size:12px;
  font-weight:1000;
  text-transform:lowercase;
}

.booking-card-title svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:var(--tb-blue);
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.booking-load-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
}

.booking-load-wrap input{
  height:42px;
  border:1px solid rgba(20,56,88,.12);
  border-radius:14px;
  background:#f6f9fc;
  padding:0 12px;
}

.booking-load-btn{
  height:42px;
  padding:0 14px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  color:#ffffff;
  font-weight:1000;
  cursor:pointer;
  text-transform:lowercase;
  box-shadow:0 10px 18px rgba(20,56,88,.18);
}

.booking-load-btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}

/* =========================
   ACTION BUTTONS
========================= */

.betslip-action-row,
.bet-success-actions,
.booking-code-popup-actions{
  display:flex;
  align-items:stretch;
  gap:10px;
  width:100%;
}

.place-bet-btn{
  flex:1 1 0;
  min-width:0;
  height:48px;
  border:none;
  border-radius:16px;
  padding:0 10px;
  cursor:pointer;
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-transform:lowercase;
  transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
  -webkit-tap-highlight-color:transparent;
}

.place-bet-btn:active{
  transform:scale(.97);
}

.primary-action{
  color:#ffffff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 42%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  box-shadow:0 12px 24px rgba(20,56,88,.24);
}

.secondary-action{
  color:var(--tb-blue-dark);
  background:#edf5fb;
  border:1px solid rgba(20,56,88,.12);
}

.place-bet-btn:disabled{
  opacity:.68;
  cursor:not-allowed;
}

/* =========================
   BOOKING CODE MODAL
========================= */

.booking-code-modal,
.bet-success-modal{
  position:fixed;
  left:50%;
  top:50%;
  width:min(430px, calc(100vw - 28px));
  z-index:10011;
  background:#ffffff;
  border:1px solid rgba(255,255,255,.88);
  border-radius:26px;
  padding:18px;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, -50%) scale(.96);
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:
    0 32px 92px rgba(5,13,31,.32),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.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;
  gap:7px;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  background:#edf5fb;
  color:var(--tb-blue-dark);
  border:1px solid rgba(20,56,88,.12);
  font-size:12px;
  font-weight:1000;
  letter-spacing:.25px;
  text-transform:lowercase;
}

.booking-code-badge svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.booking-code-close{
  width:38px;
  height:38px;
  border-radius:999px;
  background:#fff1f0;
  color:var(--tb-danger);
}

.booking-code-ticket{
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(20,56,88,.12);
  background:#ffffff;
  box-shadow:0 12px 24px rgba(20,56,88,.08);
}

.booking-code-ticket-head{
  padding:13px 15px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.booking-code-ticket-brand,
.booking-code-ticket-status{
  font-size:10.5px;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.45px;
}

.booking-code-ticket-body{
  padding:20px 14px;
  text-align:center;
  background:
    radial-gradient(circle at top right, rgba(43,92,134,.08), transparent 38%),
    #ffffff;
}

.booking-code-ticket-label{
  font-size:12px;
  font-weight:850;
  color:var(--tb-muted);
  text-transform:lowercase;
}

.booking-code-ticket-value{
  display:block;
  margin-top:8px;
  color:var(--tb-blue-dark);
  font-size:31px;
  font-weight:1000;
  letter-spacing:2px;
  word-break:break-word;
  font-variant-numeric:tabular-nums;
}

.booking-code-ticket-meta{
  display:block;
  margin-top:10px;
  color:var(--tb-muted);
  font-size:12px;
  line-height:1.5;
}

.booking-code-popup-actions{
  margin-top:16px;
}

/* =========================
   SUCCESS MODAL
========================= */

.bet-success-icon{
  width:68px;
  height:68px;
  margin:0 auto 12px;
  border-radius:24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.32), transparent 36%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue));
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 16px 34px rgba(20,56,88,.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:var(--tb-text);
  font-size:22px;
  font-weight:1000;
  letter-spacing:-.25px;
  text-transform:lowercase;
}

.bet-success-message{
  text-align:center;
  margin:6px 0 14px;
  color:var(--tb-muted);
  font-size:13px;
  font-weight:750;
}

.bet-success-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.bet-success-card{
  padding:12px;
  border-radius:18px;
  background:#f6f9fc;
  border:1px solid rgba(20,56,88,.10);
}

.bet-success-card span{
  display:block;
  color:var(--tb-muted);
  font-size:11px;
  font-weight:850;
  margin-bottom:5px;
  text-transform:lowercase;
}

.bet-success-card strong{
  color:var(--tb-text);
  font-size:14px;
  font-weight:1000;
  word-break:break-word;
}

.bet-success-code{
  grid-column:1 / -1;
}

.bet-success-actions{
  margin-top:16px;
}

/* =========================
   GLOBAL SELECTED ODDS COMPAT
========================= */

.odd-box,
.live-odd-box,
.index-live-odd-box,
.index-upcoming-odd-box{
  transition:background-color .15s ease, transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}

.odd-box.selected,
.odd-box.is-selected,
.odd-box.active,
.odd-box.in-slip,
.live-odd-box.selected,
.live-odd-box.is-selected,
.live-odd-box.active,
.live-odd-box.in-slip,
.index-live-odd-box.selected,
.index-live-odd-box.is-selected,
.index-live-odd-box.active,
.index-live-odd-box.in-slip,
.index-upcoming-odd-box.selected,
.index-upcoming-odd-box.is-selected,
.index-upcoming-odd-box.active,
.index-upcoming-odd-box.in-slip{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 42%),
    linear-gradient(135deg,var(--tb-blue-dark),var(--tb-blue)) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    0 10px 22px rgba(20,56,88,.22) !important;
}

.odd-box.selected span,
.odd-box.selected small,
.live-odd-box.selected span,
.live-odd-box.selected small,
.index-live-odd-box.selected span,
.index-live-odd-box.selected small,
.index-upcoming-odd-box.selected span,
.index-upcoming-odd-box.selected small{
  color:#ffffff !important;
}

.currency-amount{
  font-variant-numeric:tabular-nums;
}

/* =========================
   MOBILE + SMALL SCREENS
========================= */

@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:18px;
  }

  .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(92dvh, 92vh);
    max-height:min(92dvh, 92vh);
    border-radius:24px 24px 0 0;
    transform:translateY(100%);
    opacity:1;
  }

  #betslip-panel.open{
    transform:translateY(0);
  }

  .betslip-footer{
    max-height:48vh;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    padding-bottom:calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width:520px){
  #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-header{
    padding:12px;
  }

  .betslip-brand-icon{
    width:36px;
    height:36px;
    flex-basis:36px;
    border-radius:14px;
  }

  .betslip-brand-text strong{
    font-size:15px;
  }

  .close-btn{
    width:36px;
    height:36px;
    border-radius:14px;
  }

  .betslip-tabs{
    padding:7px;
    gap:6px;
  }

  .betslip-tabs .tab{
    min-height:36px;
    font-size:12px;
  }

  .betslip-body{
    padding:12px;
  }

  .bet-item{
    border-radius:18px;
    padding:11px;
  }

  .bet-item-top{
    flex-direction:column;
    gap:9px;
  }

  .bet-item-buttons{
    width:100%;
  }

  .bet-link-btn{
    flex:1;
    height:36px;
  }

  .remove-btn{
    width:36px;
    height:36px;
  }

  .single-stake-wrap{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .single-stake-input{
    max-width:100%;
  }

  .single-win-row{
    align-items:flex-start;
    min-width:0;
  }

  .quickbet-grid{
    grid-template-columns:repeat(5, minmax(0,1fr));
    gap:6px;
  }

  .quickbet-chip{
    min-height:32px;
    font-size:10px;
    border-radius:12px;
  }

  .quickbet-head{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .stake-row{
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .booking-load-wrap{
    grid-template-columns:1fr;
  }

  .booking-load-btn{
    width:100%;
  }

  .betslip-action-row,
  .bet-success-actions,
  .booking-code-popup-actions{
    gap:8px;
  }

  .place-bet-btn{
    height:46px;
    font-size:12px;
    padding:0 8px;
    border-radius:15px;
  }

  .booking-code-modal,
  .bet-success-modal{
    width:min(430px, calc(100vw - 20px));
    padding:16px;
    border-radius:24px;
  }

  .booking-code-ticket-value{
    font-size:27px;
    letter-spacing:1.4px;
  }

  .bet-success-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:360px){
  .quickbet-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .betslip-summary-win strong{
    font-size:15px;
  }
}

@media (prefers-reduced-motion:reduce){
  #sporty-betslip,
  #betslip-panel,
  #betslip-overlay,
  .booking-code-modal,
  .bet-success-modal,
  .quickbet-chip,
  .place-bet-btn{
    transition:none !important;
  }
}
