/* ═══════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:           #F0F2F6;
  --surface:      #FFFFFF;
  --surface-2:    #F7F8FA;
  --surface-3:    #ECEEF2;
  --border:       #E3E6EC;
  --border-soft:  rgba(0,0,0,0.055);

  --ink-1:  #0B0D11;
  --ink-2:  #3A3F4E;
  --ink-3:  #717788;
  --ink-4:  #A4AABB;

  --blue:       #1B4FE8;
  --blue-mid:   #3367F5;
  --blue-soft:  #EEF3FF;
  --blue-bdr:   #C3D3FC;

  --green:      #0D9750;
  --green-soft: #EDFAF3;
  --green-bdr:  #A3EDD0;

  --amber:      #C97A0A;
  --amber-soft: #FFF8E8;

  --magenta:    #B0128A;
  --magenta-soft:#FDF0FA;
  --magenta-bdr:#EEB0E2;

  --red:        #CF1E1E;
  --red-soft:   #FEF2F2;

  /* Sponsor brand colors */
  --meridian-dark:  #0A1B38;
  --meridian-gold:  #FFC300;
  --meridian-mid:   #142D5C;

  --onewin-dark:    #1C2C4A;
  --onewin-darker:  #111E33;
  --onewin-mid:     #243658;
  --onewin-accent:  #FF3B30;
  --onewin-blue:    #1E4FBF;
  --onewin-blue-mid:#2A63D4;
  --onewin-gold:    #FFFFFF;

  --helabet-dark:   #0D2B1A;
  --helabet-green:  #00C853;
  --helabet-mid:    #1A4A2E;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --sidebar-w: 300px;
  --header-h: 60px;
  --sponsor-bar-h: 0px;
}

/* ═══════════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink-1);
  min-height: 100vh;
  padding-top: calc(var(--sponsor-bar-h) + var(--header-h));
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* Meridian script banner (legacy/partner embed) */
.meridianbet-banner-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.meridianbet-banner-slot {
  width: min(100%, 970px);
  min-height: 90px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.meridianbet-banner-wrap.is-megabar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #0A1B38;
  padding: 0;
}
.meridianbet-banner-wrap.is-megabar .meridianbet-banner-slot {
  width: min(100%, 1280px);
  min-height: var(--sponsor-bar-h);
  max-height: var(--sponsor-bar-h);
}
.meridianbet-banner-wrap.is-inline {
  margin: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  padding: 8px;
}
.meridianbet-banner-wrap.is-inline .meridianbet-banner-slot {
  width: 100%;
  min-height: 90px;
}

/* ═══════════════════════════════════════════════
   SPONSOR BAR — MERIDIANBET (500k fixed = hero)
   Shown at very top, full width. Max impressions.
═══════════════════════════════════════════════ */
.sponsor-megabar {
  background: linear-gradient(100deg, var(--meridian-dark) 0%, var(--meridian-mid) 55%, #1E3F78 100%);
  height: var(--sponsor-bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
.sponsor-megabar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(255,255,255,0.015) 80px,
    rgba(255,255,255,0.015) 81px
  );
}
.smb-adlabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-right: 1px solid rgba(255,255,255,0.12);
  padding-right: 16px;
  white-space: nowrap;
}
.smb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.smb-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--meridian-gold);
  letter-spacing: -0.03em;
}
.smb-brand-image {
  max-width: 220px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.smb-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}
.smb-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.smb-copy strong { color: var(--meridian-gold); font-weight: 700; }
.smb-cta {
  background: var(--meridian-gold);
  color: var(--meridian-dark);
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(255,195,0,0.4);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}
.smb-cta:hover { opacity: 0.92; transform: translateY(-1px); }
.smb-cta svg { width: 12px; height: 12px; stroke: var(--meridian-dark); fill: none; stroke-width: 2.5; }
.smb-code {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}
.smb-code-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--meridian-gold);
  letter-spacing: 0.06em;
}
.smb-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  z-index: 1;
}
.smb-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Image-only placement render (no text) */
.ad-image-slot,
.ad-image-slot-btn {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-xs);
  background: var(--surface);
  display: block;
}
.ad-image-slot-btn {
  padding: 0;
  text-align: left;
}
.ad-image-slot-btn:hover { opacity: 0.96; }
.ad-image-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-image-slot-sidebar { min-height: 170px; }
.ad-image-slot-img-sidebar {
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  background: #fff;
}
.ad-image-slot-inline,
.ad-image-slot-btn-inline { min-height: 92px; border-radius: var(--r-xl); }
.ad-image-slot-img-inline { min-height: 92px; max-height: 140px; }
.sponsor-megabar-image {
  padding: 0;
  justify-content: stretch;
  gap: 0;
}
.ad-image-slot-btn-megabar {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.ad-image-slot-img-megabar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-image-community-btn {
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.ad-image-community-img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════
   PRIMARY HEADER
═══════════════════════════════════════════════ */
.site-header {
  background: var(--surface);
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 32px;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--sponsor-bar-h);
  z-index: 90;
  box-shadow: var(--shadow-xs);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.site-nav a {
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: all 0.14s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--surface-3); color: var(--ink-1); }
.site-nav a.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--red-soft);
  border: 1px solid #FECACA;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.tz-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
}

.header-login-btn {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--blue-bdr);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.header-login-btn:hover { background: var(--blue); color: white; }

/* ═══════════════════════════════════════════════
   PAGE LAYOUT — 3-COLUMN GRID
═══════════════════════════════════════════════ */
.page-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  gap: 20px;
  align-items: start;
}

body.megabar-hidden {
  padding-top: var(--header-h);
}
body.megabar-hidden .site-header {
  top: 0;
}
body.megabar-hidden .left-sidebar,
body.megabar-hidden .right-sidebar {
  top: calc(var(--header-h) + 16px);
}

/* ═══════════════════════════════════════════════
   LEFT SIDEBAR
   1Win (50% rev share) — HIGH-CTR surfaces
   Sticky, always visible
═══════════════════════════════════════════════ */
.left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--sponsor-bar-h) + var(--header-h) + 16px);
}

/* 1Win sponsor card — primary CTA surface (50% rev share = highest upside) */
.onewin-card {
  background: linear-gradient(160deg, var(--onewin-darker) 0%, var(--onewin-dark) 55%, var(--onewin-mid) 100%);
  border-radius: var(--r-xl);
  padding: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.onewin-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(30,79,191,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.ow-adlabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.ow-logo-row {
  display: flex;
  align-items: baseline;
  gap: 0px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.ow-brand-image {
  width: 100%;
  max-width: 170px;
  max-height: 64px;
  object-fit: contain;
  display: block;
}
.ow-logo-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ow-logo-win {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: white;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ow-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
}
.ow-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}
.ow-promo-pill {
  background: var(--onewin-blue);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ow-promo-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ow-promo-code {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.08em;
}
.ow-cta {
  width: 100%;
  background: white;
  color: var(--onewin-dark);
  border-radius: var(--r-md);
  padding: 11px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.15s, opacity 0.15s;
  position: relative;
  z-index: 1;
  display: block;
}
.ow-cta:hover { transform: translateY(-1px); opacity: 0.94; }
.ow-revshare {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Quick Nav sidebar card */
.sidebar-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
}
.sc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.sc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.14s;
  cursor: pointer;
}
.sc-link:hover { background: var(--surface-3); color: var(--ink-1); }
.sc-link.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.sc-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
.sc-link span.badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 20px;
  padding: 1px 7px;
}

/* Stats mini card */
.stats-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-box {
  background: var(--surface-3);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
}
.stat-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
}
.stat-val.green { color: var(--green); }
.stat-label { font-size: 10px; color: var(--ink-4); margin-top: 1px; }

/* ═══════════════════════════════════════════════
   MAIN CONTENT FEED
═══════════════════════════════════════════════ */
.main-feed { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Section header */
.feed-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.fsh-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fsh-title .fsh-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
}
.fsh-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 4px;
}
.fsh-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* ── Ready Slips ── */
.slips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}

.slip-card {
  border-radius: var(--r-xl);
  padding: 16px;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.slip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.slip-card.safe     { background: linear-gradient(145deg, #0D9750 0%, #0A7D40 100%); }
.slip-card.balanced { background: linear-gradient(145deg, #1B4FE8 0%, #2660F5 100%); }
.slip-card.aggro    { background: linear-gradient(145deg, #8811BE 0%, #B0128A 100%); }

.slip-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 110px; height: 110px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.slip-card::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -15px;
  width: 90px; height: 90px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
}
.sc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; position: relative; z-index: 1; }
.sc-label { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.sc-label small { display: block; font-size: 10px; font-weight: 500; opacity: 0.65; margin-top: 1px; }
.sc-odds-badge {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sc-picks { margin-bottom: 12px; position: relative; z-index: 1; }
.sc-pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "fixture time"
    "mkt mkt";
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sc-pick-row:last-child { border-bottom: none; }
.sc-pick-fixture {
  grid-area: fixture;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-pick-logos {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.sc-pick-logo-img,
.sc-pick-logo-fallback {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.35);
}
.sc-pick-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.18);
}
.sc-pick-teams {
  opacity: 0.85;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-pick-time {
  grid-area: time;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.3;
  white-space: nowrap;
}
.sc-pick-mkt {
  grid-area: mkt;
  justify-self: start;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.sc-footer { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.sc-meta { font-size: 10.5px; opacity: 0.65; }
.sc-bet-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: white;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sc-bet-btn:hover { background: rgba(255,255,255,0.3); }
.sc-bet-btn svg { width: 11px; height: 11px; stroke: white; fill: none; stroke-width: 2.5; }

/* ── MeridianBet inline banner (1x per section, fixed fee = guaranteed show) ── */
.meridian-inline {
  background: linear-gradient(105deg, var(--meridian-dark) 0%, var(--meridian-mid) 60%, #244B8E 100%);
  border-radius: var(--r-xl);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s;
}
.meridian-inline:hover { transform: translateY(-1px); }
.meridian-inline::before {
  content: '';
  position: absolute;
  top: -30px; right: 80px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,195,0,0.12) 0%, transparent 70%);
}
.mi-left { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.mi-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--meridian-gold);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.mi-brand-image {
  max-width: 200px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.mi-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.12); }
.mi-copy { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }
.mi-copy strong { color: var(--meridian-gold); font-weight: 700; }
.mi-right { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.mi-code {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
}
.mi-code-val { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--meridian-gold); }
.mi-btn {
  background: var(--meridian-gold);
  color: var(--meridian-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(255,195,0,0.4);
  transition: opacity 0.15s;
  white-space: nowrap;
}
.mi-btn:hover { opacity: 0.9; }
.mi-adlabel {
  position: absolute;
  top: 6px; left: 10px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Fixture Table ── */
.fixture-section-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}

.fsc-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.league-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
}
.league-emoji { font-size: 13px; }
.fsc-header-right { margin-left: auto; }

/* Fixture row */
.fixture-row {
  display: grid;
  grid-template-columns: 56px 44px 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.14s;
  cursor: pointer;
}
.fixture-row:last-child { border-bottom: none; }
.fixture-row:hover { background: var(--surface-2); }
.fixture-row.expanded { background: var(--surface-2); border-bottom-color: var(--border); }
[data-seeall-item].is-collapsed-hidden { display: none !important; }
.bucket-see-all-btn {
  margin: 10px auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--blue-bdr);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.bucket-see-all-btn:hover {
  border-color: var(--blue);
  background: #EAF2FF;
}
.sc-see-all-btn {
  margin: 8px auto 2px;
  padding: 5px 12px;
  font-size: 11px;
}

.fx-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-3);
  border-radius: var(--r-xs);
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
}
.fx-time.live-time {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #FECACA;
}

.fx-logos {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fx-logo-img,
.fx-logo-fallback {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-3);
  object-fit: contain;
}

.fx-teams { min-width: 0; }
.fx-matchup {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx-meta { font-size: 11px; color: var(--ink-4); margin-top: 2px; }

.fx-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
}

.pick-chip {
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 8px;
  white-space: nowrap;
}
.chip-blue   { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-bdr); }
.chip-green  { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-bdr); }
.chip-magenta{ background: var(--magenta-soft); color: var(--magenta); border: 1px solid var(--magenta-bdr); }
.chip-amber  { background: var(--amber-soft); color: var(--amber); }

.fx-odd {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
  min-width: 40px;
  text-align: right;
}

.fx-actions { display: flex; align-items: center; gap: 6px; }

/* 1Win bet button on fixtures — HIGH CTR = 50% rev share */
.bet-btn-1win {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--onewin-darker) 0%, var(--onewin-dark) 100%);
  border: 1px solid rgba(42,99,212,0.5);
  color: white;
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(30,79,191,0.25);
}
.bet-btn-1win:hover {
  background: linear-gradient(135deg, var(--onewin-blue) 0%, var(--onewin-blue-mid) 100%);
  box-shadow: 0 4px 14px rgba(30,79,191,0.4);
  transform: translateY(-1px);
}
.bet-btn-1win .btn-brand {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-style: italic;
}
.bet-btn-1win svg { width: 11px; height: 11px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 2; }

.bet-btn-disabled {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--ink-4);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: not-allowed;
}

.expand-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.expand-btn:hover { background: var(--border); }
.expand-btn svg { width: 14px; height: 14px; stroke: var(--ink-3); fill: none; stroke-width: 2; }
.expand-btn.open { background: var(--blue-soft); border-color: var(--blue-bdr); }
.expand-btn.open svg { stroke: var(--blue); transform: rotate(180deg); }

/* Expanded picks table */
.picks-expanded {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.picks-expanded.open { display: block; }
.pe-header {
  display: grid;
  grid-template-columns: 1fr 80px 80px 42px;
  gap: 10px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
}
.pe-th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-4);
}
.pe-th:not(:first-child) { text-align: right; }
.pe-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px 42px;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.13s;
}
.pe-row:last-child { border-bottom: none; }
.pe-row:hover { background: var(--surface); }
.pe-market { font-size: 13px; font-weight: 500; color: var(--ink-1); }
.pe-market-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.pe-odd-col {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
  text-align: right;
}
.pe-bet-col { text-align: right; }

/* 1win small inline bet btn */
.inline-bet-1win {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--onewin-dark);
  border: 1px solid rgba(42,99,212,0.4);
  color: white;
  border-radius: var(--r-xs);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.13s;
}
.inline-bet-1win:hover { background: var(--onewin-blue); }
.inline-bet-1win .iod { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 800; }
.inline-bet-1win:hover .iod { color: white; }

.add-slip-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all 0.14s;
  flex-shrink: 0;
}
.add-slip-btn:hover { background: var(--green-soft); border-color: var(--green-bdr); color: var(--green); }
.add-slip-btn.added { background: var(--green-soft); border-color: var(--green-bdr); color: var(--green); }
.add-slip-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; }

/* Comments in expanded row */
.pe-comments {
  border-top: 1px solid var(--border);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pe-comment-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: 2px;
}
.comment-row { display: flex; gap: 8px; }
.ca {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.ca-a { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.ca-b { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.cb { flex: 1; }
.cb-user { font-size: 12px; font-weight: 600; color: var(--ink-1); }
.cb-text { font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.cb-time { font-size: 10.5px; color: var(--ink-4); margin-top: 2px; }
.pe-auth-gate {
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pe-auth-gate a { color: var(--blue); font-weight: 600; }

/* ── Market Tabs ── */
.market-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.market-tabs-bar::-webkit-scrollbar { display: none; }
.mtab {
  flex-shrink: 0;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: all 0.14s;
}
.mtab:hover { border-color: var(--blue-bdr); color: var(--blue); }
.mtab.active { background: var(--ink-1); color: white; border-color: var(--ink-1); font-weight: 600; }

/* Market fixture cards in a grid */
.market-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mfc {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-soft);
}
.mfc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mfc-match {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mfc-logos { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mfc-logo-img,
.mfc-logo-fallback {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-3);
  object-fit: contain;
}
.mfc-teams {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.mfc-time { font-size: 11px; color: var(--ink-3); background: var(--surface-3); border-radius: 5px; padding: 2px 7px; }
.mfc-pick-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border-soft); }
.mfc-pick-row:last-child { border-bottom: none; }
.mfc-mkt { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.mfc-odd { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 800; color: var(--green); }
.mfc-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; }
.mfc.expanded { background: var(--surface-2); }
.open-link { font-size: 12px; font-weight: 600; color: var(--magenta); display: flex; align-items: center; gap: 3px; }
.open-link svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.mfc-expand-link {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px 8px;
  color: var(--ink-2);
  gap: 6px;
}
.mfc-expand-link svg { stroke: currentColor; transition: transform 0.15s; }
.mfc-expand-link.open svg { transform: rotate(180deg); }
.pe-row-market { grid-template-columns: 1fr 80px 42px; }

/* ═══════════════════════════════════════════════
   RIGHT SIDEBAR
   Helabet (40% rev share) + Community + Slip Builder
═══════════════════════════════════════════════ */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--sponsor-bar-h) + var(--header-h) + 16px);
}

/* Helabet card — secondary rev share */
.helabet-card {
  background: linear-gradient(155deg, var(--helabet-dark) 0%, var(--helabet-mid) 60%, #1F5A35 100%);
  border-radius: var(--r-xl);
  padding: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.helabet-card::before {
  content: '';
  position: absolute;
  top: -30px; left: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(0,200,83,0.15) 0%, transparent 70%);
}
.hb-adlabel {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 8px;
}
.hb-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--helabet-green);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.hb-brand-image-wrap {
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.hb-brand-image {
  width: 100%;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}
.hb-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.hb-bonus {
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.hb-bonus-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--helabet-green);
}
.hb-bonus-label { font-size: 11px; color: rgba(255,255,255,0.45); }
.hb-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--helabet-green) 0%, #00A846 100%);
  color: var(--helabet-dark);
  border-radius: var(--r-md);
  padding: 11px;
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,200,83,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  z-index: 1;
  display: block;
}
.hb-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,200,83,0.45); }
.hb-revshare {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Slip builder panel */
.slip-builder-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--blue-bdr);
}
.sbc-header {
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sbc-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sbc-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.sbc-clear {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}
.sbc-clear:hover {
  background: rgba(255,255,255,0.3);
}
.sbc-count {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.sbc-legs { padding: 6px 0; }
.sbc-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.sbc-leg:last-child { border-bottom: none; }
.sbc-leg-info { flex: 1; min-width: 0; }
.sbc-leg-match { font-size: 12px; font-weight: 600; color: var(--ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbc-leg-mkt { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.sbc-leg-odd { font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 800; color: var(--green); }
.sbc-remove { color: var(--ink-4); font-size: 18px; font-weight: 300; line-height: 1; flex-shrink: 0; }
.sbc-remove:hover { color: var(--red); }
.sbc-footer { padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface-2); }
.sbc-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sbc-total-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.sbc-total-odds { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; font-weight: 800; color: var(--ink-1); letter-spacing: -0.03em; }
.sbc-publish {
  width: 100%;
  background: linear-gradient(135deg, var(--magenta) 0%, #C520A8 100%);
  color: white;
  border-radius: var(--r-md);
  padding: 11px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 14px rgba(176,18,138,0.35);
  transition: transform 0.15s;
  display: block;
}
.sbc-publish:hover { transform: translateY(-1px); }
.sbc-empty {
  padding: 20px 14px;
  text-align: center;
}
.sbc-empty-icon { font-size: 28px; margin-bottom: 6px; }
.sbc-empty-text { font-size: 12.5px; color: var(--ink-3); }

/* Community preview sidebar */
.comm-card { display: flex; flex-direction: column; gap: 1px; }
.comm-item {
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.13s;
  cursor: pointer;
}
.comm-item:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.comm-item:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); border-bottom: none; }
.comm-item:hover { background: var(--surface-2); }
.ci-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ci-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.ci-av-a { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.ci-av-b { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.ci-av-c { background: linear-gradient(135deg, #10B981, #059669); }
.ci-user { font-size: 12.5px; font-weight: 600; color: var(--ink-1); }
.ci-time { font-size: 10.5px; color: var(--ink-4); }
.ci-odds { margin-left: auto; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; font-weight: 800; color: var(--ink-1); }
.ci-odds small { font-size: 10px; color: var(--ink-4); font-weight: 400; font-family: 'DM Sans', sans-serif; }
.ci-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ci-tag { font-size: 10.5px; font-weight: 500; background: var(--surface-3); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; color: var(--ink-2); }
.comm-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.helabet-community-btn {
  flex: 1;
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.25);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--helabet-green);
  text-align: center;
  transition: all 0.14s;
}
.helabet-community-btn:hover { background: rgba(0,200,83,0.18); }
.helabet-community-btn.is-disabled {
  opacity: 0.72;
  cursor: default;
}
.helabet-community-btn.is-disabled:hover {
  background: rgba(0,200,83,0.1);
}
.helabet-community-btn small { display: block; font-size: 9px; font-weight: 500; opacity: 0.6; }
.see-all-comm {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11,13,17,0.55);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: fadein 0.15s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s cubic-bezier(0.22,1,0.36,1);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.93) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* 1Win clickout modal */
.modal-1win-header {
  background: linear-gradient(135deg, var(--onewin-dark) 0%, #1F0A35 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.modal-1win-logo {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: rgba(255,59,48,0.15);
  border: 1px solid rgba(255,59,48,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 800;
}
.modal-1win-logo .one { color: var(--onewin-accent); }
.modal-1win-logo .win { color: white; }
.modal-1win-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 20px; font-weight: 800; color: white; }
.modal-1win-sub { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.modal-body { padding: 20px; }
.modal-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.mcr-left label { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 3px; }
.mcr-val { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; color: var(--ink-1); letter-spacing: 0.04em; }
.copy-chip {
  background: var(--blue-soft);
  border: 1px solid var(--blue-bdr);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  transition: all 0.14s;
}
.copy-chip:hover { background: var(--blue); color: white; }
.modal-open-btn {
  width: 100%;
  padding: 13px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--r-md);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 4px 16px rgba(255,59,48,0.35);
  background: linear-gradient(135deg, var(--onewin-accent) 0%, #D41818 100%);
  color: white;
  margin-bottom: 10px;
}
.modal-open-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,59,48,0.45); }
.modal-open-btn svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2.5; }
.modal-dismiss-btn {
  width: 100%;
  padding: 10px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  text-align: center;
}
.modal-dismiss-btn:hover { color: var(--ink-1); }

/* ═══════════════════════════════════════════════
   UTILITY + ANIMATIONS
═══════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 4px 0; }
.spacer-sm { height: 8px; }

/* Staggered entry animation */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.anim-2 { animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.12s both; }
.anim-3 { animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.19s both; }
.anim-4 { animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) 0.26s both; }

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM NAV (hidden on desktop)
═══════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1100px): drop sidebars
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 260px;
  }
  .page-layout {
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: 16px;
    padding: 16px 16px 60px;
  }
  .right-sidebar {
    display: none;
  }
  .slips-grid {
    grid-template-columns: 1fr 1fr;
  }
  .market-grid {
    grid-template-columns: 1fr;
  }
  .meridian-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .mi-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px): single column
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --sponsor-bar-h: 0px;
    --header-h: 56px;
  }

  html { font-size: 14px; }

  /* ── Sponsor megabar: simplified for mobile ── */
  .sponsor-megabar {
    height: var(--sponsor-bar-h);
    gap: 10px;
    justify-content: space-between;
    padding: 0 12px 0 14px;
  }
  .smb-adlabel { display: none; }
  .smb-sep     { display: none; }
  .smb-copy    { display: none; }
  .smb-code    { display: none; }
  .smb-brand { flex: 1; }
  .smb-logo { font-size: 17px; }
  .smb-brand-image { max-width: 150px; max-height: 28px; }
  .smb-cta {
    padding: 6px 14px;
    font-size: 12px;
  }
  .smb-close { right: 8px; }
  .meridianbet-banner-wrap.is-megabar .meridianbet-banner-slot {
    min-height: var(--sponsor-bar-h);
    max-height: var(--sponsor-bar-h);
  }

  /* ── Header: logo + right actions only, nav hidden ── */
  .site-header {
    padding: 0 14px;
    gap: 0;
    height: var(--header-h);
    top: var(--sponsor-bar-h);
  }
  .logo-img { height: 28px; }
  .site-nav { display: none; }
  .header-right {
    margin-left: auto;
    gap: 6px;
  }
  .tz-tag { display: none; }
  .live-badge { font-size: 10.5px; padding: 3px 8px; }
  .header-login-btn { padding: 6px 14px; font-size: 12px; }

  /* ── Layout: single column, no sidebars ── */
  .page-layout {
    grid-template-columns: 1fr;
    padding: 12px 12px 80px;
    gap: 14px;
  }
  .left-sidebar  { display: none; }
  .right-sidebar { display: none; }

  /* ── Slips: single column scroll ── */
  .slips-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ── Section headers ── */
  .feed-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .fsh-title { font-size: 15px; }
  .market-tabs-bar {
    width: 100%;
    padding-bottom: 2px;
  }

  /* ── MeridianBet inline banner: stacked ── */
  .meridian-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: var(--r-lg);
  }
  .mi-left { flex-direction: column; gap: 6px; }
  .mi-sep  { display: none; }
  .mi-logo { font-size: 18px; }
  .mi-brand-image { max-width: 160px; max-height: 34px; }
  .mi-copy { font-size: 12px; }
  .mi-right {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
  .mi-code { font-size: 11px; }
  .mi-btn  { padding: 7px 16px; font-size: 12.5px; }
  .mi-adlabel { top: 8px; left: 12px; }

  /* ── Fixture rows: reflow to stacked ── */
  .fixture-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    align-items: center;
    cursor: pointer;
  }
  .fx-time {
    flex-shrink: 0;
    font-size: 11px;
    padding: 3px 6px;
  }
  .fx-logos { gap: 4px; }
  .fx-logo-img,
  .fx-logo-fallback { width: 16px; height: 16px; font-size: 8px; }
  .fx-teams {
    flex: 1;
    min-width: 0;
  }
  .fx-matchup { font-size: 13px; }
  .fx-meta    { font-size: 10px; }
  .fx-pick {
    flex-basis: 100%;
    align-items: flex-start;
    margin-left: 66px; /* align under team name after time + logos */
    flex-direction: row;
    gap: 6px;
  }
  .fx-odd {
    font-size: 15px;
    min-width: auto;
  }
  .fx-actions {
    flex-basis: 100%;
    justify-content: flex-end;
    margin-left: 66px;
    gap: 6px;
  }
  .bet-btn-1win {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .bet-btn-disabled {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 11.5px;
  }
  .expand-btn {
    flex-shrink: 0;
  }

  /* ── Expanded picks panel: simpler grid ── */
  .pe-header {
    display: none; /* hide column headers on mobile — too cramped */
  }
  .pe-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    align-items: center;
  }
  .pe-row > div:first-child { flex: 1; min-width: 0; }
  .pe-odd-col {
    font-size: 15px;
    text-align: right;
    min-width: 40px;
  }
  .pe-bet-col {
    width: 100%;
    text-align: left;
    order: 10;
  }
  .pe-bet-col .inline-bet-1win {
    width: 100%;
    justify-content: center;
    padding: 8px;
    font-size: 12px;
  }
  .add-slip-btn {
    flex-shrink: 0;
  }
  .pe-market    { font-size: 13px; }
  .pe-market-sub{ font-size: 11px; }

  /* ── Market grid: single column ── */
  .market-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mfc { padding: 12px; }
  .mfc-teams { font-size: 13px; }
  .mfc-match { gap: 6px; }
  .mfc-logo-img,
  .mfc-logo-fallback { width: 15px; height: 15px; font-size: 8px; }

  /* ── League section header ── */
  .fsc-header {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* ── Comments ── */
  .pe-comments { padding: 10px 12px; }

  /* ── Modals: full screen bottom sheet on mobile ── */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .modal-box {
    max-width: 100%;
    width: 100%;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .modal-body { padding: 16px 16px 32px; }

  /* ── Mobile bottom nav ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 80;
    align-items: stretch;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-top: 4px;
    border-radius: var(--r-sm);
    transition: background 0.14s;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
  }
  .mbn-item:active { background: var(--surface-3); }
  .mbn-icon svg {
    width: 20px; height: 20px;
    stroke: var(--ink-4);
    fill: none;
    stroke-width: 1.8;
  }
  .mbn-item.active .mbn-icon svg { stroke: var(--blue); }
  .mbn-label {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--ink-4);
    letter-spacing: 0.01em;
  }
  .mbn-item.active .mbn-label { color: var(--blue); font-weight: 700; }

  /* ── Slip builder floating button (mobile) ── */
  .mobile-slip-fab {
    display: flex;
    position: fixed;
    bottom: 70px;
    right: 14px;
    z-index: 79;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
    box-shadow: 0 4px 18px rgba(27,79,232,0.4), 0 2px 6px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.15s;
  }
  .mobile-slip-fab:active { transform: scale(0.92); }
  .mobile-slip-fab svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
  .mobile-slip-fab .fab-badge {
    position: absolute;
    top: -2px; right: -2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--red);
    font-size: 9.5px;
    font-weight: 700;
    color: white;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
  }
  .mobile-slip-clear {
    position: fixed;
    bottom: 76px;
    right: 72px;
    z-index: 79;
    display: none;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }
}

/* ═══════════════════════════════════════════════
   EXTRA SMALL (≤ 400px)
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .page-layout { padding: 10px 10px 80px; }
  .smb-logo { font-size: 15px; }
  .smb-brand-image { max-width: 130px; max-height: 24px; }
  .smb-cta  { padding: 5px 11px; font-size: 11px; }
  .fsh-title { font-size: 14px; }
  .fx-matchup { font-size: 12.5px; }
  .bet-btn-1win { padding: 7px 8px; font-size: 11px; }
  .mi-brand-image { max-width: 140px; max-height: 30px; }
  .slips-grid { gap: 8px; }
}

/* --- PayDay dynamic integration helpers --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-outline { background: #fff; color: var(--ink-2); border-color: var(--border); }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-ghost { background: transparent; color: var(--ink-3); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--ink-3); }
.field label { font-size: 11px; color: var(--ink-3); margin-bottom: 4px; display: block; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11,13,17,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-bg.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-hd {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-weight: 700; color: var(--ink-1); }
.modal-body { padding: 14px; }
.sponsor-cta-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.mobile-bottom-nav .mbn-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.mobile-bottom-nav .mbn-label { font-size: 10px; font-weight: 600; color: inherit; }
