.build-parlay-row {
  display: flex;
  align-items: center;
}

#build-parlay-button.btn.btn-primary {
  border:1px solid rgba(34,221,182,.45); color:#071317;
  background-image:linear-gradient(180deg, rgba(124,227,216,.98), rgba(34,221,182,.98));
  box-shadow:0 6px 24px rgba(34,221,182,.25), inset 0 1px 0 rgba(255,255,255,.18);
}

/* ===========================
   NFL Builder – Filter Modal
   =========================== */

/* Hide cards the builder filtered out */
.nfl-builder-hidden { display: none !important; }

/* ---------- Overlay (covers entire viewport, blocks clicks) ---------- */
.nflf-overlay{
  position: fixed;
  inset: 0;
  background: rgba(3,22,37,0.90);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 2147483645;                      /* above everything */
  pointer-events: all;
}

/* Lock page scroll when modal is open (desktop + iOS friendly) */
body.nflf-lock{
  overflow: hidden !important;
  overscroll-behavior: contain;
}

/* ---------- Modal root (independent of page stacking/scroll) ---------- */
#nfl-filter-popup.nflf-modal-root{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  z-index: 2147483646;   
}

/* Modal panel */
#nfl-filter-popup .nflf-modal{
  width: min(980px, 96vw);
  height: calc(100dvh - 48px);
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  color: #d6fffa;
  background: #051424;
  border: 1px solid rgba(45, 190, 170, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  overflow: hidden;
}

/* Header */
#nfl-filter-popup .nflf-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0.0));
}
#nfl-filter-popup .nflf-title{ font-size: 20px; font-weight: 600;}
#nfl-filter-popup .nflf-subtitle{ font-size: 12px; color: rgba(214,255,250,0.75); margin-top: 4px; }
#nfl-filter-popup .nflf-close{
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.12);
  color: #d6fffa;
}
#nfl-filter-popup .nflf-close:hover{ background: rgba(255,255,255,0.2); }

/* Presets row */
#nfl-filter-popup .nflf-presets-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 10px;
}
#nfl-filter-popup .nflf-preset{
  appearance: none;
  border: 1px solid rgba(45,190,170,0.35);
  background: rgba(2, 156, 137, 0.12);
  color: #d6fffa;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}
#nfl-filter-popup .nflf-preset span{ opacity: .75; margin-left: 6px; font-weight: 400; }

/* Body (scroll area) */
#nfl-filter-popup .nflf-body{
  flex: 1 1 auto;
  min-height: 0;                 /* critical for flex scroll areas */
  padding: 12px 16px 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Sections */
#nfl-filter-popup .nflf-section{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(45, 190, 170, 0.18);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
#nfl-filter-popup .nflf-section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#nfl-filter-popup .nflf-section-title{ font-size: 16px; font-weight: 600; }
#nfl-filter-popup .nflf-section-sub{ font-size: 12px; color: rgba(214,255,250,0.75); margin-top: 2px; }
#nfl-filter-popup .nflf-right-actions{ display: flex; gap: 8px; }

/* Chips (shared) */
#nfl-filter-popup .nflf-chips{ display: flex; flex-wrap: wrap; gap: 8px; }

#nfl-filter-popup .nflf-chip,
#nfl-filter-popup .nfl-filter-btn,
#nfl-filter-popup .nfl-builder-matchup-btn{
  appearance: none;
  border: 1px solid rgba(45, 190, 170, 0.35);
  background: rgba(2, 156, 137, 0.18);
  color: #d6fffa;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

#nfl-filter-popup .nflf-chip:hover,
#nfl-filter-popup .nfl-filter-btn:hover,
#nfl-filter-popup .nfl-builder-matchup-btn:hover{
  background: rgba(2, 156, 137, 0.28);
  border-color: rgba(45, 190, 170, 0.55);
}

/* Active states */
#nfl-filter-popup .active-chip,
#nfl-filter-popup .nfl-filter-btn.active-filter,
#nfl-filter-popup .nfl-builder-matchup-btn.active-chip{
  background: rgba(45, 190, 170, 0.82);
  color: #031625;
  border-color: rgba(45, 190, 170, 0.9);
}

/* Disabled type buttons (position logic) */
#nfl-filter-popup .nfl-filter-btn.is-disabled{
  cursor: not-allowed;
  opacity: .45;
  background: rgba(2, 156, 137, 0.10);
  border-color: rgba(45, 190, 170, 0.15);
}
#nfl-filter-popup .nfl-filter-btn.is-disabled.active-filter{
  background: rgba(2, 156, 137, 0.10);
  color: #d6fffa;
}

/* Matchups grid */
#nfl-filter-popup .nflf-matchups-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}




/* Two-line matchup chips (teams on 1st line, kickoff under) */
#nfl-filter-popup .nflf-matchups-grid .nfl-builder-matchup-btn{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding-top: 10px;
  padding-bottom: 10px;
}

#nfl-filter-popup .nfl-builder-matchup-btn .mu-teams{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  color: #d6fffa;
}

#nfl-filter-popup .nfl-builder-matchup-btn .mu-kick{
  font-size: 12px;
  line-height: 1.15;
  color: rgba(214,255,250,0.85);
}

/* keep selected contrast consistent with your chip colors */
#nfl-filter-popup .nflf-matchups-grid .nfl-builder-matchup-btn.active-chip .mu-teams{ color:#031625; }
#nfl-filter-popup .nflf-matchups-grid .nfl-builder-matchup-btn.active-chip .mu-kick{ color:rgba(3,22,37,0.8); }

/* Mobile sizing */
@media (max-width: 1000px){
  #nfl-filter-popup .nfl-builder-matchup-btn .mu-teams{ font-size: 22px; }
  #nfl-filter-popup .nfl-builder-matchup-btn .mu-kick { font-size: 18px; }
}

@media (max-width: 640px){
  #nfl-filter-popup .nflf-matchups-grid{ grid-template-columns: 1fr; }
}

/* Hint text under Bet Types */
#nfl-filter-popup .nflf-hint{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(214,255,250,0.75);
}

/* Sticky footer */
#nfl-filter-popup .nflf-footer{
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(3, 22, 37, 0.75);
  border-top: 1px solid rgba(45,190,170,0.2);
}
#nfl-filter-popup .nflf-summary{
  font-size: 12px;
  color: rgba(214,255,250,0.85);
}
#nfl-filter-popup .nflf-footer-actions{ display: flex; gap: 8px; }

#nfl-filter-popup .nflf-clear,
#nfl-filter-popup .nflf-reset{
  appearance: none;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  background: transparent;
  color: #d6fffa;
  border: 1px solid rgba(45, 190, 170, 0.35);
}
#nfl-filter-popup .nflf-clear:hover,
#nfl-filter-popup .nflf-reset:hover{
  background: rgba(255,255,255,0.08);
}

#nfl-filter-popup .nflf-apply{
  appearance: none;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 13px;
  background: rgba(45, 190, 170, 0.92);
  color: #031625;
  border: 1px solid rgba(45, 190, 170, 0.95);
  box-shadow: 0 10px 20px rgba(45, 190, 170, 0.2);
}
#nfl-filter-popup .nflf-apply:hover{ background: rgba(45, 190, 170, 1); }

/* ===========================
   Odds slider tier chips (UI)
   =========================== */

#odds-tiers-rail{
  position: relative;
  height: 32px;                 /* space for the chips below the slider */
  margin-top: 8px;
}

#odds-tiers-rail .odds-chip{
  position: absolute;
  top: 2px;                     /* sit just under the slider thumb path */
  transform: translateX(-50%);
  white-space: nowrap;

  appearance: none;
  border: 1px solid rgba(45, 190, 170, 0.35);
  background: rgba(2, 156, 137, 0.18);
  color: #d6fffa;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  opacity: 0.7;
}
#odds-tiers-rail .odds-chip:hover{
  background: rgba(2, 156, 137, 0.28);
  border-color: rgba(45, 190, 170, 0.55);
}
#odds-tiers-rail .odds-chip.active{
  background: rgba(45, 190, 170, 0.82);
  color: #031625;
  border-color: rgba(45, 190, 170, 0.9);
}

#nfl-filter-popup .nflf-header {
  position: relative;          /* create containing block for the button */
  padding-right: 56px;         /* reserve space so text doesn't sit under the X */
}

#nfl-filter-popup .nflf-close {
  position: absolute;
  top: 10px;                   /* tweak to taste */
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;                  /* fixed size, not padding-based */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;              /* avoids vertical drift from font metrics */
  border-radius: 10px;
}




/* Secondary CTA next to Build Parlay */
.nflf-trigger-btn{
  display:inline-flex; align-items:center; gap:.55rem;
  height:48px; padding:0 14px;
  border-radius:14px;
  background:transparent;
  color:#9ff6e6;
  border:1px solid rgba(45,190,170,.45);
  box-shadow: inset 0 0 0 0 rgba(45,190,170,0);
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.nflf-trigger-btn:hover{ background:rgba(2,156,137,.14); border-color:rgba(45,190,170,.7); }
.nflf-trigger-btn .label{ font-weight:600; }
.nflf-trigger-btn .badge{
  width:10px; height:10px; border-radius:50%;
  background:#39e6c5; box-shadow:0 0 8px rgba(57,230,197,.8);
}
.nflf-trigger-btn.active{
  color:#031625; background:rgba(45,190,170,.9);
  border-color:rgba(45,190,170,1);
  box-shadow:0 6px 16px rgba(45,190,170,.25);
}

@supports (height: 100dvh){
  #nfl-filter-popup .nflf-modal{ height: calc(100dvh - 48px); }
}

@media (max-width: 1000px) {

  #odds-tiers-rail{ 
    margin-top: 24px;
    margin-bottom: 4px; 
  }

  #odds-tiers-rail .odds-chip{ 
    font-size: 14px; 
    padding: 10px 12px; 
  } 

  /* when this class is present on the rail, apply per-chip nudges */
  #odds-tiers-rail.chip-tune .odds-chip{
    /* override the default translateX(-50%) with a small adjustable offset */
    transform: translateX(calc(-50% + var(--chip-nudge, 0px)));
  }

  /* Nudge map (profit-multiple odds): 5x/10x/15x a bit right; 20x/25x a bit left */
  #odds-tiers-rail.chip-tune .odds-chip[data-odds="500"]  { --chip-nudge:  5px; }  /* 5× */
  #odds-tiers-rail.chip-tune .odds-chip[data-odds="1000"] { --chip-nudge:  3px; }  /* 10× */
  #odds-tiers-rail.chip-tune .odds-chip[data-odds="1500"] { --chip-nudge:  0px; }  /* 15× */
  #odds-tiers-rail.chip-tune .odds-chip[data-odds="2000"] { --chip-nudge:  -4px; }  /* 20× */
  #odds-tiers-rail.chip-tune .odds-chip[data-odds="2500"] { --chip-nudge:  -7px; }  /* 25× */


  #nfl-filter-popup.nflf-modal-root{
    /* was: padding: 100px 10px; — that steals vertical space */
    padding: 12px 10px;
    /* If you want a little breathing room around the panel, use margins on the panel instead: */
  }
  #nfl-filter-popup .nflf-modal{
    margin: 8px 0;               /* visual gutter without breaking height math */
  }
  #nfl-filter-popup.nflf-modal-root{
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  #nfl-filter-popup .nflf-title{ 
    font-size: 40px; 
    font-weight: 600;
  }

  #nfl-filter-popup .nflf-subtitle{ 
    font-size: 24px; 
  }

  #nfl-filter-popup .nflf-header {
    padding-right: 88px;       /* extra room for the larger button */
  }
  #nfl-filter-popup .nflf-close {
    top: 12px;
    right: 14px;
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 30px;
    font-weight: bold;
  }

  #nfl-filter-popup .nflf-presets-row{
    gap: 16px;
    padding: 0 16px 10px;
  }
  #nfl-filter-popup .nflf-preset{
    padding: 8px 10px;
    font-size: 26px;
  }

  #nfl-filter-popup .nflf-section-head{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  #nfl-filter-popup .nflf-section-title{ font-size: 32px;}
  #nfl-filter-popup .nflf-section-sub{ font-size: 24px; margin-top: 2px; }
  #nfl-filter-popup .nflf-right-actions{ gap: 8px; }

  #nfl-filter-popup .nflf-chips{ display: flex; flex-wrap: wrap; gap: 10px; }

  #nfl-filter-popup .nflf-chip,
  #nfl-filter-popup .nfl-filter-btn,
  #nfl-filter-popup .nfl-builder-matchup-btn{
    padding: 8px 12px;
    font-size: 26px;
  }

  #nfl-filter-popup .nflf-footer-actions{ display: flex; gap: 8px; }

  #nfl-filter-popup .nflf-clear,
  #nfl-filter-popup .nflf-reset,
  #nfl-filter-popup .nflf-apply{
    font-size: 26px;
  }

  .build-parlay-row {
    justify-content: center;   /* center the row contents */
    gap: 12px;                 /* space between Build + Customize */
    flex-wrap: wrap;           /* allow wrap on very narrow widths */
  }

  #build-parlay-button,
  .nflf-trigger-btn {
    padding: 22px 22px;    
    border-radius: 18px;                             
    font-size: 32px;
    margin-top: 40px;
    margin-bottom: 20px;
  } 

  .nflf-trigger-btn{
    height:90px;
  }
  .nflf-trigger-btn .badge{ width:12px; height:12px; }
}