/* ═══════════════════════════════════════════════════════════════
   Va-et-vient — Brutal Éditorial · Design System
   Palette : Noir + Rose · Typo : Fraunces / Inter / JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Backgrounds ───────────────────────────────────────────── */
  --bg:     #07060c;
  --paper:  #0e0b18;
  --soft:   #15111f;

  /* ── Text ──────────────────────────────────────────────────── */
  --ink:    #f5f0fa;
  --mute:   rgba(245, 240, 250, .55);
  --hair:   rgba(245, 240, 250, .12);
  --rule:   rgba(245, 240, 250, .85);

  /* ── Accent (rose) ─────────────────────────────────────────── */
  --accent:       #ff3e7f;
  --accent-deep:  #7a1234;
  --accent-blush: #ffdce5;
  --accent-glow:  rgba(255, 62, 127, .42);

  /* ── Semantic ──────────────────────────────────────────────── */
  --ok:  #10b981;
  --no:  #ef4444;

  /* ── Fonts ─────────────────────────────────────────────────── */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ── Compatibility aliases ─────────────────────────────────── */
  --text:          var(--ink);
  --text-2:        var(--mute);
  --muted:         var(--mute);
  --text-muted:    var(--mute);
  --border:        var(--hair);
  --border-strong: var(--rule);
  --border-rose:   rgba(255, 62, 127, .35);
  --bg-card:       var(--paper);
  --bg-soft:       var(--soft);
  --bg-elevated:   var(--soft);
  --card-bg:       var(--paper);
  --surface:       var(--soft);
  --surface-hover: rgba(245, 240, 250, .04);
  --radius:        8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.4);
  --primary:       var(--accent);
  --accent-rose:   var(--accent);
  --input-bg:      rgba(245, 240, 250, .06);
  --yes:           var(--ok);
  --yes-soft:      rgba(16, 185, 129, .12);
  --no-soft:       rgba(239, 68, 68, .12);
  --accent-soft:   rgba(255, 62, 127, .12);
  --accent-text:   var(--accent);
  --grad-full:     linear-gradient(90deg, var(--accent), #a855f7);
}

/* ─── Reset ────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(255, 62, 127, .3); color: var(--ink); }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245, 240, 250, .15); }

/* ─── Editorial utility classes (gb-*) ─────────────────────────── */

.gb-h {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .85;
  font-style: normal;
}

.gb-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.02em;
}

.gb-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
}

.gb-rule       { border: none; border-top: 1.5px solid var(--rule); margin: 0; }
.gb-rule-thick { border: none; border-top: 4px   solid var(--rule); margin: 0; }
.gb-rule-hair  { border: none; border-top: 1px   solid var(--hair); margin: 0; }

.gb-paper { background: var(--paper); border: 1.5px solid var(--rule); }

.gb-link { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--rule); padding-bottom: 1px; cursor: pointer; }
.gb-link:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

button.gb-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 999px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1;
}

button.gb-link:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

button.gb-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gb-card-hover { transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s; cursor: pointer; }
.gb-card-hover:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--rule); }

.gb-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--rule);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gb-input::placeholder { color: var(--mute); font-style: italic; }
.gb-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,62,127,.18), 0 0 18px rgba(255,62,127,.25); }
.gb-input-mono { font-family: var(--font-mono); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }

.gb-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--mute);
  margin-bottom: 8px;
  font-weight: 600;
}

.gb-range { -webkit-appearance: none; appearance: none; height: 4px; background: rgba(245,240,250,.2); outline: none; width: 100%; }
.gb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 12px var(--accent-glow); cursor: pointer; border-radius: 50%; }
.gb-range::-moz-range-thumb { width: 18px; height: 18px; background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 12px var(--accent-glow); cursor: pointer; border-radius: 50%; border: 2px solid var(--bg); }

/* ─── Animations ─────────────────────────────────────────────────── */

@keyframes vav-tick    { 0%,90%,100%{opacity:1} 95%{opacity:.4} }
@keyframes vav-marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes vav-glow    { 0%,100%{filter:drop-shadow(0 0 32px rgba(255,62,127,.55))} 50%{filter:drop-shadow(0 0 48px rgba(255,62,127,.75))} }
@keyframes vav-swing   { from{transform:rotate(-11deg)} to{transform:rotate(11deg)} }
@keyframes vav-heartbeat { 0%,70%,100%{transform:scale(1)} 35%{transform:scale(1.045)} 50%{transform:scale(.985)} }
@keyframes vav-sparkle { 0%,100%{opacity:.15;transform:scale(.8)} 50%{opacity:.85;transform:scale(1.15)} }
@keyframes vav-float   { 0%{transform:translateY(0) scale(.55);opacity:0} 18%{opacity:.7} 80%{opacity:.6} 100%{transform:translateY(-58px) scale(1);opacity:0} }
@keyframes vav-blush   { 0%,100%{opacity:.4} 50%{opacity:.75} }
@keyframes vav-blink   { 0%,92%,100%{transform:scaleY(1)} 95%,97%{transform:scaleY(.15)} }
@keyframes pulse-green { 0%,100%{box-shadow:0 0 4px rgba(16,185,129,.6)} 50%{box-shadow:0 0 10px rgba(16,185,129,.3)} }

/* ─── PWA install banner ─────────────────────────────────────────── */

.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--paper);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 24px rgba(0,0,0,.6);
}

.pwa-banner[hidden] { display: none; }

.pwa-banner img { border-radius: 8px; flex-shrink: 0; }

.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-banner-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}

.pwa-banner-text span {
  font-size: 12px;
  color: var(--mute);
}

.pwa-install-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.pwa-install-btn:active { opacity: .85; }

.pwa-dismiss-btn {
  background: none;
  border: none;
  color: var(--mute);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

/* ─── Masthead bar ───────────────────────────────────────────────── */

.masthead-bar {
  border-bottom: 4px solid var(--rule);
  padding: 8px 40px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.masthead-live { animation: vav-tick 3s infinite; color: var(--accent); }

/* ─── Site header / nav ──────────────────────────────────────────── */

.site-header {
  background: var(--bg);
  border-bottom: 1.5px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  gap: 24px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.logo-mark { flex-shrink: 0; }

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}

.logo-wordmark em { color: var(--accent); font-style: italic; }

.logo-tag { color: var(--mute); margin-left: 4px; }

/* Main nav links */
.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mute);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
}

.main-nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.va-nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.va-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--hair);
  padding-bottom: 1px;
}

.va-link:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* Auth nav */
.auth-nav-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── Cookie banner ──────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--paper);
  border-top: 2px solid var(--rule);
  box-shadow: 0 -4px 24px rgba(0,0,0,.6);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ─── Footer ──────────────────────────────────────────────────────── */

.site-footer {
  border-top: 4px solid var(--rule);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  padding: 48px 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.footer-wordmark em { color: var(--accent); font-style: italic; }

.footer-tagline {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
}

.footer-sub {
  font-size: 11px;
  color: rgba(245,240,250,.3);
  margin: 0;
}

.footer-nav-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mute);
  text-decoration: none;
  transition: color .15s;
}

.footer-nav-link:hover { color: var(--ink); }

.footer-col-support { align-items: center; text-align: center; }

.kofi-link { display: flex; align-items: center; justify-content: center; }
.kofi-gif  { height: 80px; width: auto; border: none; display: block; }

.footer-bottom {
  border-top: 1.5px solid rgba(245,240,250,.12);
  padding: 16px 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom .gb-mono {
  font-size: 11px;
  color: rgba(245,240,250,.3);
}

/* ─── CGU page ───────────────────────────────────────────────────── */

.cgu-body { font-size: 16px; line-height: 1.7; color: var(--ink); }
.cgu-section p { color: var(--mute); margin: 0; }
.cgu-section p + p { margin-top: 12px; }

/* ─── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 22px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 36px rgba(255,62,127,.6); filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover:not(:disabled) { background: var(--ink); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--mute);
}
.btn-ghost:hover:not(:disabled) { color: var(--ink); }

.btn-danger {
  background: rgba(239,68,68,.15);
  color: var(--no);
  border: 1.5px solid var(--no);
}
.btn-danger:hover:not(:disabled) { background: rgba(239,68,68,.25); }

.btn-yes {
  background: rgba(16,185,129,.12);
  color: #34d399;
  border: 1.5px solid rgba(16,185,129,.3);
}
.btn-yes:hover:not(:disabled) { background: rgba(16,185,129,.2); }

.btn-no {
  background: rgba(239,68,68,.12);
  color: #f87171;
  border: 1.5px solid rgba(239,68,68,.25);
}
.btn-no:hover:not(:disabled) { background: rgba(239,68,68,.2); }

.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-lg  { padding: 16px 26px; font-size: 16px; }
.btn-full { width: 100%; }

/* ─── Toast ───────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  color: var(--ink);
  z-index: 9999;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .22s ease;
  pointer-events: none;
  max-width: 360px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: rgba(16,185,129,.88); border-color: rgba(16,185,129,.4); }
.toast.error   { background: rgba(239,68,68,.88);  border-color: rgba(239,68,68,.4);  }
.toast.info    { background: rgba(255,62,127,.88);  border-color: rgba(255,62,127,.4); }

/* ─── Forms ───────────────────────────────────────────────────────── */

.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--mute); font-style: italic; }
select option { background: var(--paper); color: var(--ink); }

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,62,127,.18), 0 0 18px rgba(255,62,127,.25);
}

textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-family: var(--font-mono); font-size: 10px; color: var(--mute); margin-top: 6px; letter-spacing: .12em; text-transform: uppercase; }

.form-actions { display: flex; gap: 10px; margin-top: 28px; }

/* ─── Cards ───────────────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 28px 32px;
}

.card-sm { padding: 16px 20px; }
.card-lg { padding: 40px 48px; }

/* ─── Badges ──────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid var(--rule);
  color: var(--mute);
  background: transparent;
}

.badge-accent  { color: var(--accent); border-color: var(--accent); }
.badge-success { color: #34d399;        border-color: rgba(16,185,129,.5); }
.badge-error   { color: #f87171;        border-color: rgba(239,68,68,.5); }
.badge-warning { color: #fbbf24;        border-color: rgba(245,158,11,.5); }
.badge-love    { color: var(--accent);  border-color: var(--accent); }

/* ─── Page layout ─────────────────────────────────────────────────── */

.container { width: min(1200px, 96vw); margin: 0 auto; }

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 0 28px;
}

.page-title-block { flex: 1; }
.page-title-block h1 { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: .9; color: var(--ink); }
.page-title-block p  { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--mute); margin-top: 8px; }

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

.section { margin-bottom: 40px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-header h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }

/* ─── Home — editorial sections ────────────────────────────────────── */

/* Ticker belt */
.ticker-belt {
  border-block: 4px solid var(--rule);
  padding: 14px 0;
  overflow: hidden;
  background: var(--paper);
}

.ticker-inner {
  display: flex;
  gap: 60px;
  animation: vav-marquee 50s linear infinite;
  white-space: nowrap;
  width: max-content;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

/* Stats spread */
.stats-spread {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--rule);
  border-bottom: 4px solid var(--rule);
}
.stats-spread .stat-col {
  padding: 36px 28px;
  border-right: 1.5px solid var(--rule);
  position: relative;
}
.stats-spread .stat-col:last-child { border-right: none; }
.stat-col .stat-val { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat-col .stat-lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--mute); }
.stat-col .stat-note { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--accent); margin-top: 4px; }

/* Couples grid */
.couples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--rule);
  border-bottom: 4px solid var(--rule);
}

.couple-cell {
  padding: 28px;
  border-right: 1.5px solid var(--rule);
  border-top: 1.5px solid var(--rule);
  position: relative;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.couple-cell:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--rule); }
.couple-cell:nth-child(3n) { border-right: none; }
.couple-cell:nth-child(-n+3) { border-top: none; }

.couple-names {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .9;
  font-size: 40px;
}
.couple-names em { color: var(--accent); font-style: italic; }

.couple-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--mute);
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.couple-odds {
  display: flex;
  margin-top: 18px;
  border: 1.5px solid var(--rule);
}
.couple-odds-col {
  flex: 1;
  padding: 10px;
  text-align: center;
}
.couple-odds-col + .couple-odds-col { border-left: 1.5px solid var(--rule); }
.couple-odds-label { font-family: var(--font-mono); font-size: 10px; color: var(--mute); margin-bottom: 4px; }
.couple-odds-val   { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-size: 22px; }

.couple-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
}

/* Steps (how it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--rule);
}
.step-cell {
  padding: 36px;
  border-right: 1.5px solid var(--rule);
  position: relative;
}
.step-cell:last-child { border-right: none; }

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .8;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(255,62,127,.35);
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.step-body { font-size: 15px; line-height: 1.7; color: var(--ink); }

.step-crude {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

/* Bet demo */
.bet-demo-paper {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 36px;
}

.bet-demo-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--rule);
}

.bet-demo-option {
  padding: 16px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.bet-demo-option.active { background: var(--ink); color: var(--bg); }
.bet-demo-option + .bet-demo-option { border-left: 1.5px solid var(--rule); }
.bet-demo-option:nth-child(3),
.bet-demo-option:nth-child(4) { border-top: 1.5px solid var(--rule); }

.bet-demo-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--rule);
}
.bet-demo-side {
  padding: 22px 16px;
  font-family: var(--font-display);
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}
.bet-demo-side + .bet-demo-side { border-left: 1.5px solid var(--rule); }
.bet-demo-side.active { background: var(--accent); color: var(--bg); }
.bet-demo-side-label { font-family: var(--font-mono); font-size: 10px; margin-bottom: 8px; }
.bet-demo-side-odds  { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -.04em; line-height: 1; }

/* Leaderboard spread */
.lb-spread {
  display: grid;
}
.lb-header-row,
.lb-data-row {
  display: contents;
}
.lb-cell {
  padding: 16px;
  border-bottom: 1.5px solid var(--rule);
}
.lb-cell-right { text-align: right; }

/* Hero CTA */
.hero-cta-section {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 40px 90px;
  position: relative;
  overflow: hidden;
}

/* ─── Home hero ───────────────────────────────────────────────────── */

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 60px;
}

.home-hero-aside {
  position: sticky;
  top: 120px;
}

.home-demo-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--rule);
}

.home-demo-odd {
  padding: 22px 18px;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s, border-color .15s;
  border-right: 1.5px solid var(--rule);
}
.home-demo-odd:last-child { border-right: none; }
.home-demo-odd:hover { background: rgba(245,240,250,.04); }

/* Stats spread items (home) */
.stat-spread-item {
  padding: 36px 32px;
  border-right: 1.5px solid var(--rule);
}
.stat-spread-item:last-child { border-right: none; }

.stat-spread-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(255,62,127,.4);
}

.stat-spread-label {
  display: block;
  margin-top: 6px;
}

/* Ticker separator */
.ticker-sep { color: var(--accent); }

/* Couple card (home trending grid) */
.couple-card-editorial {
  padding: 28px;
  border-right: 1.5px solid var(--rule);
  border-top: 1.5px solid var(--rule);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.couple-card-editorial:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--rule); }
.couple-card-editorial:nth-child(3n) { border-right: none; }
.couple-card-editorial:nth-child(-n+3) { border-top: none; }

/* Step (editorial version) */
.step-editorial {
  padding: 36px;
  border-right: 1.5px solid var(--rule);
}
.step-editorial:last-child { border-right: none; }

.step-editorial-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .8;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(255,62,127,.35);
  margin-bottom: 12px;
}

/* Auth aside stamp */
.auth-aside-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rule);
  padding: 12px 18px;
  margin-top: 32px;
  gap: 3px;
}

/* ─── Auth pages ──────────────────────────────────────────────────── */

.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - 120px);
  border-bottom: 1.5px solid var(--rule);
}

.auth-form-col {
  padding: 80px;
  border-right: 1.5px solid var(--rule);
  position: relative;
}

.auth-aside-col {
  background: var(--paper);
  padding: 80px 70px;
  position: relative;
}

/* ─── Dashboard ───────────────────────────────────────────────────── */

.dashboard-stats {
  display: grid;
  border-bottom: 1.5px solid var(--rule);
}
.dashboard-stat-col {
  padding: 40px 28px;
  border-right: 1.5px solid var(--rule);
}
.dashboard-stat-col:last-child { border-right: none; }

.rooms-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--rule);
}

.room-editorial-card {
  padding: 34px 30px;
  border-right: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
  position: relative;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.room-editorial-card:nth-child(3n) { border-right: none; }
.room-editorial-card:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--rule); }

.room-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.04em;
  line-height: .9;
  margin-bottom: 12px;
}
.room-name em { color: var(--accent); font-style: italic; }

.room-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--mute);
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  margin-bottom: 22px;
}

.room-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--rule);
  margin-bottom: 18px;
}
.room-mini-stat {
  padding: 12px;
  text-align: center;
}
.room-mini-stat + .room-mini-stat { border-left: 1.5px solid var(--rule); }
.room-mini-stat-val { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; line-height: 1; }
.room-mini-stat-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--mute); margin-top: 4px; }

.rooms-empty {
  padding: 80px 40px;
  text-align: center;
  border: 1.5px dashed var(--rule);
}
.rooms-empty h3 { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 12px; }
.rooms-empty p  { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--mute); margin-bottom: 28px; }

/* Invitations panel */
.invite-panel {
  background: var(--paper);
  border: 1.5px solid var(--rule);
  padding: 32px;
}

/* ─── Room detail ─────────────────────────────────────────────────── */

.room-detail-header {
  padding: 48px 40px 0;
}

.room-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.room-detail-top h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .88;
}

.room-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
}
.room-meta-row .sep { color: var(--hair); }

.room-detail-actions { display: flex; gap: 8px; align-items: center; }

.room-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  border-top: 1.5px solid var(--rule);
}

.pronostics-col { padding: 40px; border-right: 1.5px solid var(--rule); }
.sidebar-col    { padding: 32px; }

/* Pronostic card */
.pronostic-editorial {
  padding: 28px;
  border-bottom: 1.5px solid var(--rule);
  position: relative;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.pronostic-editorial:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--rule); }

.pronostic-couple {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -.04em;
  line-height: .9;
}
.pronostic-couple em { color: var(--accent); font-style: italic; }

/* Invite code box */
.invite-code-box {
  border: 1.5px solid var(--rule);
  padding: 20px;
  margin-bottom: 20px;
}
.invite-code-box code {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255,62,127,.3);
}

/* Leaderboard list */
.leaderboard-list { list-style: none; }
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.leaderboard-item:last-child { border-bottom: none; }

.rank-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1;
  width: 36px;
  flex-shrink: 0;
}

.lb-username { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.lb-score    { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent); }

/* Members */
.members-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
}
.member-avatar {
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Chat */
.chat-box { border: 1.5px solid var(--rule); background: var(--paper); }
.chat-messages { max-height: 340px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-message { display: flex; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; background: var(--accent); color: var(--bg); font-family: var(--font-display); font-size: 14px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.chat-bubble { flex: 1; }
.chat-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.chat-meta strong { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; }
.chat-meta time   { font-family: var(--font-mono); font-size: 10px; color: var(--mute); }
.chat-delete-btn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 11px; color: var(--mute); padding: 0 2px; opacity: 0; transition: opacity .15s, color .15s; }
.chat-message:hover .chat-delete-btn { opacity: 1; }
.chat-delete-btn:hover { color: var(--accent); }
.chat-text { font-size: 14px; color: var(--mute); line-height: 1.5; }
.chat-text-deleted { font-style: italic; opacity: .5; }
.deleted-message .chat-avatar { opacity: .4; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1.5px solid var(--rule); }
.chat-form input { flex: 1; padding: 10px 14px; font-family: var(--font-body); font-size: 14px; border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink); outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form input::placeholder { color: var(--mute); font-style: italic; }

.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

/* ─── Bet page ────────────────────────────────────────────────────── */

.bet-page-wrap { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 160px); }
.bet-main-col { padding: 48px; border-right: 1.5px solid var(--rule); }
.bet-side-col { padding: 32px; background: var(--paper); }

.bet-couple-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -.04em;
  line-height: .88;
}
.bet-couple-title em { color: var(--accent); font-style: italic; }

.odds-display { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--rule); }
.odd-box {
  padding: 28px 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background .12s, color .12s;
  font-family: var(--font-body);
}
.odd-box + .odd-box { border-left: 1.5px solid var(--rule); }
.odd-box.selected.odd-yes { background: var(--ok);    color: var(--bg); }
.odd-box.selected.odd-no  { background: var(--no);    color: var(--bg); }
.odd-box:not(.selected):hover { background: rgba(245,240,250,.06); }

.odd-box p      { font-family: var(--font-mono); font-size: 11px; color: var(--mute); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .18em; }
.odd-box strong { font-family: var(--font-display); font-size: 52px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.odd-yes strong { color: #34d399; }
.odd-no  strong { color: #f87171; }
.odd-box.selected strong { color: var(--bg) !important; }

.bet-amount-box { border: 1.5px solid var(--rule); padding: 24px; margin-bottom: 22px; }
.bet-amount-val { font-family: var(--font-display); font-weight: 700; font-size: 64px; letter-spacing: -.04em; line-height: 1; }
.bet-amount-unit { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--mute); }

.bet-payout-box {
  border: 1.5px solid var(--rule);
  padding: 24px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  box-shadow: inset 0 0 60px rgba(255,62,127,.08);
}
.bet-payout-val { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -.04em; color: var(--accent); text-shadow: 0 0 22px rgba(255,62,127,.55); }
.bet-payout-unit { font-size: 18px; }

/* ─── Resolve section ─────────────────────────────────────────────── */

.resolve-box {
  border: 1.5px solid rgba(245,158,11,.4);
  background: rgba(245,158,11,.07);
  padding: 18px 22px;
  margin-top: 16px;
}
.resolve-box h4 { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: #fbbf24; margin-bottom: 12px; }
.resolve-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Profile ─────────────────────────────────────────────────────── */

.profile-hero {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 32px var(--accent-glow);
  margin-bottom: 20px;
}

.profile-stats-strip { display: grid; border-bottom: 1.5px solid var(--rule); }
.profile-stat-col { padding: 36px 24px; border-right: 1.5px solid var(--rule); }
.profile-stat-col:last-child { border-right: none; }

.activity-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.activity-row:last-child { border-bottom: none; }

.badges-list { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid rgba(245,158,11,.3);
  background: rgba(245,158,11,.07);
}
.badge-item strong { font-family: var(--font-display); font-weight: 700; color: #fbbf24; }
.badge-item span   { font-family: var(--font-mono); font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }

/* ─── Admin table ─────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 16px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .18em; border-bottom: 1.5px solid var(--rule); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--hair); color: var(--mute); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(245,240,250,.025); }

/* ─── Create pronostic / form pages ──────────────────────────────── */

.create-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 160px); }
.create-form-col { padding: 48px; border-right: 1.5px solid var(--rule); }
.create-preview-col { padding: 48px; background: var(--paper); }

/* ─── Compatibility: section-card, stat-card, stats-grid ─────────── */
/* Used by pages-extended, pages-betting-advanced, pages-social */

.section-card {
  border: 1.5px solid var(--rule);
  margin-bottom: 24px;
}
.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1.5px solid var(--rule);
}
.section-card-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-card-body { padding: 20px 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--rule);
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px;
  border-right: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card:last-child { border-right: none; }

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--mute);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}

/* ─── Error/empty states ──────────────────────────────────────────── */

.empty-state {
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--mute);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(17, 17, 17, .14);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  transition: color .15s;
}
.back-link:hover {
  color: #fff;
  background: #111;
  border-color: #111;
}

.divider { height: 1.5px; background: var(--rule); margin: 28px 0; }

.text-muted  { color: var(--mute) !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent) !important; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ─── Polls ───────────────────────────────────────────────────────── */

.poll-bar-wrap  { margin-top: 8px; }
.poll-bar-item  { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.poll-bar-item span:first-child { flex: 1; color: var(--mute); }
.poll-bar       { flex: 2; height: 4px; background: rgba(245,240,250,.1); overflow: hidden; }
.poll-bar-fill  { height: 100%; background: var(--accent); transition: width .55s; }
.poll-bar-item .pct { font-family: var(--font-mono); font-size: 11px; color: var(--accent); width: 36px; text-align: right; }

/* ─── Join room ───────────────────────────────────────────────────── */

.join-hero { padding: 80px 40px; text-align: center; border-bottom: 1.5px solid var(--rule); }
.join-hero h2 { font-family: var(--font-display); font-size: 80px; font-weight: 700; letter-spacing: -.04em; line-height: .88; }

/* ─── Burger button ───────────────────────────────────────────────── */

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--rule);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, background .15s;
}

.burger-btn:hover span { background: var(--accent); }

.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px)  rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav overlay ──────────────────────────────────────────── */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 70px 32px 56px;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}

.mobile-nav.open { transform: translateX(0); }

body.mobile-nav-open { overflow: hidden; }

.mobile-main-nav > a {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--hair);
  transition: color .15s;
}

.mobile-main-nav > a:first-of-type { border-top: 4px solid var(--rule); }
.mobile-main-nav > a:hover,
.mobile-main-nav > a.active { color: var(--accent); }

.mobile-nav-divider {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: .2em;
  padding: 20px 0 8px;
  border-top: 1.5px solid var(--hair);
  margin-top: 4px;
}

.mobile-main-nav > .mobile-nav-divider:first-child {
  border-top: 4px solid var(--rule);
  padding-top: 16px;
  margin-top: 0;
}

.mobile-nav-sub a {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -.02em;
  color: var(--mute);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  transition: color .15s;
}

.mobile-nav-sub a:last-child { border-bottom: none; }
.mobile-nav-sub a:hover { color: var(--ink); }

.mobile-auth-nav {
  margin-top: 40px;
  border-top: 4px solid var(--rule);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-auth-nav .btn {
  width: 100%;
  padding: 18px 20px;
  font-size: 16px;
  justify-content: center;
  min-height: 56px;
}

.mobile-user-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--mute);
  margin-bottom: 4px;
}

.mobile-user-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .15s;
}

.mobile-user-name:hover { color: var(--accent); }

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* ── Navigation ── */
  .masthead-bar { display: none; }
  .header-inner { padding: 14px 20px; }
  .logo-tag { display: none; }
  .main-nav { display: none; }
  .auth-nav-wrap { display: none; }
  .burger-btn { display: flex; }
  .mobile-nav { display: block; }

  /* ── Footer tablette ── */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 36px 32px 28px; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 14px 32px; }

  /* ── Touch targets ── */
  .btn { min-height: 44px; }
  .btn-sm { padding: 10px 16px; min-height: 44px; font-size: 13px; }

  /* ── Page layouts ── */
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-aside { position: static; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside-col { display: none; }
  .auth-form-col { padding: 40px 24px; }
  .rooms-editorial-grid { grid-template-columns: 1fr; }
  .room-editorial-card { border-right: none; border-bottom: 1.5px solid var(--rule); }
  .room-editorial-card:last-child { border-bottom: none; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stat-col { padding: 28px 16px; }
  .couples-grid { grid-template-columns: 1fr; }
  .couple-cell { border-right: none; padding: 20px; }
  .couple-names { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-cell { border-right: none; border-bottom: 1.5px solid var(--rule); }
  .step-cell:last-child { border-bottom: none; }
  .stats-spread { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .bet-page-wrap { grid-template-columns: 1fr; }
  .bet-side-col { display: none; }
  .bet-main-col { padding: 32px 20px; }
  .bet-couple-title { font-size: 48px; }
  .create-layout { grid-template-columns: 1fr; }
  .create-preview-col { display: none; }
  .room-body { grid-template-columns: 1fr; }
  .sidebar-col { border-top: 1.5px solid var(--rule); }
  .pronostics-col { padding: 28px 20px; }
  .hero-cta-section { padding: 60px 24px; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-stats-strip { grid-template-columns: 1fr 1fr; }
  .room-name { font-size: 30px; }
  .room-editorial-card { padding: 22px 20px; }
  .room-detail-top h1 { font-size: 48px; }
  .room-detail-header { padding: 28px 20px 0; }
  .join-hero { padding: 48px 24px; }
  .join-hero h2 { font-size: 52px; }
  .pronostic-couple { font-size: 34px; }
}

@media (max-width: 600px) {
  /* ── Header ── */
  .header-inner { padding: 10px 16px; }

  /* ── Typography ── */
  .page-title-block h1 { font-size: 32px; }
  .room-detail-top h1 { font-size: 34px; }
  .bet-couple-title { font-size: 34px; }
  .join-hero h2 { font-size: 40px; }
  .pronostic-couple { font-size: 28px; }
  .couple-names { font-size: 26px; }
  .room-name { font-size: 24px; }
  .odd-box strong { font-size: 38px; }
  .bet-amount-val { font-size: 48px; }
  .step-editorial-num { font-size: 60px; }

  /* ── Grids ── */
  .form-row { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .stats-spread { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .profile-stats-strip { grid-template-columns: 1fr; }
  .profile-stat-col { border-right: none; border-bottom: 1.5px solid var(--rule); }
  .profile-stat-col:last-child { border-bottom: none; }

  /* ── Padding reductions ── */
  .card { padding: 20px 16px; }
  .card-lg { padding: 24px 16px; }
  .card-sm { padding: 12px 14px; }
  .auth-form-col { padding: 28px 16px; }
  .bet-main-col { padding: 24px 16px; }
  .create-form-col { padding: 24px 16px; }
  .pronostics-col { padding: 20px 16px; }
  .sidebar-col { padding: 20px 16px; }
  .invite-panel { padding: 20px 16px; }
  .step-cell { padding: 22px 16px; }
  .step-editorial { padding: 22px 16px; }
  .couple-cell { padding: 16px; }
  .room-editorial-card { padding: 18px 16px; }
  .pronostic-editorial { padding: 18px 16px; }
  .dashboard-stat-col { padding: 20px 14px; }
  .stat-col { padding: 20px 16px; }
  .section-card-body { padding: 14px 16px; }
  .section-card-header { padding: 12px 16px; }
  .page-header { padding: 20px 0 14px; }

  /* ── Footer ── */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 24px 28px;
  }
  .footer-bottom { padding: 14px 24px; text-align: center; }

  /* ── Cookie banner ── */
  .cookie-banner-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }

  /* ── Toast ── */
  .toast { left: 12px; right: 12px; max-width: none; bottom: 12px; }

  /* ── Forms ── */
  .form-actions { flex-direction: column; }

  /* ── Mobile nav font ── */
  .mobile-main-nav > a { font-size: 38px; padding: 14px 0; }
  .mobile-nav-sub a { font-size: 21px; }
  .mobile-nav { padding: 62px 20px 48px; }
}

/* ─── Notification bell ───────────────────────────────────────────── */

.notif-bell-wrap {
  position: relative;
  display: inline-flex;
}

.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--ink);
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  padding: 0;
  flex-shrink: 0;
}

.notif-bell-btn svg { display: block; pointer-events: none; }
.notif-bell-btn:hover { opacity: .75; }
.notif-bell-btn:hover svg { filter: drop-shadow(0 0 4px rgba(255,62,127,.6)); }
.notif-bell-btn.active svg { filter: drop-shadow(0 0 6px rgba(255,62,127,.8)); }

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255,62,127,.5);
}

/* ─── Notification panel ──────────────────────────────────────────── */

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  z-index: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  overflow: hidden;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--rule);
}

.notif-panel-header h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
}

.notif-panel-mark-all {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.notif-panel-mark-all:hover { color: var(--ink); }

.notif-panel-list {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

.notif-panel-empty {
  padding: 28px 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
}

.notif-panel-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  transition: background .12s;
  position: relative;
}

.notif-panel-item:last-child { border-bottom: none; }
.notif-panel-item:hover { background: rgba(255,255,255,.04); }

.notif-panel-item.unread { background: rgba(255,62,127,.05); }
.notif-panel-item.unread:hover { background: rgba(255,62,127,.09); }

.notif-panel-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  margin-top: 1px;
}

.notif-panel-item-body { flex: 1; min-width: 0; }

.notif-panel-item-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-panel-item-content {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-panel-item-time {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--hair);
}

.notif-unread-dot {
  position: absolute;
  top: 13px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(255,62,127,.6);
}

.notif-panel-footer {
  border-top: 1.5px solid var(--rule);
  padding: 8px 14px;
  text-align: center;
}

.notif-panel-footer a {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  text-decoration: none;
}

.notif-panel-footer a:hover { color: var(--accent); }

/* ── Party mode theme ───────────────────────────────────── */
[data-theme="party"] {
  --bg:            #1A1A2E;
  --paper:         #16213E;
  --soft:          #0F3460;
  --ink:           #E8E8E8;
  --mute:          rgba(232, 232, 232, .55);
  --accent:        #FF6B35;
  --accent-deep:   #cc4a1a;
  --accent-blush:  rgba(255, 107, 53, .15);
  --accent-glow:   rgba(255, 107, 53, .4);
  --rule:          rgba(255, 107, 53, .2);
  --surface:       #16213E;
  --surface-hover: rgba(255, 107, 53, .06);
  --primary:       #FF6B35;
  --yes:           #22c55e;
  --no:            #ef4444;
  --gold:          #FFD700;
}
