:root {
  /* BoostVote-inspired OLED lime SaaS — aliases keep live JS hooks working */
  --bv-bg: #050505;
  --bv-bg-elevated: #0A0A0A;
  --bv-surface: #111111;
  --bv-surface-2: #161616;
  --bv-border: #222222;
  --bv-border-strong: #2A2A2A;
  --bv-text: #F5F5F5;
  --bv-muted: #A3A3A3;
  --bv-accent: #C8F135;
  --bv-on-accent: #0A0A0A;
  --bv-ok: #22C55E;
  --bv-warn: #FBBF24;
  --bv-err: #F87171;
  --bv-discord: #5865F2;
  --bv-radius: 4px;
  --bv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bv-font: "DM Sans", system-ui, sans-serif;
  --bv-mono: "JetBrains Mono", ui-monospace, monospace;
  --bv-max: 1120px;
  --bv-mkt-max: 1200px;
  --bv-mkt-hero-pad: 3.5rem;
  --bv-mkt-hero-pad-lg: 4.5rem;
  --bv-nav-h: 3.75rem;

  --bg: var(--bv-bg);
  --surface: var(--bv-surface);
  --surface2: var(--bv-surface-2);
  --panel: var(--bv-surface);
  --panel-2: var(--bv-surface-2);
  --border: var(--bv-border);
  --line: var(--bv-border);
  --text: var(--bv-text);
  --ink: var(--bv-text);
  --muted: var(--bv-muted);
  --neon: var(--bv-accent);
  --neon-glow: rgba(200, 241, 53, 0.28);
  --gold: var(--bv-accent);
  --gold-dim: #8aab18;
  --ok: var(--bv-ok);
  --warn: var(--bv-warn);
  --err: var(--bv-err);
  --accent: var(--bv-accent);
  --cyan: #5EEBFF;
  --discord: var(--bv-discord);
  --radius: 4px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  --ease: var(--bv-ease);
  --font-display: var(--bv-font);
  --font-mono: var(--bv-mono);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--bg);
  scrollbar-gutter: stable;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--bv-font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: clip;
  overflow-y: auto;
}

/* Live dashboard : fit 1920×1080 sans scroll page */
html:has(body.vote-page--live),
body.vote-page--live {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
body.vote-page--live {
  display: flex;
  flex-direction: column;
}
body.bv-page--live .shell-live {
  height: 100%;
  max-height: 100%;
}
button, input, select, a { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  min-width: 0;
}
@media (min-width: 768px) { .shell { padding: 20px 24px; } }

.shell-live {
  /* Grille hero | board : hauteur définie → bas Rafale = bas Course */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 4px 10px 4px;
  gap: 4px;
  box-sizing: border-box;
}
.shell-live > .hero {
  grid-row: 1;
  min-height: 0;
}
.shell-live .layout.board {
  grid-row: 2;
  display: grid;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-items: stretch !important; /* écrase .layout { align-items: start } */
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  gap: 8px;
}
.shell-live .main-panel,
.shell-live .right-col {
  /* stretch grille — pas de height:100% (évite les bas divergents) */
  height: auto;
  max-height: none;
  align-self: stretch !important;
  min-height: 0;
  box-sizing: border-box;
}
.shell-live .log-pagination {
  flex-shrink: 0;
  margin: 0;
  padding: 8px 10px 10px;
  border-top: 1px solid var(--line);
}
.shell-live .topbar {
  margin-bottom: 0;
  gap: 8px;
  flex-shrink: 0;
}
.shell-live .brand-live {
  font-size: clamp(0.8rem, 1.1vw, 1.05rem);
  letter-spacing: 0.12em;
}
.shell-live .oauth-compact {
  padding: 6px 10px;
  max-width: 420px;
}
/* Header compact : métriques + ops (liste déroulante) */
.shell-live .hero.hero-compact {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  padding: 4px 8px;
  margin-bottom: 0;
  gap: 0;
  flex-shrink: 0;
  overflow: visible;
  border-radius: 10px;
  position: relative;
  z-index: 30;
}
.shell-live .hero-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  min-height: 28px;
  overflow: visible;
}
.shell-live .hero-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
}
.shell-live .hero-side--left {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.shell-live .hero-side--right {
  justify-content: flex-end;
}
.shell-live .hero-top .player {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.shell-live .bv-live-lifetime {
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bv-muted, #9aa0a6);
  line-height: 1.35;
  white-space: normal;
}
.shell-live .bv-live-lifetime strong {
  color: var(--bv-accent, #c8f135);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.shell-live .hero-players { display: none !important; }
.shell-live .ops-bar {
  --ops-h: 26px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  min-height: var(--ops-h);
  max-width: none;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  padding: 0;
  border-left: 0;
  position: relative;
  z-index: 40;
}
.shell-live .ops-bar[hidden] { display: none !important; }
.shell-live--client .ops-bar,
.shell-live--client .admin-only,
.shell-live--client #link-admin {
  display: none !important;
}
.shell-live .ops-bar-label {
  display: none;
}
.shell-live .ops-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  height: var(--ops-h);
  align-self: center;
}
.shell-live .ops-dd-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-sizing: border-box;
  height: var(--ops-h);
  min-height: var(--ops-h);
  max-height: var(--ops-h);
  max-width: min(12rem, 36vw);
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.64rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
}
.shell-live .ops-dd-btn:hover,
.shell-live .ops-dd.open .ops-dd-btn {
  border-color: rgba(77, 255, 168, 0.45);
  background: rgba(77, 255, 168, 0.08);
}
.shell-live .ops-dd-avatar,
.shell-live .ops-dd-avatar img,
.shell-live .ops-dd-item img.discord-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.shell-live .ops-dd-avatar[hidden] { display: none !important; }
.shell-live .ops-dd-ph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.shell-live .ops-bar-target {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-live .ops-bar.has-sel .ops-bar-target {
  color: var(--neon);
}
.shell-live .ops-dd-meta {
  font-size: 0.64rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.shell-live .ops-dd-meta:empty { display: none; }
.shell-live .ops-dd-caret {
  font-size: 0.62rem;
  color: var(--muted);
  margin-left: 2px;
  flex-shrink: 0;
}
.shell-live .ops-dd-menu {
  position: fixed;
  top: 0;
  right: 0;
  min-width: min(18rem, 86vw);
  max-width: min(22rem, 92vw);
  max-height: min(50vh, 20rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid rgba(77, 255, 168, 0.28);
  border-radius: 10px;
  background: rgba(8, 14, 12, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 80;
  overscroll-behavior: contain;
}
.shell-live .ops-dd-menu[hidden] { display: none !important; }
.shell-live .ops-dd-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.shell-live .ops-dd-item:hover,
.shell-live .ops-dd-item:focus-visible {
  background: rgba(77, 255, 168, 0.1);
  outline: none;
}
.shell-live .ops-dd-item.is-sel {
  background: rgba(77, 255, 168, 0.14);
  box-shadow: inset 0 0 0 1px rgba(77, 255, 168, 0.35);
}
.shell-live .ops-dd-item.is-off {
  opacity: 0.72;
}
.shell-live .ops-dd-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 600;
}
.shell-live .ops-dd-votes {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.shell-live .ops-dd-state {
  flex-shrink: 0;
  min-width: 2.4rem;
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
}
.shell-live .ops-dd-item.chip-wait .ops-dd-state { color: var(--warn); }
.shell-live .ops-dd-item.chip-ready .ops-dd-state { color: var(--neon); }
.shell-live .ops-dd-item.chip-new .ops-dd-state { color: var(--cyan); }
.shell-live .ops-dd-item.chip-pause .ops-dd-state { color: var(--muted); }
.shell-live .ops-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  height: var(--ops-h);
  align-self: center;
}
.shell-live .ops-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  height: var(--ops-h) !important;
  min-height: var(--ops-h) !important;
  max-height: var(--ops-h) !important;
  margin: 0;
  padding: 0 8px;
  font-size: 0.64rem;
  line-height: 1;
  border-radius: 999px;
  vertical-align: middle;
}
.shell-live .ops-dd-avatar,
.shell-live .ops-dd-avatar img {
  width: 14px;
  height: 14px;
}
.shell-live .badges {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: none;
  flex: 0 1 auto;
  min-width: 0;
}
.shell-live .badge-status { display: none !important; }
.shell-live .badges > .badge {
  width: auto;
}
.shell-live .badge {
  padding: 2px 7px;
  font-size: 0.64rem;
  line-height: 1.2;
}
.shell-live .badge-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: 0;
}
.shell-live .badge-actions .btn-logout,
.shell-live .badge-actions .btn-discord-sm,
.shell-live .badge-actions .btn-discord,
.shell-live .badge-actions .badge.admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  min-height: 0;
  height: auto;
  padding: 2px 7px;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  gap: 4px;
}
.shell-live .badge-actions .btn-discord-sm svg,
.shell-live .badge-actions .btn-discord svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.shell-live .main-panel {
  height: auto;
  max-height: none;
  align-self: stretch !important;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-sizing: border-box;
}
.shell-live .panel-head {
  padding: 4px 10px;
  flex-shrink: 0;
}
.shell-live .panel-head h2 {
  font-size: 0.82rem;
  margin: 0;
}
.shell-live .toolbar {
  padding: 5px 8px;
  gap: 5px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
.shell-live .toolbar.admin-only {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}
.shell-live .toolbar-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.shell-live .toolbar-row--actions {
  justify-content: space-between;
}
.shell-live .toolbar-row--filters {
  justify-content: flex-start;
}
.shell-live .toolbar-group--ops {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shell-live .toolbar-group--ops::-webkit-scrollbar { display: none; }
.shell-live .toolbar-row--search { display: none !important; }
.shell-live .toolbar-group.filters {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.shell-live .toolbar-search {
  display: inline-flex;
  align-items: center;
  flex: 0 1 12rem;
  min-width: 8rem;
  max-width: 16rem;
  margin: 0;
  margin-left: auto;
}
.shell-live .toolbar-row--filters .toolbar-search {
  margin-left: auto;
}
.shell-live .toolbar-search .input {
  width: 100%;
  min-width: 0;
  min-height: 26px;
  height: 26px;
  padding: 2px 10px;
  font-size: 0.68rem;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.shell-live .toolbar-search .input::placeholder {
  color: rgba(242, 247, 244, 0.55);
  opacity: 1;
}
.shell-live .toolbar-search .input:focus {
  border-color: var(--neon);
  background: rgba(77, 255, 168, 0.06);
  outline: none;
  box-shadow: 0 0 0 2px rgba(77, 255, 168, 0.15);
}
.shell-live .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shell-live .toolbar-client {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.shell-live .toolbar-client .toolbar-row--filters {
  width: 100%;
}
.shell-live .btn,
.shell-live .pill,
.shell-live .check-label,
.shell-live .input {
  padding: 3px 7px;
  font-size: 0.68rem;
  min-height: 26px;
}
.shell-live .log-area {
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 3px 5px;
  font-size: 0.68rem;
  line-height: 1.3;
  scrollbar-width: thin;
}
.shell-live .line .ico {
  font-size: 0.8rem;
  line-height: 1.2;
  width: 1.25em;
  text-align: center;
  filter: none;
}
.shell-live .log-pagination {
  padding: 4px 8px;
  gap: 3px;
}
.shell-live .log-pagination .page-btn {
  min-width: 26px;
  height: 26px;
  font-size: 0.72rem;
}
/* Colonne droite : Prochain vote + Course — même bas que Rafale */
.shell-live .right-col {
  height: auto;
  max-height: none;
  align-self: stretch !important;
  min-height: 0;
  overflow: hidden;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.shell-live .right-col > [hidden] {
  display: none !important;
}
.shell-live .right-col > .block {
  padding: 7px 9px;
  min-width: 0;
  border-radius: 10px;
  box-sizing: border-box;
}
.shell-live .right-col > .block > h2 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 2px;
}
.shell-live .block-obj {
  flex: 0 0 auto;
}
.shell-live .block-obj .big {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  margin: 1px 0;
  line-height: 1.05;
}
.shell-live .block-obj .val-sub {
  font-size: 0.68rem;
}
.shell-live .block-obj .progress-wrap {
  margin-top: 5px;
  height: 4px;
}
.shell-live .block-mission {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 7px; /* = padding haut des blocks → bas aligné avec rafale */
  margin: 0;
}
.shell-live .mission-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.shell-live .mission-section {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.shell-live .mission-section > h2 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  flex-shrink: 0;
}
.shell-live .mission-section .race-list,
.shell-live .mission-section .queue-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 255, 168, 0.35) transparent;
  padding-right: 2px;
  padding-bottom: 8px;
  overflow-anchor: none; /* évite le saut navigateur en bas de liste */
}
.shell-live .mission-section .race-list::-webkit-scrollbar {
  width: 6px;
}
.shell-live .mission-section .race-list::-webkit-scrollbar-thumb {
  background: rgba(77, 255, 168, 0.35);
  border-radius: 99px;
}
.shell-live .mission-section .race-list::-webkit-scrollbar-track {
  background: transparent;
}
.shell-live .badge.health-ok {
  border-color: rgba(77, 255, 168, 0.4);
  color: var(--neon);
  background: rgba(77, 255, 168, 0.08);
}
.shell-live .badge.health-degraded {
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--warn);
  background: rgba(251, 191, 36, 0.1);
}
.shell-live .badge.health-down {
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--err);
  background: rgba(248, 113, 113, 0.1);
}
.shell-live .vote-footer {
  display: none;
}
.shell-live--client .right-col,
.shell-live--admin .right-col {
  gap: 8px;
  max-height: none;
  overflow: hidden;
}
.shell-live--client .right-col > .block {
  padding: 10px 12px;
}

/* Desktop : colonnes stretchées — bas Rafale = bas Course */
@media (min-width: 1100px) {
  .shell-live {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
  }
  .shell-live .layout.board {
    align-items: stretch !important;
    align-content: stretch;
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }
  .shell-live .main-panel,
  .shell-live .right-col {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
  }
  .shell-live .right-col {
    display: flex;
    flex-direction: column;
  }
  .shell-live .block-mission {
    flex: 1 1 0;
    min-height: 0;
  }
}

/* Mobile étroit : autoriser le scroll page + colonnes empilées */
@media (max-width: 1099px) {
  html:has(body.vote-page--live),
  body.vote-page--live {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  body.vote-page--live {
    display: block;
  }
  .shell-live {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: 100dvh;
  }
  .shell-live .layout.board {
    overflow: visible;
    align-items: start !important;
    height: auto !important;
    max-height: none !important;
  }
  .shell-live .main-panel,
  .shell-live .right-col {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }
  .shell-live .log-area {
    max-height: min(50vh, 420px);
    min-height: 200px;
  }
  .shell-live .targets-wrap {
    max-height: none;
  }
  .shell-live .vote-footer {
    display: block;
    margin-top: 10px;
  }
}

/* Hauteur basse en desktop : garder l’alignement, scroll interne */
@media (min-width: 1100px) and (max-height: 720px) {
  html:has(body.vote-page--live):not(:has(body.bv-page--live)),
  body.vote-page--live:not(.bv-page--live) {
    height: auto;
    max-height: none;
    overflow: auto;
  }
  body.vote-page--live:not(.bv-page--live) {
    display: block;
  }
  body.vote-page--live:not(.bv-page--live) .shell-live {
    height: auto;
    max-height: none;
    overflow: visible;
    min-height: 100dvh;
  }
  /* Panel embarqué : ne pas casser le stretch Rafale / Course */
  body.bv-page--live .shell-live .layout.board {
    align-items: stretch;
    overflow: hidden;
  }
  body.bv-page--live .shell-live .main-panel,
  body.bv-page--live .shell-live .right-col {
    overflow: hidden;
    align-self: stretch;
  }
}

/* Tablette : chips qui wrapent encore OK */
@media (min-width: 641px) and (max-width: 1099px) {
  .shell-live .targets-wrap {
    flex-wrap: wrap;
    overflow: visible;
    height: auto;
    max-height: none;
  }
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.brand-live {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-live span { color: var(--neon); }

/* ── Brand live ── */
.brand-live {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand-live span { color: var(--neon); }
.shell-live .avatar-wrap img#avatar-bot {
  object-fit: cover;
  background: #050505;
}

/* ── Live banner (remplace VOTE LIVE + Connecté) ── */
.live-banner {
  flex-shrink: 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.live-banner-img {
  display: block;
  width: 100%;
  height: clamp(100px, 12vh, 140px);
  object-fit: cover;
  /* un peu vers le haut du fichier = texte plus bas dans le bandeau */
  object-position: center 38%;
}
.shell-live .live-banner {
  margin: 0;
}
.shell-live .live-banner-img {
  height: clamp(96px, 11vh, 128px);
}
.badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.badges > .badge,
.badges > .badge-actions {
  flex-shrink: 0;
}
.badge-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}
.badge-actions .btn-logout {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.72rem;
}
.badge-actions .btn-discord-sm {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.72rem;
  gap: 6px;
}
.badge-actions .badge.admin {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 900px) {
  .live-banner-img,
  .shell-live .live-banner-img {
    height: clamp(72px, 18vw, 100px);
    object-position: center 40%;
  }
  .badges {
    align-items: stretch;
    width: 100%;
    max-width: none;
  }
  .shell-live .badges {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
    max-width: none;
  }
  .badge-actions {
    justify-content: stretch;
  }
  .badge-actions .btn-logout,
  .badge-actions .btn-discord-sm,
  .badge-actions .badge.admin {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
  .shell-live .badge-actions .btn-logout,
  .shell-live .badge-actions .btn-discord-sm,
  .shell-live .badge-actions .btn-discord,
  .shell-live .badge-actions .badge.admin {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    padding: 2px 7px;
    font-size: 0.64rem;
    line-height: 1.2;
    border-radius: 999px;
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .live-banner-img,
  .shell-live .live-banner-img {
    height: 68px;
    object-position: center 42%;
  }
}

.vote-login-icon img {
  border-radius: 16px;
  object-fit: cover;
  background: #050505;
}

.oauth-compact {
  margin: 0;
  max-width: none;
  backdrop-filter: blur(10px);
  background: rgba(10, 14, 12, 0.82);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-width: 0;
}
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: none;
}
  margin-top: 0;
  justify-content: flex-end;
}
  content: "En direct";
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(94, 235, 255, 0.85);
  align-self: center;
  margin-right: 4px;
}
  min-width: 0;
}
  margin-top: 0;
}
  height: clamp(72px, 8.5vh, 110px);
}
  gap: 6px;
}
  padding: 6px 10px;
}
  padding: 4px 9px;
  font-size: 0.7rem;
}
.vote-login-banner {
  margin: -8px -8px 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
}
.vote-login-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 900px) {
    position: static;
    max-width: none;
    padding: 0;
  }
    display: flex;
    flex-direction: column;
  }
    height: clamp(70px, 18vw, 100px);
  }
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
    flex-direction: column;
    align-items: stretch;
  }
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
    height: 64px;
  }
  .vote-login-banner img {
    max-height: 110px;
  }
}

.oauth-compact {
  margin-bottom: 0;
  padding: 8px 12px;
  flex: 1 1 240px;
  max-width: 480px;
  margin-left: auto;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.oauth-compact .discord-avatar { width: 32px; height: 32px; }

.oauth-banner {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.oauth-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}
.oauth-identity img.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.top-serveurs-logo-mini {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px;
  flex-shrink: 0;
}
.oauth-identity-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oauth-kicker {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.oauth-names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.oauth-banner strong { color: var(--text); font-size: 0.95rem; }
.oauth-handle { color: var(--muted); font-size: 0.82rem; }
.oauth-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}
.oauth-banner.is-ok {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}
.oauth-banner.is-err {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
@media (max-width: 520px) {
  .oauth-banner { flex-direction: column; align-items: stretch; }
  .oauth-actions { width: 100%; }
  .oauth-actions .btn-logout,
  .oauth-actions .btn-discord { flex: 1; justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .vote-page--live .oauth-banner,
  .vote-page--login .oauth-banner.is-ok,
  .vote-page--login .oauth-banner.is-err {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 12px;
    gap: 8px;
  }

  .vote-page--live .oauth-identity,
  .vote-page--login .oauth-banner .oauth-identity {
    flex: 1 1 calc(100% - 0px);
    min-width: 0;
  }

  .vote-page--live .oauth-actions,
  .vote-page--login .oauth-banner .oauth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .vote-page--live .oauth-actions .btn-logout,
  .vote-page--live .oauth-actions .btn-discord,
  .vote-page--login .oauth-banner .oauth-actions .btn-logout,
  .vote-page--login .oauth-banner .oauth-actions .btn-discord {
    flex: none;
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}
.btn-logout {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  text-decoration: none;
}
.btn-logout:hover { color: var(--text); border-color: rgba(248, 113, 113, 0.45); }
.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  background: var(--discord);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s;
}
.btn-discord:hover { filter: brightness(1.08); }
.btn-discord-lg { padding: 12px 20px; font-size: 0.95rem; }
.btn-discord-sm { padding: 6px 12px; font-size: 0.75rem; }

.vote-login-shell {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}
.vote-login-shell > .vote-site-nav {
  width: min(420px, 100%);
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.vote-login-shell:has(.vote-shop-card--wide) > .vote-site-nav,
.vote-shop-shell > .vote-site-nav {
  width: min(720px, 100%);
}
.vote-login-card {
  max-width: 420px;
  width: 100%;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}
.vote-login-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.vote-login-icon img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
}
.vote-login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vote-login-lead { color: var(--muted); font-size: 0.92rem; margin: 0 0 20px; line-height: 1.5; }
.vote-login-note { margin: 16px 0 0; font-size: 0.78rem; color: var(--muted); }

.oauth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.oauth-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

header.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 16px 20px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.hero.hero-compact {
  padding: 14px 16px;
  gap: 12px 16px;
}
.hero.hero-no-avatar {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  header.hero {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
  }
  header.hero.hero-no-avatar {
    grid-template-columns: 1fr auto;
  }
}

.avatar-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
@media (min-width: 900px) { .avatar-wrap { width: 72px; height: 72px; } }
.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
  border: 2px solid var(--line);
  box-shadow: none;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
}
.hero.hero-compact .avatar-wrap { width: 56px; height: 56px; }
.shell-live--client .hero.hero-compact .avatar-wrap { width: 48px; height: 48px; }
.avatar-wrap .status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--ok);
  border: 3px solid var(--surface);
  border-radius: 50%;
}
.avatar-wrap .status-dot.off { background: var(--err); animation: none; }
.avatar-wrap .status-dot.pulse { animation: pulse 2s ease infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.hero-text { min-width: 0; }
.hero-text h1 {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-text .player {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-no-avatar .player .status-dot {
  position: static;
  width: 10px;
  height: 10px;
  background: var(--ok);
  border: 2px solid var(--surface);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.hero-no-avatar .player .status-dot.off { background: var(--err); animation: none; }
.hero-no-avatar .player .status-dot.pulse { animation: pulse 2s ease infinite; }
.hero-text .sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.targets-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  max-width: 100%;
}
.target-chip img.discord-avatar,
.viewer-chip img.discord-avatar,
.oauth-user img.discord-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.target-chip img.discord-avatar { width: 20px; height: 20px; }
.target-chip.on { border-color: rgba(74, 222, 128, 0.35); color: var(--ok); }
.target-chip.off { border-color: rgba(248, 113, 113, 0.3); color: var(--muted); opacity: 0.75; }
.target-chip .votes { color: var(--gold); font-variant-numeric: tabular-nums; }
.target-chip .chip-timer {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.target-chip.paused-cd .chip-timer { color: var(--neon); }
.target-chip .state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.target-chip .chip-ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}
.target-chip .state-txt { line-height: 1; }
.target-chip.chip-pause .state,
.target-chip.off .state { color: var(--muted); }
.target-chip.chip-wait .state { color: var(--warn); }
.target-chip.chip-new .state { color: var(--cyan); }
.target-chip.chip-ready .state { color: var(--neon); }
.block-obj .big {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}
.block-msg {
  flex: 0 0 auto;
}
.block-msg .msg-panel-body h3 {
  margin-bottom: 4px;
}
.right-col > .block {
  padding: 12px 14px;
}
.side-stats {
  margin-bottom: 0;
}

.badges {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px;
}
@media (min-width: 900px) {
  .badges { grid-column: auto; justify-content: flex-start; max-width: 240px; }
}
.shell-live .badges {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-width: none;
}
.badge {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}
.badge.live {
  color: #04140c;
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 700;
  box-shadow: 0 0 16px var(--neon-glow);
}
.badge.gold { border-color: rgba(77, 255, 168, 0.35); color: var(--neon); background: rgba(77, 255, 168, 0.08); }
.badge.offline { border-color: rgba(248, 113, 113, 0.35); color: var(--err); background: transparent; box-shadow: none; }
.badge.admin {
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--err);
  background: rgba(248, 113, 113, 0.1);
}
.badge.admin:hover {
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}
.badge.viewers {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
  vertical-align: middle;
}
.badge.viewers:hover,
.viewers-dd.open .badge.viewers {
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(56, 189, 248, 0.2);
}
.shell-live .badge.viewers,
.shell-live button.badge.viewers {
  padding: 2px 7px;
  font-size: 0.64rem;
  line-height: 1.2;
  min-height: 0;
  height: auto;
  border-radius: 999px;
}
.shell-live .viewers-dd {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 45;
}
.shell-live .viewers-dd-menu {
  position: fixed;
  top: 0;
  right: 0;
  min-width: min(16rem, 86vw);
  max-width: min(20rem, 92vw);
  max-height: min(50vh, 18rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  background: rgba(8, 14, 18, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 85;
}
.shell-live .viewers-dd-menu[hidden] { display: none !important; }
.shell-live .viewers-dd-head {
  padding: 8px 10px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7dd3fc;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
.shell-live .viewers-dd-list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 3px;
  max-height: min(42vh, 15rem);
}
.shell-live .viewers-dd-list .viewer-item {
  border-color: rgba(56, 189, 248, 0.18);
  background: rgba(0, 0, 0, 0.22);
  padding: 6px 8px;
}
.shell-live .viewers-dd-list .viewer-item img {
  width: 22px;
  height: 22px;
}
.shell-live .viewers-dd-list .viewer-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell-live .viewers-dd-list .viewer-you {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.62rem;
  color: #7dd3fc;
}
.shell-live .viewers-dd-empty {
  margin: 0;
  padding: 12px 10px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.layout {
  display: grid;
  gap: 16px;
  align-items: start;
}
.layout.board {
  gap: 1rem;
}
@media (min-width: 1100px) {
  .layout { grid-template-columns: 1fr 320px; gap: 20px; }
  .layout.board { grid-template-columns: 1.45fr 0.85fr; gap: 12px; }
  .sidebar { position: sticky; top: 16px; }
  .shell-live .right-col {
    position: relative;
    top: auto;
    align-self: stretch;
    overflow: hidden;
    max-height: none;
    min-height: 0;
  }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.main-panel {
  min-height: 0;
}
.panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
}
.panel-head h2,
.right-col h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.panel-head-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-head { flex-wrap: wrap; align-items: flex-start; }
.live-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.live-pill,
.pill.live-pill {
  color: #04140c;
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 700;
  box-shadow: 0 0 12px var(--neon-glow);
}
.muted { color: var(--muted); font-size: 0.78rem; }

.right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.right-col > .block {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.block-obj .big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 4px;
}
.block-obj .val-sub {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.block-obj .val-sub:empty {
  display: none;
}
.block-msg .msg-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 8px;
}
.block-msg h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.2;
}
.block-msg p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.block-msg .msg-panel-body.msg-swap {
  animation: msgSwapIn 0.35s ease;
}
@keyframes msgSwapIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.block-msg .msg-panel-body h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.toolbar {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
}
.toolbar-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.toolbar-group.filters {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.toolbar-group.filters::-webkit-scrollbar { display: none; }
.toolbar-group.filters .pill {
  flex: 0 0 auto;
  white-space: nowrap;
}
.toolbar-group.search {
  flex: 0 1 200px;
  min-width: 140px;
  width: auto;
  margin-left: auto;
}
.toolbar-group.search .input {
  min-width: 140px;
  width: 100%;
}

.btn, .pill, .input, .select, .check-label {
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  line-height: 1.3;
  color: #D5E0DA;
}
.btn, .pill { cursor: pointer; user-select: none; transition: border-color 0.15s, background 0.15s; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover, .pill:hover { border-color: rgba(77, 255, 168, 0.45); background: rgba(77, 255, 168, 0.08); }
.btn:active, .pill:active { transform: scale(0.98); }
.pill.active {
  border-color: var(--neon);
  color: #04140c;
  background: var(--neon);
  font-weight: 700;
}
.check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
}
.check-label input { accent-color: var(--neon); width: 14px; height: 14px; margin: 0; }
.input, .select {
  width: 100%;
  background: #141c18;
}
.input:focus, .select:focus {
  outline: 2px solid rgba(94, 235, 255, 0.45);
  outline-offset: 1px;
  border-color: var(--cyan);
}

.log-area {
  height: auto;
  flex: 1 1 auto;
  min-height: 180px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  background: #141c18;
  scroll-behavior: smooth;
}

.log-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}
.log-pagination[hidden] { display: none !important; }
.log-pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.log-pagination .page-btn:hover {
  border-color: rgba(77, 255, 168, 0.45);
  background: rgba(77, 255, 168, 0.08);
}
.log-pagination .page-btn.active {
  background: var(--neon);
  border-color: var(--neon);
  color: #04140c;
}

.toolbar-client {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.log-area::-webkit-scrollbar { width: 8px; }
.log-area::-webkit-scrollbar-track { background: transparent; }
.log-area::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.line {
  padding: 7px 9px;
  border-radius: 7px;
  margin-bottom: 3px;
  display: grid;
  grid-template-columns: 1.4em 1fr;
  gap: 8px;
  align-items: start;
  border-left: 3px solid transparent;
  word-break: break-word;
  animation: lineIn 0.28s var(--ease) forwards;
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .line { animation: none; }
}
.line:hover { background: rgba(255, 255, 255, 0.035); }
.line.info { border-left-color: var(--cyan); }
.line.avertissement { border-left-color: var(--warn); background: rgba(255, 209, 102, 0.06); }
.line.erreur { border-left-color: var(--err); background: rgba(248, 113, 113, 0.06); }
.line.vote { border-left-color: var(--neon); background: rgba(77, 255, 168, 0.07); }
.line.valide { border-left-color: var(--neon); background: rgba(77, 255, 168, 0.08); }
.line.system { border-left-color: var(--cyan); opacity: 0.85; }
.line .ico {
  text-align: center;
  line-height: 1.35;
  font-size: 0.9rem;
  font-weight: 400;
  color: inherit;
  width: 1.35em;
}
.line .msg { min-width: 0; white-space: pre-wrap; color: #D0DCD4; }
.line .msg .hl-gold { color: var(--neon); font-weight: 600; }
.line .msg .hl-blue { color: var(--cyan); }

.stats-grid { display: grid; gap: 8px; padding: 12px; }
.stat {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
}
.stat label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat .val {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat .val.sm {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.stat .val-sub {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-next-wrap .val,
.block-obj .big {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}
.stat.highlight { border-color: rgba(77, 255, 168, 0.28); }
.stat.highlight .val { color: var(--neon); }
.stat.ok .val { color: var(--ok); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.targets-list, .viewers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.target-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.78rem;
  line-height: 1.35;
}
.target-item img.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.target-item .target-body { flex: 1; min-width: 0; }
.target-item .target-label {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 2px;
}
.target-item .target-name { font-weight: 600; color: var(--text); }
.target-item .target-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.35;
}
.target-timer-display {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(77, 255, 168, 0.1);
  border: 1px solid rgba(77, 255, 168, 0.35);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.target-timer-display .target-timer-ico { font-size: 0.75rem; opacity: 0.9; }
.target-item.target-off {
  opacity: 0.85;
  border-color: rgba(248, 113, 113, 0.25);
}
.target-on {
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.target-ready {
  color: var(--ok);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.target-new {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.target-cooldown {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.target-off-badge {
  color: var(--err);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.viewer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
}
.viewer-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.viewer-item .viewer-name { font-weight: 600; }
.viewer-item.you { border-color: rgba(56, 189, 248, 0.35); }

.progress-wrap {
  margin-top: 8px;
  height: 5px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--neon));
  border-radius: 99px;
  transition: width 0.35s var(--ease);
}

.vote-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}
.vote-footer-sep {
  opacity: 0.55;
}
.shell-live--client .vote-footer {
  margin-top: 12px;
  padding-bottom: 8px;
}
.shell-live--client .admin-only {
  display: none !important;
}
.vote-footer a { color: var(--gold); text-decoration: none; }
.vote-footer a:hover { text-decoration: underline; }

/* ── Page scopes ── */
.vote-page--login .shell { padding-top: 24px; }
.vote-login-card .btn-discord {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.vote-login-community {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.vote-login-community:hover {
  text-decoration: underline;
}
.vote-login-card .oauth-banner {
  margin-bottom: 16px;
  text-align: left;
}

/* ── Admin ── */
.vote-page--admin { background: var(--bg); }
.vote-admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}
@media (max-width: 900px) {
  .vote-admin-shell { grid-template-columns: 1fr; }
  .vote-admin-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
}
.vote-admin-sidebar {
  padding: 20px 16px;
  background: rgba(20, 18, 16, 0.98);
  border-right: 1px solid var(--border);
}
.vote-admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.vote-admin-brand:hover { text-decoration: underline; }
.vote-admin-user {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.vote-admin-user strong { display: block; font-size: 0.95rem; }
.vote-admin-user small { color: var(--muted); font-size: 0.75rem; }
.vote-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vote-admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.vote-admin-nav a:hover {
  color: var(--text);
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.15);
}
.vote-admin-nav a.active {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.vote-admin-main {
  padding: 24px 20px 40px;
  max-width: 1200px;
}
.vote-admin-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  font-weight: 800;
}
.vote-admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vote-admin-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(28, 25, 23, 0.92);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vote-admin-card span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.vote-admin-card strong { font-size: 1.5rem; font-weight: 800; }
.vote-admin-card .ok { color: var(--ok); }
.vote-admin-card .err { color: var(--err); }
.vote-admin-grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .vote-admin-grid-2 { grid-template-columns: 1fr 1fr; }
}
.vote-card, .glass-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(28, 25, 23, 0.92);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.vote-card h2, .glass-block h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.vote-panel-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vote-panel-head .kicker {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.vote-panel-head h2 { margin: 4px 0 0; font-size: 1rem; }
.vote-table-wrap { overflow-x: auto; }
.vote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.vote-table th, .vote-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.vote-table th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; }
.vote-table .ok { color: var(--ok); }
.vote-table .err { color: var(--err); }
.vote-muted { color: var(--muted); }
.vote-empty { color: var(--muted); font-size: 0.88rem; margin: 0; }
.vote-viewers { display: flex; flex-wrap: wrap; gap: 6px; }
.vote-pill, .pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.pill-live { border-color: rgba(74, 222, 128, 0.35); color: var(--ok); }
.pill-ok { border-color: rgba(74, 222, 128, 0.35); color: var(--ok); }
.pill-warn { border-color: rgba(251, 191, 36, 0.4); color: var(--gold, #fbbf24); }
.pill-off { border-color: rgba(248, 113, 113, 0.35); color: var(--err); }
.vote-badge.live {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--ok);
  margin: 0 6px 6px 0;
}
.vote-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px !important;
}
.vote-admin-filters select,
.vote-admin-filters input[type="search"],
.vote-admin-filters input[type="text"] {
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(12, 10, 9, 0.8);
  color: var(--text);
  min-width: 140px;
}
.vote-btn, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}
.vote-btn-gold, .btn-primary {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--gold);
}
.vote-btn-danger {
  background: transparent;
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.45);
}
.vote-btn-danger:hover { background: rgba(248, 113, 113, 0.12); filter: none; }
.vote-cible-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.vote-btn:hover, .btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 11px; font-size: 0.78rem; }
.vote-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.vote-form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 140px;
  flex: 1;
}
.vote-form-row input,
.vote-form-row select,
.vote-form-row textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(12, 10, 9, 0.8);
  color: var(--text);
}
.vote-info-card {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.04);
}
.vote-cible-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.vote-cible-block:last-child { border-bottom: none; }
.vote-cible-form { padding: 0; border: none; }
.vote-cible-delete-form,
.vote-cible-delete-inline {
  margin: 0;
  padding: 0;
  border: none;
}
.vote-cible-footer {
  display: block;
}
.vote-cible-actions-row {
  align-items: flex-end;
  margin-bottom: 0;
}
.vote-cible-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  flex: 0 0 auto;
}
.vote-cible-form-hidden {
  display: none;
}
.vote-form-row-compact {
  align-items: end;
}
.vote-form-row-compact label {
  flex: 1 1 160px;
}
.vote-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.vote-player-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.vote-player-card:hover,
.vote-player-card.is-active {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.06);
}
.vote-player-card img.discord-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.vote-player-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vote-player-stats {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
}
.vote-player-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.vote-player-link:hover { color: var(--gold); }
.vote-table .sm { font-size: 0.78rem; }
.vote-cible-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.vote-cible-head img.discord-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.vote-muted { color: var(--muted); margin-left: 6px; }
.vote-cible-form:last-child { border-bottom: none; }
.vote-terminal {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  max-height: 70vh;
  overflow: auto;
  padding: 10px;
  background: rgba(8, 6, 5, 0.75);
  border-radius: 12px;
}
.vote-terminal .log-line {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  word-break: break-word;
}
.vote-terminal .L-ERROR { color: var(--err); }
.vote-terminal .L-WARNING, .vote-terminal .L-AVERTISSEMENT { color: var(--warn); }
.vote-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.vote-alert.warn {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: var(--gold);
}
.vote-pagination {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.vote-pagination a, .vote-pagination span {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--muted);
}
.vote-pagination a:hover { color: var(--gold); border-color: rgba(251, 191, 36, 0.35); }
.vote-pagination .current { color: var(--gold); border-color: rgba(251, 191, 36, 0.4); }

/* ── Mobile admin + touch ── */
.vote-admin-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  body.vote-page--admin {
    overflow-x: clip;
  }

  .vote-admin-shell {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .vote-admin-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 14px;
    padding-top: max(10px, env(safe-area-inset-top));
    background: rgba(12, 10, 9, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
  }

  .vote-admin-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
  }

  .vote-admin-menu-icon {
    font-size: 1.1rem;
    line-height: 1;
  }

  .vote-admin-mobile-title {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vote-admin-mobile-live {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .vote-admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }

  .vote-admin-shell.is-nav-open .vote-admin-sidebar {
    max-height: min(70vh, 520px);
    overflow-y: auto;
    opacity: 1;
    padding: 12px 16px 16px;
    -webkit-overflow-scrolling: touch;
  }

  .vote-admin-brand {
    display: none;
  }

  .vote-admin-user {
    margin-bottom: 12px;
  }

  .vote-admin-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .vote-admin-main {
    padding: 16px 14px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .vote-admin-title {
    font-size: 1.15rem;
    word-break: break-word;
  }

  .vote-admin-cards {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .vote-admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .vote-admin-filters select,
  .vote-admin-filters input[type="search"],
  .vote-admin-filters input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .vote-admin-filters .vote-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .vote-card,
  .glass-block {
    min-width: 0;
    max-width: 100%;
    padding: 14px;
  }

  .vote-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .vote-table-wrap .vote-table {
    min-width: 520px;
  }

  .vote-form-row label {
    min-width: 0;
    flex: 1 1 100%;
  }

  .vote-cible-btns .vote-btn {
    min-height: 44px;
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .btn,
  .pill,
  .vote-btn,
  .btn-logout,
  .btn-discord,
  .btn-discord-sm {
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .shell-live .badge-actions .btn-logout,
  .shell-live .badge-actions .btn-discord-sm,
  .shell-live .badge-actions .btn-discord,
  .shell-live .badge-actions .badge.admin,
  .shell-live .badge,
  .shell-live button.badge.viewers {
    min-height: 0;
    height: auto;
    padding: 2px 7px;
    font-size: 0.64rem;
    line-height: 1.2;
    border-radius: 999px;
  }

  .btn,
  .pill {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .check-label {
    min-height: 44px;
    align-items: center;
  }

  /* ── Live dashboard mobile ── */
  header.hero {
    grid-template-columns: 56px 1fr;
    gap: 10px 12px;
    padding: 12px 14px;
  }

  .avatar-wrap {
    width: 56px;
    height: 56px;
  }

  .avatar-wrap .status-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .hero-text h1 {
    font-size: 1.15rem;
  }

  .hero-text .sub {
    font-size: 0.8rem;
  }

  .badges {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: visible;
    gap: 6px;
    width: 100%;
  }
  .shell-live .badges {
    align-items: stretch;
    max-width: none;
  }

  .badge {
    flex-shrink: 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .targets-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .targets-wrap::-webkit-scrollbar { display: none; }

  .target-chip {
    flex-shrink: 0;
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .toolbar {
    padding: 8px;
    gap: 6px;
  }

  .toolbar-group {
    width: auto;
  }

  .toolbar-group:first-child {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toolbar-group:first-child .check-label {
    grid-column: unset;
  }

  .toolbar-group.filters {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .toolbar-group.filters::-webkit-scrollbar { display: none; }

  .toolbar-group.filters .pill {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: auto;
    padding-left: 12px;
    padding-right: 12px;
  }

  .toolbar-group.search,
  .toolbar-group.search .input {
    width: 100%;
  }

  .log-area {
    height: min(48dvh, 480px);
    min-height: 200px;
    font-size: 0.72rem;
  }

  .panel,
  .layout {
    min-width: 0;
  }

  .panel-head {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .panel-head h2 {
    font-size: 0.9rem;
  }

  .stats-grid {
    padding: 10px;
    gap: 6px;
  }

  .stat {
    padding: 10px 12px;
  }

  .stat .val {
    font-size: 1.15rem;
  }

  .stat .val.sm {
    font-size: 0.82rem;
  }

  .oauth-actions .btn-logout,
  .oauth-actions .btn-discord {
    min-height: 44px;
  }

  .vote-login-card {
    padding: 24px 18px;
    margin: 0 4px;
  }

  .vote-login-shell {
    min-height: calc(100dvh - 24px);
    align-items: flex-start;
    padding-top: 8vh;
  }

  .vote-pagination a,
  .vote-pagination span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


/* ── Live phone polish (all viewports) ── */
@media (max-width: 1099px) {
  .shell-live {
    padding: 8px 12px max(10px, env(safe-area-inset-bottom));
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .shell-live .topbar {
    gap: 8px;
    margin-bottom: 0;
  }
  .shell-live .oauth-compact {
    flex: 1 1 auto;
    max-width: none;
  }

  /* Stats utiles avant le journal sur mobile */
  .shell-live .layout.board {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-rows: none !important;
  }
  .shell-live .right-col {
    order: -1;
    gap: 8px;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    overflow: visible !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
  }
  .shell-live .main-panel {
    order: 0;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  /* Empêche le collapse flex (1 1 0 + min-height:0) qui masque la Course */
  .shell-live .block-mission {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .shell-live .mission-scroll {
    flex: 0 0 auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .shell-live .mission-section {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .shell-live .mission-section .race-list {
    flex: 0 0 auto !important;
    min-height: 10rem;
    max-height: min(42dvh, 22rem);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .shell-live .targets-wrap {
    height: 34px;
    max-height: 34px;
    flex-wrap: nowrap;
  }

  .shell-live .block-obj .big {
    font-size: clamp(1.55rem, 9vw, 2.1rem);
    letter-spacing: 0.04em;
  }

  .shell-live .block-msg {
    flex: 0 0 auto;
    min-height: 72px;
    max-height: none;
  }

  .shell-live .side-stats {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .shell-live .stat .val {
    font-size: clamp(0.95rem, 4.5vw, 1.15rem);
  }

  .shell-live .log-area {
    max-height: min(55dvh, 480px);
    min-height: 220px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .shell-live .line {
    font-size: clamp(0.68rem, 3.1vw, 0.78rem);
    padding: 8px 10px;
    gap: 8px;
  }

  .shell-live .log-pagination .page-btn {
    min-width: 28px;
    min-height: 28px;
  }

  .shell-live .hero.hero-compact {
    padding: 6px 8px;
    gap: 4px;
  }

  .shell-live .hero-top {
    flex-wrap: wrap;
  }

  .shell-live .hero-top .player {
    font-size: 0.8rem;
  }

  .shell-live .ops-bar {
    border-left: 1px solid var(--line);
    padding-left: 6px;
    max-width: none;
    width: auto;
  }

  .shell-live .ops-dd-btn {
    max-width: min(14rem, 48vw);
  }
}

@media (max-width: 640px) {
  /* Priorité: scroll horizontal des chips (spécificité > .shell-live wrap) */
  .shell-live .targets-wrap {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .shell-live .targets-wrap::-webkit-scrollbar {
    display: none;
  }

  .shell-live .target-chip .state-txt {
    display: none; /* icône seule → chips plus courts */
  }

  .shell-live .target-chip {
    max-width: 78vw;
  }

  .shell-live .chip-name {
    max-width: 28vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shell-live .toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .shell-live .admin-only {
    /* boutons admin restent mais compact */
  }

  .shell-live .input {
    min-height: 44px;
    width: 100%;
    font-size: 16px; /* évite zoom iOS */
  }

  .shell-live .badges {
    width: 100%;
  }

  .shell-live .block-msg h3 {
    font-size: clamp(0.82rem, 4.2vw, 1rem);
    white-space: normal;
  }

  .shell-live .block-msg p {
    font-size: 0.74rem;
  }
}

@media (max-width: 380px) {
  .shell-live {
    padding-left: 8px;
    padding-right: 8px;
  }
  .shell-live .brand-live {
    letter-spacing: 0.06em;
    font-size: 0.72rem;
  }
  .shell-live .side-stats {
    grid-template-columns: 1fr 1fr;
  }
  .shell-live .stat {
    padding: 8px;
  }
  .shell-live .oauth-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1099px) {
  @supports (padding: max(0px)) {
    .shell-live {
      padding-left: max(12px, env(safe-area-inset-left));
      padding-right: max(12px, env(safe-area-inset-right));
    }
  }
}

/* Mission control */
.manche-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(77,255,168,0.08), rgba(94,235,255,0.05));
  flex-shrink: 0;
}
.shell-live .manche-hud {
  margin: 0;
  padding: 3px 8px;
  gap: 6px;
}
.manche-hud[hidden] { display: none !important; }
.manche-hud-ring {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.shell-live .manche-hud-ring {
  width: 32px;
  height: 32px;
}
.manche-hud-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.manche-hud-ring .ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 3; }
.manche-hud-ring .ring-fg {
  fill: none;
  stroke: var(--neon);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 97.4;
  stroke-dashoffset: 97.4;
  transition: stroke-dashoffset 0.45s var(--ease);
}
.manche-hud-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon);
}
.manche-hud-meta { min-width: 0; }
.manche-hud-meta strong { display: block; font-size: 0.82rem; }
.shell-live .manche-hud-meta strong { font-size: 0.74rem; }
.shell-live .manche-hud-meta .muted { font-size: 0.64rem; }
.shell-live .manche-hud-pct { font-size: 0.58rem; }
.race-list, .queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.shell-live .race-list,
.shell-live .queue-list { gap: 2px; }
.race-row, .queue-item {
  display: grid;
  gap: 1px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
}
.shell-live .race-row,
.shell-live .queue-item {
  padding: 2px 5px;
}
.race-row.done { opacity: 0.55; }
.race-row.behind { border-color: rgba(248,113,113,0.35); }
.race-row.on_track { border-color: rgba(77,255,168,0.25); }
.race-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 0.74rem;
  min-width: 0;
}
.race-head > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.shell-live .race-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: flex-start;
}
.shell-live .race-head {
  font-size: 0.72rem;
  font-weight: 500;
  gap: 6px;
}
.shell-live .race-head > span:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  max-width: none;
}
.shell-live .race-head > span:last-child {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.shell-live .race-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  min-height: 1em;
  overflow: visible;
  white-space: nowrap;
}
.shell-live .race-timer {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 0.62rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  color: var(--warn);
  letter-spacing: 0.02em;
}
.shell-live .race-timer-label {
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
}
.shell-live .race-timer.ready,
.shell-live .race-timer.ready .race-timer-val {
  color: var(--neon);
}
.shell-live .race-timer.wait .race-timer-val {
  color: var(--warn);
}
.shell-live .race-timer.pause .race-timer-val {
  color: var(--muted);
}
.shell-live .race-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 8px 2px 4px;
  padding: 0 2px;
}
.shell-live .race-sep-line {
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 162, 158, 0.45),
    transparent
  );
}
.shell-live .race-sep-label {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.shell-live .race-row.offstory {
  opacity: 0.78;
  border-color: rgba(168, 162, 158, 0.22);
  background: rgba(255, 255, 255, 0.02);
}
.shell-live .race-row.paused {
  opacity: 0.72;
}
.shell-live .race-votes.muted {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 500;
}
.shell-live .race-row {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  padding: 5px 6px;
  gap: 3px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
.shell-live .race-bar {
  height: 3px;
  margin: 0;
  flex-shrink: 0;
}
.shell-live .queue-list,
.shell-live #queue-list,
.shell-live #queue-panel {
  display: none !important;
}
.race-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.race-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
  transition: width 0.5s var(--ease);
}
.race-meta {
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
}
.queue-item .q-num {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(77,255,168,0.12);
  color: var(--neon);
  font-size: 0.68rem;
  font-weight: 700;
}
.queue-item.ready { border-color: rgba(77,255,168,0.3); }
.ops-chip {
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.68rem;
  min-width: 36px;
  min-height: 28px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1.2;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.ops-chip:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--neon);
  background: rgba(77,255,168,0.1);
}
.ops-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ops-chip:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 1px;
}
.btn.bot-paused { background: rgba(248,113,113,0.2); color: var(--err); border-color: rgba(248,113,113,0.45); }
.health-ok { color: var(--ok) !important; }
.health-degraded { color: var(--warn) !important; }
.health-down, .health-unknown { color: var(--err) !important; }

/* ── Boutique / renouvellement ── */
.vote-shop-shell {
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
}
.vote-shop-shell > .vote-site-nav {
  width: min(720px, 100%);
  margin: 0;
  padding: 0;
}
.vote-shop-card {
  width: min(520px, 100%);
  margin: 0;
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,14,16,.92);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.vote-shop-card--wide { width: min(720px, 100%); }
.vote-shop-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.vote-shop-kicker {
  margin: 0 0 .25rem;
  color: #3DFF9A;
  font-size: .75rem;
  letter-spacing: .14em;
  font-weight: 700;
}
.vote-shop-card h1 {
  font-family: Orbitron, sans-serif;
  letter-spacing: .08em;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  margin: 0 0 .4rem;
}
.vote-shop-user {
  display: flex;
  gap: .65rem;
  align-items: center;
  font-size: .8rem;
  color: var(--muted, #8A8F98);
}
.vote-shop-user img { border-radius: 50%; }
.vote-shop-user strong { display: block; color: var(--text, #EDEDEF); }
.vote-shop-form {
  display: grid;
  gap: .85rem;
  margin: 1rem 0;
}
.vote-shop-form label {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted, #8A8F98);
}
.vote-shop-form input {
  width: 100%;
  padding: .65rem .75rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: #EDEDEF;
  font: inherit;
}
.vote-shop-form input:focus {
  outline: 2px solid rgba(61,255,154,.45);
  border-color: transparent;
}
.vote-shop-status {
  display: grid;
  gap: .35rem;
  margin: 1rem 0 1.25rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  font-size: .85rem;
  color: var(--muted, #8A8F98);
}
.vote-shop-status strong { color: #3DFF9A; font-size: 1rem; }
/* Packs boutique */
.vote-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
}
.vote-pack-legend {
  grid-column: 1 / -1;
  margin: 0 0 .35rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted, #8A8F98);
}
.vote-pack-card {
  position: relative;
  display: grid;
  gap: .35rem;
  padding: .9rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vote-pack-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vote-pack-card:has(input:checked),
.vote-pack-card.is-popular:has(input:checked) {
  border-color: rgba(61,255,154,.7);
  background: rgba(61,255,154,.1);
  box-shadow: 0 0 0 1px rgba(61,255,154,.25);
}
.vote-pack-badge {
  position: absolute;
  top: .55rem;
  right: .55rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #050506;
  background: #3DFF9A;
  border-radius: 999px;
  padding: .15rem .45rem;
}
.vote-pack-title { font-size: .95rem; color: #fff; }
.vote-pack-price {
  font-family: var(--font-display), Orbitron, sans-serif;
  font-size: 1.35rem;
  color: #3DFF9A;
}
.vote-pack-price small { font-size: .7rem; color: var(--muted, #8A8F98); margin-left: .15rem; }
.vote-pack-blurb, .vote-pack-goal {
  font-size: .75rem;
  color: var(--muted, #8A8F98);
  line-height: 1.35;
}
@media (max-width: 820px) {
  .vote-pack-grid { grid-template-columns: 1fr; }
}

.vote-abo-actions {
  display: grid;
  gap: .85rem;
  margin: 1.1rem 0 .5rem;
}
.vote-abo-help {
  margin: 0;
  padding: .85rem 1rem .85rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--muted, #8A8F98);
  font-size: .8rem;
  line-height: 1.45;
}
.vote-abo-help li { margin: .25rem 0; }
.vote-abo-help strong { color: #EDEDEF; }

.vote-shop-card code {
  color: #3DFF9A;
  font-family: inherit;
}

/* Nav site (Live / Boutique / Abo / Affiliation) */
.vote-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 0 auto 1.1rem;
  max-width: 720px;
  padding: 0 .5rem;
}
.vote-site-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .04);
  color: var(--text, #F2F7F4);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.vote-site-nav__btn:hover {
  border-color: rgba(77, 255, 168, .45);
  background: rgba(77, 255, 168, .08);
  color: #fff;
}
.vote-site-nav__btn.is-active {
  border-color: rgba(77, 255, 168, .65);
  background: rgba(77, 255, 168, .16);
  color: var(--neon, #4DFFA8);
}
.vote-site-nav__btn--accent:not(.is-active) {
  border-color: rgba(77, 255, 168, .4);
  color: var(--neon, #4DFFA8);
}
.vote-site-nav--compact {
  margin: 0;
  max-width: none;
  gap: 4px;
  justify-content: flex-end;
}
.vote-site-nav--compact .vote-site-nav__btn {
  min-height: 28px;
  padding: 2px 8px;
  font-size: .64rem;
  border-radius: 8px;
}
.shell-live .badge-actions .vote-site-nav {
  display: inline-flex;
  flex-wrap: wrap;
}
.vote-login-shell > .vote-site-nav,
.vote-shop-shell > .vote-site-nav {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .vote-site-nav:not(.vote-site-nav--compact) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .vote-site-nav:not(.vote-site-nav--compact) .vote-site-nav__btn {
    min-height: 44px;
  }
  .shell-live .badge-actions {
    flex-wrap: wrap;
  }
  .shell-live .badge-actions .vote-site-nav {
    width: 100%;
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .shell-live .badge-actions .vote-site-nav__btn {
    min-height: 36px;
    font-size: .7rem;
  }
}

/* 404 vote */
.vote-404-kicker {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--neon);
}
.vote-404-card h1 {
  margin-bottom: .5rem;
}
.vote-404-actions {
  display: grid;
  gap: .75rem;
  margin-top: 1.25rem;
  justify-items: center;
}
.vote-404-actions .btn-discord {
  text-decoration: none;
  text-align: center;
}

/* Nav intégrée dans la carte login */
.vote-login-card > .vote-site-nav {
  width: 100%;
  max-width: none;
  margin: 0 0 1.15rem;
  padding: 0 0 .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: .4rem;
}
.vote-login-card > .vote-site-nav .vote-site-nav__btn {
  flex: 1 1 auto;
  min-height: 34px;
  padding: .35rem .55rem;
  font-size: .68rem;
  border-radius: 10px;
}
@media (max-width: 420px) {
  .vote-login-card > .vote-site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════
   Grimkaaah Vote — SaaS chrome (BoostVote-inspired)
   ═══════════════════════════════════════════════════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.bv-body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 241, 53, 0.07), transparent 55%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    var(--bv-bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  font-family: var(--bv-font);
}

.bv-text-accent { color: var(--bv-accent); }
.bv-break { word-break: break-all; font-size: 0.85rem; }

.bv-promo {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bv-accent); color: var(--bv-on-accent);
  padding: 0.55rem 1rem; font-size: 0.875rem; font-weight: 600;
}
.bv-promo__cta {
  background: #0A0A0A; color: #fff; padding: 0.35rem 0.75rem; border-radius: 4px;
  text-decoration: none; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
  transition: opacity 0.2s var(--bv-ease);
}
.bv-promo__cta:hover { opacity: 0.85; }

.bv-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5,5,5,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bv-border);
}
.bv-nav__inner {
  max-width: var(--bv-mkt-max); margin: 0 auto; padding: 0 1.25rem;
  min-height: var(--bv-nav-h);
  /* 1fr | auto | 1fr : liens toujours centrés, même si les CTA droites changent */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
}
.bv-nav__brand {
  display: inline-flex; align-items: center; gap: 0.28rem;
  color: var(--bv-accent); text-decoration: none; font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
  justify-self: start;
  grid-column: 1;
  letter-spacing: -0.01em;
  /* Stable wordmark — no shatter/glitch layers */
  text-shadow: none;
  filter: none;
  clip-path: none;
  transform: none;
  animation: none;
  transition: opacity 0.18s var(--bv-ease);
}
.bv-nav__brand:hover { opacity: 0.92; }
.bv-nav__brand:focus-visible {
  outline: 2px solid rgba(200, 241, 53, 0.55);
  outline-offset: 3px;
  border-radius: 2px;
}
.bv-nav__brand .bv-brand-mark {
  margin-right: 0;
  flex-shrink: 0;
}
.bv-nav__brand .bv-panel-side__brand-text,
.bv-nav__brand > span {
  display: inline; line-height: 1; white-space: nowrap;
  color: var(--bv-accent); /* Grimkaaah = OLED lime */
  padding-bottom: 0;
  transform: none;
  text-shadow: none;
  filter: none;
}
/* Vote = white (stable contrast against lime name) */
.bv-nav__brand-accent { color: var(--bv-text); }
.bv-nav__links {
  display: flex; align-items: center; gap: 0.1rem; justify-content: center;
  grid-column: 2; justify-self: center;
  flex-wrap: nowrap;
  min-height: 2rem;
}
.bv-nav__links a {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--bv-muted); text-decoration: none; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4rem 0.55rem; line-height: 1; white-space: nowrap;
  border-radius: 2px; border: 1px solid transparent;
  transition: color 0.2s, background 0.2s;
  box-sizing: border-box; height: 2rem;
}
.bv-nav__links a:hover { color: var(--bv-text); background: rgba(255,255,255,0.04); }
.bv-nav__links a.is-active {
  color: var(--bv-accent); background: transparent;
}
.bv-nav__actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem;
  flex-shrink: 0; grid-column: 3; justify-self: end; min-width: 0;
}
.bv-nav__actions .bv-btn {
  height: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.95rem;
  box-sizing: border-box;
  line-height: 1;
}
.bv-nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
  grid-column: 3; justify-self: end;
}
.bv-nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--bv-text); border-radius: 1px;
}

.bv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 2px; border: 1px solid transparent;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--bv-ease), color 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit; line-height: 1.2;
}
.bv-btn:hover { transform: translateY(-1px); }
.bv-btn:active { transform: translateY(0); }
.bv-btn--accent { background: var(--bv-accent); color: var(--bv-on-accent); }
.bv-btn--accent:hover { filter: brightness(1.05); }
.bv-btn--ghost {
  background: transparent; color: var(--bv-text); border-color: var(--bv-border-strong);
}
.bv-btn--ghost:hover { border-color: var(--bv-muted); background: rgba(255,255,255,0.03); }
.bv-btn--discord { background: var(--bv-discord); color: #fff; }
.bv-btn--lg { padding: 0.85rem 1.35rem; font-size: 0.95rem; }
.bv-btn--sm { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
.bv-btn--block { width: 100%; }

.bv-hero {
  max-width: var(--bv-mkt-max); margin: 0 auto; padding: var(--bv-mkt-hero-pad) 1.25rem 2.5rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .bv-hero { grid-template-columns: 1.05fr 0.95fr; padding: var(--bv-mkt-hero-pad-lg) 1.5rem 3rem; }
}
.bv-kicker {
  color: var(--bv-accent); font-family: var(--bv-mono); font-size: 0.8rem;
  letter-spacing: 0.02em; margin: 0 0 0.75rem;
}
.bv-hero h1, .bv-section h2, .bv-pricing-hero h1, .bv-auth h1, .bv-panel-card h1, .bv-cta-band h2 {
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.85rem;
}
.bv-hero h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); max-width: 16ch; }
.bv-lead { color: var(--bv-muted); font-size: 1.05rem; margin: 0 0 1.25rem; max-width: 42ch; }
.bv-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.bv-hero__note { color: var(--bv-muted); font-size: 0.8rem; margin: 0.5rem 0 0; }

.bv-terminal {
  background: var(--bv-surface); border: 1px solid var(--bv-border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.bv-terminal__bar {
  display: flex; align-items: center; gap: 6px; padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--bv-border); background: var(--bv-surface-2);
}
.bv-terminal__bar span {
  width: 10px; height: 10px; border-radius: 50%; background: #333;
}
.bv-terminal__bar span:nth-child(1) { background: #ff5f56; }
.bv-terminal__bar span:nth-child(2) { background: #ffbd2e; }
.bv-terminal__bar span:nth-child(3) { background: #27c93f; }
.bv-terminal__bar em { margin-left: auto; font-style: normal; font-size: 0.7rem; color: var(--bv-muted); font-family: var(--bv-mono); }
.bv-terminal__body {
  margin: 0; padding: 1rem 1.1rem; font-family: var(--bv-mono); font-size: 0.78rem;
  line-height: 1.65; color: #c8c8c8; overflow-x: auto;
}
.bv-terminal__body code { font-family: inherit; }

.bv-ticker {
  border-block: 1px solid var(--bv-border); background: var(--bv-bg-elevated);
  overflow: hidden; padding: 0.85rem 0;
}
.bv-ticker__track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: bv-marquee 28s linear infinite;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bv-muted);
}
.bv-ticker__dot {
  width: 6px; height: 6px; background: var(--bv-accent); transform: rotate(45deg);
  align-self: center; flex-shrink: 0;
}
@keyframes bv-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bv-ticker__track { animation: none; }
  .bv-btn:hover { transform: none; }
}

.bv-section {
  max-width: var(--bv-mkt-max); margin: 0 auto; padding: 3.5rem 1.25rem;
}
.bv-section__lead { color: var(--bv-muted); margin: 0 0 2rem; max-width: 48ch; }
.bv-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.bv-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .bv-steps { grid-template-columns: repeat(3, 1fr); } }
.bv-steps li {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: var(--bv-radius); padding: 1.35rem 1.2rem;
}
.bv-steps__num {
  display: block; font-family: var(--bv-mono); color: var(--bv-accent);
  font-size: 0.85rem; margin-bottom: 0.75rem;
}
.bv-steps h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.bv-steps p { margin: 0; color: var(--bv-muted); font-size: 0.92rem; }

.bv-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
@media (min-width: 700px) { .bv-stats { grid-template-columns: repeat(4, 1fr); } }
.bv-stats > div {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: var(--bv-radius); padding: 1.25rem; text-align: center;
}
.bv-stats strong {
  display: block; font-size: 1.75rem; color: var(--bv-accent); margin-bottom: 0.35rem;
}
.bv-stats span { color: var(--bv-muted); font-size: 0.85rem; }

.bv-pricing {
  display: grid; gap: 1rem; border: 0; margin: 0; padding: 0.75rem 0 0;
  grid-template-columns: 1fr; align-items: stretch; min-width: 0;
  overflow: visible; width: 100%;
}
@media (min-width: 800px) {
  .bv-pricing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    max-width: 1100px;
    margin-inline: auto;
  }
  .bv-pricing-page--panel .bv-pricing,
  .bv-shop-form .bv-pricing {
    max-width: none;
    margin-inline: 0;
  }
}
.bv-price-card {
  position: relative; border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: 12px; padding: 1.75rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem;
  min-height: 100%;
  align-self: stretch;
}
.bv-price-card.is-popular {
  border-color: var(--bv-accent);
  box-shadow: none;
}
.bv-pricing { overflow: visible; }
.bv-price-card__badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--bv-accent); color: var(--bv-on-accent);
  font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 2px;
  text-transform: uppercase; letter-spacing: 0.04em; z-index: 1;
}
.bv-price-card h3, .bv-price-card__title { font-size: 1.15rem; margin: 0; }
.bv-price-card__price { font-size: 2rem; font-weight: 700; margin: 0; }
.bv-price-card__price small { font-size: 0.9rem; font-weight: 500; color: var(--bv-muted); }
.bv-price-card__blurb, .bv-price-card__goal { color: var(--bv-muted); font-size: 0.9rem; margin: 0; }
.bv-price-card .bv-btn { margin-top: auto; }
.bv-price-card--selectable { cursor: pointer; }
.bv-price-card--selectable input { position: absolute; opacity: 0; pointer-events: none; }
.bv-price-card--selectable:has(input:checked) {
  border-color: var(--bv-accent);
  box-shadow: none;
}

.bv-faq { display: grid; gap: 0.5rem; }
.bv-faq details {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: 8px; padding: 0.85rem 1rem;
}
.bv-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bv-faq summary::-webkit-details-marker { display: none; }
.bv-faq summary::after { content: "+"; float: none; flex-shrink: 0; color: var(--bv-accent); font-family: var(--bv-mono); }
.bv-faq details[open] summary::after { content: "−"; }
.bv-faq p { color: var(--bv-muted); margin: 0.75rem 0 0; font-size: 0.95rem; }

.bv-cta-band {
  max-width: var(--bv-mkt-max); margin: 1rem auto 2rem; padding: 2.5rem 1.5rem;
  text-align: center; border: 1px solid var(--bv-border); border-radius: 4px;
  background: linear-gradient(180deg, rgba(200,241,53,0.08), transparent);
}
.bv-cta-band p { color: var(--bv-muted); font-family: var(--bv-mono); font-size: 0.85rem; }

.bv-section--aff { text-align: center; padding-bottom: 4rem; }
.bv-section--aff .bv-section__lead { margin-inline: auto; }

.bv-footer {
  border-top: 1px solid var(--bv-border); background: var(--bv-bg-elevated);
  padding: 2.5rem 1.25rem 1.5rem; margin-top: 2rem;
}
.bv-footer__inner {
  max-width: var(--bv-mkt-max); margin: 0 auto 2rem;
  display: grid; gap: 2rem;
}
@media (min-width: 700px) {
  .bv-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.bv-footer__brand strong {
  display: inline-flex; align-items: center; gap: 0.28rem;
  font-weight: 700; color: var(--bv-accent); letter-spacing: -0.01em;
  text-shadow: none; filter: none; transform: none;
}
.bv-footer__brand .bv-brand-mark { margin-right: 0; }
.bv-footer__brand strong > :not(img) {
  color: var(--bv-accent);
  transform: none;
}
.bv-footer__brand .bv-nav__brand-accent { color: var(--bv-text); }
.bv-footer__brand p, .bv-footer__copy { color: var(--bv-muted); font-size: 0.9rem; }
.bv-footer__label {
  display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bv-muted); margin-bottom: 0.75rem; font-weight: 600;
}
.bv-footer__col { display: flex; flex-direction: column; gap: 0.45rem; }
.bv-footer__col a { color: var(--bv-text); text-decoration: none; font-size: 0.9rem; }
.bv-footer__col a:hover { color: var(--bv-accent); }
.bv-footer__copy { text-align: center; margin: 0; padding-top: 1rem; border-top: 1px solid var(--bv-border); }

.bv-auth {
  max-width: 480px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem;
}
.bv-auth__back {
  display: inline-block; color: var(--bv-muted); text-decoration: none;
  font-size: 0.85rem; margin-bottom: 1.25rem;
}
.bv-auth__back:hover { color: var(--bv-text); }
.bv-auth__card {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: 12px; padding: 2rem 1.5rem; text-align: center;
}
.bv-auth__card--wide { max-width: 520px; margin-inline: auto; }
.bv-auth__logo { margin: 0 auto 1rem; border-radius: 12px; }
.bv-auth__card .bv-lead { margin-inline: auto; }
.bv-auth__card .bv-btn { margin-top: 0.65rem; }
.bv-auth__link {
  display: inline-block; margin-top: 1rem; color: var(--bv-muted);
  font-size: 0.9rem;
}
.bv-auth__link:hover { color: var(--bv-accent); }
.bv-auth__note {
  margin-top: 1.25rem; color: var(--bv-muted); font-size: 0.85rem;
}
.bv-auth__note a { color: var(--bv-accent); }
.bv-404-title {
  font-size: clamp(3rem, 12vw, 5rem); letter-spacing: 0.2em;
  font-family: var(--bv-mono); color: var(--bv-accent); margin: 0.5rem 0 0.25rem;
}

.bv-banner {
  border-radius: 8px; padding: 0.85rem 1rem; margin: 1rem 0; text-align: left; font-size: 0.92rem;
}
.bv-banner p { margin: 0; }
.bv-banner a { color: inherit; font-weight: 700; }
.bv-banner--ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); }
.bv-banner--err { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); }

.bv-pricing-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.bv-pricing-hero { margin-bottom: 1.5rem; }
.bv-pricing-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22ch; }
.bv-pricing-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border: 1px solid var(--bv-border);
  border-radius: 4px; /* carré, pas pill / pas rond */
  background: #0a0a0a;
  max-width: min(100%, 16rem);
  box-sizing: border-box;
}
.bv-pricing-user img {
  width: 34px;
  height: 34px;
  border-radius: 3px; /* avatar carré */
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  background: #111;
}
.bv-pricing-user > div {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.2;
}
.bv-pricing-user strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-pricing-user span {
  display: block;
  margin-top: 0.12rem;
  color: var(--bv-muted);
  font-size: 0.7rem;
  font-family: var(--bv-mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bv-shop-form { display: grid; gap: 1.5rem; }
.bv-shop-fields {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: 12px; padding: 1.5rem; display: grid; gap: 0.85rem;
}
.bv-shop-fields h2 { font-size: 1rem; font-family: var(--bv-mono); color: var(--bv-accent); margin: 0; }
.bv-shop-fields label {
  display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--bv-muted); text-align: left;
}
.bv-shop-fields input {
  background: var(--bv-bg); border: 1px solid var(--bv-border); border-radius: 8px;
  padding: 0.7rem 0.85rem; color: var(--bv-text); font: inherit;
}
.bv-shop-fields input:focus {
  outline: 2px solid rgba(200,241,53,0.45); outline-offset: 1px; border-color: var(--bv-accent);
}
.bv-incl { margin: 0; padding-left: 1.1rem; color: var(--bv-muted); font-size: 0.92rem; }
.bv-incl li { margin-bottom: 0.35rem; }

.bv-appbar {
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
  background: rgba(5,5,5,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bv-border);
}
.bv-appbar__inner {
  max-width: none; margin: 0; padding: 0.5rem 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.bv-appbar__nav {
  display: flex; flex-wrap: wrap; gap: 0.15rem; flex: 1; justify-content: center;
}
.bv-appbar__nav a {
  color: var(--bv-muted); text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 4px;
}
.bv-appbar__nav a:hover, .bv-appbar__nav a.is-active {
  color: var(--bv-on-accent); background: var(--bv-accent);
}
.bv-appbar__actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.bv-appbar__user {
  font-size: 0.8rem; color: var(--bv-muted); max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bv-appbar__admin {
  display: flex; flex-wrap: wrap; gap: 0.2rem;
  padding: 0.35rem 1rem 0.55rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #080808;
}
.bv-appbar__admin a {
  color: var(--bv-muted); text-decoration: none; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 3px;
}
.bv-appbar__admin a:hover { color: var(--bv-text); background: rgba(255,255,255,0.04); }
.bv-appbar__admin a.is-active {
  color: var(--bv-on-accent); background: var(--bv-accent);
}

.bv-app-main {
  max-width: 800px; margin: 0 auto; padding: 2rem 1.25rem 3rem;
}
.bv-panel-card {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  border-radius: 12px; padding: 1.75rem 1.5rem;
}
.bv-panel-card--wide { max-width: none; margin-inline: 0; width: 100%; }
.bv-status-grid {
  display: grid; gap: 0.75rem; margin: 1.25rem 0;
}
.bv-status-grid > div {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--bv-border); border-radius: 8px;
  background: var(--bv-bg);
}
.bv-status-grid span { font-size: 0.75rem; color: var(--bv-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.bv-panel .panel, .bv-panel .block {
  border-color: var(--bv-border) !important;
  background: var(--bv-surface) !important;
  border-radius: 10px !important;
}
.bv-panel .log-area { font-family: var(--bv-mono); }

@media (max-width: 900px) {
  .bv-nav__toggle, .bv-appbar .bv-nav__toggle { display: flex; }
  .bv-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .bv-nav__links, .bv-nav__actions { display: none; }
  body.bv-nav-open .bv-nav__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  body.bv-nav-open .bv-nav__links,
  body.bv-nav-open .bv-nav__actions {
    display: flex; flex-direction: column; align-items: stretch;
    position: static; width: 100%;
    grid-column: 1 / -1;
    background: var(--bv-bg-elevated); border-top: 1px solid var(--bv-border);
    padding: 0.75rem 0 0.35rem; gap: 0.35rem; margin: 0;
  }
  body.bv-nav-open .bv-nav__actions { padding-top: 0.35rem; padding-bottom: 0.75rem; border-top: 0; }
  .bv-appbar__nav, .bv-appbar__actions { display: none; }
  body.bv-app-nav-open .bv-appbar__inner { flex-wrap: wrap; }
  body.bv-app-nav-open .bv-appbar__nav,
  body.bv-app-nav-open .bv-appbar__actions,
  body.bv-app-nav-open .bv-appbar__admin {
    display: flex; flex-direction: column; align-items: stretch;
    position: static; width: 100%; order: 10;
    background: var(--bv-bg-elevated); border-top: 1px solid var(--bv-border);
    padding: 0.75rem 0; gap: 0.35rem; z-index: 60;
  }
  .bv-appbar__admin {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

.oauth-banner.is-ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); }
.oauth-banner.is-err { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.35); }
.btn-discord { background: var(--bv-discord); color: #fff; }


/* ── BoostVote parity: display hero + real panel shell ── */
.bv-logo-mark {
  display: inline-block; width: 8px; height: 18px; background: var(--bv-accent);
  margin-right: 2px; vertical-align: -2px;
}
.bv-btn--ghost { border-radius: 2px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.bv-btn--accent { border-radius: 2px; border-color: var(--bv-accent); }
.bv-btn--lg { font-size: 0.85rem; padding: 0.9rem 1.4rem; }
.bv-promo { border-radius: 0; }
.bv-price-card, .bv-auth__card, .bv-terminal, .bv-steps li, .bv-stats > div, .bv-faq details, .bv-cta-band, .bv-panel-card, .bv-shop-fields {
  border-radius: 4px !important;
}
.bv-price-card__badge { border-radius: 2px; }

.bv-display { font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; margin: 0 0 1.25rem; }
.bv-display__line { display: block; font-size: clamp(2.4rem, 7vw, 4.5rem); text-transform: uppercase; }
.bv-display__line--muted { color: #8a8a8a; }
.bv-display__hl {
  display: inline-block; background: var(--bv-accent); color: var(--bv-on-accent);
  padding: 0.08em 0.2em 0.02em; line-height: 1;
}
.bv-display--section .bv-display__line { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.bv-hero--stack { align-items: end; }
.bv-hero--stack .bv-lead--wide { max-width: 48ch; }

/* —— Shell marketing unifié (Accueil / Tarifs / Parrainage / légal) —— */
.bv-mkt {
  max-width: var(--bv-mkt-max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  width: 100%;
  box-sizing: border-box;
}
.bv-mkt > .bv-hero {
  max-width: none;
  margin: 0;
  padding-inline: 0;
  padding-top: var(--bv-mkt-hero-pad);
  padding-bottom: 2.5rem;
}
@media (min-width: 900px) {
  .bv-mkt > .bv-hero {
    padding-top: var(--bv-mkt-hero-pad-lg);
    padding-bottom: 3rem;
  }
}
.bv-mkt > .bv-section,
.bv-mkt > .bv-cta-band {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
/* Bleed sur la largeur du shell (pas de 100vw → pas d’overflow horizontal) */
.bv-mkt > .bv-ticker {
  width: calc(100% + 2.5rem);
  max-width: none;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  box-sizing: border-box;
}
.bv-mkt > .bv-section--aff { padding-bottom: 2rem; }

/* Accueil public — pitch abonnement sans noyer le scroll */
.bv-mkt.bv-home-public {
  padding-bottom: 2rem;
}
.bv-home-public__hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: var(--bv-mkt-hero-pad) 0 1.5rem;
}
@media (min-width: 900px) {
  .bv-home-public__hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    padding: var(--bv-mkt-hero-pad-lg) 0 1.75rem;
  }
}
.bv-home-public__copy .bv-display { margin-bottom: 0.85rem; }
.bv-home-public__copy .bv-display__line {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}
.bv-home-public__copy .bv-lead {
  margin-bottom: 1.1rem;
  max-width: 44ch;
}
.bv-home-public__copy .bv-hero__cta { margin-bottom: 0.65rem; }
.bv-home-public__copy .bv-hero__note { margin: 0; }
.bv-home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(200, 241, 53, 0.18);
}
.bv-home-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 9rem;
}
.bv-home-stats__item strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--bv-accent, #c8f135);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.bv-home-stats__item span {
  color: var(--bv-muted, #9aa0a6);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 18ch;
  line-height: 1.35;
}
.bv-home-public .bv-terminal { margin: 0; }
.bv-home-public__lead {
  max-width: 52ch;
  margin: 0 0 1.35rem;
  color: var(--bv-muted);
  font-size: 1rem;
  line-height: 1.45;
}
.bv-home-public__pitch {
  padding-top: 0.5rem;
  padding-bottom: 1.75rem;
}
.bv-home-public__pitch .bv-display--section { margin-bottom: 0.65rem; }
.bv-home-public__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem 1.5rem;
}
@media (min-width: 700px) {
  .bv-home-public__benefits {
    grid-template-columns: 1fr 1fr;
  }
}
.bv-home-public__benefits li {
  margin: 0;
  padding: 0 0 0 1.15rem;
  position: relative;
  border: 0;
  background: none;
}
.bv-home-public__benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--bv-accent);
  font-size: 0.75rem;
  font-weight: 700;
}
.bv-home-public__benefits strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.bv-home-public__benefits span {
  display: block;
  color: var(--bv-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.bv-home-public .bv-section--tight {
  padding-top: 0.5rem;
  padding-bottom: 1.75rem;
}
.bv-home-public .bv-section--tight .bv-display--section {
  margin-bottom: 1.1rem;
}
.bv-home-public__steps {
  margin: 0;
}
.bv-home-public__steps li {
  padding: 1.1rem 1rem;
  transition: border-color 0.15s var(--bv-ease), transform 0.15s var(--bv-ease);
}
.bv-home-public__steps li:hover {
  border-color: rgba(200, 241, 53, 0.4);
  transform: translateY(-2px);
}
.bv-home-public__steps h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.bv-home-public__steps p {
  font-size: 0.85rem;
  line-height: 1.35;
}
.bv-home-public__steps .bv-steps__num {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
}
.bv-home-public__packs {
  padding-top: 0.35rem;
  padding-bottom: 1.5rem;
}
.bv-home-public__packs .bv-display--section { margin-bottom: 0.65rem; }
.bv-home-public__pack-row {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
}
@media (min-width: 700px) {
  .bv-home-public__pack-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-width: 720px;
  }
}
.bv-home-public__pack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--bv-border);
  background: var(--bv-surface);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s var(--bv-ease), transform 0.15s var(--bv-ease);
  min-width: 0;
}
.bv-home-public__pack:hover {
  border-color: rgba(200, 241, 53, 0.45);
  transform: translateY(-2px);
}
.bv-home-public__pack.is-popular {
  border-color: rgba(200, 241, 53, 0.55);
}
.bv-home-public__pack-tier {
  font-family: var(--bv-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--bv-muted);
}
.bv-home-public__pack-price {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--bv-text);
}
.bv-home-public__pack-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bv-muted);
  margin-left: 0.15rem;
}
.bv-home-public__pack-blurb {
  font-size: 0.82rem;
  color: var(--bv-muted);
  line-height: 1.35;
}
.bv-home-public__note {
  margin-top: 1.25rem;
  text-align: center;
}
.bv-home-public__note a { color: var(--bv-accent); }
.bv-home-public > .bv-cta-band {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.bv-home-public__aff {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}
.bv-home-public__aff .bv-kicker { margin-bottom: 0.5rem; }
.bv-home-public__aff .bv-home-public__note { margin-top: 0; }
.bv-mkt .bv-section--faq {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.bv-mkt .bv-section--faq h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 1rem;
}

/* Page Tarifs publique */
.bv-pricing-public {
  /* hérite de .bv-mkt */
}
.bv-pricing-public__hero {
  padding: var(--bv-mkt-hero-pad) 0 1.25rem;
  max-width: 42rem;
}
@media (min-width: 900px) {
  .bv-pricing-public__hero { padding-top: var(--bv-mkt-hero-pad-lg); }
}
.bv-pricing-public__hero .bv-display {
  margin-bottom: 0.85rem;
}
.bv-pricing-public__hero .bv-display__line {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}
.bv-pricing-public__hero .bv-lead {
  margin-bottom: 0;
  max-width: 48ch;
}
.bv-pricing-public .bv-section--tight {
  padding-top: 1rem;
  padding-bottom: 1.75rem;
}
.bv-pricing-public .bv-pricing {
  max-width: none;
}
.bv-pricing-public .bv-price-card {
  min-height: 100%;
  transition: border-color 0.15s var(--bv-ease), transform 0.15s var(--bv-ease), box-shadow 0.15s var(--bv-ease);
}
.bv-pricing-public .bv-price-card:hover {
  border-color: rgba(200,241,53,0.45);
  transform: translateY(-2px);
}
.bv-pricing-public .bv-price-card.is-popular:hover,
.bv-pricing-public .bv-price-card.is-vip:hover {
  border-color: var(--bv-accent);
}
.bv-pricing-public__note {
  margin-top: 1.25rem;
  text-align: center;
}
.bv-pricing-public__split {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
@media (min-width: 900px) {
  .bv-pricing-public__split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}
.bv-pricing-public__col {
  min-width: 0;
}
.bv-pricing-public__col .bv-display--section {
  margin-bottom: 1rem;
}
.bv-pricing-public__col .bv-display__line {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}
.bv-pricing-public__col > h2:not(.bv-display) {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.bv-incl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.bv-incl-grid li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--bv-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.bv-incl-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bv-accent);
  font-size: 0.75rem;
}
.bv-how {
  display: grid;
  gap: 0.85rem;
}
.bv-how article {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.bv-how h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bv-how p {
  margin: 0;
  color: var(--bv-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.bv-price-card__tier {
  margin: 0; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bv-accent); font-family: var(--bv-mono);
}

.bv-auth-top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 1.25rem 1.25rem 0;
}
.bv-auth-top__home {
  color: var(--bv-muted); text-decoration: none; font-family: var(--bv-mono); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bv-auth-top__home:hover { color: var(--bv-text); }
.bv-page--auth { background:
  radial-gradient(ellipse 50% 40% at 15% 0%, rgba(200,241,53,0.12), transparent 55%),
  radial-gradient(ellipse 45% 35% at 90% 5%, rgba(200,241,53,0.08), transparent 50%),
  linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
  var(--bv-bg);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
}
.bv-auth__title { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; text-align: left; margin: 0 0 1.25rem; line-height: 1.15; }
.bv-auth__card { text-align: left; }
.bv-auth__card .bv-btn--block { text-align: center; }

/* Real panel shell — sidebar gauche + contenu */
.bv-panel-shell,
.bv-panel-shell--admin {
  display: grid;
  /* Largeur fixe identique client / admin — ne doit pas bouger */
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bv-bg);
  overflow: hidden;
}
.bv-panel-side {
  display: flex; flex-direction: column; gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-right: 1px solid var(--bv-border); background: #080808;
  padding: 0.65rem 0.55rem 0.55rem; position: sticky; top: 0; height: 100dvh;
  max-height: 100dvh; overflow: hidden; /* tout doit rentrer — pas de scroll */
  min-height: 0;
}
.bv-panel-side__brand {
  display: flex; align-items: center; gap: 0.28rem;
  color: var(--bv-accent); text-decoration: none; font-weight: 700; font-size: 0.88rem;
  padding: 0.1rem 0.3rem 0.25rem; line-height: 1; min-height: 0; flex-shrink: 0;
  letter-spacing: -0.01em;
  text-shadow: none; filter: none; transform: none; animation: none;
}
.bv-panel-side__brand .bv-brand-mark { margin-right: 0; }
.bv-panel-side__brand img.bv-brand-mark {
  width: 26px !important; height: 26px !important;
  border-radius: 0 !important; background: transparent !important;
}
.bv-panel-side__brand-text {
  display: inline-flex; align-items: baseline; line-height: 1;
  letter-spacing: -0.01em; white-space: nowrap;
  color: var(--bv-accent);
  padding-bottom: 0;
  transform: none;
  text-shadow: none;
}
.bv-panel-side__brand-text .bv-nav__brand-accent {
  color: var(--bv-text);
}
.bv-panel-side__kicker {
  margin: 0.4rem 0.45rem 0.25rem;
  font-family: var(--bv-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--bv-accent);
  flex-shrink: 0;
  line-height: 1.25;
  font-weight: 700;
}
.bv-panel-side__section {
  margin: 0.35rem 0 0.1rem;
  padding: 0 0.45rem;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bv-accent);
  font-family: var(--bv-mono, monospace);
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1.25;
}
.bv-panel-side__nav {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  justify-content: stretch;
}
.bv-panel-side__nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--bv-text);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 0.55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  opacity: 0.88;
  /* Remplit jusqu’à Déconnexion (PC + téléphone) */
  flex: 1 1 0;
  min-height: 1.7rem;
  line-height: 1.15;
  white-space: nowrap;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 1.7rem;
}
@media (max-width: 960px) {
  .bv-panel-side__nav {
    flex: 1 1 auto !important;
    justify-content: stretch !important;
    min-height: 0;
    overflow-y: auto;
  }
  .bv-panel-side__nav a {
    flex: 1 1 0 !important;
    min-height: 2.1rem;
    font-size: 0.72rem;
    background-size: 100% 1.9rem;
  }
  .bv-panel-side__foot {
    margin-top: 0; /* collé sous la liste étirée */
    flex-shrink: 0;
  }
}
.bv-panel-side__nav a .bv-panel-side__ico {
  opacity: 1;
  color: inherit;
}
.bv-panel-side__nav a:hover {
  color: var(--bv-text);
  opacity: 1;
  background-color: transparent;
  background-image: linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06));
}
.bv-panel-side__nav a.is-active {
  color: var(--bv-on-accent);
  opacity: 1;
  border-color: transparent;
  background-color: transparent;
  background-image: linear-gradient(var(--bv-accent), var(--bv-accent));
}
.bv-panel-side__nav a.is-active .bv-panel-side__ico {
  opacity: 1; color: inherit;
}
.bv-panel-side__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.95rem; height: 0.95rem; flex-shrink: 0; opacity: 1; color: inherit;
}
.bv-panel-side__ico svg { width: 100%; height: 100%; display: block; }
.bv-panel-side__foot {
  border-top: 1px solid var(--bv-border);
  padding-top: 0.55rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
}
.bv-panel-side__user {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.1rem 0.35rem; margin: 0;
}
.bv-panel-side__user img {
  border-radius: 3px; width: 28px; height: 28px; object-fit: cover; flex-shrink: 0;
}
.bv-panel-side__user strong {
  font-size: 0.82rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bv-panel-side__logout-form { margin: 0; width: 100%; }
.bv-panel-side__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: #141414;
  color: #f87171;
  text-decoration: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s var(--bv-ease), border-color 0.15s var(--bv-ease), color 0.15s var(--bv-ease);
}
.bv-panel-side__logout:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}
.bv-panel-side__logout:focus-visible {
  outline: 2px solid rgba(248, 113, 113, 0.55);
  outline-offset: 2px;
}
/* legacy (si présent ailleurs) */
.bv-panel-side__links { display: none; }

/* Écrans bas : compact mais titres encore lisibles */
@media (max-height: 820px) {
  .bv-panel-side { padding: 0.45rem 0.4rem 0.4rem; gap: 0.1rem; }
  .bv-panel-side__nav { gap: 0.04rem; }
  .bv-panel-side__nav a {
    padding: 0 0.4rem; font-size: 0.64rem; min-height: 1.35rem;
    background-size: 100% 1.4rem;
  }
  .bv-panel-side__kicker { margin: 0.25rem 0.35rem 0.15rem; font-size: 0.8rem; }
  .bv-panel-side__section { margin: 0.25rem 0 0.08rem; font-size: 0.76rem; }
  .bv-panel-side__brand { font-size: 0.82rem; padding-bottom: 0.1rem; }
  .bv-panel-side__brand img.bv-brand-mark { width: 22px !important; height: 22px !important; border-radius: 0 !important; }
  .bv-panel-side__foot { padding-top: 0.4rem; gap: 0.35rem; }
  .bv-panel-side__logout { padding: 0.45rem 0.65rem; font-size: 0.72rem; }
  .bv-panel-side__user strong { font-size: 0.76rem; }
  .bv-panel-side__user img { width: 24px; height: 24px; }
}

.bv-panel-main {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  height: 100%; max-height: 100%; overflow: hidden;
}
.bv-panel-top {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--bv-border);
  background: rgba(5,5,5,0.92); position: sticky; top: 0; z-index: 90;
  flex-shrink: 0;
  overflow: visible;
}
.bv-panel-top__title { flex: 1; min-width: 0; }
.bv-panel-top__title .bv-kicker { margin: 0; display: block; }
.bv-panel-top__title strong { font-size: 1.05rem; }
.bv-panel-top__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
  z-index: 91;
}
.bv-panel-top__lang {
  position: relative;
  z-index: 92;
  overflow: visible;
}
/* Panel lang menu is position:fixed via JS — keep absolute fallback for safety */
.bv-panel-top__lang .bv-lang__menu {
  right: 0;
  left: auto;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  z-index: 10050;
}
.bv-panel-menu {
  display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer;
}
.bv-panel-menu span { display: block; width: 18px; height: 2px; background: var(--bv-text); }
.bv-panel-content {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.bv-panel-content > .bv-panel-card {
  margin: 1.25rem;
  max-width: none;
  width: calc(100% - 2.5rem);
}
.bv-panel-card--wide {
  max-width: none !important;
  width: calc(100% - 2.5rem);
}
.bv-panel--embedded.shell-live {
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding: 6px 10px 6px !important;
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Panel app : 1 seul scroll (contenu), jamais body + enfant */
html:has(body.bv-page--app),
body.bv-page--app {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
}
body.bv-page--app .bv-panel-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.bv-page--app .bv-panel-main {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.bv-page--app:not(.bv-page--live) .bv-panel-content {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.bv-page--live {
  overflow: hidden;
}
body.bv-page--live .bv-panel-shell {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.bv-page--live .bv-panel-main {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.bv-page--live .bv-panel-content,
body.bv-page--live .bv-panel-content--live {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.bv-page--live .bv-panel-content > .bv-panel--embedded.shell-live {
  flex: 1 1 auto;
  min-height: 0;
  height: 100% !important;
  max-height: 100% !important;
}
/* Live desktop : bas Rafale = bas Course (override final — grille shell) */
@media (min-width: 1100px) {
  body.bv-page--live .shell-live.bv-panel--embedded,
  body.bv-page--live .bv-panel-content > .shell-live {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding: 4px 10px 4px !important;
    gap: 4px !important;
    overflow: hidden !important;
  }
  body.bv-page--live .shell-live > .hero.hero-compact {
    grid-row: 1 !important;
  }
  body.bv-page--live .shell-live > .layout.board {
    grid-row: 2 !important;
    display: grid !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    align-items: stretch !important;
    align-content: stretch !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr) !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  body.bv-page--live .shell-live .main-panel,
  body.bv-page--live .shell-live .right-col {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
  }
  body.bv-page--live .shell-live .main-panel {
    display: flex !important;
    flex-direction: column !important;
  }
  body.bv-page--live .shell-live .right-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  body.bv-page--live .shell-live .log-area {
    flex: 1 1 0 !important;
    min-height: 0 !important;
  }
  body.bv-page--live .shell-live .log-pagination {
    flex: 0 0 auto !important;
    margin-top: auto;
  }
  body.bv-page--live .shell-live .block-mission {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  body.bv-page--live .shell-live .vote-footer {
    display: none !important;
  }
}
body.bv-page--live .shell-live .log-area {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Live étroit : scroll page (colonnes empilées) — Course visible au-dessus du journal */
@media (max-width: 1099px) {
  html:has(body.bv-page--live),
  html:has(body.bv-page--live.bv-page--app),
  body.bv-page--live,
  body.bv-page--live.bv-page--app {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: auto !important;
  }
  body.bv-page--live .bv-panel-shell {
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh;
    overflow: visible !important;
    grid-template-rows: auto;
  }
  body.bv-page--live .bv-panel-main,
  body.bv-page--live .bv-panel-content,
  body.bv-page--live .bv-panel-content--live {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
  }
  body.bv-page--live .bv-panel-content > .bv-panel--embedded.shell-live,
  body.bv-page--live .bv-panel--embedded.shell-live {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: none !important;
    overflow: visible !important;
  }
  body.bv-page--live .shell-live .right-col,
  body.bv-page--live .shell-live .block-mission,
  body.bv-page--live .shell-live .mission-scroll,
  body.bv-page--live .shell-live .mission-section {
    flex: 0 0 auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  body.bv-page--live .shell-live .mission-section .race-list {
    min-height: 10rem;
    max-height: min(42dvh, 22rem);
  }
}

.bv-panel-scrim {
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  appearance: none;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
@media (max-width: 960px) {
  .bv-panel-shell { grid-template-columns: 1fr; }
  .bv-panel-side {
    position: fixed; inset: 0 auto 0 0;
    /* Même largeur drawer client / admin */
    width: min(240px, 88vw); z-index: 80;
    transform: translateX(-105%); transition: transform 0.2s var(--bv-ease);
    height: 100dvh; max-height: 100dvh;
  }
  .bv-panel-shell--admin .bv-panel-side {
    width: min(240px, 88vw);
  }
  .bv-panel-shell.is-side-open .bv-panel-side { transform: translateX(0); box-shadow: 12px 0 40px rgba(0,0,0,0.5); }
  .bv-panel-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--bv-ease);
  }
  .bv-panel-shell.is-side-open .bv-panel-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  body.bv-panel-drawer-open { overflow: hidden; }
  .bv-panel-menu { display: flex; }
  .bv-panel--embedded.shell-live {
    height: 100% !important;
    max-height: 100% !important;
    padding: 8px 10px 10px !important;
  }
  body.bv-page--live .bv-panel--embedded.shell-live {
    height: auto !important;
    max-height: none !important;
  }
}

.bv-price-card__list {
  list-style: none; margin: 0.35rem 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0.35rem; flex: 1;
}
.bv-price-card__list li {
  position: relative; padding-left: 1rem;
  color: var(--bv-muted); font-size: 0.85rem; line-height: 1.35;
}
.bv-price-card__list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--bv-accent); font-size: 0.75rem;
}
/* —— Panel boutique —— */
/* Pas de scroll interne : le scroll vient uniquement de .bv-panel-content */
.bv-pricing-page--panel,
.bv-shop-panel {
  max-width: none; margin: 0; padding: 1.15rem 1.35rem 2.75rem;
  overflow: visible; height: auto; width: 100%; box-sizing: border-box;
  flex: 0 0 auto;
}
.bv-shop-panel__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem; margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--bv-border);
}
.bv-shop-panel__intro { min-width: 0; flex: 1 1 16rem; }
.bv-shop-panel__title {
  margin: 0.15rem 0 0.35rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.bv-shop-panel__lead { margin: 0; color: var(--bv-muted); font-size: 0.92rem; max-width: 42ch; }
.bv-shop-panel__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  flex: 0 1 auto;
}
.bv-shop-panel .bv-pricing-user {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.02);
}
.bv-shop-panel__packs { margin: 0 0 1.35rem; }
.bv-shop-active {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 1.5rem;
}
@media (min-width: 900px) {
  .bv-shop-active {
    grid-template-columns: minmax(0, 1.6fr) minmax(14rem, 0.9fr);
    align-items: start;
    gap: 1.25rem;
  }
}
.bv-shop-active__card,
.bv-shop-active__aside {
  border: 1px solid var(--bv-border);
  background: var(--bv-surface);
  border-radius: 4px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-sizing: border-box;
}
.bv-shop-active__card .bv-kicker,
.bv-shop-active__aside .bv-kicker { margin: 0 0 0.3rem; }
.bv-shop-active__card .bv-shop-panel__title { margin: 0 0 0.45rem; }
.bv-shop-active__card .bv-shop-panel__lead { margin: 0 0 1.75rem; max-width: 48ch; }
/* 4 stats collées en un seul bloc, descendu sous le texte */
.bv-shop-active__card .bv-status-grid--abo {
  margin: 0.25rem 0 1.5rem;
  gap: 0;
  border: 1px solid var(--bv-border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}
.bv-shop-active__card .bv-status-grid--abo > div {
  min-height: 4.75rem;
  justify-content: center;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--bv-border);
  background: transparent;
  box-sizing: border-box;
}
.bv-shop-active__card .bv-status-grid--abo > div:last-child {
  border-right: 0;
}
@media (max-width: 719px) {
  .bv-shop-active__card .bv-status-grid--abo > div {
    border-right: 1px solid var(--bv-border);
    border-bottom: 1px solid var(--bv-border);
  }
  .bv-shop-active__card .bv-status-grid--abo > div:nth-child(2n) {
    border-right: 0;
  }
  .bv-shop-active__card .bv-status-grid--abo > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
.bv-shop-active__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}
@media (min-width: 720px) {
  .bv-shop-active__actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.bv-shop-active__actions form { margin: 0; display: flex; }
.bv-shop-active__actions .bv-btn,
.bv-shop-active__actions form .bv-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}
.bv-shop-active__aside h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}
.bv-shop-active__packs {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.bv-shop-active__packs li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--bv-border);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.85rem;
}
.bv-shop-active__packs strong {
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.bv-shop-active__packs span { color: var(--bv-muted); }
.bv-abo-cancel { margin-top: 0.35rem; }
.bv-shop-panel > .bv-shop-fields + .bv-shop-fields,
.bv-shop-panel > .bv-banner + .bv-shop-fields {
  margin-top: 1rem;
}
.bv-shop-panel__table-block .vote-table-wrap {
  margin: 0;
  border: 1px solid var(--bv-border);
  border-radius: 4px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.22);
}
.bv-shop-panel__table-block .vote-table {
  width: 100%;
  margin: 0;
}
.bv-hist-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}
.bv-hist-filters__search {
  flex: 1 1 12rem;
  min-width: 0;
}
.bv-hist-filters input[type="search"] {
  width: 100%;
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--bv-border, rgba(255,255,255,0.12));
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #f2f2f2;
  font: inherit;
}
.bv-hist-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.bv-hist-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--bv-border, rgba(255,255,255,0.14));
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bv-hist-chip:hover {
  border-color: rgba(200, 241, 53, 0.45);
  color: #fff;
}
.bv-hist-chip.is-active {
  background: var(--bv-accent, #c8f135);
  border-color: var(--bv-accent, #c8f135);
  color: #050505;
}
.bv-hist-next strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.bv-hist-next strong.is-ready {
  color: var(--bv-accent, #c8f135);
}
.bv-hist-next strong.is-pause {
  opacity: 0.72;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bv-shop-panel .bv-status-grid--abo {
  margin: 0;
}
.bv-shop-panel .bv-shop-panel__stat-wide {
  grid-column: 1 / -1;
}
@media (min-width: 720px) {
  .bv-shop-panel .bv-shop-panel__stat-wide {
    grid-column: span 2;
  }
}
.bv-shop-panel .bv-break {
  word-break: break-all;
  overflow-wrap: anywhere;
}
.bv-fact-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  border: 1px solid var(--bv-border);
  color: var(--bv-muted);
}
.bv-fact-type--purchase {
  color: var(--bv-on-accent);
  background: var(--bv-accent);
  border-color: var(--bv-accent);
}
.bv-fact-type--renewal {
  color: var(--bv-accent);
  background: rgba(200, 241, 53, 0.08);
  border-color: rgba(200, 241, 53, 0.35);
}
.bv-fact-type--cancel {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.35);
}
.bv-merci-panel {
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 36rem);
}
.bv-merci-card {
  border: 1px solid var(--bv-border);
  background: var(--bv-surface);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
  max-width: 40rem;
}
.bv-merci-card .bv-kicker { margin: 0 0 0.35rem; }
.bv-merci-card .bv-shop-panel__title { margin: 0 0 0.65rem; }
.bv-merci-card .bv-shop-panel__lead { margin: 0 0 1.35rem; max-width: 48ch; }
.bv-merci-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.bv-pricing--panel {
  max-width: none !important;
  margin-inline: 0 !important;
  width: 100%;
}
.bv-price-card.is-vip {
  /* Badge « 700 votes » suffit — pas de 2e carré vert (réservé à .is-popular) */
  border-color: var(--bv-border);
  background: linear-gradient(180deg, rgba(200,241,53,0.04), transparent 55%);
}
.bv-price-card.is-popular.is-vip {
  border-color: var(--bv-accent);
}
.bv-shop-form--stack {
  display: flex; flex-direction: column; gap: 1.35rem;
  max-width: none;
}
.bv-shop-form--stack .bv-pricing {
  grid-column: auto;
}
.bv-shop-fields {
  border: 1px solid var(--bv-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--bv-surface);
  border-radius: 4px; padding: 1.35rem 1.25rem 1.4rem;
  display: grid; gap: 0.95rem;
}
.bv-shop-fields__head .bv-kicker { margin: 0 0 0.2rem; }
.bv-shop-fields__head h2 {
  margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--bv-text);
  font-family: inherit; letter-spacing: -0.01em;
}
.bv-shop-fields__hint { margin: 0.35rem 0 0; color: var(--bv-muted); font-size: 0.85rem; }
.bv-shop-fields__grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bv-shop-fields__grid { grid-template-columns: 1fr 1fr; }
  .bv-shop-fields__span { grid-column: 1 / -1; }
}
.bv-shop-fields label {
  display: grid; gap: 0.35rem; font-size: 0.8rem; color: var(--bv-muted); text-align: left;
}
.bv-shop-fields input {
  background: var(--bv-bg); border: 1px solid var(--bv-border); border-radius: 4px;
  padding: 0.72rem 0.85rem; color: var(--bv-text); font: inherit;
}
.bv-shop-fields input:focus {
  outline: 2px solid rgba(200,241,53,0.4); outline-offset: 1px; border-color: var(--bv-accent);
}
.bv-price-card--selectable {
  transition: border-color 0.15s var(--bv-ease), box-shadow 0.15s var(--bv-ease), transform 0.15s var(--bv-ease);
}
.bv-price-card--selectable:hover {
  border-color: rgba(200,241,53,0.55);
}
.bv-price-card--selectable:has(input:checked) {
  border-color: var(--bv-accent);
  box-shadow: none;
  background: linear-gradient(180deg, rgba(200,241,53,0.06), transparent 50%);
}

/* —— Portail abo panel —— */
.bv-panel-content > .bv-abo-portal {
  margin: 1.15rem 1.25rem 2rem;
  max-width: none;
  width: calc(100% - 2.5rem);
  box-sizing: border-box;
  border: 1px solid var(--bv-border);
  background: var(--bv-surface);
  border-radius: 4px;
  padding: 1.35rem 1.35rem 1.5rem;
  overflow: visible;
  height: auto;
  flex: 0 0 auto;
}
.bv-abo-portal__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 0.85rem 1.25rem; margin-bottom: 1.15rem;
}
.bv-abo-portal__title {
  margin: 0.15rem 0 0.35rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.bv-abo-portal__lead { margin: 0; color: var(--bv-muted); font-size: 0.92rem; max-width: 48ch; }
.bv-status-grid--abo {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1.35rem;
}
@media (min-width: 720px) {
  .bv-status-grid--abo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.bv-status-grid--abo > div {
  min-height: 4.5rem;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--bv-border);
  background: rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.bv-status-grid--abo strong {
  font-size: 0.98rem; word-break: break-word; line-height: 1.3;
}
.bv-mono-soft {
  font-family: var(--bv-mono); font-size: 0.82rem; font-weight: 500;
  color: var(--bv-muted);
}
.bv-text-accent { color: var(--bv-accent); }
.bv-abo-actions {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin: 0 0 0.75rem; max-width: 520px;
}
.bv-abo-actions .bv-incl { margin-top: 0.15rem; }
.bv-abo-cible {
  margin: 0 0 1.35rem;
}
.bv-abo-cible .bv-btn { justify-self: start; margin-top: 0.25rem; }


/* Parrainage — panel */
.bv-ref--panel {
  max-width: none; margin: 0; padding: 1.25rem 1.35rem 2.5rem;
  overflow: visible; height: auto; width: 100%;
  flex: 0 0 auto;
}
.bv-ref--panel .bv-ref-hero { padding: 0.5rem 0 1.25rem; max-width: 720px; }
.bv-ref--panel .bv-ref-link { max-width: none; width: 100%; }
.bv-ref-filleuls { margin-top: 1.5rem; width: 100%; }
.bv-ref-filleuls .vote-table { width: 100%; }
.bv-ref-hero {
  padding: var(--bv-mkt-hero-pad) 0 2rem; text-align: left;
  max-width: 42rem;
}
.bv-ref-hero .bv-display__line {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
}
.bv-ref-hero .bv-btn { margin-top: 0.35rem; }
.bv-ref-bonus {
  border: 1px solid var(--bv-accent); background: rgba(200,241,53,0.04);
  padding: 1.5rem 1.35rem; margin: 1rem 0 2rem; border-radius: 4px;
}
.bv-ref-bonus .bv-lead { margin-bottom: 0; max-width: 52ch; }
.bv-ref-link {
  border: 1px solid var(--bv-border); background: var(--bv-surface);
  padding: 1.5rem; margin: 1rem 0 2rem; border-radius: 4px; max-width: 640px;
}
.bv-ref-link h2 { margin: 0 0 1rem; font-size: 1.25rem; }
@media (min-width: 900px) {
  .bv-ref-hero { padding-top: var(--bv-mkt-hero-pad-lg); }
}

/* Parrainage public — compact (hero + CTA côte à côte) */
.bv-mkt.bv-ref-public {
  padding-bottom: 1.75rem;
}
.bv-ref-public__top {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding: var(--bv-mkt-hero-pad) 0 1.25rem;
}
@media (min-width: 900px) {
  .bv-ref-public__top {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    padding: var(--bv-mkt-hero-pad-lg) 0 1.25rem;
    align-items: center;
  }
}
.bv-ref-public__copy .bv-display { margin-bottom: 0.65rem; }
.bv-ref-public__copy .bv-display__line {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}
.bv-ref-public__copy .bv-lead {
  margin: 0 0 1rem;
  max-width: 40ch;
  font-size: 1rem;
}
.bv-ref-public__inline-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.bv-ref-public__inline-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--bv-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.bv-ref-public__inline-steps span {
  font-family: var(--bv-mono);
  color: var(--bv-accent);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.bv-ref-link--public {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.15rem;
}
.bv-ref-link--cta {
  border-color: rgba(200, 241, 53, 0.45);
  background: rgba(200, 241, 53, 0.04);
}
.bv-ref-link--cta .bv-lead {
  margin: 0.35rem 0 1rem;
  max-width: none;
  font-size: 0.92rem;
}
.bv-ref-public__reward {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.bv-ref-public__reward strong { color: var(--bv-accent); }
.bv-ref-public__note {
  margin: 0.75rem 0 0;
  text-align: left;
}
.bv-ref-public__note a { color: var(--bv-accent); }
.bv-ref-public .bv-section--faq {
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.bv-ref-public .bv-section--faq h2 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}
.bv-ref-public .bv-faq {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 900px) {
  .bv-ref-public .bv-faq {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
  }
}
.bv-ref-public .bv-faq details {
  padding: 0.55rem 0.8rem;
  margin: 0;
}

/* Streameurs public */
.bv-mkt.bv-stream-public { padding-bottom: 1.75rem; }
.bv-stream-public__top {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding: var(--bv-mkt-hero-pad) 0 1.25rem;
}
@media (min-width: 900px) {
  .bv-stream-public__top {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    padding: var(--bv-mkt-hero-pad-lg) 0 1.25rem;
    align-items: center;
  }
}
.bv-stream-public__copy .bv-display { margin-bottom: 0.65rem; }
.bv-stream-public__copy .bv-display__line {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}
.bv-stream-public__copy .bv-lead {
  margin: 0 0 1rem;
  max-width: 42ch;
  font-size: 1rem;
}
.bv-stream-public__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.bv-stream-public__perks li {
  color: var(--bv-muted);
  font-size: 0.9rem;
  padding-left: 0;
}
.bv-stream-public__perks span {
  color: var(--bv-accent);
  font-family: var(--bv-mono);
  font-size: 0.78rem;
  font-weight: 600;
  margin-right: 0.35rem;
}
.bv-stream-public__card { margin: 0; }
.bv-stream-public__reward {
  margin: 0;
  font-size: 1.02rem;
}
.bv-stream-public__reward strong { color: var(--bv-accent); }
.bv-stream-public__note {
  margin: 0.75rem 0 0;
}
.bv-stream-public__note a { color: var(--bv-accent); }
.bv-stream-public__form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.bv-stream-public__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--bv-muted);
  text-align: left;
}
.bv-stream-public__form input,
.bv-stream-public__form textarea {
  background: var(--bv-bg);
  border: 1px solid var(--bv-border);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  color: var(--bv-text);
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.bv-stream-public__form input:focus,
.bv-stream-public__form textarea:focus {
  outline: 2px solid rgba(200, 241, 53, 0.35);
  border-color: var(--bv-accent);
}
.bv-stream-public__form textarea { resize: vertical; min-height: 3.5rem; }
.bv-stream-public__earn { padding-top: 0.5rem; padding-bottom: 1rem; }
.bv-stream-public__earn-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .bv-stream-public__earn-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.bv-stream-public__earn-grid h2 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
}
.bv-stream-public__earn-grid p {
  margin: 0 0 0.45rem;
  color: var(--bv-muted);
  font-size: 0.92rem;
}
.bv-stream-public .bv-section--faq {
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}
.bv-stream-public .bv-faq {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 900px) {
  .bv-stream-public .bv-faq { grid-template-columns: 1fr 1fr; }
}
.bv-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  font-size: 0.88rem;
}
.bv-ref--panel .bv-stream-public__form { max-width: 420px; }

/* Pages légales */
.bv-mkt.bv-legal {
  padding-top: var(--bv-mkt-hero-pad);
  padding-bottom: 3.5rem;
}
@media (min-width: 900px) {
  .bv-mkt.bv-legal { padding-top: var(--bv-mkt-hero-pad-lg); }
}
.bv-legal__block {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bv-border);
  max-width: 52rem;
}
.bv-legal__block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.bv-legal__block p {
  color: var(--bv-muted);
  margin: 0 0 0.65rem;
  max-width: 58ch;
}
.bv-legal__block ul {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.2rem;
  color: var(--bv-muted);
  max-width: 58ch;
  line-height: 1.6;
}
.bv-legal__block li { margin: 0.35rem 0; }
.bv-legal__block code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
  background: #161616;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: #c8f135;
}
.bv-legal__block a { color: var(--bv-accent); }


/* Panel banner (VIP on public landing) */
.bv-panel-banner {
  background: rgba(200,241,53,0.12);
  border-bottom: 1px solid rgba(200,241,53,0.35);
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}
.bv-panel-banner a { color: var(--bv-accent); font-weight: 700; }

/* Brand mark — G lime géométrique, fond transparent (ni carré ni rond) */
.bv-brand-mark {
  display: block !important;
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center;
  border-radius: 0 !important;
  flex-shrink: 0;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box;
  overflow: visible;
  /* Keep the G crisp — no blur/filter that reads as shatter */
  filter: none !important;
  transform: none !important;
  image-rendering: auto;
}
.bv-brand-mark--sm { width: 22px; height: 22px; }
.bv-nav__brand img.bv-brand-mark,
.bv-panel-side__brand img.bv-brand-mark,
.bv-appbar__brand img.bv-brand-mark,
.bv-footer img.bv-brand-mark {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.bv-panel-side__brand img.bv-brand-mark {
  width: 26px !important;
  height: 26px !important;
}
.bv-nav__brand img { border-radius: 0 !important; }
.bv-logo-mark { display: none; }

/* Compact site-wide pager (live style) */
.bv-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem 0 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bv-border, #222);
  background: rgba(0,0,0,0.28);
  border-radius: 4px;
}
.bv-pager__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 0.45rem;
  border: 1px solid var(--bv-border, #222); border-radius: 4px;
  color: var(--bv-text); text-decoration: none; font-size: 0.9rem;
  background: rgba(255,255,255,0.03);
}
.bv-pager__btn:hover:not(.is-disabled) {
  border-color: var(--bv-accent); color: var(--bv-accent);
}
.bv-pager__btn.is-disabled {
  opacity: 0.35; pointer-events: none; cursor: default;
}
.bv-pager__status {
  font-family: var(--bv-mono, "JetBrains Mono", monospace);
  font-size: 0.75rem; color: var(--bv-text); min-width: 3.5rem; text-align: center;
}
.bv-pager__meta {
  font-size: 0.72rem; color: var(--bv-muted); margin-left: 0.35rem;
}

/* Compact log pager — single row */
.shell-live .log-pagination {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 8px 10px 10px;
  flex-shrink: 0;
  min-height: 40px;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--bv-border, #222);
  background: rgba(0,0,0,0.25);
}
.shell-live .log-pagination .page-btn {
  min-width: 28px !important;
  width: 28px;
  height: 28px !important;
  padding: 0;
  border-radius: 4px;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.shell-live .log-pagination .page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.shell-live .log-pagination .page-status {
  font-family: var(--bv-mono, "JetBrains Mono", monospace);
  font-size: 0.72rem;
  color: var(--bv-muted, #A3A3A3);
  min-width: 4.5rem;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Admin sidebar density — handled above (.bv-panel-shell--admin) */

/* Mobile : éviter le zoom iOS sur focus (inputs ≥ 16px) */
@media (max-width: 640px) {
  .bv-shop-fields input,
  .bv-shop-fields textarea,
  .bv-shop-fields select,
  .vote-shop-form input,
  .vote-shop-form textarea,
  .vote-shop-form select,
  .vote-form-row input,
  .vote-form-row textarea,
  .vote-form-row select,
  .vote-admin-filters input,
  .vote-admin-filters select,
  .bv-stream-public__form input,
  .bv-stream-public__form textarea,
  .bv-abo-portal input,
  .bv-abo-portal textarea,
  .bv-abo-portal select {
    font-size: 16px !important;
  }
  .bv-btn,
  .bv-price-card .bv-btn,
  .vote-shop-form .btn,
  .bv-stream-public__form button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Language switcher — carré qui dépasse (même langage que les CTA droits) */
.bv-nav {
  overflow: visible;
}
.bv-nav__inner,
.bv-nav__actions {
  overflow: visible;
}
.bv-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 40;
}
.bv-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  min-height: 2.55rem;
  margin: -0.15rem; /* dépasse le rang des CTA sur les 4 côtés */
  padding: 0;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #121212;
  color: #e8e8e8;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 160ms ease, background-color 160ms ease, transform 140ms ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.bv-lang__btn:hover,
.bv-lang.is-open .bv-lang__btn {
  border-color: rgba(200, 241, 53, 0.55);
  background: #161616;
  transform: translateY(-1px);
}
.bv-lang__btn:focus-visible {
  outline: 2px solid rgba(200, 241, 53, 0.55);
  outline-offset: 2px;
}
.bv-lang__flag {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.bv-lang__caret {
  display: none; /* le carré reste symétrique sur les 4 côtés */
}
.bv-lang__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: -0.15rem;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e0e;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.bv-lang__menu[hidden] { display: none !important; }
.bv-lang__opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 2px;
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 140ms ease;
}
.bv-lang__opt:hover,
.bv-lang__opt.is-active {
  background: rgba(255, 255, 255, 0.06);
}
.bv-lang__opt.is-active {
  color: #c8f135;
}
.bv-lang__name { white-space: nowrap; flex: 1; }
.bv-lang__check {
  color: #c8f135;
  font-size: 0.85rem;
  font-weight: 700;
  margin-left: 0.25rem;
}
.bv-lang--panel .bv-lang__menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 255, 255, 0.16);
}
html.bv-lang-open .bv-panel-top {
  z-index: 10040;
}
.bv-nav__actions .bv-lang { margin-left: 0.25rem; }
.bv-panel-side__lang .bv-lang__menu { right: auto; left: 0; }
@media (prefers-reduced-motion: reduce) {
  .bv-lang__btn,
  .bv-lang__opt { transition: none; }
  .bv-lang__btn:hover,
  .bv-lang.is-open .bv-lang__btn { transform: none; }
}
@media (max-width: 900px) {
  body.bv-nav-open .bv-nav__actions .bv-lang {
    align-self: flex-end;
  }
  body.bv-nav-open .bv-lang__menu {
    right: 0;
  }
  body.bv-nav-open .bv-lang__btn {
    margin: 0;
  }
}


/* Plateformes / blog / about — même retrait sous la nav sticky que parrainage / streamer */
.bv-platforms__hero,
.bv-platform-show__hero,
.bv-blog__hero,
.bv-about__hero,
.bv-mkt > .bv-kicker:first-child {
  margin-bottom: 2rem;
  padding-top: var(--bv-mkt-hero-pad);
}
@media (min-width: 900px) {
  .bv-platforms__hero,
  .bv-platform-show__hero,
  .bv-blog__hero,
  .bv-about__hero,
  .bv-mkt > .bv-kicker:first-child {
    padding-top: var(--bv-mkt-hero-pad-lg);
  }
}
.bv-mkt.bv-blog .bv-blog-article,
.bv-mkt.bv-blog-article {
  padding-top: 0; /* hero/kicker already padded */
}
.bv-mkt.bv-blog-article > .bv-kicker:first-child {
  padding-top: var(--bv-mkt-hero-pad);
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .bv-mkt.bv-blog-article > .bv-kicker:first-child {
    padding-top: var(--bv-mkt-hero-pad-lg);
  }
}
.bv-platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.bv-plat-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  background: #0e0e0e;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
  height: 100%;
}
.bv-plat-card:hover { border-color: rgba(200,241,53,0.35); }
.bv-plat-card.is-soon { opacity: 0.78; }
.bv-plat-card__link,
.bv-plat-card__link--static {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  padding: 1.15rem 1.15rem 1.25rem; height: 100%; box-sizing: border-box;
}
.bv-plat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.bv-plat-card__logo {
  width: 48px; height: 48px; object-fit: cover; border-radius: 50%;
  background: #151515; padding: 0; box-sizing: border-box; flex-shrink: 0;
}
.bv-plat-card__mark {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #161616; color: #c8f135; font-weight: 700; font-family: "JetBrains Mono", monospace; font-size: 0.85rem;
  flex-shrink: 0;
}
.bv-plat-card__badge {
  font-size: 0.68rem; font-family: "JetBrains Mono", monospace; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.28rem 0.5rem; border-radius: 2px; border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.bv-plat-card__badge--ok { color: #c8f135; border-color: rgba(200,241,53,0.35); }
.bv-plat-card__badge--warn { color: #fbbf24; border-color: rgba(251,191,36,0.35); }
.bv-plat-card__badge--muted { color: #888; }
.bv-plat-card h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.bv-plat-card__short { margin: 0 0 0.35rem; color: #a3a3a3; font-size: 0.9rem; }
.bv-plat-card__meta {
  margin: 0 0 0.55rem; color: #888; font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.02em;
}
.bv-plat-card__blurb { margin: 0 0 0.85rem; color: #cfcfcf; font-size: 0.9rem; line-height: 1.45; flex: 1; }
.bv-plat-card__sites-label { margin: 0 0 0.35rem; }
.bv-plat-card__sites { margin: 0 0 0.85rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bv-plat-card__sites li {
  font-size: 0.72rem; font-family: "JetBrains Mono", monospace; padding: 0.2rem 0.4rem;
  border-radius: 2px; background: #151515; color: #bdbdbd;
}
.bv-plat-card__cta { color: #c8f135; font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.bv-plat-card__soon { margin: 0; color: #888; font-size: 0.85rem; margin-top: auto; }
.bv-platform-show__title-row {
  display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 0.75rem;
}
.bv-platform-show__logo {
  width: 56px; height: 56px; object-fit: cover; border-radius: 50%;
  background: #151515; padding: 0; box-sizing: border-box; flex-shrink: 0;
  margin-top: 0.35rem;
}
.bv-platform-show__title-row .bv-display { margin: 0; }

/* Blog */
.bv-blog__cats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0 1.5rem; }
.bv-blog__cat {
  display: inline-flex; align-items: center; min-height: 2.1rem; padding: 0 0.75rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: #cfcfcf;
  text-decoration: none; font-size: 0.85rem;
}
.bv-blog__cat.is-active, .bv-blog__cat:hover { border-color: #c8f135; color: #c8f135; }
.bv-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.bv-blog-card {
  display: flex; flex-direction: column; gap: 0.45rem; padding: 1.1rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: #0e0e0e;
  color: inherit; text-decoration: none; transition: border-color 160ms ease;
}
.bv-blog-card:hover { border-color: rgba(200,241,53,0.35); }
.bv-blog-card__meta { font-size: 0.75rem; color: #888; font-family: "JetBrains Mono", monospace; }
.bv-blog-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.bv-blog-card p { margin: 0; color: #a3a3a3; font-size: 0.9rem; line-height: 1.45; flex: 1; }
.bv-blog-card__more { color: #c8f135; font-weight: 600; font-size: 0.88rem; }
.bv-blog-article { max-width: 720px; }
.bv-blog-article__meta { color: #888; font-size: 0.85rem; margin-bottom: 1.25rem; font-family: "JetBrains Mono", monospace; }
.bv-prose h2 { margin: 1.75rem 0 0.65rem; font-size: 1.35rem; }
.bv-prose h3 { margin: 1.35rem 0 0.5rem; font-size: 1.1rem; }
.bv-prose p, .bv-prose li { color: #cfcfcf; line-height: 1.65; }
.bv-prose ul { padding-left: 1.2rem; }
.bv-prose a { color: #c8f135; }
.bv-prose code { font-family: "JetBrains Mono", monospace; font-size: 0.85em; background: #161616; padding: 0.1rem 0.3rem; border-radius: 3px; }
.bv-prose pre { background: #0a0a0a; border: 1px solid rgba(255,255,255,0.08); padding: 0.9rem; border-radius: 8px; overflow: auto; }
.bv-glossary { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.bv-glossary__item {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.9rem 1rem; background: #0e0e0e;
}
.bv-glossary__item strong { display: block; color: #c8f135; margin-bottom: 0.35rem; font-family: "JetBrains Mono", monospace; font-size: 0.95rem; }
.bv-glossary__item p { margin: 0; color: #cfcfcf; line-height: 1.5; }
@media (min-width: 720px) {
  .bv-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bv-about .bv-section__lead { max-width: 58ch; }
.bv-marquee-strip {
  overflow: hidden; border-block: 1px solid rgba(255,255,255,0.08);
  background: #0a0a0a; margin: 0 0 2rem; padding: 0.75rem 0;
}
.bv-marquee-strip__track {
  display: flex; gap: 2rem; width: max-content;
  animation: bv-marquee 32s linear infinite;
  font-family: "JetBrains Mono", monospace; font-size: 0.8rem; color: #a3a3a3;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.bv-marquee-strip__track span { white-space: nowrap; }
.bv-marquee-strip__track strong { color: #c8f135; font-weight: 600; }
.bv-plat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.bv-plat-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.4rem;
  padding: 0 0.85rem 0 0.45rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
  color: #e8e8e8; text-decoration: none; font-size: 0.9rem; background: #111;
}
.bv-plat-chip--more { padding-inline: 0.85rem; }
.bv-plat-chip__logo {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
  background: #151515; flex-shrink: 0;
}
.bv-plat-chip:hover { border-color: #c8f135; color: #c8f135; }
@media (prefers-reduced-motion: reduce) {
  .bv-marquee-strip__track { animation: none; }
}
