/* =============================================================
   Sidebar shell
   ============================================================= */
.sidebar {
  position: sticky;
  top: 130px;
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 20px;
}
.card h4 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-variation-settings: 'wdth' 100;
}

/* =============================================================
   PINK streak card — bold
   ============================================================= */
.card.streak {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
  position: relative;
  overflow: hidden;
}
.card.streak::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.card.streak h4 { color: rgba(255,255,255,0.8); position: relative; }
.streak-big {
  font-family: var(--display);
  font-size: 84px;
  font-weight: 800;
  font-variation-settings: 'wdth' 80;
  letter-spacing: -4px;
  line-height: 0.85;
  color: white;
  margin-bottom: 10px;
  position: relative;
}
.streak-big small {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 8px;
  font-family: var(--body);
}
.streak-dots { display: flex; gap: 4px; margin-bottom: 12px; position: relative; }
.streak-dots .d {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
}
.streak-dots .d.on { background: white; }
.streak-note {
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  position: relative;
}
.streak-note b { color: white; font-weight: 800; }

/* =============================================================
   Mes paris en cours
   ============================================================= */
.mybets-tally {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hair);
}
.mybets-count {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  font-variation-settings: 'wdth' 80;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--ink);
}
.mybets-count .lbl {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-left: 6px;
  font-variation-settings: 'wdth' 100;
}
.mybets-stake {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--pink-2);
  font-weight: 700;
  text-align: right;
}
.mybets-stake .lbl {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.mybets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.mybets-empty {
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 4px;
  font-style: italic;
}
.mybets-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--hair);
}
.mybets-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.b-stake {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.b-info { min-width: 0; }
.b-pick {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.b-meta {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
}
.b-odds {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-2);
}
.view-all-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  font-weight: 600;
  transition: color .15s;
}
.view-all-link:hover { color: var(--pink-2); }

/* =============================================================
   Sub perk
   ============================================================= */
.card.perk {
  padding: 16px 18px;
  background: var(--green-veil);
  border-color: rgba(30,122,29,0.2);
}
.perk-head { display: flex; align-items: center; gap: 12px; }
.perk-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
}
.perk-title { font-size: 13px; font-weight: 700; color: var(--green-2); }
.perk-sub { font-size: 11px; color: var(--ink-2); line-height: 1.35; }
.perk-sub b { color: var(--green-2); font-weight: 700; }

/* Non-sub CTA — same chrome but the icon flips to the pink primary so
   the card reads as an action prompt rather than a status badge. */
.card.perk.perk-cta {
  background: var(--pink-veil);
  border-color: rgba(255, 45, 126, 0.25);
}
.card.perk.perk-cta .perk-icon { background: var(--pink); }
.card.perk.perk-cta .perk-title { color: var(--pink-2); }
.card.perk.perk-cta .perk-sub b { color: var(--pink-2); }

/* Streamer roster — CEO / Content Creators groups with chip-style
   Twitch links. Sits below the perk header inside the same card. */
.perk-groups {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(30,122,29,0.18);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card.perk.perk-cta .perk-groups { border-top-color: rgba(255,45,126,0.2); }

.perk-group { display: flex; flex-direction: column; gap: 5px; }
.perk-group-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}
.perk-streamers { display: flex; flex-wrap: wrap; gap: 4px 5px; }
.perk-streamer {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hair-2);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.perk-streamer:hover {
  border-color: var(--green);
  color: var(--green-2);
  background: #fff;
}
.card.perk.perk-cta .perk-streamer:hover {
  border-color: var(--pink);
  color: var(--pink-2);
}

/* =============================================================
   Leaderboard
   ============================================================= */
.lb { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.lb li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 4px;
  font-size: 13px;
}
.lb .rank {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
}
.lb li:nth-child(1) .rank { color: var(--pink); }
.lb li:nth-child(2) .rank { color: var(--green); }
.lb .name { font-weight: 600; color: var(--ink); text-decoration: none; transition: color .15s; }
.lb .name:hover { color: var(--pink-2); }
.lb .amt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.lb li.you {
  background: var(--pink-veil);
  border-radius: var(--r-sm);
  margin: 0 -6px;
  padding: 6px 8px;
}
.lb li.you .name { color: var(--pink-2); }

/* =============================================================
   Badges
   ============================================================= */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.badge {
  aspect-ratio: 1;
  background: var(--paper-2);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  transition: transform .15s;
}
.badge:hover { transform: translateY(-2px); }
.badge.earned { background: var(--pink-veil); }
.badge.locked { opacity: 0.32; filter: grayscale(1); }
.badge i { font-style: normal; font-size: 22px; line-height: 1; }
.badge small {
  font-size: 8px;
  color: var(--ink-2);
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

/* =============================================================
   Guest CTA card — replaces streak / mybets / sub_perk when nobody
   is signed in. Pink card; bold ask; one big CTA.
   ============================================================= */
.card.guest-cta {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: var(--shadow-pink);
  position: relative;
  overflow: hidden;
}
.card.guest-cta::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.card.guest-cta h4 { color: rgba(255,255,255,0.85); position: relative; }
.guest-body {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
  position: relative;
}
.guest-cta-btn {
  display: inline-block;
  background: white;
  color: var(--pink-2);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all .15s;
  position: relative;
}
.guest-cta-btn:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}

/* =============================================================
   Mobile (<= 980px) — sidebar becomes static below main
   ============================================================= */
@media (max-width: 980px) {
  .sidebar { position: static; padding: 16px 0 32px; }
}
