:root{--marketline-color:#a7f3d0;
  --brand:#22c55e; --brand-ink:#052e16; --ink:#111827; --muted:#6b7280;
  --bg:#0b1220; --card:#0f172a; --border:#1f2a44; --chip:#0b1529; --ok:#16a34a;
}
@media (prefers-color-scheme: light){
  :root{--marketline-color:#a7f3d0; --bg:#f6f7fb; --card:#ffffff; --border:#e5e7eb; --chip:#f1f5f9; --ink:#111827; --muted:#6b7280; }
}
html[data-theme="light"]{--marketline-color:#374151; --bg:#f6f7fb; --card:#ffffff; --border:#e5e7eb; --chip:#f1f5f9; --ink:#111827; --muted:#6b7280; }
html[data-theme="dark"]{ --bg:#0b1220; --card:#0f172a; --border:#1f2a44; --chip:#0b1529; --ink:#e5e7eb; --muted:#94a3b8; }
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
a{color:inherit;text-decoration:none}
/* Topbar */
.topbar{position:sticky; top:0; z-index:50; background:#0b1220; color:#fff; box-shadow:0 1px 0 rgba(255,255,255,.06), 0 10px 20px rgba(0,0,0,.08)}
.topbar-inner{height:56px; max-width:1180px; margin:0 auto; padding:0 20px; display:flex; align-items:center; gap:14px}
.topbar .brand{display:flex; align-items:center; gap:10px}
.topbar nav{margin-left:auto; display:flex; gap:14px}
.topbar nav a{color:#e5fbe5; font-weight:600; font-size:14px; opacity:.95; padding:8px 10px; border-radius:8px}
.topbar nav a:hover, .topbar nav a.active{background:rgba(255,255,255,.08)}
.theme-btn{margin-left:8px; appearance:none; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06); color:#e5fbe5; padding:4px 8px; border-radius:10px; cursor:pointer; display:flex; align-items:center; gap:6px; flex-shrink:0}
.theme-btn .icon-sun::before{content:"☀️"} .theme-btn .icon-moon::before{content:"🌙"}
/* Frame */
.container{max-width:1200px; margin:18px auto; padding:0 16px}
.meta{display:inline-flex; align-items:center; gap:10px; margin:8px 0 16px; color:#064e3b; background:#d1fae5; border:1px solid #a7f3d0; padding:8px 12px; border-radius:12px; font-size:13px}
.grid{display:grid; grid-template-columns:320px 1fr; gap:16px} @media (max-width:960px){ .grid{grid-template-columns:1fr} }
/* Sidebar */
.sidebar{background:var(--card); border:1px solid var(--border); border-radius:14px; padding:12px}
.side-title{font-size:14px; font-weight:800; margin:6px 0 10px}
.section{border-top:1px dashed var(--border); padding-top:10px; margin-top:10px}
.range-row{display:flex; align-items:center; gap:10px}
.range-row input[type="number"]{width:110px; padding:8px; border:1px solid var(--border); border-radius:10px; background:#0b0f17; color:var(--ink)}
html[data-theme="light"] .range-row input[type="number"]{background:#fff;color:#111827}
/* Dual range */
.dual-range{position:relative; height:32px; margin:8px 0 4px}
.dual-range input[type=range]{position:absolute; left:0; right:0; top:6px; width:100%; pointer-events:auto; background:transparent; -webkit-appearance:none}
.dual-range .track{position:absolute; left:0; right:0; top:14px; height:6px; background:#1f2a44; border-radius:999px}
.dual-range .range-fill{position:absolute; top:14px; height:6px; background:#22c55e; border-radius:999px; left:0; right:0}
input[type=range]{min:0;max:50}
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#22c55e; border:2px solid #0b1220 }
input[type=range]::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#22c55e; border:2px solid #0b1220 }
/* Chips */

/* --- Logo wrap standardization --- */
.logo-wrap{display:inline-flex; align-items:center; justify-content:center;
  width:var(--logo-width, 128px); height:var(--logo-height, 44px);
  padding:4px 8px; border-radius:12px; background:#fff; overflow:hidden;
}
.logo-wrap.round{border-radius:12px}
.logo-wrap.card{border-radius:14px}
.logo-wrap img{height:100%; width:auto; max-height:100%; object-fit:contain; display:block}

/* Force images inside chips and bookmaker cards to use the wrapper sizing */
.chip .logo-wrap{ --logo-width: var(--logo-width-menu, 128px); --logo-height: var(--logo-height-menu, 44px); padding:3px 8px; }
.bm .logo-wrap{ --logo-width: var(--logo-width-card, 140px); --logo-height: var(--logo-height-card, 52px); padding:6px 10px; }

/* Keep legacy sizing rules from conflicting */
.chip img, .bm img{ width:auto !important; height:auto !important; }

/* Mobile topbar: ensure no horizontal scrolling */
@media (max-width: 480px){
  .topbar-inner{ gap:8px; padding:0 12px; }
  .topbar nav{ gap:8px; flex-wrap:wrap; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  .topbar .brand img{ width:150px; height:auto; }
  html, body{ overflow-x:hidden; }
}
/* Chips */
.chipbar{display:flex; flex-wrap:wrap; gap:8px; max-height:none; overflow:visible; padding:6px; background:var(--chip); border:1px dashed var(--border); border-radius:12px}
.chip{background:transparent; border:1px solid var(--border); border-radius:999px; padding:2px 6px; display:inline-flex; align-items:center; gap:6px; font-size:13px}
.chip input{margin:0} .chip img{width:72px; height:28px; object-fit:contain}
.side-actions{display:flex; gap:8px; margin-top:8px}
.btn{appearance:none; border:1px solid var(--border); background:#0b0f17; color:var(--ink); padding:8px 10px; border-radius:10px; cursor:pointer; font-weight:600}
html[data-theme="light"] .btn{background:#f8fafc; color:#111827}
/* Cards */
.list{display:flex; flex-direction:column; gap:12px}
.card{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:12px; display:grid; grid-template-columns:1fr 180px; gap:10px; align-items:stretch; box-shadow:0 6px 12px rgba(0,0,0,.04)}
.winrow{display:flex; align-items:center; gap:10px; margin-top:4px}
.tag{background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; font-weight:900; font-size:13px; padding:4px 8px; border-radius:999px}
.marketline{font-size:14px; font-weight:700; color:var(--marketline-color); margin-top:4px}
.match{font-weight:800; font-size:16px; line-height:1.25; margin-top:4px}
.legs{display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin-top:8px}
.leg{border:1px solid var(--border); border-radius:12px; padding:12px}
/* Clickable leg blocks */
.leg{ position:relative; transition:background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.leg:hover{ cursor:pointer; background:rgba(34,197,94,.12); border-color:#22c55e; box-shadow:0 0 0 2px rgba(34,197,94,.25) inset; cursor:pointer; }
.leg .leg-hit{ position:absolute; inset:0; border-radius:12px; z-index:5; display:block; }
.leg .odds, .leg .line, .leg .bm{ position:relative; z-index:2; }

.leg .line{font-weight:800}
.odds{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.odd{font-size:20px; font-weight:900}
.bm{display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none}
.bm img{width:160px; height:56px; object-fit:contain; background:transparent; border-radius:0; padding:0}
.bm .bm-name{font-size:12px; color:#94a3b8}
/* Full-height action panel */
.actions{display:flex; align-items:center; justify-content:center}
.cta{background:#22c55e; color:#052e16; font-weight:900; text-decoration:none; border-radius:12px; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:10px}
.cta:hover{filter:brightness(.95)}
.cta .calc-ico{width:64px; height:40px; display:block}
/* Prose & calc */
.prose{max-width:900px; margin:0 auto}
.prose .muted{color:var(--muted)}
.prose h1{margin:6px 0 10px}
.prose p{line-height:1.6}
.calc-wrap .container{max-width:900px}
/* Footer */
.site-footer .container{max-width:1200px; margin:0 auto; padding:0 16px}

.bm img[alt*="starcasino"]{background:#fff; padding:4px; border-radius:6px;}


/* === HOTFIX 2025-09-09 ===================================== */

/* Make the action (CTA) column equal height with the legs/cards */
.card{ display:grid; grid-template-columns: 1fr 280px; gap:12px; align-items:stretch; }
.card > .content{ grid-column: 1 / 2; }
.card > .actions{ grid-column: 2 / 3; display:flex; align-items:stretch; }
.actions .cta{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:16px; }

/* Ensure the two legs inside the content are a 2-col grid */
.legs{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; width:100%; margin-top:8px; }
.leg{ height:100%; display:flex; flex-direction:column; }

/* Calculator icon + label layout */
.cta .calc-ico{ width:auto; height:40px; display:block; }

/* Starcasino logo readability on dark: white card behind the logo */
.bm img[alt*="starcasino"], .bm img[alt*="Starcasino"]{
  background:#fff; padding:8px 10px; border-radius:10px;
}

/* Subtitle contrast on light theme (auto) */
@media (prefers-color-scheme: light){
  html[data-theme="auto"]{ --marketline-color:#374151; }
}

/* Header brand/logo larger */
.topbar .brand img{ height:32px; width:auto; }

/* Responsive: stack on mobile */
@media (max-width: 768px){
  .card{ grid-template-columns: 1fr; }
  .actions{ order: 3; }
  .actions .cta{ min-height: 120px; }
}
/* =========================================================== */


/* === HOTFIX 2025-09-09 v2 ================================ */
/* Make CTA (actions .cta) exactly same height as a leg block */
.card{ display:grid; grid-template-columns:1fr 1fr 180px; gap:12px; align-items:stretch; }
.card > div:first-child{ grid-column:1 / span 2; }
.card > .actions{ grid-column:3 / 4; display:flex; }
.actions .cta{ width:100%; height:100%; min-height:0; padding:20px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; border-radius:16px; }

/* Make calculator icon larger but proportional */
.cta .calc-ico{ width:64px; height:64px; }
/* ========================================================= */


/* === HOTFIX 2025-09-09 v3 ================================ */
/* Make CTA width ~1/4 of one leg (odds card) */
.card{ display:grid; grid-template-columns:1fr 1fr 0.25fr; gap:12px; align-items:stretch; }
.card > div:first-child{ grid-column:1 / span 2; }
.card > .actions{ grid-column:3 / 4; display:flex; }
.actions .cta{ width:100%; height:100%; min-height:0; padding:16px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; border-radius:16px; }

/* Calculator icon stays large */
.cta .calc-ico{ width:64px; height:64px; }
/* ========================================================= */


/* === HOTFIX 2025-09-09 v4 ================================ */
/* Compact friendly CTA button */
.actions .cta{
  height:100px;
  min-height:unset;
  width:100%;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  border-radius:12px;
}
.cta .calc-ico{
  width:48px;
  height:48px;
}
/* ========================================================= */


/* === HOTFIX 2025-09-09 v5 (mini-cta) ===================== */
/* Revert card layout to block (hide old actions pane if any) */
.card{ display:block; }
.actions{ display:none !important; }

/* Legs now have a 3rd column for the mini-cta on desktop */
.legs{ display:grid; grid-template-columns: 1fr 1fr 120px; gap:10px; width:100%; margin-top:8px; }
.mini-cta{
  border:1px solid var(--border);
  border-radius:12px;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:10px;
  background:transparent;
  color:var(--ink);
  font-weight:900;
  text-align:center;
}
.mini-cta:hover{ background:#22c55e; color:#052e16; }
.mini-cta .mini-ico{ width:44px; height:44px; display:block; }
.mini-cta .mini-cta-label{ font-size:12px; letter-spacing:.3px; }

/* Mobile: stack; put mini-cta as a row with icon + text */
@media (max-width: 768px){
  .legs{ grid-template-columns: 1fr; }
  .mini-cta{ flex-direction:row; justify-content:center; gap:10px; }
  .mini-cta .mini-cta-label{ font-size:14px; }
}
/* ========================================================= */


/* === HOTFIX 2025-09-09 v6 (placement + style) ============= */
/* Ensure 3 columns on desktop and keep 1 column on small */
@media (min-width: 900px){
  .card .legs{ grid-template-columns: 1fr 1fr 140px !important; }
}

/* Mini-CTA visual refinement (no heavy box look) */
.mini-cta{
  border:1px dashed var(--border);
  background:transparent;
  border-radius:12px;
}
.mini-cta:hover{
  background:rgba(34,197,94,.12); /* subtle green tint */
  border-style:solid;
}
.mini-cta .mini-ico{
  width:40px;
  height:40px;
}
.mini-cta .mini-cta-label{ font-size:13px; }
/* ========================================================= */

/* === HOTFIX 2025-09-09 v7 (hover & visibility) ============ */
.mini-cta, .mini-cta:visited { color: var(--ink) !important; }
.mini-cta:hover { background: rgba(34,197,94,.12); border-color: var(--border); color: var(--ink) !important; }
.mini-cta .mini-ico { width:40px; height:40px; color: currentColor; }
/* ========================================================== */


/* --- Surebet logo adjustments --- */

/* === Gebruikersmenu (account dropdown) ================== */
/* Verberg het standaard driehoekje (marker) van het <summary> element in de user-menu */
.user-menu summary::-webkit-details-marker,
.user-menu summary::marker{
  display:none;
}
/* Verberg de dropdown tenzij het details-element open is */
.user-menu:not([open]) .user-dropdown{
  display:none;
}
.user-menu[open] .user-dropdown{
  display:block;
}
/* Stijl voor user-menu icoon */
.user-menu .icon-user{
  font-size:20px;
  line-height:1;
}
/* ======================================================= */

.bm .logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}
.bm .logo-wrap img{
  height:90%;
  width:auto;
  object-fit:contain;
}

/* Logo fine-tune: center + allow JS scaling */
.logo-wrap{justify-content:center; align-items:center}
.logo-wrap img{transform-origin:center center; display:block; margin:0 auto;}


/* Mobile nav fixes */
@media (max-width: 600px){
  .topbar-inner{ flex-wrap:wrap; height:auto; justify-content:space-between; }
  .topbar nav{ flex-wrap:wrap; gap:6px; width:100%; order:2; margin-left:0; justify-content:center; }
  .topbar nav a{ flex:1 1 auto; text-align:center; font-size:13px; padding:6px 4px; }
  .theme-btn{ order:3; margin:6px auto 0; }
}


/* --- Mobile topbar: no horizontal scroll, items wrap onto a new line --- */
@media (max-width: 480px){
  .topbar-inner{ height:auto; padding:8px 12px; gap:8px; flex-wrap:wrap; }
  .topbar .brand{ flex: 1 1 100%; }
  .topbar nav{ order: 2; margin-left:0; flex: 1 1 100%; display:flex; flex-wrap:wrap; gap:8px; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  .theme-btn{ order: 3; margin-left:auto; }
  html, body{ overflow-x:hidden; }
}


/* --- Mobile topbar (v2): theme toggle top-right, nav below, no horizontal scroll --- */
@media (max-width: 480px){
  .topbar-inner{ height:auto; padding:8px 12px; gap:8px; flex-wrap:wrap; align-items:center; }
  .topbar .brand{ order:0; flex: 1 1 auto; }
  .theme-btn{ order:1; margin-left:auto; align-self:flex-start; }
  .topbar nav{ order:2; margin-left:0; flex: 1 1 100%; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  html, body{ overflow-x:hidden; }
}


/* --- Mobile topbar (v3 grid): brand left, toggle right, nav wraps below --- */
@media (max-width: 640px){
  .topbar-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand theme"
      "nav nav";
    gap:8px;
    padding:8px 12px;
    height:auto;
    align-items:center;
  }
  .topbar .brand{ grid-area: brand; }
  .theme-btn{ grid-area: theme; justify-self:end; margin-left:0; }
  .topbar nav{ grid-area: nav; margin-left:0; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  html, body{ overflow-x:hidden; }
}


/* --- Odd Calculator Dark Mode Fixes --- */
.table-odds, .table-odds table{
  background: #0e1525;
  color: #f1f1f1;
  border-collapse: collapse;
}
.table-odds th{
  background: #006699;
  color: #fff;
}
.table-odds td{
  background: #1a2235;
  color: #f1f1f1;
  border: 1px solid #2a3550;
}
.table-odds tr:nth-child(even) td{
  background: #121a2a;
}


/* --- Surebets hover effect for odds boxes --- */
.bm, .bm .odd-box{
  cursor:pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.bm:hover, .bm .odd-box:hover{
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}


/* General table colors to help dark pages (odd calculator) */
html[data-theme="dark"] table{ background:transparent; color:var(--ink); border-color:var(--border); }
html[data-theme="dark"] th{ background:#0ea5e9; color:#fff; }
html[data-theme="dark"] td{ background:rgba(255,255,255,.02); }
html[data-theme="dark"] tr:nth-child(even) td{ background:rgba(255,255,255,.04); }
html[data-theme="dark"] tr:hover td{ background:rgba(34,197,94,.08); }


/* --- Duplicates UI (bookmaker clustering) --- */
.leg { position: relative; }
.bm-wrap { position: relative; display: inline-block; margin-left: .5rem; }
.bm-more {
  font-size: 11px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border, #2a2f3a);
  background: var(--chip-bg, rgba(255,255,255,.04));
  color: var(--text-muted, #9aa4b2);
  cursor: default;
}
.bm-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border, #2a2f3a);
  background: var(--card, #0f1420);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: none;
  z-index: 50;
}
.bm-pop[data-open="1"] { display: block; }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bm-row img { width: 84px; height: 32px; object-fit: contain; }
.bm-row .bm-name { font-size: 12px; opacity: .8; }


/* ensure +N badge sits above leg overlay */
.bm-wrap { z-index: 10; }
.leg .leg-hit { z-index: 5; }
.bm-pop { z-index: 20; }


/* clickable rows in popover */
.bm-pop .bm-row { display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:8px; text-decoration:none; color:inherit; }
.bm-pop .bm-row:hover { background: rgba(255,255,255,.06); }


/* UX tweaks: bigger badge; only logos clickable */
.bm-more {
  font-size: 12px;           /* was 11px */
  padding: 8px 12px;         /* was 6px 10px */
  border-radius: 999px;
}
.leg .odds { cursor: default; }   /* no hand cursor for whole block */
.leg .bm { cursor:pointer; display:flex; flex-direction:column; align-items:center; }
.leg .bm .bm-name { pointer-events: auto; } /* name not clickable */
.bm-pop { z-index: 1000; }          /* above other cards on mobile */


/* Restore vertical layout: name under logo; fixed width column for consistency */
.odds { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.bm-col { display:flex; flex-direction:column; align-items:center; width:160px; }
.odds .bm-name { font-size:12px; color:#94a3b8; margin-top:6px; text-align:center; }
.leg .bm { cursor:pointer; display:flex; flex-direction:column; align-items:center; } /* keep only logo clickable */
.bm-col > .bm-wrap { margin-left:0; margin-top:.5rem; } /* badge under logo instead of beside */


/* Badge back between logo and odd */
.bm-wrap { position: relative; display: inline-block; margin-left: .5rem; margin-top: 0; vertical-align: middle; }

/* Make the name clickable again (inside the anchor) */
.leg .bm .bm-name { pointer-events: auto; }
.leg .bm { cursor: pointer; display:flex; flex-direction:column; align-items:center; text-decoration:none; }

.leg.locked-leg {
    position: relative;
    opacity: 0.55;
    pointer-events: auto;
    cursor: pointer;
}

.leg-lock-full {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    font-size: 36px;
    text-decoration: none;
    color: #fff;
}

.leg.locked-leg:hover .leg-lock-full {
    background: rgba(0,0,0,0.6);
}

/* =========================================
   VALUEBETS STYLING & DROPDOWNS (TOEGEVOEGD ONDERAAN)
   ========================================= */

.vb-card {
  background-color: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
[data-theme="dark"] .vb-card { background-color: #1f2937; border-color: #374151; }

.vb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
  border-bottom: 1px solid var(--border, #eee);
  padding-bottom: 0.75rem;
}
[data-theme="dark"] .vb-header { border-color: #374151; color: #9ca3af; }

.vb-main {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vb-match strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #111827);
  margin-bottom: 0.35rem;
}
[data-theme="dark"] .vb-match strong { color: #f3f4f6; }

.vb-market {
  display: inline-block;
  background: var(--bg-sub, #f3f4f6);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}
[data-theme="dark"] .vb-market { background: #374151; color: #d1d5db; }

.vb-bet { margin-top: 0.75rem; font-size: 1rem; }

.vb-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--bg-sub, #f9fafb);
  padding: 0.75rem;
  border-radius: 8px;
}
[data-theme="dark"] .vb-odds { background: #111827; }

.vb-odd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vb-odd-box span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.vb-odd-box strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2e8bff;
}

.vb-bm {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border, #eee);
  min-height: 40px;
}
[data-theme="dark"] .vb-bm { border-color: #374151; }

.vb-bm .bm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vb-bm img { height: 26px; width: auto; object-fit: contain; }
.vb-bm .bm-name { margin-top: 4px; font-size: 0.75rem; color: #6b7280; }

.vb-actions {
  border-top: 1px solid var(--border, #eee);
  padding-top: 0.9rem;
}
[data-theme="dark"] .vb-actions { border-color: #374151; }

.vb-trackbox {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}
[data-theme="dark"] .vb-trackbox {
  background: #111827;
  border-color: #334155;
}

.vb-trackline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  color: #1f2937;
  font-weight: 600;
}
.vb-trackline input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}
.vb-trackline span {
  line-height: 1.45;
}
[data-theme="dark"] .vb-trackline {
  color: #e5e7eb;
}

.vb-trackbox--tracked {
  background: #ecfdf5;
  border-color: #86efac;
}
.vb-trackbox--tracked .vb-trackline {
  color: #166534;
}

.vb-trackbox--pending {
  background: #eff6ff;
  border-color: #93c5fd;
}
.vb-trackbox--pending .vb-trackline {
  color: #1d4ed8;
}

.vb-trackbox--locked {
  background: #fff7ed;
  border-color: #fdba74;
}
.vb-trackbox--locked .vb-trackline {
  color: #9a3412;
}
.vb-trackbox--locked .vb-trackline input {
  cursor: not-allowed;
}

.vb-trackhint {
  margin-top: 0.45rem;
  padding-left: 2rem;
  font-size: 0.84rem;
  color: #9a3412;
}

[data-theme="dark"] .vb-trackbox--tracked {
  background: #052e1a;
  border-color: #166534;
}
[data-theme="dark"] .vb-trackbox--tracked .vb-trackline {
  color: #bbf7d0;
}
[data-theme="dark"] .vb-trackbox--pending {
  background: #0c2340;
  border-color: #1d4ed8;
}
[data-theme="dark"] .vb-trackbox--pending .vb-trackline {
  color: #bfdbfe;
}
[data-theme="dark"] .vb-trackbox--locked {
  background: #3a1d0b;
  border-color: #9a3412;
}
[data-theme="dark"] .vb-trackbox--locked .vb-trackline,
[data-theme="dark"] .vb-trackhint {
  color: #fdba74;
}

/* Resultaat labels */
.vb-result {
  margin-top: 0.25rem;
  padding: 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.res-win { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.res-loss { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.res-void { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

/* --- Nieuw: Datum weergave op Surebet kaart --- */
.sb-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Valuebets Tabs --- */
.vb-tabs {
  display: flex;
  background: var(--card); /* Donker/Licht afhankelijk van thema */
  padding: 6px;
  border-radius: 12px;
  gap: 8px;
  width: fit-content;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.vb-tab-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vb-tab-btn:hover {
  color: var(--ink);
  background: var(--bg);
}

.vb-tab-btn.active {
  background: #22c55e; /* Jouw brand color */
  color: #052e16;      /* Donkergroene tekst */
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Helper om secties te verbergen */
.tab-hidden {
  display: none !important;
}

/* Styling voor de Valuebet Uitleg (Kolom P) */
.vb-reason {
  background-color: #f0f9ff; /* Heel lichtblauw */
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  white-space: pre-line; /* Zorgt dat enters in Excel ook enters op scherm worden */
}

/* Dark mode variant */
[data-theme="dark"] .vb-reason {
  background-color: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
}
