/* ==========================================================
   NEXT-BET.GR — UNIFIED TABLE SYSTEM v1
   Loaded from nb2_html_footer() so it wins over page CSS.
   Pure presentation only: no JS, PHP, API, picks or stats logic.
   ========================================================== */

:root{
  --nbt-panel:#08131f;
  --nbt-panel-2:#0b1825;
  --nbt-row:#0d1c2a;
  --nbt-row-2:#102233;
  --nbt-head:#0a1723;
  --nbt-line:#203a51;
  --nbt-line-2:#31536e;
  --nbt-text:#edf5fb;
  --nbt-muted:#8ea6ba;
  --nbt-faint:#698197;
  --nbt-red:#ef334b;
  --nbt-red-soft:rgba(239,51,75,.13);
  --nbt-green:#4ee69a;
  --nbt-green-soft:rgba(78,230,154,.11);
  --nbt-blue:#78c7ff;
  --nbt-gold:#f5c451;
  --nbt-shadow:0 16px 38px rgba(0,0,0,.22);
}
html[data-nb-theme="light"]{
  --nbt-panel:#ffffff;
  --nbt-panel-2:#f8fafc;
  --nbt-row:#ffffff;
  --nbt-row-2:#f7fafc;
  --nbt-head:#f1f5f8;
  --nbt-line:#d7e2eb;
  --nbt-line-2:#bdcedc;
  --nbt-text:#1e3145;
  --nbt-muted:#61788d;
  --nbt-faint:#7b8fa2;
  --nbt-red:#df2f48;
  --nbt-red-soft:rgba(223,47,72,.08);
  --nbt-green:#168e58;
  --nbt-green-soft:rgba(22,142,88,.08);
  --nbt-blue:#2378b3;
  --nbt-gold:#a87806;
  --nbt-shadow:0 14px 32px rgba(37,59,78,.10);
}

/* ---------- shared desktop shell ---------- */
.nbx-data-panel,
.nb-tip-history-panel,
.nbb-panel,
.nbbh-table,
.nbod-panel{
  border-color:var(--nbt-line)!important;
  background:linear-gradient(180deg,var(--nbt-panel-2),var(--nbt-panel))!important;
  border-radius:16px!important;
  box-shadow:var(--nbt-shadow)!important;
}

.nbx-data-panel>.panel-head,
.nb-tip-history-panel>.panel-head,
.nbb-head,
.nbod-head{
  min-height:58px!important;
  padding:15px 18px!important;
  border-bottom:1px solid var(--nbt-line)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0)),var(--nbt-head)!important;
}
html[data-nb-theme="light"] .nbx-data-panel>.panel-head,
html[data-nb-theme="light"] .nb-tip-history-panel>.panel-head,
html[data-nb-theme="light"] .nbb-head,
html[data-nb-theme="light"] .nbod-head{background:var(--nbt-head)!important}

.nbx-data-panel>.panel-head h3,
.nb-tip-history-panel>.panel-head h3,
.nbb-head h2,
.nbod-head h2{
  color:var(--nbt-text)!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
}

/* Generic football/tipster tables */
.nbx-data-panel .tablewrap,
.nb-tip-history-panel .tablewrap{
  overflow-x:auto!important;
  padding:7px 10px 10px!important;
  background:transparent!important;
  scrollbar-color:var(--nbt-line-2) transparent;
}
.nbx-data-panel table,
.nb-tip-history-panel table{
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0 7px!important;
}
.nbx-data-panel thead th,
.nb-tip-history-panel thead th{
  padding:9px 12px!important;
  border:0!important;
  background:transparent!important;
  color:var(--nbt-muted)!important;
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.095em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
}
.nbx-data-panel tbody tr:not(.nb-live-empty-row),
.nb-tip-history-panel tbody tr:not(.nb-combo-details-row){
  filter:drop-shadow(0 5px 12px rgba(0,0,0,.08));
}
.nbx-data-panel tbody tr:not(.nb-live-empty-row)>td,
.nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td{
  padding:12px 12px!important;
  border-top:1px solid var(--nbt-line)!important;
  border-bottom:1px solid var(--nbt-line)!important;
  background:linear-gradient(180deg,var(--nbt-row-2),var(--nbt-row))!important;
  color:var(--nbt-text)!important;
  font-size:12px!important;
  vertical-align:middle!important;
  transition:border-color .16s ease,background .16s ease,transform .16s ease!important;
}
.nbx-data-panel tbody tr:not(.nb-live-empty-row)>td:first-child,
.nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:first-child{
  border-left:1px solid var(--nbt-line)!important;
  border-radius:11px 0 0 11px!important;
}
.nbx-data-panel tbody tr:not(.nb-live-empty-row)>td:last-child,
.nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:last-child{
  border-right:1px solid var(--nbt-line)!important;
  border-radius:0 11px 11px 0!important;
}
.nbx-data-panel tbody tr:not(.nb-live-empty-row):hover>td,
.nb-tip-history-panel tbody tr:not(.nb-combo-details-row):hover>td{
  border-color:var(--nbt-line-2)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--nbt-row-2) 90%,#2b5575 10%),var(--nbt-row))!important;
}

/* Core content hierarchy */
.nbx-data-panel .pick,
.nb-tip-history-panel .pick,
.nbb-pick{
  color:var(--nbt-text)!important;
  font-weight:900!important;
  line-height:1.25!important;
}
.v2-match-teams{gap:5px!important}
.v2-team{gap:7px!important;color:var(--nbt-text)!important;font-weight:800!important}
.v2-team-logo,.nb-team-logo{width:24px!important;height:24px!important;object-fit:contain!important}
.nb-league-logo{width:18px!important;height:18px!important;object-fit:contain!important}
.v2-metric-note{color:var(--nbt-muted)!important;font-size:9px!important;line-height:1.3!important}

.v2-odds,
.nbb-odd,
.nbod-odd{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:54px!important;
  min-height:31px!important;
  padding:5px 9px!important;
  border:1px solid color-mix(in srgb,var(--nbt-red) 60%,var(--nbt-line))!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,var(--nbt-red-soft),rgba(255,255,255,.01))!important;
  color:var(--nbt-text)!important;
  font-weight:950!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}

.v2-badge,
.nbb-lock,
.nbod-tag{
  border-radius:999px!important;
  border:1px solid var(--nbt-line-2)!important;
  background:rgba(255,255,255,.025)!important;
  color:var(--nbt-muted)!important;
  font-weight:900!important;
  letter-spacing:.045em!important;
}

.v2-result-won,
.won{
  color:var(--nbt-green)!important;
  font-weight:950!important;
}
.v2-result-lost,
.lost{
  color:#ff6078!important;
  font-weight:950!important;
}
.v2-result-void,
.void{color:var(--nbt-muted)!important;font-weight:900!important}
.v2-result-pending,.pending{color:var(--nbt-gold)!important;font-weight:900!important}

/* Make result cells read like compact pills on desktop. */
@media(min-width:701px){
  .nbx-page-history .nbx-data-panel tbody td:last-child,
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:last-child,
  .nbbh-table tbody td:last-child{
    text-align:center!important;
    font-size:10px!important;
    letter-spacing:.055em!important;
  }
  .nbx-page-history .nbx-data-panel tbody td:nth-child(6),
  .nbx-page-history .nbx-data-panel tbody td:nth-child(7),
  .nb-tip-history-panel tbody td:nth-child(6),
  .nb-tip-history-panel tbody td:nth-child(7),
  .nb-tip-history-panel tbody td:nth-child(8){text-align:center!important}
}

/* ==========================================================
   FOOTBALL HISTORY — desktop + card mobile
   ========================================================== */
@media(min-width:701px){
  .nbx-page-history .nbx-data-panel table{min-width:920px!important}
  .nbx-page-history .nbx-data-panel th:nth-child(1){width:118px}
  .nbx-page-history .nbx-data-panel th:nth-child(2){width:34%}
  .nbx-page-history .nbx-data-panel th:nth-child(3){width:88px}
  .nbx-page-history .nbx-data-panel th:nth-child(6){width:72px;text-align:center!important}
  .nbx-page-history .nbx-data-panel th:nth-child(7){width:72px;text-align:center!important}
  .nbx-page-history .nbx-data-panel th:nth-child(8){width:82px;text-align:center!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(3){font-size:10px!important;font-weight:900!important;color:var(--nbt-blue)!important;letter-spacing:.05em!important}
}

@media(max-width:700px){
  .nbx-page-history .nbx-data-panel{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .nbx-page-history .nbx-data-panel>.panel-head{border:1px solid var(--nbt-line)!important;border-radius:13px!important;margin-bottom:10px!important}
  .nbx-page-history .nbx-data-panel .tablewrap{padding:0!important;overflow:visible!important}
  .nbx-page-history .nbx-data-panel table{display:block!important;min-width:0!important;border-spacing:0!important}
  .nbx-page-history .nbx-data-panel thead{display:none!important}
  .nbx-page-history .nbx-data-panel tbody{display:grid!important;gap:10px!important}
  .nbx-page-history .nbx-data-panel tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:
      "type date result"
      "match match match"
      "market market odds"
      "pick pick pick"
      "final final final"!important;
    gap:8px 9px!important;
    padding:13px!important;
    margin:0!important;
    border:1px solid var(--nbt-line)!important;
    border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 36%),linear-gradient(160deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
  }
  .nbx-page-history .nbx-data-panel tbody tr>td{
    display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;color:var(--nbt-text)!important
  }
  .nbx-page-history .nbx-data-panel tbody td:nth-child(1){grid-area:date!important;font-size:9px!important;color:var(--nbt-muted)!important;text-align:center!important;align-self:center!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(2){grid-area:match!important;padding:10px 0 9px!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(3){grid-area:type!important;width:max-content!important;padding:5px 8px!important;border:1px solid var(--nbt-line-2)!important;border-radius:999px!important;color:var(--nbt-blue)!important;font-size:9px!important;font-weight:950!important;letter-spacing:.055em!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(4){grid-area:market!important;color:var(--nbt-muted)!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.055em!important;align-self:center!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(5){grid-area:pick!important;padding:9px 10px!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important;font-size:13px!important;font-weight:950!important;line-height:1.25!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(6){grid-area:odds!important;text-align:right!important;align-self:center!important;font-weight:950!important;color:var(--nbt-red)!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(6)::before{content:"ODDS ";font-size:8px;color:var(--nbt-muted);font-weight:800;letter-spacing:.08em}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(7){grid-area:final!important;color:var(--nbt-muted)!important;font-size:9px!important;text-align:left!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(7)::before{content:"FINAL ";font-size:8px;color:var(--nbt-faint);font-weight:800;letter-spacing:.08em}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(8){grid-area:result!important;justify-self:end!important;align-self:center!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;font-size:9px!important;letter-spacing:.06em!important}
  .nbx-page-history .v2-match-teams{gap:4px!important}
  .nbx-page-history .v2-team{font-size:12px!important;line-height:1.2!important}
  .nbx-page-history .v2-team-logo{width:25px!important;height:25px!important}
  .nbx-page-history .v2-match-vs{margin-left:31px!important;color:var(--nbt-faint)!important}
}

/* ==========================================================
   PRE-GAME — strong mobile cards and cleaner desktop hierarchy
   ========================================================== */
@media(min-width:701px){
  .nbx-page-pregame #pregame-picks table{min-width:1040px!important}
  .nbx-page-pregame #pregame-picks th:nth-child(3){width:30%}
  .nbx-page-pregame #pregame-picks tbody td:nth-child(5){font-size:12.5px!important}
  .nbx-page-pregame #pregame-picks tbody td:nth-child(n+6){text-align:center!important}
}
@media(max-width:700px){
  .nbx-page-pregame #pregame-picks .panel{border:0!important;background:transparent!important;box-shadow:none!important}
  .nbx-page-pregame #pregame-picks .panel-head{border:1px solid var(--nbt-line)!important;border-radius:13px!important;margin-bottom:10px!important}
  .nbx-page-pregame #pregame-picks tbody{display:grid!important;gap:10px!important}
  .nbx-page-pregame #pregame-picks tbody tr:not(:has(td.v2-empty)){
    padding:14px!important;margin:0!important;border:1px solid var(--nbt-line)!important;border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 34%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important
  }
  .nbx-page-pregame #pregame-picks tbody tr>td:nth-child(1){padding:5px 8px!important;border:1px solid rgba(245,196,81,.28)!important;border-radius:999px!important;background:rgba(245,196,81,.07)!important}
  .nbx-page-pregame #pregame-picks tbody tr>td:nth-child(3){padding:10px 0!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important}
  .nbx-page-pregame #pregame-picks tbody tr>td:nth-child(4){align-self:center!important}
  .nbx-page-pregame #pregame-picks tbody tr>td:nth-child(5){padding:10px 11px!important;border-top:0!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important}
  .nbx-page-pregame #pregame-picks .v2-odds{min-width:55px!important}
}

/* ==========================================================
   LIVE — strong mobile cards and cleaner desktop hierarchy
   ========================================================== */
@media(min-width:701px){
  .nbx-page-live #live-signals table{min-width:980px!important}
  .nbx-page-live #live-signals th:nth-child(2){width:32%}
  .nbx-page-live #live-signals tbody td:nth-child(3),
  .nbx-page-live #live-signals tbody td:nth-child(4),
  .nbx-page-live #live-signals tbody td:nth-child(n+6){text-align:center!important}
}
@media(max-width:700px){
  .nbx-page-live #live-signals .panel{border:0!important;background:transparent!important;box-shadow:none!important}
  .nbx-page-live #live-signals .panel-head{border:1px solid var(--nbt-line)!important;border-radius:13px!important;margin-bottom:10px!important}
  .nbx-page-live #live-signals tbody{display:grid!important;gap:10px!important}
  .nbx-page-live #live-signals tbody tr:not(.nb-live-empty-row){
    padding:14px!important;margin:0!important;border:1px solid var(--nbt-line)!important;border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 34%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important
  }
  .nbx-page-live #live-signals tbody tr:not(.nb-live-empty-row)>td:nth-child(2){padding:10px 0!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important}
  .nbx-page-live #live-signals tbody tr:not(.nb-live-empty-row)>td:nth-child(3){padding:5px 8px!important;border:1px solid rgba(245,196,81,.28)!important;border-radius:999px!important;background:rgba(245,196,81,.07)!important}
  .nbx-page-live #live-signals tbody tr:not(.nb-live-empty-row)>td:nth-child(5){padding:10px 11px!important;border-top:0!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important}
}

/* ==========================================================
   TIPSTER HISTORY — table desktop + true card rows mobile
   ========================================================== */
@media(min-width:701px){
  .nb-tip-history-panel table{min-width:1080px!important}
  .nb-tip-history-panel th:nth-child(3){width:30%}
  .nb-tip-history-panel tbody td:first-child{font-size:10px!important}
}
@media(max-width:700px){
  .nb-tip-history-panel{border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .nb-tip-history-panel>.panel-head{border:1px solid var(--nbt-line)!important;border-radius:13px!important;margin-bottom:10px!important}
  .nb-tip-history-panel .tablewrap{padding:0!important;overflow:visible!important}
  .nb-tip-history-panel table{display:block!important;min-width:0!important;border-spacing:0!important}
  .nb-tip-history-panel thead{display:none!important}
  .nb-tip-history-panel tbody{display:grid!important;gap:10px!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:
      "type date result"
      "match match match"
      "market market odds"
      "tip tip tip"
      "stake final final"!important;
    gap:8px 9px!important;
    padding:13px!important;margin:0!important;border:1px solid var(--nbt-line)!important;border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 35%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important
  }
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(1){grid-area:type!important;width:max-content!important;align-self:center!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(2){grid-area:date!important;color:var(--nbt-muted)!important;font-size:9px!important;align-self:center!important;text-align:center!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(3){grid-area:match!important;padding:10px 0!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(4){grid-area:market!important;color:var(--nbt-muted)!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.05em!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(5){grid-area:tip!important;padding:10px 11px!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important;font-size:13px!important;font-weight:950!important;line-height:1.25!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(6){grid-area:odds!important;align-self:center!important;text-align:right!important;color:var(--nbt-red)!important;font-weight:950!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(6)::before{content:"ODDS ";font-size:8px;color:var(--nbt-muted);font-weight:800;letter-spacing:.08em}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(7){grid-area:stake!important;color:var(--nbt-muted)!important;font-size:9px!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(7)::before{content:"STAKE ";font-size:8px;color:var(--nbt-faint);font-weight:800;letter-spacing:.08em}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(8){grid-area:final!important;color:var(--nbt-muted)!important;font-size:9px!important;text-align:right!important}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(8)::before{content:"FINAL ";font-size:8px;color:var(--nbt-faint);font-weight:800;letter-spacing:.08em}
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(9){grid-area:result!important;justify-self:end!important;align-self:center!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;font-size:9px!important;letter-spacing:.055em!important}
  .nb-tip-history-panel .v2-team{font-size:12px!important;line-height:1.2!important}
  .nb-tip-history-panel .v2-team-logo{width:25px!important;height:25px!important}
  .nb-tip-history-panel .nb-combo-details-row.is-open{margin-top:-2px!important;border:1px solid var(--nbt-line)!important;border-radius:13px!important;background:var(--nbt-panel)!important;overflow:hidden!important}
}

/* ==========================================================
   BASKETBALL PICKS
   ========================================================== */
.nbb-table{padding:7px 10px 10px!important;overflow-x:auto!important}
.nbb-table table{border-collapse:separate!important;border-spacing:0 7px!important}
.nbb-table th{padding:9px 12px!important;border:0!important;background:transparent!important;color:var(--nbt-muted)!important;font-size:9px!important;font-weight:900!important;letter-spacing:.09em!important}
.nbb-table td{padding:12px!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important;background:linear-gradient(180deg,var(--nbt-row-2),var(--nbt-row))!important;color:var(--nbt-text)!important}
.nbb-table tbody tr td:first-child{border-left:1px solid var(--nbt-line)!important;border-radius:11px 0 0 11px!important}
.nbb-table tbody tr td:last-child{border-right:1px solid var(--nbt-line)!important;border-radius:0 11px 11px 0!important}
.nbb-team{color:var(--nbt-text)!important;font-size:12px!important}
.nbb-team img{width:24px!important;height:24px!important;object-fit:contain!important}
.nbb-meta{color:var(--nbt-muted)!important}
.nbb-lock{padding:6px 10px!important;color:#ff8ba0!important;border-color:rgba(239,51,75,.45)!important;background:var(--nbt-red-soft)!important}

@media(max-width:760px){
  .nbb-panel{border:0!important;background:transparent!important;box-shadow:none!important}
  .nbb-head{border:1px solid var(--nbt-line)!important;border-radius:13px!important;background:var(--nbt-head)!important}
  .nbb-mobile-picks{gap:10px!important}
  .nbb-mobile-card{
    padding:14px!important;border:1px solid var(--nbt-line)!important;border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 35%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important;color:var(--nbt-text)!important
  }
  .nbb-mobile-top{margin-bottom:9px!important}
  .nbb-mobile-type{padding:5px 8px!important;border:1px solid var(--nbt-line-2)!important;border-radius:999px!important;color:var(--nbt-blue)!important;font-size:9px!important}
  .nbb-mobile-status{color:var(--nbt-muted)!important;font-size:9px!important}
  .nbb-mobile-card .nbb-match{padding:10px 0!important;border-color:var(--nbt-line)!important}
  .nbb-mobile-card .nbb-team{font-size:13px!important;gap:8px!important}
  .nbb-mobile-card .nbb-team img{width:26px!important;height:26px!important;flex:0 0 26px!important}
  .nbb-mobile-market{color:var(--nbt-muted)!important;font-size:9px!important}
  .nbb-mobile-selection{padding:9px 10px!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important}
  .nbb-mobile-selection .nbb-pick{font-size:14px!important}
  .nbb-mobile-selection .nbb-odd{border:0!important;background:transparent!important;padding:0!important;min-width:auto!important;min-height:0!important;color:var(--nbt-red)!important;font-size:16px!important}
  .nbb-mobile-foot{border-color:var(--nbt-line)!important;color:var(--nbt-muted)!important;font-size:9px!important}
}

/* ==========================================================
   BASKETBALL HISTORY
   ========================================================== */
.nbbh-table{overflow-x:auto!important;padding:7px 10px 10px!important}
.nbbh-table table{width:100%!important;border-collapse:separate!important;border-spacing:0 7px!important;min-width:920px!important}
.nbbh-table th{padding:9px 12px!important;border:0!important;background:transparent!important;color:var(--nbt-muted)!important;font-size:9px!important;font-weight:900!important;letter-spacing:.09em!important;text-transform:uppercase!important}
.nbbh-table td{padding:12px!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important;background:linear-gradient(180deg,var(--nbt-row-2),var(--nbt-row))!important;color:var(--nbt-text)!important;font-size:12px!important}
.nbbh-table tbody tr td:first-child{border-left:1px solid var(--nbt-line)!important;border-radius:11px 0 0 11px!important}
.nbbh-table tbody tr td:last-child{border-right:1px solid var(--nbt-line)!important;border-radius:0 11px 11px 0!important}
.nbbh-team{color:var(--nbt-text)!important;font-weight:800!important}
.nbbh-team img{width:24px!important;height:24px!important;object-fit:contain!important}
.nbbh-league{color:var(--nbt-muted)!important}

@media(max-width:700px){
  .nbbh-table{padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .nbbh-table table{display:block!important;min-width:0!important;border-spacing:0!important}
  .nbbh-table thead{display:none!important}
  .nbbh-table tbody{display:grid!important;gap:10px!important}
  .nbbh-table tbody tr:not(.nbbh-empty-row){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:
      "type date result"
      "game game game"
      "market market odds"
      "pick pick pick"
      "final final final"!important;
    gap:8px 9px!important;padding:13px!important;border:1px solid var(--nbt-line)!important;border-radius:15px!important;
    background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 35%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important
  }
  .nbbh-table tbody tr:not(.nbbh-empty-row)>td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important}
  .nbbh-table tbody td:nth-child(1){grid-area:date!important;color:var(--nbt-muted)!important;font-size:9px!important;align-self:center!important;text-align:center!important}
  .nbbh-table tbody td:nth-child(2){grid-area:game!important;padding:10px 0!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important}
  .nbbh-table tbody td:nth-child(3){grid-area:type!important;width:max-content!important;padding:5px 8px!important;border:1px solid var(--nbt-line-2)!important;border-radius:999px!important;color:var(--nbt-blue)!important;font-size:9px!important;font-weight:950!important}
  .nbbh-table tbody td:nth-child(4){grid-area:market!important;color:var(--nbt-muted)!important;font-size:9px!important;text-transform:uppercase!important}
  .nbbh-table tbody td:nth-child(5){grid-area:pick!important;padding:10px 11px!important;border-left:3px solid var(--nbt-red)!important;border-radius:8px!important;background:var(--nbt-red-soft)!important;font-size:13px!important;font-weight:950!important}
  .nbbh-table tbody td:nth-child(6){grid-area:odds!important;color:var(--nbt-red)!important;font-weight:950!important;text-align:right!important}
  .nbbh-table tbody td:nth-child(6)::before{content:"ODDS ";font-size:8px;color:var(--nbt-muted);font-weight:800}
  .nbbh-table tbody td:nth-child(7){grid-area:final!important;color:var(--nbt-muted)!important;font-size:9px!important}
  .nbbh-table tbody td:nth-child(7)::before{content:"FINAL ";font-size:8px;color:var(--nbt-faint);font-weight:800}
  .nbbh-table tbody td:nth-child(8){grid-area:result!important;justify-self:end!important;align-self:center!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(255,255,255,.035)!important;font-size:9px!important;letter-spacing:.055em!important}
  .nbbh-game{min-width:0!important}
  .nbbh-team{font-size:12px!important;gap:7px!important;margin:3px 0!important}
  .nbbh-team img{width:25px!important;height:25px!important;flex:0 0 25px!important}
  .nbbh-empty-row{display:block!important}
  .nbbh-empty-row td{display:block!important;width:100%!important;padding:20px!important;border:1px solid var(--nbt-line)!important;border-radius:14px!important;background:var(--nbt-panel)!important;text-align:center!important}
}

/* ==========================================================
   ODDS DROPS
   ========================================================== */
.nbod-table{padding:7px 10px 10px!important;background:transparent!important}
.nbod-table table{border-collapse:separate!important;border-spacing:0 7px!important}
.nbod-table th{padding:9px 10px!important;border:0!important;background:transparent!important;color:var(--nbt-muted)!important;font-size:8px!important}
.nbod-table td{padding:10px!important;border-top:1px solid var(--nbt-line)!important;border-bottom:1px solid var(--nbt-line)!important;background:linear-gradient(180deg,var(--nbt-row-2),var(--nbt-row))!important;color:var(--nbt-text)!important}
.nbod-table tbody tr td:first-child{border-left:1px solid var(--nbt-line)!important;border-radius:11px 0 0 11px!important}
.nbod-table tbody tr td:last-child{border-right:1px solid var(--nbt-line)!important;border-radius:0 11px 11px 0!important}
.nbod-names{color:var(--nbt-text)!important}.nbod-sub,.nbod-book{color:var(--nbt-muted)!important}
@media(max-width:760px){
  .nbod-mobile{gap:10px!important;padding:10px 0!important}
  .nbod-card{border-color:var(--nbt-line)!important;background:radial-gradient(circle at 100% 0,var(--nbt-red-soft),transparent 34%),linear-gradient(155deg,var(--nbt-row-2),var(--nbt-row))!important;box-shadow:0 10px 24px rgba(0,0,0,.14)!important}
  .nbod-mobile-marketbar{border-color:color-mix(in srgb,var(--nbt-red) 45%,var(--nbt-line))!important;border-left-color:var(--nbt-red)!important;background:var(--nbt-red-soft)!important}
  .nbod-mobile-price,.nbod-mobile-meta>div{border-color:var(--nbt-line)!important;background:var(--nbt-panel)!important}
}

/* ---------- pagination ---------- */
.v2-pagination a,.v2-pagination span,
.nbbh-pagination a,.nbbh-pagination span{
  min-width:38px!important;min-height:38px!important;border-radius:10px!important;border:1px solid var(--nbt-line)!important;background:var(--nbt-panel-2)!important;color:var(--nbt-muted)!important;box-shadow:none!important
}
.v2-pagination .active,.nbbh-pagination .active{
  border-color:var(--nbt-red)!important;background:linear-gradient(135deg,var(--nbt-red),#a91430)!important;color:#fff!important;box-shadow:0 8px 20px rgba(239,51,75,.18)!important
}

/* ---------- very small phones ---------- */
@media(max-width:390px){
  .nbx-page-history .nbx-data-panel tbody tr,
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row),
  .nbbh-table tbody tr:not(.nbbh-empty-row),
  .nbb-mobile-card,
  .nbx-page-pregame #pregame-picks tbody tr:not(:has(td.v2-empty)),
  .nbx-page-live #live-signals tbody tr:not(.nb-live-empty-row){padding:11px!important;border-radius:13px!important}
  .nbx-page-history .nbx-data-panel tbody td:nth-child(5),
  .nb-tip-history-panel tbody tr:not(.nb-combo-details-row)>td:nth-child(5),
  .nbbh-table tbody td:nth-child(5){font-size:12px!important}
}

/* ==========================================================
   RESULT COLOURS — explicit WIN/LOST states everywhere
   ========================================================== */
:root{
  --nb-result-win:#52f29a;
  --nb-result-win-bg:rgba(33,196,112,.16);
  --nb-result-win-border:rgba(82,242,154,.42);
  --nb-result-loss:#ff5a72;
  --nb-result-loss-bg:rgba(239,53,83,.16);
  --nb-result-loss-border:rgba(255,90,114,.42);
}

/* Football history + Tipster history + generic result labels */
td.v2-result-won,
.v2-result-won,
td.won,
.won:not(.nbtc-form-dot){
  color:var(--nb-result-win)!important;
  background:linear-gradient(180deg,var(--nb-result-win-bg),rgba(33,196,112,.08))!important;
  border:1px solid var(--nb-result-win-border)!important;
  border-radius:999px!important;
  font-weight:950!important;
  text-shadow:0 0 12px rgba(82,242,154,.16)!important;
}

td.v2-result-lost,
.v2-result-lost,
td.lost,
.lost:not(.nbtc-form-dot){
  color:var(--nb-result-loss)!important;
  background:linear-gradient(180deg,var(--nb-result-loss-bg),rgba(239,53,83,.08))!important;
  border:1px solid var(--nb-result-loss-border)!important;
  border-radius:999px!important;
  font-weight:950!important;
  text-shadow:0 0 12px rgba(255,90,114,.14)!important;
}

/* Keep table result pills compact instead of colouring the whole row. */
.nbx-page-history .nbx-data-panel tbody td.v2-result-won,
.nbx-page-history .nbx-data-panel tbody td.v2-result-lost,
.nb-tip-history-panel tbody td.v2-result-won,
.nb-tip-history-panel tbody td.v2-result-lost,
.nbbh-table tbody td.won,
.nbbh-table tbody td.lost{
  width:max-content!important;
  min-width:58px!important;
  justify-self:end!important;
  text-align:center!important;
  padding:6px 10px!important;
}

/* Mobile rules above used a neutral gray result background; force semantic colour back. */
@media(max-width:700px){
  .nbx-page-history .nbx-data-panel tbody td.v2-result-won,
  .nb-tip-history-panel tbody td.v2-result-won,
  .nbbh-table tbody td.won{
    color:var(--nb-result-win)!important;
    background:var(--nb-result-win-bg)!important;
    border-color:var(--nb-result-win-border)!important;
  }
  .nbx-page-history .nbx-data-panel tbody td.v2-result-lost,
  .nb-tip-history-panel tbody td.v2-result-lost,
  .nbbh-table tbody td.lost{
    color:var(--nb-result-loss)!important;
    background:var(--nb-result-loss-bg)!important;
    border-color:var(--nb-result-loss-border)!important;
  }
}

/* Recent-form dots on tipster cards remain solid and instantly readable. */
.nbtc-form-dot.won{background:#178650!important;color:#fff!important;border:1px solid rgba(82,242,154,.36)!important}
.nbtc-form-dot.lost{background:#9d2941!important;color:#fff!important;border:1px solid rgba(255,90,114,.36)!important}


/* ==========================================================
   FINAL RESULT COLOR OVERRIDE v2
   Stronger selectors than the table-cell base rules.
   ========================================================== */

/* FOOTBALL HISTORY */
html body main.nbx-page-history .nbx-data-panel .tablewrap table tbody tr > td:last-child.v2-result-won,
html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won{
  color:#52f29a!important;
  background:rgba(35,190,111,.13)!important;
  border-top-color:rgba(82,242,154,.28)!important;
  border-bottom-color:rgba(82,242,154,.28)!important;
  border-right-color:rgba(82,242,154,.42)!important;
  font-weight:950!important;
  text-shadow:0 0 10px rgba(82,242,154,.20)!important;
}

html body main.nbx-page-history .nbx-data-panel .tablewrap table tbody tr > td:last-child.v2-result-lost,
html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost{
  color:#ff5a72!important;
  background:rgba(239,53,83,.13)!important;
  border-top-color:rgba(255,90,114,.28)!important;
  border-bottom-color:rgba(255,90,114,.28)!important;
  border-right-color:rgba(255,90,114,.42)!important;
  font-weight:950!important;
  text-shadow:0 0 10px rgba(255,90,114,.18)!important;
}

/* TIPSTER HISTORY */
html body .nb-tip-history-panel .tablewrap table tbody tr > td:last-child.v2-result-won,
html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
html body .nb-tip-history-panel table tbody tr > td.v2-result-won > span{
  color:#52f29a!important;
  font-weight:950!important;
}

html body .nb-tip-history-panel .tablewrap table tbody tr > td:last-child.v2-result-lost,
html body .nb-tip-history-panel table tbody tr > td.v2-result-lost,
html body .nb-tip-history-panel table tbody tr > td.v2-result-lost > span{
  color:#ff5a72!important;
  font-weight:950!important;
}

html body .nb-tip-history-panel table tbody tr > td.v2-result-won{
  background:rgba(35,190,111,.13)!important;
  border-color:rgba(82,242,154,.35)!important;
}
html body .nb-tip-history-panel table tbody tr > td.v2-result-lost{
  background:rgba(239,53,83,.13)!important;
  border-color:rgba(255,90,114,.35)!important;
}

/* BASKETBALL HISTORY */
html body .nbbh-table table tbody tr > td:last-child.won,
html body .nbbh-table table tbody tr > td.won{
  color:#52f29a!important;
  background:rgba(35,190,111,.13)!important;
  border-color:rgba(82,242,154,.35)!important;
  font-weight:950!important;
}
html body .nbbh-table table tbody tr > td:last-child.lost,
html body .nbbh-table table tbody tr > td.lost{
  color:#ff5a72!important;
  background:rgba(239,53,83,.13)!important;
  border-color:rgba(255,90,114,.35)!important;
  font-weight:950!important;
}

/* MOBILE: keep result card colors explicit */
@media(max-width:700px){
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
  html body .nbbh-table table tbody tr > td.won{
    color:#52f29a!important;
    background:rgba(35,190,111,.18)!important;
    border:1px solid rgba(82,242,154,.42)!important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost,
  html body .nbbh-table table tbody tr > td.lost{
    color:#ff5a72!important;
    background:rgba(239,53,83,.18)!important;
    border:1px solid rgba(255,90,114,.42)!important;
  }
}


/* ==========================================================
   FINAL FIX v3
   1) Mobile TIP HISTORY odds are neutral/white, not red.
   2) WON/LOST colours forced on desktop + mobile bot history.
   ========================================================== */

html body .nb-tip-history-panel tbody tr:not(.nb-combo-details-row) > td:nth-child(6),
html body .nb-tip-history-panel tbody tr:not(.nb-combo-details-row) > td:nth-child(6) * {
  color: var(--nbt-text, #f4f8fb) !important;
  text-shadow: none !important;
}

html body .nb-tip-history-panel tbody tr:not(.nb-combo-details-row) > td:nth-child(6)::before {
  color: var(--nbt-muted, #8ea3b6) !important;
}

html body .nb-tip-history-panel .nb-combo-total-odds,
html body .nb-tip-history-panel .nb-combo-total-odds * {
  color: var(--nbt-text, #f4f8fb) !important;
}

html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won *,
html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
html body .nb-tip-history-panel table tbody tr > td.v2-result-won *,
html body .nbbh-table table tbody tr > td.won,
html body .nbbh-table table tbody tr > td.won * {
  color: #39e77f !important;
  font-weight: 950 !important;
}

html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost,
html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost *,
html body .nb-tip-history-panel table tbody tr > td.v2-result-lost,
html body .nb-tip-history-panel table tbody tr > td.v2-result-lost *,
html body .nbbh-table table tbody tr > td.lost,
html body .nbbh-table table tbody tr > td.lost * {
  color: #ff4966 !important;
  font-weight: 950 !important;
}

@media (min-width:701px) {
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
  html body .nbbh-table table tbody tr > td.won {
    background: rgba(35,190,111,.15) !important;
    border: 1px solid rgba(57,231,127,.38) !important;
    border-radius: 9px !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost,
  html body .nbbh-table table tbody tr > td.lost {
    background: rgba(239,53,83,.15) !important;
    border: 1px solid rgba(255,73,102,.38) !important;
    border-radius: 9px !important;
  }
}

@media (max-width:700px) {
  html body .nb-tip-history-panel tbody tr:not(.nb-combo-details-row) > td:nth-child(6) {
    color: #f4f8fb !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
  html body .nbbh-table table tbody tr > td.won {
    color:#39e77f !important;
    background:rgba(35,190,111,.17) !important;
    border-color:rgba(57,231,127,.42) !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost,
  html body .nbbh-table table tbody tr > td.lost {
    color:#ff4966 !important;
    background:rgba(239,53,83,.17) !important;
    border-color:rgba(255,73,102,.42) !important;
  }
}


/* ==========================================================
   MOBILE PICK BOX CLEANUP v4
   Keep result colors (WON/LOST), but make the pick box neutral.
   ========================================================== */
@media (max-width:700px) {
  /* All Picks History main pick box */
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td:nth-child(5),
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td:nth-child(5) * {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td:nth-child(5) {
    background:#132235 !important;
    border:1px solid #27435d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:10px !important;
    box-shadow:none !important;
  }

  /* Tipster History main pick box */
  html body .nb-tip-history-panel table tbody tr:not(.nb-combo-details-row) > td:nth-child(5),
  html body .nb-tip-history-panel table tbody tr:not(.nb-combo-details-row) > td:nth-child(5) * {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body .nb-tip-history-panel table tbody tr:not(.nb-combo-details-row) > td:nth-child(5) {
    background:#132235 !important;
    border:1px solid #27435d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:10px !important;
    box-shadow:none !important;
  }

  /* Combo / double selection box: neutral dark */
  html body .nb-tip-history-panel .nb-combo-summary,
  html body .nb-tip-history-panel .nb-combo-pick,
  html body .nb-tip-history-panel .nb-combo-details-row td {
    background:#132235 !important;
    border-color:#27435d !important;
    box-shadow:none !important;
  }

  /* Keep result pills colored, only result state gets green/red */
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-won {
    background:rgba(35,190,111,.17) !important;
    border-color:rgba(57,231,127,.42) !important;
    color:#39e77f !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost {
    background:rgba(239,53,83,.17) !important;
    border-color:rgba(255,73,102,.42) !important;
    color:#ff4966 !important;
  }
}


/* ==========================================================
   PRE-GAME FOOTBALL + BASKETBALL CLEANUP v5
   Neutral pick boxes on mobile, no red/pink fill.
   ========================================================== */

/* FOOTBALL PRE-GAME */
@media (max-width:700px) {
  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5) {
    background:#132235 !important;
    border:1px solid #27435d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:10px !important;
    padding:11px 12px !important;
    box-shadow:none !important;
    color:#f4f8fb !important;
  }

  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5) *,
  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5).pick {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5)::before {
    color:#8ea3b6 !important;
  }

  html body main.nbx-page-pregame #pregame-picks .v2-odds,
  html body main.nbx-page-pregame #pregame-picks .v2-odds * {
    color:#f4f8fb !important;
    background:#0f1d2b !important;
    border:1px solid #27435d !important;
    box-shadow:none !important;
  }
}

/* BASKETBALL PRE-GAME - desktop table pick text stays clean */
html body .nbb-panel .nbb-table td.nbb-pick,
html body .nbb-panel .nbb-table td.nbb-pick * {
  color:#f4f8fb !important;
  text-shadow:none !important;
}

/* BASKETBALL PRE-GAME - mobile card selection */
@media (max-width:700px) {
  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection {
    background:#132235 !important;
    border:1px solid #27435d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:10px !important;
    padding:11px 12px !important;
    box-shadow:none !important;
  }

  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection .nbb-pick,
  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection .nbb-pick * {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection .nbb-odd,
  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection .nbb-odd * {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body .nbb-mobile-picks .nbb-mobile-card .nbb-mobile-selection .nbb-odd::before {
    color:#8ea3b6 !important;
  }
}


/* ==========================================================
   V6 - ACTUAL PRE-GAME PAGES
   Remove the red/pink pick background from FOOTBALL and BASKETBALL
   pre-game cards. Result/history styles are untouched.
   ========================================================== */

/* ---------- FOOTBALL PRE-GAME ---------- */
html body main.nbx-page-pregame #pregame-picks table tbody td.pick,
html body main.nbx-page-pregame #pregame-picks table tbody td.pick *,
html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5),
html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5) * {
  color:#f4f8fb !important;
  text-shadow:none !important;
}

@media (max-width:760px) {
  html body main.nbx-page-pregame #pregame-picks table tbody td.pick,
  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5) {
    background:#122233 !important;
    background-image:none !important;
    border:1px solid #2a455d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:11px !important;
    box-shadow:none !important;
    padding:12px 13px !important;
  }

  html body main.nbx-page-pregame #pregame-picks table tbody td.pick::before,
  html body main.nbx-page-pregame #pregame-picks tbody tr > td:nth-child(5)::before {
    color:#8195a8 !important;
  }

  html body main.nbx-page-pregame #pregame-picks .v2-odds {
    color:#f4f8fb !important;
    background:#13273a !important;
    background-image:none !important;
    border:1px solid #31516d !important;
    box-shadow:none !important;
  }
}

/* ---------- BASKETBALL PRE-GAME ---------- */
html body .nbb-panel .nbb-mobile-selection,
html body .nbb-panel .nbb-mobile-selection .nbb-pick,
html body .nbb-panel .nbb-mobile-selection .nbb-pick * {
  color:#f4f8fb !important;
  text-shadow:none !important;
}

@media (max-width:760px) {
  html body .nbb-panel .nbb-mobile-card .nbb-mobile-selection {
    display:flex !important;
    background:#122233 !important;
    background-image:none !important;
    border:1px solid #2a455d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:11px !important;
    box-shadow:none !important;
    padding:12px 13px !important;
  }

  html body .nbb-panel .nbb-mobile-card .nbb-mobile-selection .nbb-pick {
    color:#f4f8fb !important;
  }

  html body .nbb-panel .nbb-mobile-card .nbb-mobile-selection .nbb-odd {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body .nbb-panel .nbb-mobile-card .nbb-mobile-selection .nbb-odd::before {
    color:#8195a8 !important;
  }
}

/* Desktop basketball pre-game odds/pick also neutral */
@media (min-width:761px) {
  html body .nbb-panel .nbb-table td.nbb-pick,
  html body .nbb-panel .nbb-table td.nbb-pick * {
    color:#f4f8fb !important;
  }

  html body .nbb-panel .nbb-table td .nbb-odd,
  html body .nbb-panel .nbb-table td .nbb-odd * {
    color:#f4f8fb !important;
  }
}


/* ==========================================================
   V7 - ACTUAL LIVE PICKS: FOOTBALL + BASKETBALL
   Same neutral pick-card treatment as PRE-GAME.
   History/result colours are untouched.
   ========================================================== */

/* ---------- FOOTBALL LIVE ---------- */
html body main.nbx-page-live #live-picks table tbody td.pick,
html body main.nbx-page-live #live-picks table tbody td.pick *,
html body main.nbx-page-live #live-picks tbody tr > td:nth-child(5),
html body main.nbx-page-live #live-picks tbody tr > td:nth-child(5) * {
  color:#f4f8fb !important;
  text-shadow:none !important;
}

@media (max-width:760px) {
  html body main.nbx-page-live #live-picks table tbody td.pick,
  html body main.nbx-page-live #live-picks tbody tr > td:nth-child(5) {
    background:#122233 !important;
    background-image:none !important;
    border:1px solid #2a455d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:11px !important;
    box-shadow:none !important;
    padding:12px 13px !important;
  }

  html body main.nbx-page-live #live-picks table tbody td.pick::before,
  html body main.nbx-page-live #live-picks tbody tr > td:nth-child(5)::before {
    color:#8195a8 !important;
  }

  html body main.nbx-page-live #live-picks .v2-odds,
  html body main.nbx-page-live #live-picks .v2-odds * {
    color:#f4f8fb !important;
    background:#13273a !important;
    background-image:none !important;
    border:1px solid #31516d !important;
    box-shadow:none !important;
    text-shadow:none !important;
  }
}

/* ---------- BASKETBALL LIVE ---------- */
html body .nbb-live-panel .nbb-mobile-selection,
html body .nbb-live-panel .nbb-mobile-selection .nbb-pick,
html body .nbb-live-panel .nbb-mobile-selection .nbb-pick *,
html body .nbb-panel[data-mode="live"] .nbb-mobile-selection,
html body .nbb-panel[data-mode="live"] .nbb-mobile-selection .nbb-pick,
html body .nbb-panel[data-mode="live"] .nbb-mobile-selection .nbb-pick * {
  color:#f4f8fb !important;
  text-shadow:none !important;
}

@media (max-width:760px) {
  html body .nbb-live-panel .nbb-mobile-card .nbb-mobile-selection,
  html body .nbb-panel[data-mode="live"] .nbb-mobile-card .nbb-mobile-selection {
    display:flex !important;
    background:#122233 !important;
    background-image:none !important;
    border:1px solid #2a455d !important;
    border-left:4px solid #3f6f98 !important;
    border-radius:11px !important;
    box-shadow:none !important;
    padding:12px 13px !important;
  }

  html body .nbb-live-panel .nbb-mobile-card .nbb-mobile-selection .nbb-pick,
  html body .nbb-panel[data-mode="live"] .nbb-mobile-card .nbb-mobile-selection .nbb-pick {
    color:#f4f8fb !important;
  }

  html body .nbb-live-panel .nbb-mobile-card .nbb-mobile-selection .nbb-odd,
  html body .nbb-live-panel .nbb-mobile-card .nbb-mobile-selection .nbb-odd *,
  html body .nbb-panel[data-mode="live"] .nbb-mobile-card .nbb-mobile-selection .nbb-odd,
  html body .nbb-panel[data-mode="live"] .nbb-mobile-card .nbb-mobile-selection .nbb-odd * {
    color:#f4f8fb !important;
    text-shadow:none !important;
  }

  html body .nbb-live-panel .nbb-mobile-card .nbb-mobile-selection .nbb-odd::before,
  html body .nbb-panel[data-mode="live"] .nbb-mobile-card .nbb-mobile-selection .nbb-odd::before {
    color:#8195a8 !important;
  }
}

/* Basketball live desktop */
@media (min-width:761px) {
  html body .nbb-live-panel .nbb-table td.nbb-pick,
  html body .nbb-live-panel .nbb-table td.nbb-pick *,
  html body .nbb-panel[data-mode="live"] .nbb-table td.nbb-pick,
  html body .nbb-panel[data-mode="live"] .nbb-table td.nbb-pick * {
    color:#f4f8fb !important;
  }

  html body .nbb-live-panel .nbb-table td .nbb-odd,
  html body .nbb-live-panel .nbb-table td .nbb-odd *,
  html body .nbb-panel[data-mode="live"] .nbb-table td .nbb-odd,
  html body .nbb-panel[data-mode="live"] .nbb-table td .nbb-odd * {
    color:#f4f8fb !important;
  }
}


/* ==========================================================
   V8 - DESKTOP TABLE POLISH
   - Result cells no longer fill the whole cell green/red
   - Compact WON/LOST pills instead
   - Team names get more room and remain easy to read
   - Desktop only; mobile card styling remains as-is
   ========================================================== */

@media (min-width: 901px) {

  /* ---------- ALL PICKS / FOOTBALL HISTORY ---------- */
  html body main.nbx-page-history .nbx-data-panel table {
    table-layout: fixed !important;
  }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(1),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(1) { width: 9% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(2),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) { width: 31% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(3),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(3) { width: 7% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(4),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(4) { width: 10% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(5),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(5) { width: 19% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(6),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(6) { width: 7% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(7),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(7) { width: 7% !important; }

  html body main.nbx-page-history .nbx-data-panel table th:nth-child(8),
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(8) { width: 10% !important; }

  /* Give match/team column clearer typography */
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.35 !important;
  }

  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) .v2-match,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) .v2-team,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) strong,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) b {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #f5f8fb !important;
    letter-spacing: 0 !important;
  }

  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) .v2-league,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) small {
    color: #8398aa !important;
    font-size: 11px !important;
  }

  /* Keep the result cell itself neutral */
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won,
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 9px 8px !important;
    text-align: center !important;
  }

  /* Compact result badge by wrapping the text visually */
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won::before,
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 58px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    font-size: 12px !important;
    letter-spacing: .3px !important;
    content: attr(data-result) !important;
  }

  /* Fallback when there is no data-result attribute */
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won {
    font-size: 0 !important;
  }
  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost {
    font-size: 0 !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-won::before {
    content: "WON" !important;
    color: #49e889 !important;
    background: rgba(41, 171, 97, .12) !important;
    border: 1px solid rgba(73, 232, 137, .34) !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody tr > td.v2-result-lost::before {
    content: "LOST" !important;
    color: #ff6378 !important;
    background: rgba(211, 54, 80, .11) !important;
    border: 1px solid rgba(255, 99, 120, .34) !important;
  }

  /* ---------- TIPSTER HISTORY ---------- */
  html body .nb-tip-history-panel table tbody tr > td.v2-result-won,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    text-align: center !important;
  }

  html body .nb-tip-history-panel table tbody tr > td.v2-result-won::before,
  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost::before {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:58px !important;
    height:30px !important;
    padding:0 12px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  html body .nb-tip-history-panel table tbody tr > td.v2-result-won::before {
    content:"WON" !important;
    color:#49e889 !important;
    background:rgba(41,171,97,.12) !important;
    border:1px solid rgba(73,232,137,.34) !important;
  }

  html body .nb-tip-history-panel table tbody tr > td.v2-result-lost::before {
    content:"LOST" !important;
    color:#ff6378 !important;
    background:rgba(211,54,80,.11) !important;
    border:1px solid rgba(255,99,120,.34) !important;
  }

  /* ---------- BASKETBALL HISTORY ---------- */
  html body .nbbh-table table tbody tr > td.won,
  html body .nbbh-table table tbody tr > td.lost {
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    font-size:0 !important;
    text-align:center !important;
  }

  html body .nbbh-table table tbody tr > td.won::before,
  html body .nbbh-table table tbody tr > td.lost::before {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:58px !important;
    height:30px !important;
    padding:0 12px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  html body .nbbh-table table tbody tr > td.won::before {
    content:"WON" !important;
    color:#49e889 !important;
    background:rgba(41,171,97,.12) !important;
    border:1px solid rgba(73,232,137,.34) !important;
  }

  html body .nbbh-table table tbody tr > td.lost::before {
    content:"LOST" !important;
    color:#ff6378 !important;
    background:rgba(211,54,80,.11) !important;
    border:1px solid rgba(255,99,120,.34) !important;
  }
}


/* ==========================================================
   V9 - UNIFIED DESKTOP HISTORY RESULTS
   - Same result style in Bot History + Tipster History
   - No duplicated WON / LOST
   - No full green/red result cell
   - Clearer team names
   ========================================================== */

@media (min-width:901px) {

  /* Reset every previous desktop result treatment */
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-won,
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-lost,
  html body .nb-tip-history-panel table tbody td.v2-result-won,
  html body .nb-tip-history-panel table tbody td.v2-result-lost,
  html body .nbbh-table table tbody td.won,
  html body .nbbh-table table tbody td.lost {
    background:transparent !important;
    background-image:none !important;
    border:0 !important;
    box-shadow:none !important;
    border-radius:0 !important;
    font-size:12px !important;
    font-weight:900 !important;
    text-align:center !important;
    letter-spacing:.35px !important;
    padding:10px 8px !important;
  }

  /* Kill the old text-generating pseudo elements that caused duplicate WON/LOST */
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-won::before,
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-lost::before,
  html body .nb-tip-history-panel table tbody td.v2-result-won::before,
  html body .nb-tip-history-panel table tbody td.v2-result-lost::before,
  html body .nbbh-table table tbody td.won::before,
  html body .nbbh-table table tbody td.lost::before {
    content:"" !important;
    display:inline-block !important;
    width:7px !important;
    height:7px !important;
    min-width:7px !important;
    padding:0 !important;
    margin:0 7px 1px 0 !important;
    border-radius:50% !important;
    vertical-align:middle !important;
  }

  /* WON */
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-won,
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-won *,
  html body .nb-tip-history-panel table tbody td.v2-result-won,
  html body .nb-tip-history-panel table tbody td.v2-result-won *,
  html body .nbbh-table table tbody td.won,
  html body .nbbh-table table tbody td.won * {
    color:#46e58a !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-won::before,
  html body .nb-tip-history-panel table tbody td.v2-result-won::before,
  html body .nbbh-table table tbody td.won::before {
    background:#46e58a !important;
    box-shadow:0 0 10px rgba(70,229,138,.30) !important;
  }

  /* LOST */
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-lost,
  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-lost *,
  html body .nb-tip-history-panel table tbody td.v2-result-lost,
  html body .nb-tip-history-panel table tbody td.v2-result-lost *,
  html body .nbbh-table table tbody td.lost,
  html body .nbbh-table table tbody td.lost * {
    color:#ff6078 !important;
  }

  html body main.nbx-page-history .nbx-data-panel table tbody td.v2-result-lost::before,
  html body .nb-tip-history-panel table tbody td.v2-result-lost::before,
  html body .nbbh-table table tbody td.lost::before {
    background:#ff6078 !important;
    box-shadow:0 0 10px rgba(255,96,120,.26) !important;
  }

  /* Restore normal visible text in Tipster combo result cells */
  html body .nb-tip-history-panel td.v2-result-won > span,
  html body .nb-tip-history-panel td.v2-result-lost > span {
    display:inline !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  html body .nb-tip-history-panel .nb-combo-toggle {
    margin-left:7px !important;
    vertical-align:middle !important;
  }

  /* Clearer team names in both history tables */
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2),
  html body .nb-tip-history-panel table td:nth-child(3) {
    overflow:visible !important;
    white-space:normal !important;
    text-overflow:clip !important;
  }

  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) a,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) strong,
  html body main.nbx-page-history .nbx-data-panel table td:nth-child(2) b,
  html body .nb-tip-history-panel table td:nth-child(3) a,
  html body .nb-tip-history-panel table td:nth-child(3) strong,
  html body .nb-tip-history-panel table td:nth-child(3) b {
    color:#f7f9fc !important;
    font-weight:850 !important;
    font-size:14px !important;
    line-height:1.35 !important;
  }

  html body main.nbx-page-history .nbx-data-panel .v2-metric-note,
  html body .nb-tip-history-panel .v2-metric-note {
    color:#8498aa !important;
  }
}
