/* ══════════════════════════════════════════════════════════════════
   klarrro-ux.css — Extracted inline styles + micro-interactions
   Design tokens from base.css (--accent, --bg, --surface, --text,
   --muted, --muted2, --border, --sp-*, --fs-*, --radius-*, --t*)
   ══════════════════════════════════════════════════════════════════ */

/* ── Status classes (used for conditional show/hide, NOT theming) ── */
/* Accent stays rose (#E0527A) regardless of relationship status.
   Status is informational (dots, badges) — never rebrand the app. */

/* Hide chat-related elements for en_couple */
body.status-en-couple .couple-hide { display: none !important; }

/* Show pote-hub elements only for en_couple */
body:not(.status-en-couple) .couple-only { display: none !important; }

/* ── Spring Easings & Micro-interactions ─────────────────────────── */
:root {
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --spring-bounce: var(--ease-out);
  --t-spring: 320ms;
  --t-micro: 100ms;
}

/* ── Button press feedback (all community buttons) ── */
.community-app button:active:not(:disabled),
.community-app .btn:active:not(:disabled) {
  transform: scale(0.97);
}
.community-app button,
.community-app .btn {
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-pop) var(--ease), border-color var(--dur-pop) var(--ease), box-shadow var(--dur-pop) var(--ease);
}

/* ── Card stagger entrance ── */
/* Jamais d'opacity:0 en base (feed Community resté invisible) : klrRowIn ne décrit
   que l'état de départ (base.css), l'élément reste visible si l'animation ne joue pas.
   --i plafonné à 8 : aucune cascade sur une longue liste. */
.stagger-item {
  animation: klrRowIn var(--dur-menu) var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * var(--stagger));
}

/* ── Directional section transitions ──
   Entrée seule, courte, en `backwards` : aucun transform ne reste posé
   après l'animation (pas de bloc conteneur pour un position:fixed).
   Noms propres au composant : les keyframes sont globales. */
.section-enter-right {
  animation: uxSectionInRight 200ms var(--ease-out) backwards;
}
.section-enter-left {
  animation: uxSectionInLeft 200ms var(--ease-out) backwards;
}
@keyframes uxSectionInRight {
  from { opacity: 0; transform: translateX(8px); }
}
@keyframes uxSectionInLeft {
  from { opacity: 0; transform: translateX(-8px); }
}

/* ── Like heart animation ── */
/* Confirmation d'une action réussie (règle 7) : posée par _klrConfirm() après le succès serveur,
   retirée à animationend. klrPulse vient de base.css. */
.klr-confirm {
  animation: klrPulse 320ms var(--ease-out);
}

/* ── Confirmation RSVP : même appui que .klr-confirm, sans lueur ── */
.rsvp-glow {
  animation: klrPulse 320ms var(--ease-out);
}

/* Status indicator bar */
.status-indicator {
  text-align: center;
  padding: 6px;
  font-size: .75rem;
  color: var(--muted2);
  border-bottom: 1px solid var(--app-fg-a-06);
  letter-spacing: 0.5px;
}
.status-indicator .status-accent {
  color: var(--app-accent-ink);
  font-weight: 600;
}

/* ── Entrance animations ─────────────────────────────────────────── */
@keyframes ux-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ux-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ux-sheet-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ux-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════════════
   ZONE: LANDING
   ══════════════════════════════════════════════════════════════════ */

/* -- Bannière « nouvelle version » (unique) : bandeau haut qui POUSSE l'app au lieu de la recouvrir -- */
.ux-sw-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-max);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: calc(48px + env(safe-area-inset-top, 0px));
  background: var(--app-accent-fill);
  color: var(--app-on-accent);
  text-align: center;
  padding: env(safe-area-inset-top, 0px) var(--sp-2) 0 var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.ux-sw-bar.is-on { display: flex; }
/* L'app descend d'une bande : rien (composer, FAB, onglets) n'est recouvert. */
body.klr-update-on .card.app-card {
  box-sizing: border-box;
  margin-top: calc(48px + env(safe-area-inset-top, 0px));
  height: calc(var(--app-height, 100dvh) - 48px - env(safe-area-inset-top, 0px));
  max-height: calc(var(--app-height, 100dvh) - 48px - env(safe-area-inset-top, 0px));
}
.ux-sw-bar-btn {
  background: var(--app-fg-a-20);
  border: none;
  color: #fff;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: var(--r-md, 8px);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: background var(--t-fast);
}
.ux-sw-bar-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  border-radius: 8px;
}
.ux-sw-bar-x .k-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .ux-sw-bar-btn:hover { background: var(--app-fg-a-35); } }

/* -- Overlay maintenance (serveur injoignable) : ligne d'urgence tappable, jamais sur Safe Place -- */
.klr-maint {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  font-family: 'DM Sans', -apple-system, sans-serif;
}
.klr-maint[hidden] { display: none; }
.klr-maint-hero { color: var(--app-accent-ink, var(--accent)); line-height: 0; margin-bottom: 1rem; }
/* Logo : « Kla » et « o » en texte, « rrr » accent animé (.logo-rrr, chat.css). */
.klr-maint-title {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; margin: 0 0 .5rem;
  color: var(--text);
}
.klr-maint-sub { font-size: 1rem; color: var(--app-text-a-55); margin: 0 0 1.5rem; }
.klr-maint-back { font-size: 1rem; color: var(--app-text-a-60); margin: 0 0 2rem; }
.klr-maint-dots { display: flex; gap: 8px; margin-bottom: 1rem; }
.klr-maint-dots span { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; animation: klrMaintBounce .6s ease-in-out infinite alternate; }
.klr-maint-dots span:nth-child(2) { animation-delay: .2s; }
.klr-maint-dots span:nth-child(3) { animation-delay: .4s; }
.klr-maint-help { width: 100%; max-width: 380px; }
.klr-maint-help-title { font-size: .875rem; font-weight: 700; margin: 0 0 .6rem; color: var(--text); }
.klr-maint-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: .75rem; }
.klr-maint-num, .s-safe-emergency-link {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; min-height: 48px; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--app-accent-fill); color: var(--text); text-decoration: none; line-height: 1.15;
  background: color-mix(in srgb, var(--app-accent-fill) 12%, transparent);
}
.klr-maint-num strong, .s-safe-emergency-link strong { font-size: 1.1rem; font-weight: 800; }
.klr-maint-num span, .s-safe-emergency-link span { font-size: .75rem; opacity: .8; }
.klr-maint-safe {
  min-height: 48px; padding: 0 1.25rem; border-radius: var(--r-md, 8px); border: none; cursor: pointer;
  background: var(--app-accent-fill); color: var(--app-on-accent); font: 700 .95rem 'DM Sans', sans-serif;
}
@keyframes klrMaintBounce { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-12px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .klr-maint-dots span { animation: none; } }

/* -- Safe Place : numéros d'urgence en liens tel: -- */
.s-safe-emergency { margin: var(--sp-4) 0 var(--sp-2); text-align: center; }
.s-safe-emergency-title { font-size: .875rem; font-weight: 700; margin: 0 0 .6rem; color: var(--text); }
.s-safe-emergency-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* -- Event time banner -- */
.ux-event-time-banner {
  display: none;
  padding: 0.55rem var(--sp-4);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  flex-shrink: 0;
  border-bottom: 1px solid var(--app-fg-a-08);
}
.ux-event-time-banner--ended {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: var(--sp-3);
}
.ux-banner-recap-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -0.5rem; /* cible tactile de 44 px sans épaissir la bannière */
  padding: 0 var(--sp-3);
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* -- Desktop hero content -- */
.ux-hero-emoji {
  font-size: 5rem;
  margin-bottom: var(--sp-6);
  line-height: 1;
}
.ux-hero-title {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  letter-spacing: -1px;
}
.ux-hero-title-accent { color: var(--app-accent-ink); }
.ux-hero-subtitle {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 380px;
  font-weight: 700;
}
.ux-hero-desc {
  font-size: .92rem;
  color: var(--muted2);
  line-height: 1.6;
  max-width: 360px;
  margin-top: var(--sp-4);
}
.ux-hero-pills {
  margin-top: var(--sp-10);
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.ux-hero-pill {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md, 8px);
  font-size: .85rem;
  font-weight: 700;
  transition: transform var(--t-fast), box-shadow var(--t);
}
@media (hover: hover) and (pointer: fine) { .ux-hero-pill:hover {
  transform: translateY(-2px);
} }
.ux-hero-pill--rose {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.ux-hero-pill--gold {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 15%, transparent);
}
.ux-hero-pill--lavender {
  background: color-mix(in srgb, var(--lavender) 12%, transparent);
  color: var(--lavender);
  border: 1px solid color-mix(in srgb, var(--lavender) 15%, transparent);
}
.ux-hero-stats {
  margin-top: var(--sp-12);
  display: flex;
  gap: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.ux-hero-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Playfair Display', serif;
}
.ux-hero-stat-num--text   { color: var(--text); }
.ux-hero-stat-num--accent { color: var(--app-accent-ink); }
.ux-hero-stat-num--gold   { color: var(--gold); }
/* « Anonyme entre participants » : une icône à la taille des chiffres, plus de « # » vide (F-P13). */
.ux-hero-stat-num .k-icon { --k-icon-size: 1.75rem; stroke-width: 2.25; display: block; }
@media (min-width: 1024px) {
  /* Accueil desktop : un seul logo (celui du panneau de gauche) et un sélecteur
     de langue à sa taille, pas étiré sur la colonne (F-P13). */
  body.mode-landing #s-landing > .landing-hero-header { display: none; }
  body.mode-landing #s-landing > .ux-lang-wrap { width: auto !important; max-width: none !important; }
}

/* -- Lang switcher wrapper -- */
.ux-lang-wrap {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 2;
}
/* Accueil mobile (F-P03) : la carte défile d'un bloc, le pied de page suit le
   contenu au lieu de garder 142 px en bas de chaque écran ; le sélecteur de
   langue passe sous l'îlot et défile avec la page (il flottait sur le texte). */
@media (max-width: 1023px) {
  body.mode-landing #app-card { overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  body.mode-landing #s-landing { flex: 1 0 auto; overflow: visible; position: relative; }
  body.mode-landing #s-landing > .ux-lang-wrap { top: calc(env(safe-area-inset-top, 0px) + 8px); }
}
.ux-lang-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* -- Logo row -- */
.ux-logo-row-spacing { margin-bottom: 0.35rem; }

/* -- Brand logo (hidden by default, shown by JS) -- */
.ux-brand-logo-hidden {
  display: none;
  height: 32px;
  max-width: 100px;
  border-radius: var(--radius-sm);
  margin-left: var(--sp-2);
  object-fit: contain;
}

/* -- Tagline / subtitle -- */
.ux-home-tagline {
  text-align: center;
  color: var(--muted2);
  font-size: 1.05rem;
  margin: 0 0 var(--sp-2);
  line-height: 1.6;
  max-width: 320px;
}
.ux-home-subtitle {
  text-align: center;
  color: var(--app-text-a-35);
  font-size: .88rem;
  margin: 0 0 1.75rem;
  line-height: 1.5;
  max-width: 300px;
}

/* -- Desktop CTA cards -- */
.ux-desktop-ctas-hidden { display: none; }
.ux-cta-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
}
.ux-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ux-cta-icon--join {
  background: var(--accent);
}
.ux-cta-icon--auth {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 15%, transparent);
}
.ux-cta-text   { text-align: left; }
.ux-cta-title  { font-size: 1.1rem; font-weight: 800; }
.ux-cta-desc   { font-size: var(--fs-sm); color: var(--muted2); margin-top: 0.2rem; }

/* -- Desktop panels (join / auth) -- */
.ux-panel-hidden { display: none; }
.ux-back-btn {
  background: none;
  border: none;
  color: var(--muted2);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--sp-4);
  font-family: inherit;
  transition: color var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-back-btn:hover { color: var(--text); } }

/* -- Join form -- */
.ux-section-hint {
  text-align: center;
  margin-bottom: var(--sp-5);
  font-size: 1.2rem;
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  letter-spacing: 0.01em;
}
.ux-field-mb { margin-bottom: var(--sp-5); }
.ux-label-center {
  text-align: center;
  display: block;
  font-size: .92rem;
}
.ux-join-hint {
  font-size: .875rem;
  color: var(--muted2);
  margin: var(--sp-2) 0 0;
  line-height: 1.5;
  text-align: center;
}

/* -- Section label "ou" -- */
.ux-separator { margin: var(--sp-6) 0; }

/* -- QR button -- */
.ux-qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-size: 1.05rem;
}
.ux-qr-icon { font-size: 1.5rem; }
.ux-qr-icon .k-icon { --k-icon-size: 24px; display: block; }

/* -- Rejoindre une soirée : écran dédié (F-P04) --
   Le QR code de la soirée est l'action principale, le code de la soirée
   juste dessous en recours. Le marketing de l'accueil quitte cet écran :
   avant, la carte du code tombait sous le témoignage et le QR à y = 841. */
body.desktop-view-join #s-landing > .hero-eyebrow,
body.desktop-view-join #s-landing > .hero-title,
body.desktop-view-join #s-landing > .hero-sub,
body.desktop-view-join #s-landing > .home-slogan,
body.desktop-view-join #s-landing > .home-social-proof,
body.desktop-view-join #s-landing > .home-testimonial,
body.desktop-view-join #s-landing > .home-reciprocity { display: none !important; }
.ux-join-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: var(--sp-3) 0 var(--sp-2);
}
.ux-join-title:focus { outline: none; } /* focus posé par le script (tabindex=-1), jamais au clavier */
.ux-join-sub {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted2);
  margin: 0 0 var(--sp-5);
}
body.desktop-view-join #btn-open-qr {
  background: var(--app-accent-fill) !important;
  color: var(--app-on-accent) !important;
  border: 0 !important;
  box-shadow: var(--shadow-cta) !important;
  min-height: 56px !important;
}
body.desktop-view-join .ux-separator { margin: var(--sp-5) 0 !important; }
body.desktop-view-join #s-landing > .ux-separator { display: flex !important; } /* l'ordinateur le masquait */
/* #join-form est déjà une carte : pas de carte autour (carte dans la carte). */
body.klr-app.desktop-view-join .badge-form-card {
  background: none;
  border: 0;
  padding: 0;
}
/* « Rejoindre » du code : secondaire, un seul bouton plein par écran. */
body.desktop-view-join #btn-join-code {
  background: transparent !important;
  color: var(--text) !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px var(--line-strong) !important;
  animation: none; /* pas de pulsation (onboarding.js) sur le bouton secondaire */
}
body.desktop-view-join #btn-join-code::after { content: none; }

/* -- QR scanner -- */
.ux-qr-scanner {
  display: none;
  margin-top: var(--sp-4);
  position: relative;
  background: #000;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.ux-qr-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ux-qr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.ux-qr-reticle {
  width: 65%;
  aspect-ratio: 1;
  border: 2.5px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 9999px var(--app-shadow-a-50);
}
.ux-qr-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--app-shade-a-65);
  border: 1px solid var(--app-fg-a-20);
  color: #fff;
  border-radius: var(--r-md, 8px);
  padding: 0.4rem 0.85rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-qr-close-btn:hover { background: var(--app-shade-a-80); } }

/* -- Login error -- */
.ux-login-err { max-width: 340px; width: 100%; }

/* -- Staff login -- */
.ux-staff-login-wrap {
  margin-top: var(--sp-6);
  text-align: center;
}
.ux-staff-toggle {
  background: none;
  border: none;
  color: var(--muted2);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  transition: color var(--t-fast), background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-staff-toggle:hover { color: var(--text); background: var(--app-fg-a-04); } }
.ux-staff-form {
  display: none;
  margin-top: 0.75rem;
}
.ux-staff-err { margin-top: var(--sp-2); }

/* -- Community auth button -- */
.ux-community-btn-flush { margin-bottom: 0; }

/* -- Community auth inline -- */
.ux-auth-inline-hidden { display: none; }
.ux-auth-tabs-mb { margin-bottom: var(--sp-4); }
.ux-forgot-link {
  text-align: right;
  margin-top: var(--sp-2);
}
.ux-forgot-link a {
  font-size: .75rem;
  color: var(--muted2);
  text-decoration: underline;
  text-decoration-color: rgba(171, 163, 194, 0.35);
  text-underline-offset: 3px;
  transition: color var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-forgot-link a:hover { color: var(--text); } }

/* -- Register steps -- */
.ux-register-hidden  { display: none; }
.ux-step-counter {
  margin: 0 0 var(--sp-2);
  text-align: center;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted2);
}
.ux-step-dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.ux-step-dots .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-fg-a-15);
  transition: all 250ms ease;
}
.ux-step-dots .step-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}
.ux-step-title {
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  color: var(--text);
  margin-bottom: var(--sp-1);
}
.ux-step-desc {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.ux-step-actions {
  display: flex;
  gap: var(--sp-2);
}
.ux-step-back-btn {
  flex: 0 0 auto;
  padding: 0 var(--sp-4);
}
.ux-field-hint-hidden {
  display: none;
  font-size: .875rem;
  margin-top: var(--sp-1);
}
.ux-email-hint-hidden {
  display: none;
  color: var(--app-accent-ink);
  font-size: .875rem;
  margin-top: 2px;
}
.ux-optional { opacity: .5; }
.ux-referral-upper { text-transform: uppercase; }

/* -- Forgot password -- */
.ux-forgot-hidden { display: none; }
.ux-forgot-desc {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.ux-forgot-back {
  text-align: center;
  margin-top: var(--sp-3);
}
.ux-forgot-back a {
  font-size: .875rem;
  color: var(--app-accent-ink);
  text-decoration: none;
  transition: opacity var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-forgot-back a:hover { opacity: 0.8; } }

/* -- Terms footer -- */
.ux-terms-footer {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: .875rem;
  color: var(--muted2);
}
.ux-terms-link {
  color: var(--app-accent-ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent-light) 35%, transparent);
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-terms-link:hover { color: var(--app-accent-ink); } }

/* -- Desktop app promo -- */
.ux-app-promo {
  display: none;
  margin-top: var(--sp-6);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  padding: var(--sp-4) var(--sp-5);
  animation: ux-slide-up 400ms ease-out;
}
.ux-promo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ux-promo-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ux-promo-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}
.ux-promo-desc {
  font-size: .875rem;
  color: var(--muted2);
  margin-top: 0.2rem;
  line-height: 1.45;
}
.ux-promo-btns {
  display: flex;
  gap: var(--sp-2);
  margin-top: 0.75rem;
}
.ux-promo-link {
  flex: 1;
  font-size: .875rem;
  padding: 0.45rem;
  text-align: center;
  text-decoration: none;
}

/* -- Install banner -- */
.ux-install-banner {
  display: none;
  margin-top: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-07);
  padding: 0.9rem var(--sp-4);
  animation: ux-slide-up 350ms ease-out;
}
.ux-install-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.ux-install-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.ux-install-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}
.ux-install-desc {
  font-size: .75rem;
  color: var(--muted2);
  margin-top: 0.1rem;
  line-height: 1.4;
}
.ux-install-native-btn {
  display: none;
  font-size: .875rem;
  height: 2.5rem;
  margin-bottom: 0.45rem;
}
.ux-install-guide-btn {
  font-size: var(--fs-sm);
  height: 2.35rem;
}


/* ══════════════════════════════════════════════════════════════════
   ZONE: CHAT
   ══════════════════════════════════════════════════════════════════ */
.ux-zone-chat {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* -- Brand logo in chat topbar -- */
.ux-brand-logo-chat {
  display: none;
  height: 32px;
  max-width: 80px;
  border-radius: var(--sp-2);
  object-fit: contain;
  flex-shrink: 0;
}

/* -- Topbar meta -- */
.ux-topbar-event { font-size: .875rem; }
.ux-topbar-badge {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--app-accent-ink);
}

/* -- XP mini -- */
.ux-event-xp-hidden { display: none; }
.ux-xp-fill-zero    { width: 0%; }
.ux-xp-badge-hidden { display: none; }

/* -- Disconnect status -- */
.ux-disc-banner { display: none; }


/* ══════════════════════════════════════════════════════════════════
   ZONE: THREAD
   ══════════════════════════════════════════════════════════════════ */
.ux-zone-thread {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* -- Thread header avatar -- */
.ux-thread-avatar {
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  font-weight: 800;
}

/* -- Thread header text -- */
.ux-thread-name   { font-size: 1.08rem; font-weight: 800; }
.ux-thread-status { font-size: var(--fs-sm); }

/* -- Safe place button in thread -- */
.ux-safe-thread-btn {
  min-width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* -- GIF picker -- */
.ux-gif-picker { display: none; }

/* -- Spicy picker -- */
.ux-spicy-picker {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0.75rem var(--sp-2);
  overflow: hidden;
}
.ux-spicy-picker--open { display: block; }
.ux-spicy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.ux-spicy-levels {
  display: flex;
  gap: 0.3rem;
  border: none;
  padding: 0;
  margin: 0;
}
.ux-spicy-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.ux-spicy-close-sm { font-size: .9rem; }
.ux-spicy-list {
  max-height: 180px;
  overflow-y: auto;
  padding: 0.4rem var(--sp-2);
}

/* -- Thread input -- */
.ux-btn-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ux-btn-spicy-hidden { display: none; }
.klr-feature-off { display: none !important; }
.ux-spacer { flex: 1; }


/* ══════════════════════════════════════════════════════════════════
   ZONE: NEW MESSAGE
   ══════════════════════════════════════════════════════════════════ */
.ux-zone-new { display: none; }

/* -- Badge field -- */
.ux-badge-field-center {
  text-align: center;
  margin-top: var(--sp-2);
}
.ux-new-label {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}
.ux-new-hint {
  font-size: .88rem;
  color: var(--muted2);
  margin: 0.65rem 0 0;
  line-height: 1.5;
}

/* -- Staff compose wrap -- */
.ux-staff-new-hidden { display: none; }

/* -- Spice custom -- */
.ux-spice-custom-mt { margin-top: var(--sp-6); }
.ux-spice-label-center {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* -- OR divider -- */
.ux-or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: var(--sp-5) 0;
}
.ux-or-line {
  flex: 1;
  height: 1px;
  background: var(--border2);
}
.ux-or-text {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* -- Spice section -- */
.ux-spice-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* -- Start conversation button -- */
.ux-start-conv-mt { margin-top: var(--sp-5); }


/* ══════════════════════════════════════════════════════════════════
   ZONE: SAFE PLACE
   ══════════════════════════════════════════════════════════════════ */
.ux-zone-safe { display: none; }

.ux-safe-hero {
  text-align: center;
  padding: var(--sp-4) 0 0.75rem;
}
.ux-safe-desc {
  font-size: .95rem;
  line-height: 1.65;
  max-width: 320px;
  margin: 0.75rem auto 0;
}
.ux-safe-promises {
  list-style: none;
  padding: 0;
}
.ux-safe-form-mt { margin-top: 0.75rem; }
.ux-safe-field-mb  { margin-bottom: var(--sp-4); }
.ux-safe-field-mb2 { margin-bottom: var(--sp-5); }
.ux-safe-field-label {
  font-size: .92rem;
  font-weight: 600;
}
.ux-safe-field-optional {
  opacity: .5;
  font-weight: 400;
}
.ux-safe-badge-input {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.ux-safe-textarea {
  min-height: 100px;
  border-radius: 8px;
  font-size: var(--fs-md);
}
.ux-safe-footer {
  text-align: center;
  font-size: .875rem;
  color: var(--muted2);
  line-height: 1.6;
  margin-top: var(--sp-4);
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}


/* ══════════════════════════════════════════════════════════════════
   ZONE: STAFF
   ══════════════════════════════════════════════════════════════════ */
.ux-zone-staff {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* -- ToD validate panel -- */
.ux-tod-validate-hidden { display: none; }


/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.ux-app-footer {
  padding: 10px var(--sp-4) calc(10px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .75rem;
  color: var(--muted2);
  opacity: .6;
}
.ux-footer-link {
  display: inline-block;
  padding: 10px 6px;
  min-height: 44px;
  color: var(--muted2);
  text-decoration: none;
  transition: color var(--t-fast);
  line-height: 1.3;
}
@media (hover: hover) and (pointer: fine) { .ux-footer-link:hover { color: var(--text); } }
.ux-footer-insta-link {
  color: var(--app-accent-ink);
  opacity: .8;
  text-decoration: none;
  transition: opacity var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-footer-insta-link:hover { opacity: 1; } }
.ux-footer-insta-link .k-icon { margin-right: .25em; vertical-align: -3px; }

/* -- Desktop footer -- */
.ux-desktop-footer-hidden { display: none; }
.ux-desktop-footer-copy   { opacity: .7; }
.ux-desktop-footer-sep    { opacity: .3; }
.ux-desktop-footer-accent { color: var(--app-accent-ink); }


/* ══════════════════════════════════════════════════════════════════
   ZONE: COMMUNITY
   ══════════════════════════════════════════════════════════════════ */

/* -- Desktop topbar logo accent -- */
.ux-topbar-accent { color: var(--app-accent-ink); }

/* -- Desktop topbar avatar -- */
.ux-topbar-avatar-click { cursor: pointer; }

/* -- Desktop events section -- */
.ux-desktop-events-hidden { display: none; }

/* -- Community header brand -- */
.ux-brand-emoji { font-size: 1.3rem; }
.ux-header-city {
  font-size: .875rem;
  color: var(--muted);
  font-weight: 600;
}
.ux-header-join-btn {
  font-size: .875rem;
  padding: 0.4rem 0.75rem;
}

/* -- Section headings -- */
.ux-section-heading {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: var(--sp-4);
}

/* -- Loading spinner replacement -- */
.ux-loading-center {
  text-align: center;
  padding: var(--sp-8);
}

/* -- Tab bar -- */
.ux-tab-bar-hidden { display: none; }


/* ══════════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════════ */

/* -- Modal overlay base -- */
.ux-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--app-shade-a-72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  animation: ux-fade-in 250ms ease-out;
}

/* -- Staff action modal -- */
.ux-staff-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--app-shade-a-72);
  backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  animation: ux-fade-in 200ms ease-out;
}
.ux-staff-sheet {
  background: var(--surface);
  border-radius: 8px 8px 0 0;
  padding: var(--sp-6) var(--sp-5) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 520px;
  animation: staffSheetIn .25s cubic-bezier(.32, 1, .23, 1);
}
.ux-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border2);
  border-radius: var(--r-md, 8px);
  margin: 0 auto 0.9rem;
}
.ux-staff-sheet-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.ux-staff-sheet-body { margin-bottom: var(--sp-4); }
.ux-staff-sheet-actions {
  display: flex;
  gap: 0.6rem;
}
.ux-staff-cancel-btn {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--muted2);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-staff-cancel-btn:hover { background: var(--bg3); } }
.ux-staff-confirm-btn {
  flex: 2;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  transition: opacity var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-staff-confirm-btn:hover { opacity: 0.9; } }

/* -- Menu backdrop -- */
.ux-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: var(--app-shade-a-50);
}

/* -- Menu drawer -- */
.ux-drawer-hidden { display: none; }
.ux-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
}
.ux-drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.ux-drawer-badge-label {
  font-size: .75rem;
  color: var(--muted2);
  margin-top: 2px;
}
.ux-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-08);
  font-size: var(--fs-md);
  color: var(--muted2);
  cursor: pointer;
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-drawer-close:hover { background: var(--app-fg-a-08); } }

/* -- Menu avatar image -- */
.ux-avatar-img-hidden {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -- Menu navigation list -- */
.ux-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* -- Menu items: hidden by default -- */
.ux-menu-item-hidden { display: none; }
.ux-menu-branding-link {
  display: none;
  text-decoration: none;
}
.ux-menu-link-plain { text-decoration: none; }

/* -- Menu language fieldset -- */
.ux-menu-lang-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* -- Instagram link in menu -- */
.ux-insta-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem var(--sp-4);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-insta-link:hover { background: var(--app-fg-a-04); } }
.ux-insta-icon-wrap {
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.ux-insta-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.ux-insta-sub {
  font-size: .875rem;
  color: var(--muted2);
}

/* -- Install guide modals -- */
.ux-install-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: var(--app-shade-a-70);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: flex-end;
  justify-content: center;
  animation: ux-fade-in 250ms ease-out;
}
.ux-install-sheet-center {
  text-align: center;
  margin-bottom: var(--sp-5);
}
.ux-install-sheet-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.ux-install-sheet-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 0.3rem;
}
.ux-install-sheet-sub {
  font-size: var(--fs-sm);
  color: var(--muted2);
  margin: 0;
  line-height: 1.5;
}
.ux-install-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ux-install-close-btn { margin-top: var(--sp-4); }

/* -- Android install tip -- */
.ux-android-tip {
  font-size: .875rem;
  color: var(--muted2);
  margin: 0.75rem 0 var(--sp-2);
  text-align: center;
  line-height: 1.5;
}
.ux-android-close-btn { margin-top: var(--sp-2); }

/* -- Event info modal -- */
.ux-event-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5500;
  background: var(--app-shade-a-60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: ux-fade-in 250ms ease-out;
}

/* -- Event info QR panel -- */
.ux-einfo-qr-panel {
  display: none;
  text-align: center;
  padding: var(--sp-2) 0 0.75rem;
}

/* -- Event info games panel -- */
.ux-einfo-games-hidden { display: none; }


/* ══════════════════════════════════════════════════════════════════
   MODAL: ACTION OU VERITE (Truth or Dare)
   ══════════════════════════════════════════════════════════════════ */
.ux-tod-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--app-bg-a-97);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
  animation: ux-fade-in 300ms ease-out;
}
.ux-tod-inner {
  max-width: 420px;
  width: 100%;
}
.ux-tod-emoji-lg {
  font-size: 3rem;
  margin-bottom: var(--sp-2);
}
.ux-tod-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}
.ux-tod-subtitle {
  color: var(--muted2);
  font-size: 1.05rem;
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}

/* -- ToD step: choice -- */
.ux-tod-choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: var(--sp-4);
}
.ux-tod-btn-action {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: background var(--t), transform var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-tod-btn-action:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); transform: translateY(-2px); } }
.ux-tod-btn-verite {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border: 2px solid var(--gold);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 1.1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: background var(--t), transform var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-tod-btn-verite:hover { background: color-mix(in srgb, var(--purple) 20%, transparent); transform: translateY(-2px); } }
.ux-tod-btn-pass {
  font-size: var(--fs-md);
  padding: 0.85rem;
  min-height: 52px;
}

/* -- ToD step: spice -- */
.ux-tod-spice-hidden { display: none; }
.ux-tod-spice-label {
  color: var(--muted2);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}
.ux-tod-spice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: var(--sp-4);
}
.ux-tod-spice-btn {
  font-size: 1.2rem;
  padding: 0.75rem;
  cursor: pointer;
}
.ux-tod-spice-sublabel {
  font-size: .75rem;
  color: var(--muted2);
}
.ux-tod-back-btn { margin-top: var(--sp-1); }

/* -- ToD step: sent -- */
.ux-tod-sent-hidden { display: none; }
.ux-tod-sent-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.ux-tod-sent-title {
  font-size: var(--fs-md);
  font-weight: 700;
}
.ux-tod-sent-sub {
  color: var(--muted2);
  font-size: var(--fs-base);
}

/* -- ToD step: challenge -- */
.ux-tod-challenge-hidden { display: none; }
.ux-tod-challenge-type {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.ux-tod-challenge-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}
.ux-tod-challenge-badges {
  font-size: .9rem;
  color: var(--muted2);
  margin-bottom: 0.75rem;
}
.ux-tod-challenge-close { margin-top: var(--sp-2); }

/* -- ToD step: loser -- */
.ux-tod-loser-hidden { display: none; }

/* -- ToD step: animator (accept/refuse) -- */
.ux-tod-animator-hidden { display: none; }
.ux-tod-animator-emoji {
  font-size: 4rem;
  margin-bottom: 0.75rem;
}
.ux-tod-animator-type {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}
.ux-tod-animator-intro {
  font-size: 1.1rem;
  color: var(--muted2);
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}
.ux-tod-animator-challenge {
  font-size: .95rem;
  font-weight: 600;
  padding: 0.75rem var(--sp-4);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
  margin-bottom: var(--sp-6);
  line-height: 1.4;
}
.ux-tod-respond-row {
  display: flex;
  gap: 0.75rem;
}
.ux-tod-respond-btn {
  flex: 1;
  font-size: 1.05rem;
  padding: var(--sp-4);
  min-height: 54px;
  border-radius: var(--radius-lg);
}
.ux-tod-respond-refuse  { font-weight: 700; }
.ux-tod-respond-accept  { font-weight: 800; }

/* -- ToD step: countdown -- */
.ux-tod-countdown-hidden { display: none; }
.ux-tod-countdown-emoji {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.ux-tod-countdown-type {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}
.ux-tod-countdown-challenge-box {
  font-size: .85rem;
  color: var(--muted2);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
  padding: 0.6rem 0.8rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: var(--radius);
}
.ux-tod-countdown-timer {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.ux-tod-countdown-hint {
  font-size: var(--fs-base);
  color: var(--muted2);
}


/* ══════════════════════════════════════════════════════════════════
   MODAL: PRESENTATION
   ══════════════════════════════════════════════════════════════════ */
.ux-pres-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--app-bg-a-97);
  z-index: var(--z-overlay);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
  animation: ux-fade-in 300ms ease-out;
}
.ux-pres-inner { max-width: 420px; width: 100%; }

/* -- Pres step: invite -- */
.ux-pres-emoji-lg {
  font-size: 3.5rem;
  margin-bottom: var(--sp-4);
}
.ux-pres-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.ux-pres-desc {
  font-size: var(--fs-md);
  color: var(--muted2);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}
.ux-pres-cta {
  margin-bottom: 0.75rem;
  min-height: 54px;
  font-size: 1.05rem;
  font-weight: 700;
}
.ux-pres-skip {
  min-height: 48px;
  font-size: var(--fs-md);
}
.ux-pres-cancel {
  margin-top: 8px;
  color: var(--muted) !important;
  font-size: .875rem !important;
  min-height: 44px;
  opacity: .7;
}
@media (hover: hover) and (pointer: fine) { .ux-pres-cancel:hover { opacity: 1; } }
.ux-pres-hype-stats {
  display: flex; gap: 12px; justify-content: center;
  margin: 12px 0 16px; font-size: .875rem; color: var(--muted2);
}
.ux-pres-hype-stats span {
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 8px; padding: 4px 10px;
  font-weight: 600; color: var(--app-accent-ink);
}
.ux-pres-upsell-hint {
  margin-top: 16px; font-size: .875rem;
  color: var(--muted2); text-align: center; line-height: 1.5;
}

/* -- Pres step: text -- */
.ux-pres-text-hidden { display: none; }
.ux-pres-text-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.ux-pres-text-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.ux-pres-text-desc {
  font-size: .95rem;
  color: var(--muted2);
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}
.ux-pres-textarea {
  width: 100%;
  min-height: 100px;
  border-radius: 8px;
  border: 2px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  padding: var(--sp-4);
  font-size: var(--fs-md);
  resize: vertical;
  margin-bottom: var(--sp-4);
  transition: border-color var(--t);
}
.ux-pres-textarea:focus { border-color: var(--accent); }
.ux-pres-submit-btn {
  margin-bottom: 0.75rem;
  min-height: 54px;
  font-size: 1.05rem;
}

/* -- Pres step: done -- */
.ux-pres-done-hidden { display: none; }
.ux-pres-done-emoji {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}
.ux-pres-done-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.ux-pres-done-desc {
  font-size: .9rem;
  color: var(--muted2);
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}

/* -- Pres step: declined -- */
.ux-pres-declined-hidden { display: none; }
.ux-pres-declined-emoji {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.ux-pres-declined-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.ux-pres-declined-desc {
  font-size: var(--fs-base);
  color: var(--muted2);
  margin-bottom: var(--sp-6);
}

/* -- Pres: presented notification -- */
.ux-pres-presented-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--app-bg-a-97);
  z-index: 501;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  text-align: center;
  animation: ux-scale-in 400ms var(--ease-out);
}
.ux-pres-presented-inner { max-width: 380px; }
.ux-pres-presented-emoji {
  font-size: 4rem;
  margin-bottom: 0.75rem;
}
.ux-pres-presented-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  margin-bottom: 0.75rem;
}
.ux-pres-presented-desc {
  font-size: 1.1rem;
  color: var(--muted2);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}
.ux-pres-presented-btn {
  min-height: 58px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 8px;
}


/* ══════════════════════════════════════════════════════════════════
   NOTIFICATION PREFERENCES PANEL
   ══════════════════════════════════════════════════════════════════ */
.ux-notif-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--app-shade-a-50);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ux-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
}
.ux-notif-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}
.ux-notif-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-08);
  font-size: .9rem;
  color: var(--muted2);
  cursor: pointer;
  transition: background var(--t-fast);
}
@media (hover: hover) and (pointer: fine) { .ux-notif-close:hover { background: var(--app-fg-a-08); } }
.ux-notif-list {
  padding: 0 var(--sp-5);
}
.ux-notif-disable-btn {
  margin: var(--sp-4) var(--sp-5);
  width: auto;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}


/* ══════════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS & SMOOTH TRANSITIONS
   ══════════════════════════════════════════════════════════════════ */

/* Smooth section transitions */
.zone-landing,
.zone-chat,
.zone-community {
  transition: opacity var(--t-slow) ease-out;
}

/* Interactive element hover micro-feedback */
.ux-sw-bar-btn:focus-visible,
.ux-back-btn:focus-visible,
.ux-staff-toggle:focus-visible,
.ux-qr-close-btn:focus-visible,
.ux-drawer-close:focus-visible,
.ux-notif-close:focus-visible,
.ux-staff-cancel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   PRIDE MODE — klarrro UX landing + unified app chrome
   Premium mais déluré: rainbow accents on all app chrome
   ═══════════════════════════════════════════════════════ */

/* SW update bar — rainbow gradient */
.pride .ux-sw-bar {
  background: linear-gradient(135deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787) !important;
}

/* Hero title accent — arc-en-ciel fixe */
.pride .ux-hero-title-accent {
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero pills — all get rainbow border in pride mode */
.pride .ux-hero-pill {
  background: linear-gradient(var(--bg), var(--bg)) padding-box,
              linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787) border-box !important;
  border: 1.5px solid transparent !important;
  color: var(--lavender) !important;
}

/* Hero stat numbers — pride gradient text */
.pride .ux-hero-stat-num--accent {
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Event time banner — pride border */
.pride .ux-event-time-banner {
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787) 1;
}

/* Focus outlines — pride gradient */
.pride .ux-sw-bar-btn:focus-visible,
.pride .ux-back-btn:focus-visible {
  outline-color: var(--lavender);
}

/* Notification badge — rainbow */
.pride .ux-notif-badge {
  background: linear-gradient(135deg, #e40303, #ff8c00, #ffed00) !important;
}

/* Back button — pride accent */
.pride .ux-back-btn {
  color: var(--lavender);
}
@media (hover: hover) and (pointer: fine) { .pride .ux-back-btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--lavender) 10%, transparent);
} }

/* ══════════════════════════════════════════════════════════════════
   LANDING: Live events section (no code needed)
   ══════════════════════════════════════════════════════════════════ */
.landing-live-events {
  width: 100%;
  margin-bottom: var(--sp-5);
}
.landing-live-title {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--sp-3);
}
.landing-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 50%, transparent); }
  50% { opacity: .7; box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 0%, transparent); }
}
.landing-live-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.15rem;
  margin-bottom: var(--sp-2);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--success) 20%, transparent);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
@media (hover: hover) and (pointer: fine) { .landing-live-card:hover {
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
} }
.landing-live-card:active {
  transform: scale(.97);
}
.landing-live-card-info {
  flex: 1;
  min-width: 0;
}
.landing-live-card-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-live-card-stats {
  display: flex;
  gap: .75rem;
  font-size: var(--fs-xs);
  color: var(--muted2);
}
.landing-live-card-arrow {
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  margin-left: var(--sp-3);
}

/* Back button on signup steps (landing) */
.ux-back-btn--landing {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: var(--sp-2);
}

/* ── Landing Redesign v2 ── */
.landing-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.landing-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.landing-logo .logo-accent {
  color: var(--app-accent-ink);
  display: inline-block;
  animation: klarrro-logo-r 1.4s cubic-bezier(.4,0,.2,1) infinite;
}
.landing-logo .logo-accent:nth-of-type(1) { animation-delay: 0s; }
.landing-logo .logo-accent:nth-of-type(2) { animation-delay: .15s; }
.landing-logo .logo-accent:nth-of-type(3) { animation-delay: .3s; }
@keyframes klarrro-logo-r {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

.landing-live-pill {
  visibility: hidden;
  opacity: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md, 8px);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--app-accent-ink);
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}
body.event-live .landing-live-pill { visibility: visible; opacity: 1; }

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.badge-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
}
/* Accueil mobile : le formulaire est masqué, sa carte vide aussi. */
body.mode-landing:not(.desktop-view-join) .badge-form-card { display: none; }
.badge-form-card .badge-form-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
  display: block;
}

/* Code de la soirée : chasse fixe et zéro barré, jamais Playfair (« KLR-1o8 », F-P01). */
#join-code-input {
  font-family: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace !important;
  font-variant-numeric: slashed-zero tabular-nums lining-nums;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--app-accent-ink) !important;
  text-align: center !important;
  letter-spacing: 6px !important;
  background: var(--app-bg-a-70) !important;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent) !important;
  border-radius: 8px !important;
  width: 100% !important;
  padding: 1rem 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

#btn-join-code {
  box-shadow: var(--shadow-rose) !important;
  padding: 1rem !important;
  font-size: 1rem !important;
}

.landing-event-hint {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  text-align: center;
  padding: 0.75rem 0 0.25rem;
  transition: opacity 0.3s;
}
.landing-event-hint.visible {
  visibility: visible;
  height: auto;
}
.landing-event-hint p {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.landing-event-hint strong { color: var(--app-accent-ink); }

/* ── Chat list redesign v2 ── */
.conv-list .conv-item,
.conv-item {
  border-radius: var(--radius-md) !important;
  background: var(--app-surface-a-60) !important;
  border: 1px solid var(--app-fg-a-06) !important;
  margin-bottom: 6px !important;
  transition: background 0.15s !important;
}
 .conv-item:focus-within {
  background: var(--app-surface-a-90) !important;
}
@media (hover: hover) and (pointer: fine) { .conv-item:hover {
  background: var(--app-surface-a-90) !important;
} }
.conv-item.unread {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent) !important;
  background: color-mix(in srgb, var(--accent) 5%, transparent) !important;
}

/* Chat topbar */
.chat-topbar {
  background: var(--app-bg-a-95) !important;
  border-bottom: 1px solid var(--app-fg-a-06) !important;
  backdrop-filter: blur(10px) !important;
}
.chat-topbar-event {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* Conv filter bar pills */
.conv-filter-btn {
  border-radius: var(--r-md, 8px) !important;
  font-size: .875rem !important;
}
.conv-filter-btn.active {
  background: color-mix(in srgb, var(--accent) 15%, transparent) !important;
  color: var(--app-accent-ink) !important;
  border-color: color-mix(in srgb, var(--accent) 30%, transparent) !important;
}

/* FAB new conv */
.fab-new-conv {
  border-radius: 8px !important;
  box-shadow: var(--shadow-rose) !important;
  background: var(--app-accent-fill) !important;
}
