
/* MatchBet Bonus System - Front */
.mbbs-grid-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:22px;margin:18px 0}
.mbbs-card{border:1px solid #e7e7e7;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.06)}
/* Card hero is typically a bookmaker logo. Use contain to avoid cropping. */
.mbbs-card-hero{height:150px;background-size:contain;background-repeat:no-repeat;background-position:center;background-color:#000}
.mbbs-card-body{padding:16px}
.mbbs-toprow{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.mbbs-status{font-size:12px;color:#333;opacity:.85}
.mbbs-repeat-chip{font-size:11px;font-weight:800;padding:6px 10px;border-radius:999px;background:#f3f3f3;color:#111;white-space:nowrap}
.mbbs-title{margin:0 0 10px 0;font-size:18px;line-height:1.25}
.mbbs-subtitle{margin:-4px 0 10px 0;color:#333;opacity:.85;font-size:13px;line-height:1.35}
.mbbs-countdown{display:flex;gap:10px;align-items:baseline;margin:8px 0 12px}
.mbbs-cd-label{font-size:12px;color:#666}
.mbbs-cd-val{font-weight:700}
.mbbs-risk{padding:10px 12px;border-radius:10px;font-weight:800;text-align:center;margin:10px 0 14px}
.mbbs-risk-low{background:#0bbf5a;color:#fff}
.mbbs-risk-medium{background:#ffae00;color:#111}
.mbbs-risk-high{background:#ff3b30;color:#fff}
.mbbs-btn{display:inline-block;background:#ffb000;color:#111;text-decoration:none;border:none;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}
.mbbs-btn:hover{filter:brightness(.95)}
.mbbs-btn-secondary{background:#111;color:#fff}
.mbbs-btn-secondary:hover{filter:brightness(1.05)}
.mbbs-btn-success{background:#0bbf5a;color:#fff}
.mbbs-btn-success:hover{filter:brightness(1.03)}
.mbbs-btn-success:disabled{opacity:.9;cursor:default}
.mbbs-btnrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}

/* Timer header (like your Royal Casino card) */
.mbbs-timer{background:#fff;padding:12px 16px 0}
.mbbs-timer-caption{font-size:12px;letter-spacing:.02em;opacity:.75;text-transform:uppercase;text-align:center;margin-bottom:8px}
.mbbs-timer-row{display:flex;justify-content:center;align-items:center;gap:10px}
.mbbs-timer-box{display:flex;flex-direction:column;align-items:center;min-width:70px}
.mbbs-timer-num{font-weight:900;font-size:20px;line-height:1}
.mbbs-timer-lbl{font-size:11px;letter-spacing:.02em;opacity:.75;margin-top:6px}
.mbbs-timer-sep{opacity:.35}

/* ---------- Filter buttons (Welcome / Campaigns) ---------- */
.mbbs-filterbar{display:flex;flex-direction:column;gap:10px;margin:12px 0 18px}
.mbbs-filtergroup{display:flex;flex-wrap:wrap;gap:10px}
.mbbs-btn.is-active{box-shadow:0 0 0 3px rgba(255,176,0,.35)}
.mbbs-btn-risk-low{background:#0bbf5a;color:#fff}
.mbbs-btn-risk-medium{background:#ffae00;color:#111}
.mbbs-btn-risk-high{background:#ff3b30;color:#fff}

/* Make filter rows look tighter on small screens */
@media (max-width: 480px){
  .mbbs-filtergroup{gap:8px}
  .mbbs-btn{padding:9px 12px}
}

/* ---------- Theme toggle (dashboard + list pages) ---------- */
body.mbbs-theme-dark{background:#0b1220}
body.mbbs-theme-dark .mbbs-card{background:#0f1b2d;border-color:rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.35)}
body.mbbs-theme-dark .mbbs-title,body.mbbs-theme-dark .mbbs-subtitle,body.mbbs-theme-dark .mbbs-status,body.mbbs-theme-dark .mbbs-cd-label{color:#e8edf5}
body.mbbs-theme-dark .mbbs-cd-label{opacity:.8}
body.mbbs-theme-dark .mbbs-timer{background:#0f1b2d}
body.mbbs-theme-dark .mbbs-meta-item{color:#e8edf5}
body.mbbs-theme-dark .mbbs-calc-note,body.mbbs-theme-dark .mbbs-login-note,body.mbbs-theme-dark .mbbs-pick-desc{color:#e8edf5;opacity:.85}

/* Dashboard cards in dark theme */
body.mbbs-theme-dark .mbbs-dash{background:radial-gradient(1200px 500px at 30% 0%, rgba(65,124,255,.25), transparent 60%), radial-gradient(900px 420px at 70% 10%, rgba(0,255,174,.18), transparent 55%), #0b1220}
body.mbbs-theme-dark .mbbs-dash .mbbs-profit-box{background:rgba(9,22,37,.9);border:1px solid rgba(255,255,255,.08)}
body.mbbs-theme-dark .mbbs-dash .mbbs-links .mbbs-dash-link{background:rgba(255,255,255,.07);color:#fff;border:1px solid rgba(255,255,255,.10)}
body.mbbs-theme-dark .mbbs-dash .mbbs-links .mbbs-dash-link:hover{background:rgba(255,255,255,.10)}

/* Profit / time line */
.mbbs-meta{margin:12px 0 14px;display:grid;grid-template-columns:1fr;gap:8px}
.mbbs-meta-item{display:flex;align-items:baseline;gap:8px;color:#111}
.mbbs-meta-ico{opacity:.9}
.mbbs-meta-label{font-weight:800;letter-spacing:.01em}

/* Dashboard */
.mbbs-dash{margin:18px 0}
.mbbs-dash-head{margin:0 0 14px 0}
.mbbs-dash-title{margin:0;font-size:34px;letter-spacing:-.02em}
.mbbs-dash-sub{margin-top:6px;opacity:.85}
.mbbs-dash-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:14px 0 18px}
@media (min-width: 1200px){.mbbs-dash-cards{grid-template-columns:repeat(6,minmax(0,1fr));}}
.mbbs-dash-card{background:#fff;color:#0b1220;border-radius:16px;padding:18px;border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 26px rgba(0,0,0,.08)}
.mbbs-dash-card-label{opacity:.85;font-weight:700}
.mbbs-dash-card-val{font-size:26px;font-weight:900;margin-top:8px}
.mbbs-dash-progress{margin:8px 0 18px}
.mbbs-dash-progress-title{font-weight:800;margin-bottom:10px}
.mbbs-progressbar{height:12px;background:rgba(0,0,0,.12);border-radius:999px;overflow:hidden}
.mbbs-progressbar-fill{height:100%;background:#0bbf5a;border-radius:999px}
.mbbs-dash-progress-sub{margin-top:8px;opacity:.85;font-size:13px}
.mbbs-dash-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:10px 0 18px}
.mbbs-dash-link{display:block;background:#fff;border:1px solid #e7e7e7;border-radius:14px;padding:14px 16px;font-weight:800;text-decoration:none;color:#111;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.mbbs-dash-link:hover{filter:brightness(.98)}
.mbbs-dash-list{background:#fff;border:1px solid #e7e7e7;border-radius:14px;padding:14px}
.mbbs-dash-list-item{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f0}
.mbbs-dash-list-item:last-child{border-bottom:none}
.mbbs-dash-list-item a{text-decoration:none;font-weight:800;color:#111}
.mbbs-dash-list-meta{opacity:.75;font-size:12px}
.mbbs-empty{background:#fff;border:1px dashed #ddd;border-radius:14px;padding:16px;opacity:.9}

.mbbs-todays-picks{border:1px solid #e7e7e7;border-radius:14px;padding:16px;margin:18px 0;background:#fff}
.mbbs-todays-picks h3{margin:0 0 10px 0}
.mbbs-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.mbbs-pick{border:1px dashed #ddd;border-radius:12px;padding:12px}
.mbbs-pick-title{font-weight:800;margin-bottom:6px}
.mbbs-pick-desc{color:#333;opacity:.85}
.mbbs-pick-link{display:inline-block;margin-top:8px}

/* Dagens valg (V2 builder) */
.mbbs-todays-picks-v2{border:1px solid #e7e7e7;border-radius:14px;padding:16px;margin:18px 0;background:#fff}
.mbbs-tp-kicker{font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.7;margin-bottom:6px}
.mbbs-tp-title{margin:0 0 6px 0;font-size:22px}
.mbbs-tp-sub{display:flex;gap:10px;flex-wrap:wrap;color:#333;opacity:.75;font-weight:700;margin-bottom:10px}
.mbbs-tp-intro{color:#333;opacity:.9;line-height:1.45;margin-top:8px}
.mbbs-tp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:14px}
.mbbs-tp-pairs{display:flex;flex-direction:column;gap:14px;margin-top:14px}
.mbbs-tp-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width: 820px){
  .mbbs-tp-row{grid-template-columns:1fr}
}
.mbbs-tp-card{border:1px solid #eee;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.06)}
.mbbs-tp-card-top{display:flex;justify-content:space-between;align-items:center;padding:12px 12px 10px 12px}
.mbbs-tp-bm{font-weight:900}
.mbbs-tp-type{font-size:12px;font-weight:900;padding:6px 10px;border-radius:999px;border:1px solid #eee;background:#f7f7f7}
.mbbs-tp-img img{width:100%;height:160px;object-fit:cover;display:block}
.mbbs-tp-body{padding:12px}
.mbbs-tp-meta{display:flex;gap:14px;flex-wrap:wrap;color:#111;opacity:.9;margin-bottom:8px}
.mbbs-tp-note{color:#333;opacity:.85;line-height:1.35;margin-bottom:10px}
.mbbs-tp-link{display:inline-block;font-weight:900;text-decoration:none}

.mbbs-calculator{border:1px solid #e7e7e7;border-radius:14px;padding:16px;margin:18px 0;background:#fff}
.mbbs-calculator h3{margin:0 0 10px 0}
.mbbs-calc-note{color:#333;opacity:.8;margin-bottom:12px}
.mbbs-calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.mbbs-calc-field label{display:block;font-weight:700;margin-bottom:6px}
.mbbs-calc-field input{width:100%;padding:10px;border-radius:10px;border:1px solid #ddd}
.mbbs-calc-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}
.mbbs-calc-results div{border-radius:12px;border:1px solid #eee;padding:12px}
.mbbs-calc-results span{display:block;color:#666;font-size:12px;margin-bottom:4px}
.mbbs-calc-results strong{font-size:18px}
.mbbs-only-moneyback{display:none}
.mbbs-calculator[data-bettype="moneyback"] .mbbs-only-moneyback{display:block}

.mbbs-profit{border:1px solid #e7e7e7;border-radius:14px;padding:16px;margin:18px 0;background:#fff}
.mbbs-profit h3{margin:0 0 10px 0}
.mbbs-login-note{color:#333;opacity:.85}
.mbbs-profit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;align-items:end}
.mbbs-profit-field label{display:block;font-weight:700;margin-bottom:6px}
.mbbs-profit-field input,.mbbs-profit-field select{width:100%;padding:10px;border-radius:10px;border:1px solid #ddd}
.mbbs-profit-actions{display:flex;gap:10px;align-items:center}
.mbbs-save-msg{font-weight:700}

/* ---------- Filter buttons (Welcome / Campaigns) ---------- */
.mbbs-filterbar{display:flex;flex-direction:column;gap:10px;margin:12px 0 18px}
.mbbs-filtergroup{display:flex;flex-wrap:wrap;gap:10px}
.mbbs-btn{border:none;border-radius:12px;padding:10px 14px;font-weight:800;cursor:pointer}
.mbbs-btn.is-active{box-shadow:0 0 0 3px rgba(255,176,0,.35)}
.mbbs-btn-cat{background:#ffb000;color:#111}
.mbbs-btn-risk{background:#f2f2f2;color:#111}
.mbbs-btn-risk-low{background:#0bbf5a;color:#fff}
.mbbs-btn-risk-medium{background:#f4c400;color:#111}
.mbbs-btn-risk-high{background:#e33b3b;color:#fff}

/* Risk label pill on cards */
.mbbs-risk-pill{display:inline-block;padding:10px 14px;border-radius:12px;font-weight:900;letter-spacing:.02em}
.mbbs-risk-pill.low{background:#0bbf5a;color:#fff}
.mbbs-risk-pill.medium{background:#f4c400;color:#111}
.mbbs-risk-pill.high{background:#e33b3b;color:#fff}

/* ---------- Theme toggle (Dashboard) ---------- */
.mbbs-theme-toggle{display:inline-flex;align-items:center;gap:8px;border-radius:12px;padding:10px 14px;font-weight:900;border:none;background:#ffb000;color:#111;cursor:pointer}

/* Light/Dark using body class */
body.mbbs-theme-dark .mbbs-dash{background:radial-gradient(circle at 20% 10%,rgba(0,180,255,.18),transparent 40%),radial-gradient(circle at 70% 20%,rgba(255,176,0,.12),transparent 45%),#08101a;color:#eaf0ff}
body.mbbs-theme-dark .mbbs-dash h1,body.mbbs-theme-dark .mbbs-dash h2{color:#eaf0ff}
body.mbbs-theme-dark .mbbs-dash-card{background:rgba(10,25,38,.85);box-shadow:0 10px 30px rgba(0,0,0,.35)}
body.mbbs-theme-dark .mbbs-dash-link{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#eaf0ff}
body.mbbs-theme-dark .mbbs-list{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12)}

/* ---------- Shared page header + container ---------- */
.mbbs-container{margin:18px 0}
.mbbs-pagehead{display:flex;justify-content:flex-end;align-items:center;margin:0 0 10px 0}

/* ---------- New filter UI (matches current markup) ---------- */
.mbbs-filters{display:flex;flex-direction:column;gap:10px;margin:12px 0 18px}
.mbbs-filter-row{display:flex;flex-wrap:wrap;gap:10px}
.mbbs-filter-btn{border:none;border-radius:12px;padding:10px 14px;font-weight:900;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.mbbs-filter-btn.is-active{box-shadow:0 0 0 3px rgba(255,176,0,.35)}
.mbbs-filter-btn{background:#f2f2f2;color:#111}
.mbbs-filter-row--cat .mbbs-filter-btn{background:#ffb000;color:#111}
.mbbs-filter-btn.is-risk-low{background:#0bbf5a;color:#fff}
.mbbs-filter-btn.is-risk-medium{background:#f4c400;color:#111}
.mbbs-filter-btn.is-risk-high{background:#e33b3b;color:#fff}

/* ---------- Badge (dashboard) ---------- */
.mbbs-dash-head-row{display:flex;justify-content:space-between;align-items:center;gap:14px}
.mbbs-dash-head-actions{display:flex;align-items:center;gap:12px}
/* Dashboard badge: bigger, no frame, no text */
.mbbs-badge{display:flex;align-items:center;gap:0;background:transparent;border:0;border-radius:0;padding:0;box-shadow:none;line-height:0}
.mbbs-dash .mbbs-badge img{
  width:clamp(200px,14vw,320px);
  height:clamp(200px,14vw,320px);
  max-width:none !important;
  max-height:none !important;
  object-fit:contain;
  display:block;
}
.mbbs-badge-name{display:none !important}

/* Ensure theme/custom CSS can’t add a visible "frame" around the badge */
.mbbs-badge{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.mbbs-badge img{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.mbbs-theme-dark .mbbs-badge{background:transparent;border:0}

/* Dark theme: keep dashboard text readable */
body.mbbs-theme-dark .mbbs-dash-sub,
body.mbbs-theme-dark .mbbs-dash-progress-title,
body.mbbs-theme-dark .mbbs-dash-progress-sub{
  color:#eaf0ff;
}

/* ---------- Next bonus boxes (dashboard bottom) ---------- */
.mbbs-next-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:18px}
.mbbs-nextbox{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:14px;box-shadow:0 10px 26px rgba(0,0,0,.08)}
.mbbs-nextbox-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.mbbs-nextbox h3{margin:0;font-size:16px}
.mbbs-nextbox-nav{display:flex;gap:8px}
.mbbs-next-nav{border:none;border-radius:12px;padding:8px 10px;font-weight:900;cursor:pointer;background:#f2f2f2}
.mbbs-next-nav:disabled{opacity:.5;cursor:not-allowed}
.mbbs-next-title{font-weight:900;font-size:18px;line-height:1.25;margin:4px 0 10px}
.mbbs-next-meta{display:flex;gap:14px;flex-wrap:wrap;margin:10px 0 12px;opacity:.92}
.mbbs-nextbox-empty{opacity:.85}
body.mbbs-theme-dark .mbbs-nextbox{background:rgba(10,25,38,.85);border:1px solid rgba(255,255,255,.12)}
body.mbbs-theme-dark .mbbs-next-nav{background:rgba(255,255,255,.08);color:#eaf0ff}


/* === Calculators tabs === */
.mbbs-calculators-wrapper { margin-top: 12px; }
.mbbs-tabs { display:flex; gap:10px; flex-wrap:wrap; margin: 0 0 14px 0; }
.mbbs-tab {
  border:1px solid rgba(0,0,0,0.10);
  background:#fff;
  padding:10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.mbbs-tab.is-active { background:#ffb400; border-color:#ffb400; color:#111; }
.mbbs-tab-panel { display:none; }
.mbbs-tab-panel.is-active { display:block; }

body.mbbs-dark .mbbs-tab{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
body.mbbs-dark .mbbs-tab.is-active{ background:#ffb400; border-color:#ffb400; color:#111; }

/* === Campaign bonus page (single campaign) === */
.mbbs-bonus-page{max-width:1100px;margin:0 auto;}
.mbbs-bonus-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0 18px;}
.mbbs-metric{background:#111;border-radius:10px;padding:22px;text-align:center;}
.mbbs-metric-label{letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:rgba(255,255,255,.86);font-size:13px;}
.mbbs-metric-value{margin-top:10px;font-weight:900;font-size:20px;color:#ffb400;}
.mbbs-info-bar{margin:18px 0 18px;background:#111;border-radius:10px;padding:14px 18px;text-align:center;}
.mbbs-info-title{font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#ffb400;}
.mbbs-info-body{margin-top:10px;color:rgba(255,255,255,.85);line-height:1.55;}
.mbbs-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0 8px;}
.mbbs-panel{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:16px 18px;box-shadow:0 10px 26px rgba(0,0,0,.08);}
.mbbs-panel-title{margin:0 0 10px 0;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#111;font-size:13px;}
.mbbs-panel-body{line-height:1.65;}
.mbbs-dagensvalg{margin:18px 0 10px;}
.mbbs-dagensvalg h3{margin:0 0 10px 0;font-size:18px;}
.mbbs-picks-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.mbbs-pick{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:14px 16px;box-shadow:0 10px 26px rgba(0,0,0,.06);}
.mbbs-pick-title{font-weight:900;margin:0 0 8px 0;}
.mbbs-pick-body{opacity:.9;line-height:1.5;white-space:pre-line;}

@media (max-width: 840px){
  .mbbs-bonus-metrics{grid-template-columns:1fr;}
  .mbbs-two-col{grid-template-columns:1fr;}
  .mbbs-picks-grid{grid-template-columns:1fr;}
}

body.mbbs-theme-dark .mbbs-panel,
body.mbbs-dark .mbbs-panel{background:rgba(10,25,38,.85);border:1px solid rgba(255,255,255,.12);color:#eaf0ff;}
body.mbbs-theme-dark .mbbs-panel-title,
body.mbbs-dark .mbbs-panel-title{color:#eaf0ff;}
body.mbbs-theme-dark .mbbs-pick,
body.mbbs-dark .mbbs-pick{background:rgba(10,25,38,.85);border:1px solid rgba(255,255,255,.12);color:#eaf0ff;}

/* =========================
   EXTRA THEME OVERRIDES
   (Astra can apply dark text colors to nested elements)
========================= */
body.mbbs-theme-dark .mbbs-dash,
body.mbbs-theme-dark .mbbs-dash p,
body.mbbs-theme-dark .mbbs-dash span,
body.mbbs-theme-dark .mbbs-dash h1,
body.mbbs-theme-dark .mbbs-dash h2,
body.mbbs-theme-dark .mbbs-dash h3,
body.mbbs-theme-dark .mbbs-dash h4,
body.mbbs-theme-dark .mbbs-dash h5,
body.mbbs-theme-dark .mbbs-dash h6,
body.mbbs-theme-dark .mbbs-dash small,
body.mbbs-theme-dark .mbbs-dash li{
  color: #eaf0ff !important;
}

/* Keep important numeric values readable in dark theme cards */
body.mbbs-theme-dark .mbbs-stat strong,
body.mbbs-theme-dark .mbbs-stat .mbbs-stat-value{
  color: #ffffff !important;
}

/* Legacy wrapper: some templates still render dashboard inside .matchbet-dashboard.dark */
body.mbbs-theme-dark .matchbet-dashboard,
body.mbbs-theme-dark .matchbet-dashboard.dark,
body.mbbs-theme-dark .matchbet-dashboard p,
body.mbbs-theme-dark .matchbet-dashboard span,
body.mbbs-theme-dark .matchbet-dashboard h1,
body.mbbs-theme-dark .matchbet-dashboard h2,
body.mbbs-theme-dark .matchbet-dashboard h3,
body.mbbs-theme-dark .matchbet-dashboard h4,
body.mbbs-theme-dark .matchbet-dashboard h5,
body.mbbs-theme-dark .matchbet-dashboard h6,
body.mbbs-theme-dark .matchbet-dashboard small,
body.mbbs-theme-dark .matchbet-dashboard li{
  color: #eaf0ff !important;
}

/* =========================================================
   Card meta row robustness
   Fixes wrapping issues where date/time or "Daglig kampagne" breaks into odd lines.
========================================================= */
.mbbs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap;
}

.mbbs-card-meta .mbbs-meta-left {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbbs-repeat-badge {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Bonus log table: force readable text in dark mode */
body.mbbs-theme-dark .mbbs-log table,
body.mbbs-theme-dark .mbbs-log th,
body.mbbs-theme-dark .mbbs-log td{
  color: #eaf0ff !important;
}

body.mbbs-theme-dark .mbbs-log th{
  opacity: .95;
}

body.mbbs-theme-dark .mbbs-log a{
  color: #ffffff !important;
  text-decoration: underline;
}

/* Dashboard next boxes: ensure small metadata doesn't go dark-on-dark */
body.mbbs-theme-dark .mbbs-nextbox,
body.mbbs-theme-dark .mbbs-nextbox .mbbs-next-meta,
body.mbbs-theme-dark .mbbs-nextbox .mbbs-next-row{
  color: #eaf0ff !important;
}


/* ===== Levels / Level-up popup ===== */
.mbbs-badge img.mbbs-badge-animate{
  animation: mbbsBadgePop 900ms ease-out 1;
}
@keyframes mbbsBadgePop{
  0%{ transform: scale(1); }
  25%{ transform: scale(1.08); }
  55%{ transform: scale(0.98); }
  100%{ transform: scale(1); }
}

.mbbs-lvlup-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 18px;
}
.mbbs-lvlup-card{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  text-align: center;
}
.mbbs-lvlup-title{
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.mbbs-lvlup-sub{
  font-size: 15px;
  opacity: .85;
  margin-bottom: 14px;
}
.mbbs-lvlup-badge{
  display: flex;
  justify-content: center;
  margin: 10px 0 6px;
}
.mbbs-lvlup-badge img{
  width: 180px;
  height: 180px;
  object-fit: contain;
  animation: mbbsBadgePop 900ms ease-out 1;
}
.mbbs-lvlup-level{
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 14px;
}
.mbbs-lvlup-close{
  background: #f5a700;
  color: #000;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}
.mbbs-lvlup-close:hover{ filter: brightness(0.98); }


/* Read-only status pill (looks like button but not clickable) */
.mbbs-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  line-height:1;
  background:#111;
  color:#fff;
  user-select:none;
  pointer-events:none;
  white-space:nowrap;
  min-width:120px;
  text-align:center;
}
.mbbs-status-pill.mbbs-status-not_started{ background:#111; }
.mbbs-status-pill.mbbs-status-in_progress{ background:#ffb300; color:#111; }
.mbbs-status-pill.mbbs-status-completed{ background:#16a34a; }
.mbbs-status-pill.mbbs-status-missed{ background:#b91c1c; }


/* Video guide modal (fullscreen) */
body.mbbs-modal-open{ overflow:hidden; }
.mbbs-modal[hidden]{ display:none !important; }
.mbbs-modal{ display:none; }
.mbbs-modal.is-open{ display:block; }
.mbbs-modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.78);
  z-index:9998;
}
.mbbs-modal-dialog{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, 96vw);
  height:min(90vh, 720px);
  background:#0b0b0b;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,0.55);
  z-index:9999;
  padding:14px;
  display:flex;
  flex-direction:column;
}
.mbbs-modal-title{
  font-weight:800;
  color:#fff;
  margin:0 0 10px 0;
  font-size:16px;
}
.mbbs-modal-body{ flex:1; min-height:0; }
#mbbs-video-player{
  width:100%;
  height:100%;
  border-radius:14px;
  background:#000;
  object-fit:contain;
}
.mbbs-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(0,0,0,0.35);
  color:#fff;
  font-size:24px;
  line-height:36px;
  cursor:pointer;
}
.mbbs-modal-close:hover{ background:rgba(0,0,0,0.6); }
.mbbs-modal-body video{
  width:100%;
  border-radius:14px;
  background:#000;
}
body.mbbs-modal-open{ overflow:hidden; }


/* Bonus page action buttons (Start bonus / Video Guide / Tekst Guide) */
.mbbs-bonus-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:12px;
}
.mbbs-bonus-actions .mbbs-btn{
  padding:12px 18px;
  font-size:16px;
  line-height:1.1;
  border-radius:14px;
  min-height:44px; /* better tap target */
}

/* Mobile: stack buttons + make modal fit nicely */
@media (max-width: 520px){
  .mbbs-bonus-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .mbbs-bonus-actions .mbbs-btn,
  .mbbs-bonus-actions a.mbbs-btn,
  .mbbs-bonus-actions button.mbbs-btn{
    width:100%;
    text-align:center;
  }

  .mbbs-modal-dialog{
    width:96vw;
    height:92vh;
    padding:10px;
    border-radius:14px;
  }
  .mbbs-modal-close{
    top:8px;
    right:8px;
    width:44px;
    height:44px;
    line-height:40px;
  }
}
