/* ═══════════════════════════════════════════════════════
   KLARRRO COMMUNITY — community.css
   ═══════════════════════════════════════════════════════ */

/* ── Grain texture (softer than chat: 0.02 vs 0.028) ── */
.community-app::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reCAPTCHA badge hidden globally in base.css */

/* ── Layout ─────────────────────────────────────────── */
.community-app {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  font-family: 'DM Sans', -apple-system, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  line-height: 1.6;
  overflow-x: hidden;
}

.community-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--app-bg-a-96);
  border-bottom: 1px solid var(--border);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.community-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -.3px;
}
.community-header .brand-accent {
  color: var(--app-accent-ink);
}
/* ── Animated rrr letters ── */
.rrr-letter {
  display: inline-block;
  animation: rrrBounce 2.8s ease-in-out infinite;
  animation-delay: calc(var(--r, 0) * 0.15s);
}
@keyframes rrrBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-3px); }
  30% { transform: translateY(0); }
}
.community-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Bottom Tab Bar ─────────────────────────────────── */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--app-bg-a-96);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 4px 0 env(safe-area-inset-bottom, 10px);
}
.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 200ms ease;
  min-width: 60px;
  min-height: 48px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .2px;
}
.tab-bar-item .tab-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease-out, filter 180ms ease;
}
.tab-bar-item .tab-icon svg {
  display: block;
}
.tab-bar-item.active {
  color: var(--app-accent-ink);
}
.tab-bar-item.active .tab-icon {
  transform: scale(1.08);
}
.tab-bar-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: tabDotIn 250ms ease;
}
@keyframes tabDotIn {
  from { width: 0; opacity: 0; }
  to { width: 20px; opacity: 1; }
}
.tab-bar-item:active .tab-icon {
  transform: scale(0.92);
}

/* ── Sections ───────────────────────────────────────── */
.community-section {
  display: none;
  padding: 20px;
  max-width: 100%;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .community-section {
    max-width: 580px;
  }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeSlideDown {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(6px) scale(0.98); }
}
.community-section.active {
  display: block;
}
.community-section.exiting {
  display: block;
  animation: fadeSlideDown 180ms ease-in forwards;
}


/* ── Community Disabled (ephemeral-only mode) ──────── */
.community-disabled-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  min-height: 60vh;
  animation: fadeSlideUp 350ms ease-out both;
}
.community-disabled-card { text-align: center; max-width: 360px; width: 100%; }
.community-disabled-icon { margin-bottom: 1.25rem; opacity: 0.8; }
.community-disabled-icon svg { stroke: var(--accent); }
.community-disabled-title {
  font-family: "Playfair Display", Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: .75rem;
  letter-spacing: -.3px;
}
.community-disabled-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.community-disabled-text strong { color: var(--text); }
.community-disabled-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 4px;
  color: var(--app-accent-ink);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.community-disabled-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: var(--app-accent-fill);
  color: var(--app-on-accent);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms, transform 100ms;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) { .community-disabled-btn:hover { background: var(--accent-dark); } }
.community-disabled-btn:active { transform: scale(.97); }

/* ── Auth Modal — Nightclub Exclusive ──────────────── */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--app-shade-a-82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.auth-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 8px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  animation: authSlideUp 350ms var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px var(--app-shadow-a-50);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  pointer-events: none;
}
@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-card h2 {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--text);
}
.auth-card .auth-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: 24px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 11px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: transform 250ms ease, opacity 250ms ease, background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease, color 250ms ease;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}
@media (hover: hover) and (pointer: fine) { .auth-tab:hover:not(.active) { color: var(--text); background: var(--border); } }
.auth-tab.active {
  background: var(--app-accent-fill);
  color: #fff;
}
.auth-error {
  color: var(--danger);
  font-size: .875rem;
  text-align: center;
  margin-bottom: 12px;
  min-height: 1.2em;
  background: color-mix(in srgb, var(--danger) 6%, transparent);
  border-radius: 8px;
  padding: 6px 10px;
}
.auth-error:empty {
  display: none;
}

/* ── Section Headings (Playfair Display) ───────────── */
.community-section h2 {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 900;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

/* ── Feed Welcome Card ─────────────────────────────── */
/* ── Community Pulse Hero ──────────────────────────── */
.feed-pulse-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 22px 20px 18px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.feed-pulse-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  pointer-events: none;
}
.feed-pulse-content { position: relative; z-index: 1; }
.feed-pulse-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.feed-pulse-greeting h3 {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}
.feed-pulse-level {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--app-accent-ink);
}
.feed-pulse-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.pulse-stat { text-align: center; flex: 1; }
.pulse-stat-num {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--app-accent-ink);
}
.pulse-stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}
.pulse-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── Feed Cards ─────────────────────────────────────── */
.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .feed-card:hover {
  border-color: var(--border2);
} }
.feed-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .875rem;
  color: var(--app-accent-ink);
  flex-shrink: 0;
}
.feed-card-meta {
  font-size: .75rem;
  color: var(--muted);
}

/* ── Event Cards — Immersive Nightlife ─────────────── */
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
@media (hover: hover) and (pointer: fine) { .event-card:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
} }
.event-card:active {
  transform: translateY(-1px);
}

/* ── Enhanced card interactions ── */
@media (hover: hover) and (pointer: fine) { .feed-card:hover {
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-2px);
  transition: transform 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), background-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1));
} }
.feed-card:active, .event-card:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-out);
}

.event-card-gradient {
  height: 80px;
  position: relative;
  overflow: hidden;
}
.event-card-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}
.event-card-gradient.rose    { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent) 0%, color-mix(in srgb, var(--accent) 8%, transparent) 70%, transparent 100%); }
.event-card-gradient.gold    { background: linear-gradient(135deg, color-mix(in srgb, var(--gold-fill) 30%, transparent) 0%, color-mix(in srgb, var(--gold-fill) 8%, transparent) 70%, transparent 100%); }
.event-card-gradient.lavender { background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 25%, transparent) 0%, color-mix(in srgb, var(--purple) 8%, transparent) 70%, transparent 100%); }
.event-card-gradient .event-date {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.event-card-gradient.rose .event-date     { color: var(--app-accent-ink); }
.event-card-gradient.gold .event-date     { color: var(--gold-ink); }
.event-card-gradient.lavender .event-date { color: var(--app-violet-ink); }
.event-card-body { padding: 14px 14px 16px; }
.event-card-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: var(--fs-card-title);
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.25;
}
.event-card-info {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .875rem;
  color: var(--muted);
}
.event-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--app-accent-ink);
  letter-spacing: .3px;
}

/* ── Tonight Event Card ─────────────────────────────── */
.event-card-tonight {
  border: 1.5px solid color-mix(in srgb, var(--success) 25%, transparent);
}
.tonight-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .02em;
}

/* ── Empty States ───────────────────────────────────── */
.community-empty {
  text-align: center;
  padding: 48px 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent) 0%, var(--app-bg-a-00) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 8px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}
.community-empty::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  pointer-events: none;
}
.community-empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  position: relative;
  display: inline-block;
}
.community-empty h3 {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.community-empty p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}
.community-empty .btn {
  margin-top: 16px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  min-height: 44px;
  text-align: center;
  background: var(--app-accent-fill);
  border: none;
  color: #fff;
  font-weight: 700;
}

/* ── Profile — Editorial Nightlife ─────────────────── */
.profile-header {
  text-align: center;
  padding: 24px 16px 16px;
  position: relative;
}
.profile-header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 200px;
  pointer-events: none;
}
.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 3px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  margin: 0 auto 12px;
  position: relative;
}
.profile-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: var(--fs-page-title);
  font-weight: 900;
  color: var(--text);
}
.profile-city {
  font-size: .875rem;
  color: var(--muted);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  background: var(--app-fg-a-02);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.profile-stat-val {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--app-accent-ink);
}
.profile-stat-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.profile-referral {
  margin-top: 20px;
  padding: 16px;
  background: color-mix(in srgb, var(--gold-fill) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 15%, transparent);
  border-radius: 8px;
  text-align: center;
}
.profile-referral-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold-ink);
  margin: 6px 0;
}

/* ── Feed Section Title ────────────────────────────── */
.feed-section-title {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 28px 0 16px;
  font-weight: 700;
}
.feed-section-label {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 16px;
  padding-left: 2px;
  position: relative;
}
.feed-section-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ── Feed Items (Activity Feed) — Type-Specific ───── */
.feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  animation: feedSlideIn 350ms ease both;
  transition: border-color 180ms ease, transform 180ms ease;
}
@media (hover: hover) and (pointer: fine) { .feed-item:hover {
  border-color: var(--border2);
  transform: translateX(2px);
} }
@keyframes feedSlideIn {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}
.feed-item-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--border);
}
.feed-item-body {
  flex: 1;
  min-width: 0;
}
.feed-item-text {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text2);
}
.feed-item-text strong {
  color: var(--text);
  font-weight: 700;
}
.feed-item-time {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ── Type: Match (rose glow, celebration) ─────────── */
.feed-item--match {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, var(--surface) 60%);
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
.feed-item--match .feed-item-icon {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.feed-item--match .feed-item-text strong {
  color: var(--app-accent-ink);
}
.feed-item-glow {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}
.feed-item-sparks { display: none; }

/* ── Type: Level-up (gold glow, achievement) ──────── */
.feed-item--levelup {
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold-fill) 6%, transparent) 0%, var(--surface) 60%);
  border-color: color-mix(in srgb, var(--gold-fill) 12%, transparent);
}
.feed-item--levelup .feed-item-icon {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
}
.feed-item--levelup .feed-item-text strong {
  color: var(--gold-ink);
}

/* ── Type: Recap (stats layout) ──────────────────── */
.feed-item--recap {
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--info) 5%, transparent);
  border-color: color-mix(in srgb, var(--info) 10%, transparent);
}
.feed-item--recap .feed-item-icon {
  background: color-mix(in srgb, var(--info) 10%, transparent);
}
.feed-recap-stats {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.feed-recap-num {
  font-size: .75rem;
  color: var(--text2);
}
.feed-recap-num strong {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .95rem;
  font-weight: 800;
  color: var(--info);
  margin-right: 3px;
}

/* ── Type: Announce (new event, prominent) ────────── */
.feed-item--announce {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-color: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 14px 16px;
}
.feed-item--announce .feed-item-icon {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.feed-announce-cta {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--app-accent-ink);
  margin-top: 4px;
  cursor: pointer;
}

/* ── Type: Check-in (subtle location feel) ────────── */
.feed-item--checkin .feed-item-icon {
  background: color-mix(in srgb, var(--success) 8%, transparent);
}

/* ── Type: Social (referrals, RSVPs) ─────────────── */
.feed-item--social .feed-item-icon {
  background: color-mix(in srgb, var(--lavender) 8%, transparent);
}

/* ── Countdown Badges ──────────────────────────────── */
.countdown-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: .75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--app-r-btn);
  /* Pas de capitales : « 29 j 23 h », pas « 29J 23H ». */
  font-variant-numeric: tabular-nums;
}
.countdown-normal {
  background: var(--border2);
  color: var(--muted2);
}
.countdown-soon {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold-ink);
}
.countdown-urgent {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--app-accent-ink);
}
.countdown-critical {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  color: var(--danger);
}
.countdown-live {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 4px;
}
.countdown-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── Spots / Capacity Bar ──────────────────────────── */
.spots-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.spots-bar-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 80px;
}
.spots-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 600ms ease;
}
.spots-normal .spots-bar-fill {
  background: var(--accent);
}
.spots-warning .spots-bar-fill {
  background: var(--gold-fill);
}
.spots-critical .spots-bar-fill {
  background: var(--danger);
}
.spots-full .spots-bar-fill {
  background: var(--muted);
}
.spots-label {
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.spots-normal .spots-label { color: var(--app-accent-ink); }
.spots-warning .spots-label { color: var(--gold-ink); }
.spots-critical .spots-label { color: var(--danger); }
.spots-full .spots-label { color: var(--muted); }

/* ── Attendee Avatars ──────────────────────────────── */
.event-card-attendees {
  margin-top: 8px;
  min-height: 28px;
}
.attendee-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.attendee-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: var(--app-accent-ink);
  margin-left: -6px;
  flex-shrink: 0;
}
.attendee-avatar:first-child {
  margin-left: 0;
}
.attendee-more {
  background: var(--border2);
  color: var(--muted2);
  font-size: .75rem;
}
.attendee-count {
  font-size: .75rem;
  color: var(--muted2);
  margin-left: 8px;
  font-weight: 600;
}

/* ── RSVP Button ───────────────────────────────────── */
.event-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.event-card-actions > .btn-rsvp,
.event-card-actions > .btn-join { flex: 1 1 0; min-width: 0; width: auto; min-height: 44px; justify-content: center; }
.event-card-actions > .event-card-free-entry {
  flex: 1 1 0;
  margin: 0;
  padding: 11px 4px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--muted2);
}
.btn-rsvp {
  width: 100%;
  padding: 11px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--app-accent-ink);
  font-weight: 800;
  font-size: .875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  letter-spacing: .3px;
}
@media (hover: hover) and (pointer: fine) { .btn-rsvp:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
} }
.btn-rsvp:active {
  transform: scale(0.98);
}
.btn-rsvp-active {
  background: var(--app-accent-fill);
  color: #fff;
  border-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .btn-rsvp-active:hover {
  background: var(--accent);
} }

/* ── Live Banner ───────────────────────────────────── */
.live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--success) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 20%, transparent);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  animation: fadeUp 300ms ease;
}
.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.live-banner-content {
  font-size: .875rem;
  color: var(--text2);
}
.live-banner-content strong {
  color: var(--success);
  font-weight: 800;
  letter-spacing: .5px;
}

/* ── Live Event Hero ──────────────────────────────── */
.live-event-hero {
  position: relative;
  overflow: hidden;
  padding: 18px 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  animation: fadeUp 300ms ease;
}
.live-event-content {
  position: relative;
  z-index: 1;
}
.live-event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text2);
  margin-bottom: 10px;
}
.live-event-header strong {
  color: var(--success);
  font-weight: 800;
  letter-spacing: .5px;
  margin-right: 4px;
}
.live-event-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--muted2);
  margin-bottom: 8px;
}
.live-event-stats span {
  white-space: nowrap;
}
.live-event-last-match {
  font-size: .75rem;
  color: var(--app-accent-ink);
  margin-bottom: 10px;
  font-style: italic;
}
.live-pulse-ring {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translate(0, -50%) scale(0.6);
  animation: pulseRing 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0%   { transform: translate(0, -50%) scale(0.6); opacity: 0.6; }
  100% { transform: translate(0, -50%) scale(1.4); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   RGPD — DONNÉES PERSONNELLES
   ═══════════════════════════════════════════════════════ */

.profile-rgpd {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.profile-rgpd-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.profile-rgpd-info {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   ORGANIZER & PARTNER
   ═══════════════════════════════════════════════════════ */

/* ── Organizer Badge on Event Cards ────────────────── */
.event-card-orga {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: .75rem;
  color: var(--muted2);
}
.event-card-orga-logo {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.event-card-orga-name {
  font-weight: 600;
}
.event-card-orga-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ── Partner Profile Overlay ───────────────────────── */
.partner-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--app-shade-a-70);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeUp 200ms ease;
}
.partner-overlay-card {
  background: var(--bg);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 300ms var(--ease-out);
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.partner-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: var(--app-shade-a-50);
  border: none;
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-hero {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.partner-overlay-body {
  padding: 20px;
}
.partner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.partner-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.partner-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.2rem;
  font-weight: 900;
}
.partner-subtitle {
  font-size: .875rem;
  color: var(--muted2);
  margin-top: 2px;
}
.partner-info-row {
  font-size: .875rem;
  color: var(--text2);
  margin-bottom: 4px;
}
.partner-description {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 12px 0;
}
.partner-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.partner-highlight-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--gold-fill) 8%, transparent);
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text2);
}
.partner-highlight-icon {
  font-size: .875rem;
}
.partner-socials {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════
   PHASE 3 — ADDICTION LOOP
   ═══════════════════════════════════════════════════════ */

/* ── Profile Level Badge ───────────────────────────── */
.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 8px;
}
.profile-level-icon {
  font-size: 1rem;
}
.profile-level-name {
  font-weight: 800;
  font-size: .78rem;
  color: var(--app-accent-ink);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profile-level-xp {
  font-size: .75rem;
  color: var(--muted2);
  font-weight: 600;
}

/* ── XP Progress Bar ──────────────────────────────── */
.profile-xp-bar {
  width: 60%;
  max-width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px auto 0;
}
.profile-xp-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 800ms ease;
}

/* ── Streak Display ────────────────────────────────── */
.profile-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--gold-ink);
}
.profile-streak-flame {
  font-size: 1rem;
}

/* ── Achievement Grid ──────────────────────────────── */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  cursor: default;
}
.achievement-unlocked {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-fill) 25%, transparent);
}
.achievement-unlocked .achievement-icon {
  font-size: 1.4rem;
}
.achievement-locked {
  background: var(--app-fg-a-02);
  border: 1px solid var(--border);
  opacity: 0.35;
}
.achievement-locked .achievement-icon {
  font-size: 1.4rem;
  filter: grayscale(1);
}
.achievement-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text2);
  line-height: 1.2;
}
.achievement-unlocked .achievement-label {
  color: var(--app-accent-ink);
}

/* ═══════════════════════════════════════════════════════
   PHASE 2 — VIRAL ENGINE
   ═══════════════════════════════════════════════════════ */

/* ── Pote Form ─────────────────────────────────────── */
.pote-form {
  animation: fadeUp 220ms ease;
}
.pote-form-title {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.pote-form-subtitle {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 16px;
}
.pote-qualities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pote-quality-btn {
  padding: 6px 12px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) { .pote-quality-btn:hover {
  border-color: var(--accent);
  color: var(--app-accent-ink);
} }
.pote-quality-btn.selected {
  background: var(--app-accent-fill);
  border-color: var(--accent);
  color: var(--app-on-accent);
}

/* ── Pote Cards (list) ─────────────────────────────── */
.pote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  animation: fadeUp 220ms ease;
}
.pote-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pote-card-name {
  font-weight: 800;
  font-size: .95rem;
}
.pote-status {
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.pote-status-pending {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold-ink);
}
.pote-status-accepted {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}
.pote-card-qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.pote-quality-tag {
  padding: 2px 8px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--app-accent-ink);
}
.pote-card-actions {
  text-align: right;
}

/* ── Pote Share Card (preview) ─────────────────────── */
.pote-share-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pote-share-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  pointer-events: none;
}
.pote-share-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  pointer-events: none;
}
.pote-share-card-header {
  margin-bottom: 12px;
}
.pote-share-card-title {
  font-size: .875rem;
  color: var(--muted2);
  font-weight: 600;
}
.pote-share-card-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}
.pote-share-card-qualities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.pote-share-card-anecdote {
  font-size: .82rem;
  color: var(--text2);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 0 8px;
}
.pote-share-card-footer {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 8px;
}

/* ── Pote Share Link ───────────────────────────────── */
.pote-share-link {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.pote-share-link input {
  flex: 1;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .875rem;
  font-family: monospace;
}

/* ── Referral Leaderboard ──────────────────────────── */
.leaderboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 150ms ease;
}
.leaderboard-row:last-child {
  border-bottom: none;
}
@media (hover: hover) and (pointer: fine) { .leaderboard-row:hover {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
} }
.leaderboard-rank {
  width: 28px;
  text-align: center;
  font-size: .875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  color: var(--app-accent-ink);
  flex-shrink: 0;
}
.leaderboard-info {
  flex: 1;
  min-width: 0;
}
.leaderboard-name {
  font-weight: 700;
  font-size: .875rem;
}
.leaderboard-title {
  font-size: .75rem;
  color: var(--muted);
}
.leaderboard-count {
  font-size: .78rem;
  font-weight: 800;
  color: var(--app-accent-ink);
  flex-shrink: 0;
}

/* ── Profile Share Card ────────────────────────────── */
.profile-share-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}
.profile-share-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--app-accent-ink);
}
.profile-share-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  margin: 0 auto 8px;
}
.profile-share-card-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 4px;
}
.profile-share-card-city {
  font-size: .875rem;
  color: var(--muted2);
  margin-bottom: 12px;
}
.profile-share-card-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 12px;
}
.profile-share-card-code {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--app-accent-ink);
  padding: 6px 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: 8px;
  display: inline-block;
}

/* ── Confetti ──────────────────────────────────────── */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}
.confetti-particle {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}

/* ═══════════════════════════════════════════════════════
   UX — TOAST, LOADING, FOCUS, TOUCH, A11Y
   ═══════════════════════════════════════════════════════ */

/* ── Toast Notifications ───────────────────────────── */
.community-toast {
  position: fixed;
  bottom: calc(90px + var(--kb-offset, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  box-shadow: 0 8px 24px var(--app-shadow-a-40);
  max-width: 340px;
  text-align: center;
}
.community-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.community-toast-error {
  border-color: color-mix(in srgb, var(--danger) 40%, transparent);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: #FF8A8A;
}
.community-toast.toast--xp {
  border-left: 3px solid var(--accent);
  color: var(--text);
}

/* ── Button Loading State ──────────────────────────── */
.btn-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Focus States (Accessibility) ──────────────────── */
.tab-bar-item:focus-visible,
.btn:focus-visible,
.btn-rsvp:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.pote-quality-btn:focus-visible,
.auth-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ── Touch Targets (min 44px) ──────────────────────── */
.tab-bar-item {
  min-height: 44px;
  padding: 8px 12px;
}
.auth-tab {
  min-height: 44px;
  padding: 12px 10px;
}
.pote-quality-btn {
  min-height: 44px;
  padding: 8px 14px;
}

/* ── Share Button ────────────────────────────────────────────── */
.btn-share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--app-accent-ink);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
 .btn-share:active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
  transform: scale(1.05);
}
@media (hover: hover) and (pointer: fine) { .btn-share:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
  transform: scale(1.05);
} }

/* ═══════════════════════════════════════════════════════
   FOMO — SOCIAL PROOF
   ═══════════════════════════════════════════════════════ */

/* ── Activity Ticker ──────────────────────────────── */
.activity-ticker {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 0;
  min-height: 38px;
  position: relative;
}
.ticker-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.ticker-item--dup { display: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 9px 28px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text2);
  flex-shrink: 0;
  gap: 6px;
}

/* ── Trending Badge ───────────────────────────────── */
.trending-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: .75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
  z-index: 2;
}

/* ── Urgency Pulse ────────────────────────────────── */
.urgency-pulse {
  font-size: .75rem;
  font-weight: 800;
  color: var(--danger);
  padding: 4px 0;
}

/* ── FOMO Counter ─────────────────────────────────── */
.fomo-counter {
  font-size: .75rem;
  font-weight: 700;
  color: var(--app-accent-ink);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.fomo-counter-num {
  font-weight: 900;
  font-size: .82rem;
  min-width: 14px;
  display: inline-block;
}

/* ── FOMO Last RSVP ───────────────────────────────── */
.fomo-last-rsvp {
  font-size: .75rem;
  color: var(--muted2);
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.8;
}

/* ── Feed XP Badge ─────────────────────────────────── */
.feed-xp-badge {
  display: inline-block;
  background: var(--gold-fill);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Feed Item Referral Highlight ─────────────────── */
.feed-item-referral {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 8px;
  padding: 10px 12px;
}

/* ── Referral Dashboard (Profile) ─────────────────── */
.referral-dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 16px;
}
.referral-dashboard-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 14px;
}
.referral-stat-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--app-accent-ink);
}
.referral-stat-label {
  font-size: .75rem;
  color: var(--muted2);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.referral-filleuls {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.referral-filleul-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.referral-filleul-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--app-accent-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  color: var(--app-on-accent);
  flex-shrink: 0;
}
.referral-filleul-info {
  flex: 1;
  min-width: 0;
}
.referral-filleul-name {
  font-weight: 700;
  font-size: .875rem;
  color: var(--text);
}
.referral-filleul-status {
  font-size: .75rem;
  color: var(--muted2);
}
.referral-filleul-date {
  font-size: .75rem;
  color: var(--muted2);
  flex-shrink: 0;
}

/* ── Pote Share Buttons ───────────────────────────── */
.pote-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.pote-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) { .pote-share-btn:hover {
  background: var(--border);
} }
.pote-share-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.3);
  color: #25D366;
}
@media (hover: hover) and (pointer: fine) { .pote-share-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
} }
.pote-share-sms {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  border-color: color-mix(in srgb, var(--info) 30%, transparent);
  color: var(--info);
}
@media (hover: hover) and (pointer: fine) { .pote-share-sms:hover {
  background: color-mix(in srgb, var(--info) 20%, transparent);
} }
.pote-share-copy {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border-color: color-mix(in srgb, var(--gold-fill) 30%, transparent);
  color: var(--gold-ink);
}
@media (hover: hover) and (pointer: fine) { .pote-share-copy:hover {
  background: color-mix(in srgb, var(--gold-fill) 20%, transparent);
} }
.pote-share-native {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
}
@media (hover: hover) and (pointer: fine) { .pote-share-native:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
} }

/* ── Social Login Buttons ─────────────────────────── */
.social-login-divider { display:flex; align-items:center; gap:12px; margin:16px 0; color:var(--muted); font-size:.875rem; }
.social-login-divider::before, .social-login-divider::after { content:''; flex:1; height:1px; background:var(--border3); }
.btn-social { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px; border-radius:8px; border:1px solid var(--border); background:var(--border); color:var(--text); font-size:.875rem; font-weight:700; cursor:pointer; margin-bottom:8px; font-family:'DM Sans',sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .btn-social:hover { border-color:color-mix(in srgb, var(--accent) 30%, transparent); background:color-mix(in srgb, var(--accent) 5%, transparent); } }
.btn-social:active { transform:translateY(0); }
.btn-google svg { flex-shrink:0; }
.btn-apple { color:#fff; }

/* ── Register Step Dots ──────────────────────────── */
.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  transition: transform 250ms ease, opacity 250ms ease, background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease, color 250ms ease;
}
.step-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.step-dot.completed {
  background: var(--success);
}

/* ── Input Polish ────────────────────────────────── */
.field input:focus {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ── Button Gradient Primary ─────────────────────── */
.btn-primary {
  background: var(--accent) !important;
  border: none !important;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.btn-primary:active {
  transform: translateY(0);
}

/* ── Match History ─────────────────────────────────── */
.match-history-item { display:flex; align-items:center; gap:12px; padding:12px; border-radius:8px; background:color-mix(in srgb, var(--accent) 4%, transparent); margin-bottom:8px; }
.match-history-emoji { font-size:1.2rem; }
.match-history-info { flex:1; min-width:0; }
.match-history-event { font-weight:600; color:var(--text); font-size:.875rem; }
.match-history-date { font-size:.875rem; color:var(--text2); }

/* ── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .confetti-container { display: none; }
  .live-pulse-dot { animation: none; }
  .profile-streak-flame { animation: none; }
  .trending-badge { animation: none; }
  .urgency-pulse { animation: none; }
}

/* ── Join Buttons ──────────────────────────────────── */
.btn-join {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  font-size: .875rem; font-weight: 800;
  text-decoration: none; transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  letter-spacing: .3px;
}
@media (hover: hover) and (pointer: fine) { .btn-join:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); } }
.btn-join-live {
  background: var(--app-success-fill); color: #fff;
}
.btn-join-tonight {
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
@media (hover: hover) and (pointer: fine) { .btn-join-tonight:hover { background: color-mix(in srgb, var(--accent) 25%, transparent); } }

/* ── RSVP Alerts ───────────────────────────────────── */
.rsvp-alert {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 8px;
  margin-bottom: 12px;
}
.rsvp-alert-live {
  background: color-mix(in srgb, var(--success) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
}
.rsvp-alert-tonight {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.rsvp-alert-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); flex-shrink: 0;
}
.rsvp-alert-icon { font-size: 1.2rem; flex-shrink: 0; }
.rsvp-alert-text { flex: 1; font-size: .875rem; color: var(--text); }
.rsvp-alert-text strong { font-weight: 700; }
.rsvp-alert-btn {
  flex-shrink: 0; padding: 6px 14px; border-radius: 8px;
  font-size: .875rem; font-weight: 700; text-decoration: none;
  background: var(--app-success-fill); color: #fff; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}
.rsvp-alert-tonight .rsvp-alert-btn {
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Share Prompt ──────────────────────────────────── */
.share-prompt-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--app-shade-a-60);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; transition: opacity .25s;
}
.share-prompt-overlay.share-prompt-show { opacity: 1; }
.share-prompt-card {
  background: var(--bg3); border: 1px solid var(--border3);
  border-radius: 8px; padding: 32px 24px;
  text-align: center; max-width: 340px; width: 100%;
}
.share-prompt-icon { font-size: 2.4rem; margin-bottom: 12px; }
.share-prompt-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; margin-bottom: 8px;
  color: var(--text);
}
.share-prompt-text { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.share-prompt-actions { display: flex; flex-direction: column; gap: 8px; }
.share-prompt-btn {
  display: block; width: 100%; padding: 10px;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  cursor: pointer; border: none; font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  transition: background .15s;
}
.share-prompt-native { background: var(--app-accent-fill); color: #fff; }
@media (hover: hover) and (pointer: fine) { .share-prompt-native:hover { background: var(--accent); } }
.share-prompt-copy { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--app-accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
@media (hover: hover) and (pointer: fine) { .share-prompt-copy:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); } }
.share-prompt-close { background: transparent; color: var(--muted); }

/* ── Venue Request Section ─────────────────────────── */
.venue-request-section { margin-top: 24px; }
.venue-request-card {
  background: var(--surface);
  border: 1px solid var(--border3);
  border-radius: 8px; padding: 20px;
  margin-bottom: 16px;
}
.venue-request-desc { color: var(--muted); font-size: .875rem; margin-bottom: 16px; line-height: 1.5; }
.venue-request-form { display: flex; flex-direction: column; gap: 10px; }
.venue-input {
  background: var(--bg); border: 1px solid var(--border3);
  border-radius: 8px; padding: 10px 14px;
  color: var(--text); font-size: .88rem;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  outline: none; transition: border-color .15s;
}
.venue-input:focus { border-color: var(--accent); }
.venue-input::placeholder { color: var(--muted); }
.venue-submit-btn {
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px; padding: 10px;
  font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  transition: background .15s;
}
@media (hover: hover) and (pointer: fine) { .venue-submit-btn:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); } }

.venue-popular-title {
  font-size: .82rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.venue-popular-list { display: flex; flex-direction: column; gap: 6px; }
.venue-popular-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--app-bg-a-40);
  border: 1px solid var(--border3);
  border-radius: 8px; padding: 12px 14px;
}
.venue-popular-info { flex: 1; min-width: 0; }
.venue-popular-name { font-weight: 700; font-size: .88rem; color: var(--text); }
.venue-popular-city { font-size: .875rem; color: var(--muted); }
.venue-vote-btn {
  flex-shrink: 0; padding: 5px 12px;
  border-radius: 8px; font-size: .875rem; font-weight: 700;
  background: color-mix(in srgb, var(--gold-fill) 10%, transparent); color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 25%, transparent);
  cursor: pointer; font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  transition: background .15s;
}
@media (hover: hover) and (pointer: fine) { .venue-vote-btn:hover { background: color-mix(in srgb, var(--gold-fill) 20%, transparent); } }
.venue-vote-btn.venue-vote-active {
  background: color-mix(in srgb, var(--success) 10%, transparent); color: var(--success);
  border-color: color-mix(in srgb, var(--success) 25%, transparent); cursor: default;
}

/* ═══════════════════════════════════════════════════════
   DESKTOP LAYOUT (>= 1024px) — Explore Grid + Topbar
   ═══════════════════════════════════════════════════════ */

/* ── Hide mobile-only elements on desktop ── */
@media (min-width: 1024px) {

  .community-tab-bar,
  .tab-bar {
    display: none !important;
  }

  .community-header {
    display: none !important;
  }

  .community-app {
    padding-bottom: 0;
  }

  /* ── Desktop Topbar ── */
  .desktop-topbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    padding: 0 2rem;
    background: var(--app-bg-a-92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
  }

  .desktop-topbar-logo {
    font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    font-size: 1.3rem;
    font-weight: 900;
    margin-right: 2.5rem;
    flex-shrink: 0;
    color: var(--text);
  }

  .desktop-topbar-nav {
    display: flex;
    gap: 4px;
  }

  .desktop-topbar-nav .desktop-nav-btn {
    font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    font-size: .875rem;
    font-weight: 600;
    padding: .5rem 1.1rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--muted2);
    cursor: pointer;
    transition: transform 150ms, opacity 150ms, background-color 150ms, border-color 150ms, box-shadow 150ms, color 150ms;
  }
  @media (hover: hover) and (pointer: fine) { .desktop-topbar-nav .desktop-nav-btn:hover {
    color: var(--text);
    background: var(--border);
  } }
  .desktop-topbar-nav .desktop-nav-btn.active {
    background: var(--app-accent-fill);
    color: var(--app-on-accent);
  }

  .desktop-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .85rem;
  }

  .desktop-topbar-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--surface);
    color: var(--muted2);
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms;
  }
  @media (hover: hover) and (pointer: fine) { .desktop-topbar-icon:hover {
    background: var(--surface2);
    color: var(--text);
  } }

  .desktop-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--app-accent-ink);
    font-size: .875rem;
    cursor: pointer;
  }

  /* ── Desktop Content Wrapper ── */
  .desktop-content-area {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  /* ── Stats Strip ── */
  .desktop-stats-strip {
    display: flex;
    gap: .65rem;
    padding: 1.5rem 0 .5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .desktop-stats-strip::-webkit-scrollbar { display: none; }

  .desktop-stat-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 150ms;
  }
  @media (hover: hover) and (pointer: fine) { .desktop-stat-chip:hover { border-color: color-mix(in srgb, var(--accent) 16%, transparent); } }
  .desktop-stat-chip .chip-icon { font-size: 1rem; }
  .desktop-stat-chip .chip-val { font-size: .88rem; font-weight: 800; }
  .desktop-stat-chip .chip-val.rose { color: var(--app-accent-ink); }
  .desktop-stat-chip .chip-val.gold { color: var(--gold); }
  .desktop-stat-chip .chip-label { font-size: .75rem; color: var(--muted); }

  /* ── Section Headers ── */
  .desktop-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 .85rem;
  }
  .desktop-section-row h2 {
    font-size: 1.2rem;
    font-weight: 900;
  }
  .desktop-section-row .see-all {
    font-size: .875rem;
    font-weight: 700;
    color: var(--app-accent-ink);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
  }

  /* ── Event Carousel ── */
  .desktop-event-scroll {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .desktop-event-scroll::-webkit-scrollbar { display: none; }

  .desktop-ev-card {
    flex-shrink: 0;
    width: 320px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 200ms, transform 200ms;
    cursor: pointer;
  }
  @media (hover: hover) and (pointer: fine) { .desktop-ev-card:hover {
    border-color: color-mix(in srgb, var(--accent) 25%, transparent);
    transform: translateY(-3px);
  } }

  /* ── Masonry Grid ── */
  .desktop-masonry {
    columns: 3;
    column-gap: .85rem;
    padding: .5rem 0 2rem;
  }
  @media (max-width: 1100px) {
    .desktop-masonry { columns: 2; }
  }

  .desktop-m-card {
    break-inside: avoid;
    margin-bottom: .85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 200ms, transform 200ms;
  }
  @media (hover: hover) and (pointer: fine) { .desktop-m-card:hover {
    border-color: color-mix(in srgb, var(--accent) 20%, transparent);
    transform: translateY(-2px);
  } }

  /* Community sections: reflow for desktop */
  .community-section {
    max-width: none;
    padding: 0;
  }

  /* ── Hide old sidebar elements ── */
  .desktop-sidebar {
    display: none !important;
  }
  .desktop-right-sidebar {
    display: none !important;
  }
  .desktop-main-area {
    display: contents;
  }
  .desktop-center-col {
    display: contents;
  }

  /* ── Unlock html/body viewport lock on desktop ── */
  html:has(body.is-desktop),
  html:has(body.mode-community) {
    overflow: auto !important;
    height: auto !important;
  }

  /* ── Unlock app-card constraints on desktop (all modes) ── */
  body.is-desktop .card.app-card,
  body.is-desktop .card,
  body.mode-community .card.app-card,
  body.mode-community .card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: visible !important;
  }

  body.is-desktop.app-body,
  body.mode-community.app-body {
    display: block !important;
    height: auto !important;
    overflow: auto !important;
    position: static !important;
    background: var(--bg) !important;
  }

  body.is-desktop .card-inner,
  body.mode-community .card-inner {
    max-height: none !important;
    overflow: visible !important;
  }

  /* ═══ DESKTOP CHAT — WhatsApp/Discord style ═══ */

  body.mode-party .card.app-card,
  body.mode-dual .card.app-card {
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  body.mode-party #s-chat,
  body.mode-dual #s-chat {
    width: 340px !important;
    min-width: 340px !important;
    flex: none !important;
    border-right: 1px solid var(--border) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background: var(--bg2) !important;
  }

  body.mode-party #s-thread,
  body.mode-dual #s-thread {
    flex: 1 !important;
    max-height: 100vh !important;
  }

  body.mode-party #s-new,
  body.mode-dual #s-new {
    flex: 1 !important;
    max-width: none !important;
    overflow-y: auto !important;
  }

  body.mode-party #s-safe,
  body.mode-dual #s-safe {
    flex: 1 !important;
    max-width: none !important;
    overflow-y: auto !important;
  }

  body.mode-party .fab-new-conv,
  body.mode-dual .fab-new-conv {
    z-index: 10 !important;
  }

  body.mode-party .msg,
  body.mode-dual .msg {
    max-width: 80% !important;
  }

  /* Desktop scrollbar styling */
  body.mode-party #conv-list::-webkit-scrollbar,
  body.mode-dual #conv-list::-webkit-scrollbar {
    width: 6px;
  }
  body.mode-party #conv-list::-webkit-scrollbar-thumb,
  body.mode-dual #conv-list::-webkit-scrollbar-thumb {
    background: var(--app-fg-a-08);
    border-radius: 3px;
  }

  /* ── Event info panel as right sidebar on desktop ── */
  body.mode-party .desktop-event-panel,
  body.mode-dual .desktop-event-panel {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  /* ═══ Landing desktop — two-column split ═══ */
  body.mode-landing.app-body {
    display: block !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: static !important;
    background: var(--bg) !important;
  }

  body.mode-landing .card.app-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    flex-direction: row !important;
    background: var(--bg) !important;
    padding: 0 !important;
  }

  /* Remove the old ::before pseudo hero */
  body.mode-landing .card.app-card::before { display: none !important; }

  /* ── Left hero panel (real HTML element) ── */
  .desktop-landing-hero {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50%;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    padding: 3rem;
  }
  .desktop-landing-hero-content {
    max-width: 400px;
  }

  /* ── Right form panel ── */
  body.mode-landing .zone-landing {
    width: 50% !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 2.5rem !important;
    overflow-y: auto !important;
    background: var(--bg) !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Constrain form width */
  body.mode-landing .zone-landing > * {
    max-width: 360px !important;
    width: 100% !important;
  }
  body.mode-landing .zone-landing > .desktop-landing-hero,
  body.mode-landing .zone-landing > [style*="position:absolute"] {
    max-width: none !important;
  }

  /* Desktop: hide mobile-only landing elements */
  body.mode-landing .logo-row { display: none !important; }
  body.mode-landing .home-tagline { display: none !important; }
  body.mode-landing .home-subtitle { display: none !important; }
  body.mode-landing .home-trust-badges { display: none !important; }
  body.mode-landing .home-social-proof { display: none !important; }
  body.mode-landing .home-testimonial { display: none !important; }
  body.mode-landing .home-reciprocity { display: none !important; }
  body.mode-landing #btn-open-qr { display: none !important; }
  body.mode-landing #btn-staff-login-toggle { display: none !important; }
  body.mode-landing #staff-login-form { display: none !important; }
  body.mode-landing #home-install-banner { display: none !important; }
  body.mode-landing .desktop-app-promo { display: none !important; }
  body.mode-landing #event-time-banner { display: none !important; }
  body.mode-landing .section-label[role="separator"] { display: none !important; }

  /* Style the join form nicely */
  body.mode-landing #join-form {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  /* Community section clean */
  body.mode-landing .landing-community-section {
    margin-top: 0 !important;
  }
  body.mode-landing .landing-divider {
    margin: .75rem 0 !important;
  }
}

/* ── Landing Community Card & Auth ───────────────────────── */
.landing-divider {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.landing-divider::before, .landing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--app-fg-a-08), transparent);
}

.landing-community-card {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
}
.landing-community-card h3 {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 8px;
}
.landing-community-card p {
  font-size: .875rem;
  color: var(--muted2);
  margin: 0 0 14px;
  line-height: 1.5;
}
.landing-community-perks {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.landing-perk {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--app-accent-ink);
}

/* Community auth inline card */
#community-auth-inline {
  margin-top: 16px;
  padding: 24px 20px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 16px 48px var(--app-shadow-a-30);
}

/* ── Hide desktop-only elements on mobile ── */
@media (max-width: 1023px) {
  .desktop-sidebar,
  .desktop-right-sidebar,
  .desktop-topbar,
  .desktop-stats-strip,
  .desktop-event-scroll,
  .desktop-masonry,
  .desktop-content-area,
  .desktop-section-row,
  .desktop-event-panel,
  .desktop-landing-hero {
    display: none !important;
  }

  .desktop-main-area,
  .desktop-center-col {
    display: contents;
  }
}

/* ══════════════════════════════════════════════════════════════════
   CHECK-IN / LOYALTY
   ══════════════════════════════════════════════════════════════════ */

/* Success modal */
.checkin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--app-shade-a-70);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: checkinFadeIn 300ms ease;
}

@keyframes checkinFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes checkinPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.checkin-modal-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 20px 60px var(--app-shadow-a-50);
  animation: checkinPop 400ms var(--ease-out);
}

.checkin-modal-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: checkinBounce 600ms ease;
}

@keyframes checkinBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-4px); }
}

.checkin-modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 4px;
}

.checkin-modal-venue {
  font-size: .9rem;
  color: var(--text2);
  margin-bottom: 12px;
}

.checkin-modal-xp {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--app-accent-ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 6px 20px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.checkin-new-badges {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.checkin-badge-pill {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-ink);
  background: color-mix(in srgb, var(--gold-fill) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 20%, transparent);
  padding: 4px 12px;
  border-radius: 4px;
}

/* Profile check-in history */
.checkin-history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkin-history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--app-fg-a-02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkin-history-icon {
  font-size: 1.1rem;
}

.checkin-history-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.checkin-history-venue {
  font-weight: 600;
  font-size: .875rem;
  color: var(--text);
}

.checkin-history-date {
  font-size: .75rem;
  color: var(--muted);
}

.checkin-history-xp {
  font-size: .875rem;
  font-weight: 700;
  color: var(--app-accent-ink);
}

/* ═══════════════════════════════════════════════════════
   PRIDE MODE — Community
   Premium mais déluré: bold queer energy, not polite lavender
   ═══════════════════════════════════════════════════════ */

.pride .community-header {
  border-bottom: 2px solid;
  border-image: var(--pride-gradient) 1;
  background: var(--app-bg-a-92);
}
.pride .community-header .brand-accent {
  background: var(--pride-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tab bar — rainbow active indicator */
.pride .tab-bar {
  border-top: 2px solid;
  border-image: var(--pride-gradient) 1;
}
.pride .tab-bar-item.active {
  color: var(--app-violet-ink);
}
.pride .tab-bar-item.active::after {
  background: var(--pride-gradient);
}

/* Event cards — déluré rainbow borders on Pride events */
.pride .event-card {
  border: 1.5px solid;
  border-image: linear-gradient(135deg, rgba(228,3,3,.3), rgba(255,140,0,.3), rgba(255,237,0,.3), rgba(0,128,38,.3), rgba(0,77,255,.3), rgba(117,7,135,.3)) 1;
  border-radius: 0; /* border-image kills radius, use outline trick below */
}
.pride .event-card-gradient.lavender {
  background: linear-gradient(135deg, rgba(228,3,3,0.12) 0%, rgba(255,140,0,0.08) 20%, rgba(255,237,0,0.06) 40%, rgba(0,128,38,0.08) 60%, rgba(0,77,255,0.1) 80%, rgba(117,7,135,0.12) 100%);
}
.pride .event-card-gradient.lavender .event-date {
  background: var(--pride-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Section labels — violet Pride plein */
.pride .section-label {
  color: var(--app-violet-ink);
}

/* Feed cards — subtle pride border on hover */
@media (hover: hover) and (pointer: fine) { .pride .feed-card:hover {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--lavender) 30%, transparent);
} }

/* Profile stats — pride accent */
.pride .stat-value {
  background: var(--pride-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* XP and checkin — pride accent */
.pride .checkin-history-xp {
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Event card badge — rainbow for Pride events */
.pride .event-card-badge {
  background: var(--pride-gradient);
  color: #fff;
  text-shadow: 0 1px 2px var(--app-tshadow-a-40);
}

.pride .community-app > * { position: relative; z-index: 1; }

/* ── Consent Banner (shared with index.css) ───────────────────── */
.consent-banner{position:fixed;inset:0;z-index:99999;display:flex;align-items:flex-end;justify-content:center;padding:16px;background:var(--app-shade-a-45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .3s ease}
.consent-banner.consent-visible{opacity:1}
.consent-banner.consent-closing{opacity:0;pointer-events:none}
.consent-card{width:100%;max-width:520px;background:var(--app-bg-a-96);border:1px solid color-mix(in srgb, var(--accent) 18%, transparent);border-radius:8px;padding:24px;box-shadow:0 8px 40px var(--app-shadow-a-50);transform:translateY(20px);transition:transform .3s ease}
.consent-visible .consent-card{transform:translateY(0)}
.consent-closing .consent-card{transform:translateY(20px)}
.consent-header{font-family:'Playfair Display',serif;font-size:1.15rem;color:var(--text);margin-bottom:8px}
.consent-header span{margin-right:6px}
.consent-text{font-size:.875rem;color:var(--text2);line-height:1.55;margin-bottom:16px}
.consent-details{margin-bottom:14px}
.consent-option{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:8px;background:var(--border);border:1px solid var(--border);margin-bottom:8px;cursor:pointer;transition:background .15s}
@media (hover: hover) and (pointer: fine) { .consent-option:hover {background:var(--border)} }
.consent-option input[type="checkbox"]{accent-color:var(--accent);width:18px;height:18px;margin-top:2px;flex-shrink:0}
.consent-option div{display:flex;flex-direction:column;gap:2px}
.consent-option strong{font-size:.875rem;color:var(--text)}
.consent-option span{font-size:.875rem;color:var(--muted)}
.consent-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.consent-save{margin-bottom:8px}
.consent-btn{flex:1;min-width:120px;padding:10px 16px;border-radius:8px;border:none;font-family:'DM Sans',sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';font-size:.875rem;font-weight:600;cursor:pointer;transition:transform .15s,box-shadow .15s}
.consent-btn:active{transform:translateY(0)}
.consent-btn-accept{background: var(--app-accent-fill);color:#fff}
.consent-btn-necessary{background:var(--border);color:var(--text2);border:1px solid var(--border2)}
@media (hover: hover) and (pointer: fine) { .consent-btn-necessary:hover {background:var(--border2)} }
.consent-btn-customize{background:transparent;color:var(--text2);border:1px solid var(--border2)}
@media (hover: hover) and (pointer: fine) { .consent-btn-customize:hover {background:var(--border)} }
.consent-footer{text-align:center;font-size:.75rem;color:var(--muted);padding-top:8px;border-top:1px solid var(--border)}
.consent-footer a{color:var(--text2);text-decoration:underline;text-underline-offset:2px}
@media (hover: hover) and (pointer: fine) { .consent-footer a:hover {color:var(--app-accent-ink)} }
@media(max-width:480px){.consent-card{padding:18px}.consent-actions{flex-direction:column}.consent-btn{min-width:100%}}

/* ── Ads ──────────────────────────────────────────────────────── */
.community-ad-slot {
  background: var(--surface);
  border-radius: 8px;
  padding: 10px;
  margin: 12px 0;
  text-align: center;
}
body.klarrro-premium .community-ad-slot { display: none; }
.community-ad-label {
  color: var(--gold-ink);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}
.community-ad-placeholder {
  color: var(--muted2);
  font-size: .875rem;
  padding: 12px 0;
  opacity: 0.5;
}
.community-ad-cta {
  margin-top: 6px;
}
.community-ad-cta a {
  color: var(--muted2);
  font-size: .875rem;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity .2s;
}
@media (hover: hover) and (pointer: fine) { .community-ad-cta a:hover { opacity: 1; color: var(--gold-ink); } }

/* ── Premium Modal ────────────────────────────────────────────── */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--app-shade-a-70);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.premium-modal-visible { opacity: 1; }
.premium-modal-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 20%, transparent);
  border-radius: 8px;
  padding: 28px 24px;
  max-width: 360px;
  width: 90%;
  position: relative;
  text-align: center;
}
.premium-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted2);
  font-size: 22px;
  cursor: pointer;
}
.premium-modal-badge {
  font-size: 40px;
  margin-bottom: 8px;
}
.premium-modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold-ink);
  margin: 0 0 16px;
}
.premium-modal-benefits {
  text-align: left;
  margin-bottom: 20px;
}
.premium-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .9rem;
  color: var(--ivoire);
}
.premium-benefit-icon { font-size: 1.1rem; }

/* Premium pricing buttons */
.premium-pricing {
  display: flex;
  gap: 10px;
}
.premium-plan-btn {
  flex: 1;
  background: color-mix(in srgb, var(--gold-fill) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 20%, transparent);
  border-radius: 8px;
  padding: 14px 8px;
  cursor: pointer;
  text-align: center;
  color: var(--ivoire);
  transition: transform .2s, opacity .2s, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
  position: relative;
}
@media (hover: hover) and (pointer: fine) { .premium-plan-btn:hover {
  background: color-mix(in srgb, var(--gold-fill) 15%, transparent);
  border-color: var(--gold);
} }
.premium-plan-recommended {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
}
.premium-plan-tag {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--gold-fill);
  color: #09090E;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.premium-plan-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-ink);
}
.premium-plan-cycle {
  font-size: .875rem;
  color: var(--muted2);
}

/* ── Profile Status Tags (Premium / Ambassador) ──────────────── */
.profile-status-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.profile-tag-premium {
  background: color-mix(in srgb, var(--gold-fill) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 35%, transparent);
  color: var(--gold-ink);
}
.profile-tag-ambassador {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
}

/* ── Premium Badge (inline) ───────────────────────────────────── */
.premium-badge-inline {
  display: inline-block;
  font-size: .9rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Premium Status / Upsell in Profile ───────────────────────── */
.premium-status-card {
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 25%, transparent);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
  text-align: center;
}
.premium-status-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.premium-status-icon {
  display: flex;
  align-items: center;
}
.premium-status-badge {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-ink);
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}
.premium-status-perks {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.premium-perk {
  font-size: .875rem;
  color: var(--text2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.premium-perk-icon {
  font-size: .875rem;
}
.premium-status-info {
  font-size: .875rem;
  color: var(--muted2);
  margin-top: 4px;
}
.premium-upsell-card {
  background: color-mix(in srgb, var(--gold-fill) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--gold-fill) 20%, transparent);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform .2s, opacity .2s, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) { .premium-upsell-card:hover {
  background: color-mix(in srgb, var(--gold-fill) 10%, transparent);
  border-color: var(--gold);
} }
.premium-upsell-badge { font-size: 1.5rem; }
.premium-upsell-text { flex: 1; }
.premium-upsell-price {
  color: var(--gold-ink);
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
}

/* ── Early Access Badge ───────────────────────────────────────── */
.early-access-badge {
  display: inline-block;
  background: color-mix(in srgb, var(--gold-fill) 15%, transparent);
  color: var(--gold-ink);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ── City Gauge ───────────────────────────────────────────────── */
.city-gauge {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 14px;
  margin: 8px 0;
}
.city-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.city-gauge-city {
  font-weight: 700;
  font-size: 1rem;
}
.city-gauge-pct {
  color: var(--gold-ink);
  font-weight: 700;
  font-size: .9rem;
}
.city-gauge-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.city-gauge-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .6s ease;
}
.city-gauge-ambassador {
  font-size: .875rem;
  color: var(--muted2);
}

/* ── Ambassador Dashboard ─────────────────────────────────────── */
.ambassador-dashboard {
  background: color-mix(in srgb, var(--gold-fill) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 15%, transparent);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.ambassador-dashboard-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--gold-ink);
}
.ambassador-recruits {
  margin-top: 10px;
}
.ambassador-recruit {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border2);
  font-size: .875rem;
}
.ambassador-recruit:last-child { border-bottom: none; }
.ambassador-cta-card {
  background: color-mix(in srgb, var(--gold-fill) 5%, transparent);
  border: 1px dashed color-mix(in srgb, var(--gold-fill) 20%, transparent);
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
  text-align: center;
  cursor: pointer;
  transition: transform .2s, opacity .2s, background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) { .ambassador-cta-card:hover {
  background: color-mix(in srgb, var(--gold-fill) 10%, transparent);
  border-color: var(--gold);
} }

/* ── Admin Post Feed Cards ── */
.feed-item--admin-post {
  background: var(--app-surface-a-96);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 1rem;
}
.feed-post-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 8px;
  vertical-align: middle;
}
.feed-post-badge--gold {
  background: color-mix(in srgb, var(--gold-fill) 15%, transparent);
  color: var(--gold-ink);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 25%, transparent);
}
.feed-post-badge--rose {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--app-accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.feed-post-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.feed-post-author {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
}
.feed-post-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-card-title);
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
}
.feed-post-body {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.5;
  white-space: pre-line;
  margin-bottom: .5rem;
}
.feed-post-image {
  margin: .5rem 0;
}
.feed-post-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}
.feed-post-event-pill {
  display: inline-block;
  font-size: .75rem;
  padding: 4px 12px;
  background: var(--border);
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  margin: .25rem 0;
  color: var(--text2);
}
@media (hover: hover) and (pointer: fine) { .feed-post-event-pill:hover {
  background: var(--border2);
} }
.feed-post-cta {
  display: inline-block;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: .5rem;
  transition: opacity .15s;
}
a.feed-post-cta { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .feed-post-cta:hover { opacity: .85; } }
.feed-post-cta--rose {
  background: var(--app-accent-fill);
  color: #fff;
}
.feed-post-cta--gold {
  background: var(--gold-fill);
  color: #09090E;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE EDITOR
   ═══════════════════════════════════════════════════════════════════ */

.profile-editor {
  padding: 0 4px;
}
.profile-edit-group {
  margin-bottom: 16px;
}
.profile-edit-group > label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.profile-edit-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .88rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  transition: border-color .15s;
  box-sizing: border-box;
}
.profile-edit-input:focus {
  outline: none;
  border-color: var(--accent);
}
.profile-edit-input::placeholder {
  color: var(--muted2);
}
.profile-edit-custom {
  margin-top: 8px;
  font-size: .875rem;
}
.profile-edit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-opt-chip {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  cursor: pointer;
  transition: transform .15s, opacity .15s, background-color .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .profile-opt-chip:hover {
  border-color: var(--accent);
  color: var(--text);
} }
.profile-opt-chip.active {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  border-color: var(--accent);
  color: var(--app-accent-ink);
  font-weight: 600;
}

/* City autocomplete dropdown */
.city-suggestions-dropdown {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--app-shadow-a-40);
}
.profile-edit-group { position: relative; }
.city-suggestion-item {
  padding: 10px 14px;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  transition: background .1s;
}
@media (hover: hover) and (pointer: fine) { .city-suggestion-item:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
} }

/* ═══════════════════════════════════════════════════════════════════
   BADGE CARD (profile snapshot)
   ═══════════════════════════════════════════════════════════════════ */

.badge-card {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}
.badge-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.badge-card-name {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.badge-card-staff {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--gold-fill);
  color: #09090E;
}
.badge-card-info {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.badge-card-line {
  font-size: .78rem;
  color: var(--muted2);
  padding: 2px 0;
}
.badge-card-bio {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════
   POTE FRIENDS FILTER + GRID
   ══════════════════════════════════════════════════════════════════ */

.pote-filter-wrap {
  position: relative;
  margin-bottom: .75rem;
}
.pote-filter-input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.4rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.pote-filter-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.pote-filter-input::placeholder {
  color: var(--muted2);
}
.pote-filter-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
}

.pote-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: .65rem;
}

.pote-friend-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--t), background var(--t);
}
@media (hover: hover) and (pointer: fine) { .pote-friend-card:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
  background: var(--surface2);
} }

.pote-friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--muted2);
  font-size: .875rem;
  flex-shrink: 0;
}

.pote-friend-name {
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pote-friend-city {
  font-size: .75rem;
  color: var(--muted);
}

.pote-filter-empty {
  padding: 1.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--muted2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   ATTENDEES PANEL (event participant overlay)
   ══════════════════════════════════════════════════════════════════ */

.attendee-chevron {
  margin-left: auto;
  color: var(--muted2);
  flex-shrink: 0;
  opacity: 0.6;
}
@media (hover: hover) and (pointer: fine) { .attendee-row:hover .attendee-chevron { opacity: 1; } }

.attendees-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--app-shade-a-00);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: background 250ms;
  pointer-events: none;
}
.attendees-panel-overlay.active {
  background: var(--app-shade-a-65);
  pointer-events: auto;
}

.attendees-panel-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  background: var(--bg2);
  border-radius: 8px 8px 0 0;
  border-top: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.32, 1, 0.23, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.attendees-panel-overlay.active .attendees-panel-sheet {
  transform: translateY(0);
}

.attendees-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem .75rem;
  flex-shrink: 0;
}

.attendees-panel-title {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.attendees-panel-close {
  background: none;
  border: none;
  color: var(--muted2);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  transition: color var(--t), background var(--t);
}
@media (hover: hover) and (pointer: fine) { .attendees-panel-close:hover {
  color: var(--text);
  background: var(--surface);
} }

.attendees-panel-search-wrap {
  position: relative;
  padding: 0 1.25rem .75rem;
  flex-shrink: 0;
}
.attendees-panel-search-icon {
  position: absolute;
  left: calc(1.25rem + .85rem);
  top: 50%;
  transform: translateY(calc(-50% - .375rem));
  color: var(--muted2);
  pointer-events: none;
}
.attendees-panel-search {
  width: 100%;
  padding: .65rem 1rem .65rem 2.4rem;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.attendees-panel-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.attendees-panel-search::placeholder {
  color: var(--muted2);
}

.attendees-panel-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.25rem 1rem;
}
.attendees-panel-list::-webkit-scrollbar { display: none; }

.attendees-panel-count {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  padding: .5rem 0;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.attendees-panel-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}
.attendees-panel-item:last-child { border-bottom: none; }

.attendees-panel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--app-accent-ink);
  font-size: .88rem;
  flex-shrink: 0;
}

.attendees-panel-info { flex: 1; min-width: 0; }

.attendees-panel-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendees-panel-sub {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 1px;
}

.attendees-panel-empty {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .88rem;
  color: var(--muted2);
  line-height: 1.5;
}

/* ── Events Search ───────────────────────────────────────────── */
.events-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.events-search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
}
.events-search {
  width: 100%;
  padding: .65rem 1rem .65rem 2.4rem;
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-08);
  border-radius: 8px;
  color: var(--text);
  font-size: .875rem;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
  box-sizing: border-box;
}
.events-search::placeholder {
  color: var(--muted2);
  opacity: .7;
}
.events-search:focus {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ── Attendees Upsell (non-premium) ──────────────────────────── */
.attendees-blur-zone {
  position: relative;
}
.attendees-blurred {
  filter: blur(5px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}
.attendees-blurred-more {
  text-align: center;
  padding: .5rem 0;
  font-size: .875rem;
  color: var(--muted2);
  filter: blur(3px);
  opacity: .4;
}
.attendees-upsell {
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
  border-top: 1px solid var(--app-fg-a-06);
  margin-top: .5rem;
}
.attendees-upsell-icon {
  font-size: 1.8rem;
  margin-bottom: .5rem;
}
.attendees-upsell-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .4rem;
}
.attendees-upsell-desc {
  font-size: .875rem;
  color: var(--muted2);
  line-height: 1.45;
  margin-bottom: 1rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.attendees-upsell-btn {
  display: inline-block;
  padding: .6rem 1.6rem;
  background: var(--gold-fill);
  color: #09090E;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 700;
  font-size: .875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 180ms, box-shadow 180ms;
}
.attendees-upsell-btn:active {
  transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════════════════
   PETITES ANNONCES
   ══════════════════════════════════════════════════════════════════ */

/* Toggle: Annonces / Mes potes */
.annonces-toggle {
  display: flex;
  gap: 4px;
  background: var(--app-fg-a-04);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 16px;
}
.annonces-toggle-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--muted2);
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-pop) var(--ease), color var(--dur-pop) var(--ease);
}
.annonces-toggle-btn:active { transform: scale(.97); }
.annonces-toggle-btn.active {
  background: var(--surface);
  color: var(--text);
}
/* Pastille partagée (app-router.js) : un seul fond glisse entre « Annonces » et « Mes potes » */
.annonces-toggle { position: relative; }
.annonces-toggle .klr-nav-pill { background: var(--surface); border-radius: 4px; }
.annonces-toggle.has-pill .annonces-toggle-btn.active { background: transparent; }

/* Filter pills */
.annonces-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.filter-pill {
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid var(--app-fg-a-08);
  border-radius: 8px;
  background: none;
  color: var(--muted2);
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms, opacity 180ms, background-color 180ms, border-color 180ms, box-shadow 180ms, color 180ms;
}
.filter-pill.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
}

/* Post button */
.btn-post-annonce {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  background: var(--app-accent-fill);
  color: #fff;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms, opacity 180ms, background-color 180ms, border-color 180ms, box-shadow 180ms, color 180ms;
}
@media (hover: hover) and (pointer: fine) { .btn-post-annonce:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
} }

/* Annonce card */
.annonce-card {
  background: var(--app-surface-a-92);
  border: 1px solid var(--app-fg-a-06);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.annonce-card:active {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}
@media (hover: hover) and (pointer: fine) { .annonce-card:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
} }

.annonce-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.annonce-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  position: relative;
}
/* Mood ring via box-shadow — iOS-safe (no conic-gradient, no mask-composite, no negative z-index) */
.annonce-meta {
  flex: 1;
  min-width: 0;
}
.annonce-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
}
.annonce-event {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}

.annonce-text {
  font-size: .875rem;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Mutual hint */
.annonce-mutual-hint {
  font-size: .875rem;
  font-style: italic;
  color: var(--app-accent-ink);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

/* Actions */
.annonce-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.annonce-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--app-fg-a-08);
  border-radius: 8px;
  background: none;
  color: var(--muted2);
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-pop) var(--ease), border-color var(--dur-pop) var(--ease), color var(--dur-pop) var(--ease);
}
.annonce-like-btn.annonce-liked {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
}
.annonce-like-icon {
  font-size: .875rem;
  display: inline-flex; /* un élément en ligne ne reçoit pas le transform de .klr-confirm */
}
.annonce-report-btn,
.annonce-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-height: 44px;
  min-width: 44px;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  font-size: .75rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 180ms;
}
@media (hover: hover) and (pointer: fine) { .annonce-report-btn:hover, .annonce-delete-btn:hover {
  opacity: 1;
} }

/* Annonce type buttons in form */
.annonce-type-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--app-fg-a-10);
  border-radius: 8px;
  background: none;
  color: var(--muted2);
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms, opacity 180ms, background-color 180ms, border-color 180ms, box-shadow 180ms, color 180ms;
}
.annonce-type-btn.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--app-accent-ink);
}

/* Mood picker in profile */
.mood-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mood-picker-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms, box-shadow 180ms;
  position: relative;
}
@media (hover: hover) and (pointer: fine) { .mood-picker-circle:hover {
  transform: scale(1.1);
} }
.mood-picker-circle.active {
  border-color: #fff;
  transform: scale(1.15);
}
.mood-picker-label {
  font-size: .75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   PROFILE — INSTAGRAM NIGHTLIFE REFONTE
   ═══════════════════════════════════════════════════════ */

/* ── Insta Header (mobile: stacked, desktop: horizontal) ── */
.profile-insta-header {
  text-align: center;
  padding: 8px 12px 16px;
  position: relative;
}
.profile-insta-header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 200px;
  pointer-events: none;
}

/* ── Avatar with mood ring ── */
.profile-insta-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  position: relative;
  cursor: pointer;
}
.profile-insta-avatar .avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 4px;
  background: var(--mood-gradient, conic-gradient(var(--accent), var(--accent), var(--accent)));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.profile-insta-avatar .avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  overflow: hidden;
}
.profile-insta-avatar .avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Name row: pseudo + vibe pill + status dot ── */
.profile-insta-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.profile-insta-pseudo {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: border-color 200ms;
}
@media (hover: hover) and (pointer: fine) { .profile-insta-pseudo.editable:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
} }
.profile-insta-vibe {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .profile-insta-vibe:hover {
  transform: scale(1.05);
} }
.profile-insta-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 200ms;
}
@media (hover: hover) and (pointer: fine) { .profile-insta-status-dot:hover {
  transform: scale(1.3);
} }
.profile-insta-status-dot.libre {
  background: var(--success);
  color: var(--success);
}
.profile-insta-status-dot.en-couple {
  background: var(--gold-fill);
  color: var(--gold-ink);
}
.profile-insta-status-dot.mystere {
  background: #8A839E;
  color: var(--muted);
}

/* ── City & Bio ── */
.profile-insta-city {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 4px;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .profile-insta-city.editable:hover {
  color: var(--text);
} }
.profile-insta-bio {
  font-size: .875rem;
  color: var(--text2);
  max-width: 300px;
  margin: 0 auto 12px;
  line-height: 1.5;
  cursor: pointer;
}
.profile-insta-bio.placeholder {
  font-style: italic;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) { .profile-insta-bio.editable:hover {
  color: var(--text);
} }

/* ── Inline edit input (appears on tap) ── */
.profile-inline-edit {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  padding: 6px 10px;
  text-align: center;
  width: 100%;
  max-width: 280px;
  outline: none;
  transition: border-color 200ms;
}
.profile-inline-edit:focus {
  border-color: var(--accent);
}

/* ── Edit mode visual feedback ── */
.profile-edit-pencil {
  display: inline-block;
  font-size: .75rem;
  opacity: 0;
  margin-left: 4px;
  cursor: pointer;
  transition: opacity 200ms, transform 200ms, color 200ms;
  vertical-align: middle;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .profile-edit-pencil:hover {
  opacity: 0.8;
} }
.profile-editing .profile-edit-pencil {
  opacity: 1;
  color: var(--app-accent-ink);
  transform: scale(1.1);
  pointer-events: auto;
}
.profile-editable-field {
  transition: background 300ms, border 300ms, padding 300ms;
  border-radius: 8px;
  border: 1px dashed transparent;
  padding: 2px 0;
}
.profile-editing .profile-editable-field {
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 6px 8px;
}
@media (hover: hover) and (pointer: fine) { .profile-editing .profile-editable-field:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
} }
@keyframes editFieldPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
  50% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
.profile-editing .profile-editable-field {
  animation: editFieldPulse 600ms ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* ── 3 Stats row (Instagram-style) ── */
.profile-insta-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.profile-insta-stat {
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: opacity 200ms;
}
@media (hover: hover) and (pointer: fine) { .profile-insta-stat:hover {
  opacity: 0.8;
} }
.profile-insta-stat-val {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--app-accent-ink);
  line-height: 1.2;
}
.profile-insta-stat-val .level-pill {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--app-accent-ink);
  display: block;
  margin: 4px auto 0;
}
.profile-insta-stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

/* ── Edit Profile button ── */
.profile-edit-btn {
  width: 100%;
  padding: 9px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  margin-bottom: 16px;
}
@media (hover: hover) and (pointer: fine) { .profile-edit-btn:hover {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
} }
.profile-edit-btn.editing {
  background: var(--app-accent-fill);
  color: #fff;
  border-color: transparent;
}

/* ── Edit gear icon (top-right) ── */
.profile-edit-gear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--app-fg-a-04);
  color: var(--muted);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  z-index: 2;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) { .profile-edit-gear:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
} }
.profile-edit-gear.editing {
  background: var(--app-accent-fill);
  color: #fff;
  border-color: transparent;
  font-size: 1.1rem;
  font-weight: 800;
}

/* ── Profile Grid Tabs (3 onglets) ── */
.profile-grid-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
}
.profile-grid-tab {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  background: none;
  border: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  transition: color var(--dur-pop) var(--ease);
  font-family: inherit;
}
.profile-grid-tab.active {
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) { .profile-grid-tab:hover:not(.active) {
  color: var(--text2);
} }
.profile-grid-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--dur-move) var(--ease-in-out);
}
@media (prefers-reduced-motion: reduce) {
  .profile-grid-underline { transition: none; }
}

/* ── Profile Grid Content ── */
.profile-grid-content {
  min-height: 200px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ── Event mini-card (grid) ── */
.profile-event-mini {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), background-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1));
  border: 1px solid var(--border);
}
@media (hover: hover) and (pointer: fine) { .profile-event-mini:hover {
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
} }
.profile-event-mini-gradient {
  height: 80px;
  position: relative;
}
.profile-event-mini-gradient.rose { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); }
.profile-event-mini-gradient.gold { background: linear-gradient(135deg, color-mix(in srgb, var(--gold-fill) 30%, transparent), color-mix(in srgb, var(--gold-fill) 8%, transparent)); }
.profile-event-mini-gradient.lavender { background: linear-gradient(135deg, color-mix(in srgb, var(--lavender) 25%, transparent), color-mix(in srgb, var(--purple) 8%, transparent)); }
.profile-event-mini-body {
  padding: 10px;
  background: var(--surface);
}
.profile-event-mini-name {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: var(--fs-card-title);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-event-mini-date {
  font-size: .75rem;
  color: var(--muted);
}
.profile-event-mini.past {
  opacity: 0.7;
  filter: saturate(0.6);
}
.profile-event-mini.rsvp {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.profile-event-rsvp-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--app-accent-ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.profile-event-rsvp-badge.waitlist {
  color: var(--gold);
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
}

/* ── Match mini-card (grid) ── */
.profile-match-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: transform 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), opacity 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), background-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), border-color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), box-shadow 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)), color 250ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1));
}
@media (hover: hover) and (pointer: fine) { .profile-match-mini:hover {
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
} }
.profile-match-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 8px;
}
.profile-match-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.profile-match-event {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-match-msgs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .75rem;
  color: var(--muted2);
}

/* ── Referral banner ── */
.profile-referral-banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 500px;
  margin: 20px auto 0;
  border-radius: 8px;
}
.profile-referral-banner-label {
  font-size: .78rem;
  color: var(--muted);
}
.profile-referral-banner-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold-ink);
}
.profile-referral-banner-copy {
  background: none;
  border: 1px solid color-mix(in srgb, var(--gold-fill) 30%, transparent);
  color: var(--gold-ink);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 200ms, opacity 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms, color 200ms;
}
@media (hover: hover) and (pointer: fine) { .profile-referral-banner-copy:hover {
  background: color-mix(in srgb, var(--gold-fill) 8%, transparent);
} }

/* ── Vibe picker — chip style ── */
.profile-vibe-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 0;
  animation: fadeSlideUp 280ms ease;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-vibe-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--chip-color, var(--border2));
  background: transparent;
  color: var(--text2);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .profile-vibe-chip:hover {
  background: color-mix(in srgb, var(--chip-color) 10%, transparent);
  border-color: var(--chip-color);
  color: var(--text);
} }
.profile-vibe-chip.selected {
  background: color-mix(in srgb, var(--chip-color) 15%, transparent);
  border-color: var(--chip-color);
  color: var(--chip-color);
  font-weight: 700;
}
.profile-vibe-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Status picker — chip style ── */
.profile-status-toggle {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 12px 0;
  flex-wrap: wrap;
  animation: fadeSlideUp 280ms ease;
}
.profile-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  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), color var(--dur-pop) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .profile-status-chip:hover {
  border-color: var(--status-color);
  color: var(--status-color);
} }
.profile-status-chip.selected {
  background: color-mix(in srgb, var(--status-color) 12%, transparent);
  border-color: var(--status-color);
  color: var(--status-color);
  font-weight: 700;
}

/* ── Online dot ── */
/* Pastille « en ligne » soudée au statut : ne passe jamais seule à la ligne. */
.profile-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.profile-online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  animation: onlinePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes onlinePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px color-mix(in srgb, var(--success) 50%, transparent); }
  50% { opacity: 0.7; box-shadow: 0 0 3px color-mix(in srgb, var(--success) 30%, transparent); }
}

/* ── Staff badge ── */
.profile-staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1px solid color-mix(in srgb, var(--gold-fill) 20%, transparent);
}

/* ── Status pill ── */
.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--app-fg-a-04);
  border: 1px solid var(--border2);
  color: var(--muted2);
  transition: transform 200ms, opacity 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms, color 200ms;
}
@media (hover: hover) and (pointer: fine) { .profile-status-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
} }

/* ── Match chat button ── */
.profile-match-chat-btn {
  margin-top: 6px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--app-accent-ink);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 200ms, opacity 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms, color 200ms;
  width: 100%;
}
@media (hover: hover) and (pointer: fine) { .profile-match-chat-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
} }

/* ── Trophees Grid ── */
.profile-trophees {
  margin-top: 24px;
  padding: 0 4px;
}
.profile-trophees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.profile-trophees-title {
  font-family: 'Playfair Display', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.profile-trophees-count {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
}
.profile-trophees-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.profile-trophees-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 1s ease-out;
}
.trophee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.trophee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px;
  border-radius: 8px;
  text-align: center;
  transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  cursor: pointer;
  position: relative;
}
.trophee-item:active {
  transform: scale(0.95);
}
.trophee-unlocked {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}
.trophee-unlocked .trophee-icon {
  font-size: 1.6rem;
  filter: none;
  animation: tropheeEntrance 400ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes tropheeEntrance {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@media (hover: hover) and (pointer: fine) { .trophee-unlocked:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
} }
.trophee-locked {
  background: var(--app-fg-a-02);
  border: 1px solid var(--border);
  opacity: 0.35;
}
.trophee-locked .trophee-icon {
  font-size: 1.6rem;
  filter: grayscale(1);
}
.trophee-locked::after {
  content: '🔒';
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: .75rem;
  opacity: 0.6;
}
.trophee-label {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}
.trophee-unlocked .trophee-label {
  color: var(--app-accent-ink);
}

/* Trophee tooltip */
.trophee-tooltip {
  position: fixed;
  z-index: 9000;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 8px;
  padding: 14px;
  max-width: 240px;
  box-shadow: 0 12px 40px var(--app-shadow-a-40);
  transform-origin: top center; /* ancrage réel posé par JS (_showTropheeTooltip) */
  animation: tooltipIn var(--dur-pop) var(--ease-out);
}
.trophee-tooltip.is-leaving {
  opacity: 0; transform: scale(.95);
  transition: opacity var(--dur-pop-out) var(--ease-out), transform var(--dur-pop-out) var(--ease-out);
}
@keyframes tooltipIn {
  from { opacity: 0; transform: scale(.95); }
}
.trophee-tooltip-title {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: 4px;
}
.trophee-tooltip-desc {
  font-size: .875rem;
  color: var(--muted2);
  line-height: 1.4;
  margin-bottom: 8px;
}
.trophee-tooltip-progress {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.trophee-tooltip-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.trophee-tooltip-status {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}

@media (min-width: 1024px) {
  .trophee-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .profile-trophees {
    max-width: 700px;
    margin: 24px auto;
  }
}

/* ═══════════════════════════════════════════════════════
   HYPE — Animations & Visual Effects
   ═══════════════════════════════════════════════════════ */

/* ── Stat counter animation ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-insta-stat-val {
  animation: countUp 600ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
.profile-insta-stat:nth-child(2) .profile-insta-stat-val { animation-delay: 100ms; }
.profile-insta-stat:nth-child(3) .profile-insta-stat-val { animation-delay: 200ms; }

/* ── Level badge pulse on load ── */
.level-pill {
  animation: levelPulse 800ms ease forwards;
  animation-delay: 400ms;
}
@keyframes levelPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
  100% { box-shadow: none; }
}

/* ── Avatar mood ring pulse ── */


/* ── Avatar hero glow (dynamic mood color) ── */
.profile-insta-avatar::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ── Feed match shimmer ── */
/* Un seul passage au rendu, en transform (plus de boucle sur `left`). */
.feed-item--match::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-fill) 6%, transparent), transparent);
  transform: translateX(-100%);
  animation: feedMatchShimmerOnce 1200ms var(--ease-out) 300ms 1 both;
  pointer-events: none;
}
@keyframes feedMatchShimmerOnce {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

/* ── Tonight event : halo statique (plus de boucle de box-shadow) ── */


/* ── Level-up / achievement gold flash ── */
.feed-item--levelup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold-fill) 8%, transparent), transparent 60%);
  border-radius: inherit;
  animation: goldFlash 600ms ease forwards;
  pointer-events: none;
}
@keyframes goldFlash {
  0% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* ── NEW badge for recent events ── */
.event-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--app-accent-ink);
}

/* ── Event card gradient hover hype ── */
@media (hover: hover) and (pointer: fine) { .event-card:hover .event-card-gradient {
  filter: brightness(1.1);
  transform: scale(1.02);
  transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
} }

/* Le rebond de l'icône de la barre du bas est retiré (ressort réservé, règle 12) :
   l'appui est porté par l'onglet entier (.94, foundation.css). */

/* ── Feed pulse hero glow breathe ── */
/* Halos au repos : état statique, plus de boucle infinie sur la peinture
   (un seul indicateur vivant par écran : le point « en direct »). */
.btn-rsvp:not(.btn-rsvp-active) {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}


/* ── Referral code gold glow ── */


/* ── Feed item entrance slide ── */
.feed-item {
  animation: feedSlideIn 350ms ease both;
}

/* ── Trophee unlock glow ── */

.trophee-unlocked:nth-child(odd) {
  animation-delay: 0ms;
}

/* ── Profile header parallax-like entrance ── */
.profile-insta-header {
  animation: profileHeaderIn 500ms var(--spring, cubic-bezier(0.22, 1, 0.36, 1)) forwards;
}
@keyframes profileHeaderIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Brand logo subtle pulse in header ── */


/* ── XP progress bar in profile stats ── */
.profile-xp-inline {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.profile-xp-inline-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ── Profile Insta — Desktop overrides ── */
@media (min-width: 1024px) {
  .profile-insta-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 32px 0 16px;
  }
  .profile-insta-avatar {
    margin: 0;
    flex-shrink: 0;
  }
  .profile-insta-name-row {
    justify-content: flex-start;
  }
  .profile-insta-bio {
    margin: 0 0 12px;
    max-width: none;
  }
  .profile-insta-stats {
    justify-content: flex-start;
    gap: 48px;
  }
  .profile-insta-stat {
    flex: unset;
  }
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .profile-grid-content {
    max-width: 700px;
    margin: 0 auto;
  }
  .profile-edit-btn {
    max-width: 700px;
    margin: 0 auto 16px;
    display: block;
  }
  .profile-grid-tabs {
    max-width: 700px;
    margin: 0 auto 16px;
  }
  .profile-referral-banner {
    max-width: 700px;
  }
  .profile-rgpd {
    max-width: 700px;
    margin: 24px auto;
  }
}

/* ═══════════════════════════════════════════════════════
   MESSAGES — Conversation List & Thread
   ═══════════════════════════════════════════════════════ */

/* ── Tab badge (unread count) ── */
.tab-badge {
  position: absolute;
  top: 0px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--app-accent-fill);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Conversation list ── */
.conv-list { padding: 4px 0; }
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 200ms;
  border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) { .conv-item:hover { background: var(--app-fg-a-02); } }
.conv-item:active { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.conv-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.conv-body { flex: 1; min-width: 0; }
.conv-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.conv-staff-badge {
  font-size: .75rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.conv-preview {
  font-size: .875rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.conv-unread .conv-preview { color: var(--text); font-weight: 600; }
.conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.conv-time {
  font-size: .75rem;
  color: var(--muted);
}
.conv-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Thread view ── */
.thread-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  height: calc(100dvh - 130px - var(--kb-offset, 0px));
}
#sec-messages .thread-header,
.thread-view > .thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.thread-back {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px 10px;
  font-family: inherit;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thread-partner-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}
.thread-partner-sub {
  font-size: .75rem;
  color: var(--muted);
}
.thread-partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.thread-partner-text { min-width: 0; }
.thread-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: var(--app-accent-ink);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 4px;
  padding: 2px 8px;
}
.thread-partner-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.thread-partner-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 3px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.thread-day-label {
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 0 6px;
}
.msg-bubble {
  max-width: min(80%, 320px);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  animation: msgSlideIn 200ms var(--spring, ease) forwards;
  position: relative;
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .msg-bubble,
  .msg-actions { animation: none; }
}
.msg-mine {
  align-self: flex-end;
  background: var(--app-accent-fill);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-theirs {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-system {
  align-self: center;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--muted2);
  font-size: .875rem;
  font-style: italic;
  text-align: center;
  max-width: 90%;
}
.msg-time {
  font-size: .75rem;
  color: var(--app-text-a-50);
  margin-top: 2px;
  text-align: right;
}
.msg-theirs .msg-time { color: var(--muted); text-align: left; }
.msg-read-check {
  font-size: .75rem;
  color: var(--info);
  margin-left: 4px;
}
.msg-bubble[data-msg-id] { cursor: pointer; }
.msg-actions {
  display: flex;
  gap: 6px;
  margin: -4px 2px 4px;
  animation: msgSlideIn 180ms var(--spring, ease) forwards;
}
.msg-actions[hidden] { display: none; }
.msg-actions-mine { align-self: flex-end; justify-content: flex-end; }
.msg-actions-theirs { align-self: flex-start; justify-content: flex-start; }
.msg-action-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--app-fg-a-12);
  background: var(--surface);
  min-height: 44px;
  color: var(--text);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.msg-action-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .msg-action-danger:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 36%, transparent); color: var(--app-accent-ink); } }
.typing-indicator {
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 8px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* ── Message input ── */
.thread-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-bottom: var(--kb-offset, 0px);
  transition: margin-bottom 120ms ease;
}
.thread-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  resize: none;
  max-height: 100px;
  outline: none;
  transition: border-color 200ms;
}
.thread-input:focus {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.thread-input::placeholder { color: var(--muted); }
.thread-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: var(--app-accent-fill);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 200ms;
  font-family: inherit;
}
@media (hover: hover) and (pointer: fine) { .thread-send-btn:hover { transform: scale(1.05); } }
.thread-send-btn:active { transform: scale(.97); }
.thread-send-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Desktop split view ── */
@media (min-width: 1024px) {
  body.mode-community.desktop-tab-messages .desktop-content-area { display: none !important; }
  body.mode-community.desktop-tab-messages #sec-messages {
    display: flex !important;
    max-width: 100%;
    height: calc(100vh - 60px);
    padding: 0;
  }
  .messages-split {
    display: flex;
    width: 100%;
    height: 100%;
  }
  .messages-split-list {
    width: 340px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px;
    flex-shrink: 0;
  }
  .messages-split-thread {
    flex: 1;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
  }
  .messages-split-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
  }
}

/* ═══════════════════════════════════════════════════════
   AD SLOTS — Responsive
   ═══════════════════════════════════════════════════════ */
.community-ad-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0 20px;
  overflow: hidden;
  opacity: 0;
  animation: adFadeIn 300ms ease forwards;
}
@keyframes adFadeIn {
  to { opacity: 1; }
}
.community-ad-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.community-ad-placeholder {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: .875rem;
}
.community-ad-cta {
  text-align: center;
  margin-top: 8px;
}
.community-ad-cta a {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms;
}
@media (hover: hover) and (pointer: fine) { .community-ad-cta a:hover {
  color: var(--text);
  text-decoration: underline;
} }

/* ═══════════════════════════════════════════════════════════════════
   XP TOAST — animated "+X XP" feedback
   ═══════════════════════════════════════════════════════════════════ */
.xp-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: 99998;
  pointer-events: none;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold-ink);
  opacity: 0;
  animation: xpToastAnim 1.6s var(--ease-out) forwards;
}
.xp-toast-sub {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: .875rem;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
  margin-top: 2px;
  text-shadow: none;
}
.xp-toast-bar {
  margin-top: 6px;
  width: 120px;
  height: 4px;
  background: var(--app-fg-a-10);
  border-radius: 2px;
  overflow: hidden;
}
.xp-toast-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease-out;
}
@keyframes xpToastAnim {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  30%  { transform: translate(-50%, -50%) scale(1); }
  75%  { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .xp-toast { animation: none; opacity: 1; transform: translate(-50%, -50%); }
}

/* ═══════════════════════════════════════════════════════════════════
   MATCH CELEBRATION MODAL
   ═══════════════════════════════════════════════════════════════════ */
.match-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--app-shade-a-85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: matchOverlayIn 0.4s ease-out;
}
.match-celebration-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 32px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 15%, transparent);
  animation: matchCardIn 0.5s var(--ease-out) 0.1s both;
}
.match-celebration-hearts {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: matchHeartPulse 1.2s ease-in-out 3;
}
.match-celebration-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--app-accent-ink), var(--gold-ink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.match-celebration-subtitle {
  font-size: .875rem;
  color: var(--muted2);
  margin-bottom: 20px;
  line-height: 1.5;
}
.match-celebration-partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.match-celebration-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent-fill), var(--gold-fill));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.match-celebration-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
}
.match-celebration-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--app-accent-fill), var(--app-accent-fill));
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (hover: hover) and (pointer: fine) { .match-celebration-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent); } }
.match-celebration-dismiss {
  width: 100%;
  padding: 8px;
  border: none;
  background: none;
  color: var(--muted2);
  font-family: inherit;
  font-size: .875rem;
  cursor: pointer;
}
.match-confetti {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  z-index: 100000;
  pointer-events: none;
  animation: confettiFall 2.5s ease-in forwards;
}
@keyframes matchOverlayIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes matchCardIn     { from { opacity: 0; transform: scale(0.7) translateY(30px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes matchHeartPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .match-celebration-overlay, .match-celebration-card, .match-celebration-hearts, .match-confetti { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   LEVEL-UP CELEBRATION — gold-tinted variant of match celebration
   ═══════════════════════════════════════════════════════════════════ */
.levelup-celebration-card {
  border-color: color-mix(in srgb, var(--gold-fill) 28%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--gold-fill) 18%, transparent);
}
.levelup-celebration-emoji {
  animation: levelupEmojiPulse 1.2s ease-in-out 3;
}
.levelup-celebration-cta {
  background: linear-gradient(135deg, var(--gold-fill), var(--accent));
}
@keyframes levelupEmojiPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.levelup-reduced .levelup-celebration-emoji { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .levelup-celebration-overlay, .levelup-celebration-card, .levelup-celebration-emoji { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   ONBOARDING SLIDES
   ═══════════════════════════════════════════════════════════════════ */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: var(--app-shade-a-92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: matchOverlayIn 0.4s ease-out;
}
.onboarding-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 36px 24px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--app-fg-a-06);
}
.onboarding-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.onboarding-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.onboarding-text {
  font-size: .875rem;
  color: var(--muted2);
  line-height: 1.6;
  margin-bottom: 24px;
}
.onboarding-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-fg-a-15);
  transition: background 0.3s, transform 0.3s;
}
.onboarding-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}
.onboarding-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--app-accent-fill);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.onboarding-skip {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: none;
  background: none;
  color: var(--muted2);
  font-family: inherit;
  font-size: .875rem;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   SKELETON LOADERS — Messages
   ═══════════════════════════════════════════════════════════════════ */
.skeleton-msg {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--app-fg-a-04);
}
.skeleton-msg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   EVENTS GEOLOC — radius bar + distance badge
   ═══════════════════════════════════════════════════════════════════ */
.events-radius-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 12px;
}
.events-radius-label {
  font-size: 0.78rem;
  color: var(--muted2);
  margin-right: 4px;
  white-space: nowrap;
}
.events-radius-btn {
  padding: 5px 12px;
  border: 1px solid var(--app-fg-a-08);
  border-radius: 8px;
  background: transparent;
  color: var(--muted2);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.events-radius-btn.active {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: var(--accent);
  color: var(--app-accent-ink);
}
@media (hover: hover) and (pointer: fine) { .events-radius-btn:hover:not(.active) {
  border-color: var(--app-fg-a-20);
  color: var(--text);
} }
.events-city-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 0;
}
.events-city-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: 1.05rem;
  color: var(--text);
}
.events-city-change {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--app-accent-ink);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.event-distance-badge {
  color: var(--teal);
  font-weight: 600;
}

/* ── Community Redesign v2 ── */

/* Header greeting */
.community-header-v2 {
  display: block;             /* override base .community-header display:flex (row) → stack children */
  position: relative;         /* base is position:fixed; v2 lives in the scrolling community app */
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.25rem 0;
  flex-shrink: 0;
}
.community-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.community-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.community-logo .logo-accent { color: var(--app-accent-ink); }

.community-notif-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--app-surface-a-80);
  border: 1px solid var(--app-fg-a-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.community-notif-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  display: none;
}

#header-greeting {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
#header-greeting .greeting-name { color: var(--app-accent-ink); }

/* Doublon de la carte XP et du bandeau du fil : masqué. */
#header-stats {
  display: none;
}

/* XP Card */
.xp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--app-surface-a-70);
  border: 1px solid var(--app-fg-a-08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 12px 0;
  flex-shrink: 0;
}
.xp-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--app-accent-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.xp-card-info { flex: 1; min-width: 0; }
#community-xp-level {
  font-size: .75rem;
  font-weight: 700;
  color: var(--app-accent-ink);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.xp-bar-bg {
  height: 8px;
  background: var(--app-fg-a-08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.xp-bar-fill, #community-xp-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}
#community-xp-label {
  font-size: .75rem;
  color: var(--muted);
}
.xp-elite-badge {
  display: none;
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 25%, transparent);
  border-radius: var(--r-xs, 4px);
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  white-space: nowrap;
}
.xp-elite-badge.visible { display: block; }

/* Event cards */
.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 180px;
  flex-shrink: 0;
  margin-bottom: 14px;
}
.event-card-bg {
  position: absolute;
  inset: 0;
}
.event-card-bg--rose   { background: linear-gradient(135deg, #1a0812, #3d0f24); }
.event-card-bg--gold   { background: linear-gradient(135deg, #1a140a, #3d2c0a); }
.event-card-bg--lavender { background: linear-gradient(135deg, #0f0a1a, var(--surface2)); }

.event-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 20px;
}
.event-card--rose .event-card-overlay     { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 85%, transparent) 0%, var(--app-bg-a-10) 100%); }
.event-card--gold .event-card-overlay     { background: linear-gradient(0deg, color-mix(in srgb, var(--gold-fill) 85%, transparent) 0%, var(--app-bg-a-10) 100%); }
.event-card--lavender .event-card-overlay { background: linear-gradient(0deg, color-mix(in srgb, var(--purple) 85%, transparent) 0%, var(--app-bg-a-10) 100%); }

.event-card-date-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  /* Voile sombre opaque, sans backdrop-filter : la pastille vit dans une carte
     de liste qui défile (flash iOS). Sombre dans les deux thèmes : elle est
     posée sur le visuel de la soirée, texte blanc. */
  background: rgba(9,9,14,.55);
  border-radius: var(--r-md, 8px);
  padding: 5px 12px;
  font-size: .75rem;
  color: #fff;
  font-weight: 600;
  z-index: 1;
}
.event-card-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-card-title);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.event-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
}
.event-card-count-pill {
  background: var(--app-fg-a-18);
  border-radius: 8px;
  padding: 3px 10px;
  font-weight: 600;
  font-size: .75rem;
}

/* Pote invite card */
.pote-invite-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--app-surface-a-70);
  border: 1px solid color-mix(in srgb, var(--lavender) 20%, transparent);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.pote-invite-icon { font-size: 2rem; flex-shrink: 0; }
.pote-invite-info { flex: 1; min-width: 0; }
.pote-invite-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lavender);
  margin-bottom: 2px;
}
.pote-invite-sub { font-size: .875rem; color: var(--muted2); }
.pote-invite-btn {
  background: color-mix(in srgb, var(--lavender) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--lavender) 30%, transparent);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--lavender);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tab bar labels */
.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 10px 4px 6px;
}
.tab-bar-item .tab-icon { font-size: 1.25rem; }
.tab-bar-item > span:not(.tab-icon):not(.tab-badge) {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.tab-bar-item.active > span:not(.tab-icon):not(.tab-badge) {
  color: var(--app-accent-ink);
}



/* ── Mon bon (voucher) ── */
.my-voucher-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 500px;
  margin: 12px auto 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  cursor: pointer;
  transition: transform 200ms, opacity 200ms, background-color 200ms, border-color 200ms, box-shadow 200ms, color 200ms;
}
@media (hover: hover) and (pointer: fine) { .my-voucher-cta:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); } }
.my-voucher-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.my-voucher-cta-emoji { font-size: 1.2rem; }
.my-voucher-cta-text { flex: 1; font-size: .9rem; font-weight: 800; color: var(--app-accent-ink); }
.my-voucher-cta-arrow { color: var(--app-accent-ink); font-weight: 700; }

.my-voucher-body { padding: 8px 20px 28px; }
.my-voucher-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 8px;
  padding: 22px 18px;
  max-width: 360px;
  margin: 0 auto;
}
.my-voucher-card.redeemed { opacity: 0.55; border-color: var(--border); }
.my-voucher-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
}
.my-voucher-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.my-voucher-qr img { width: 100%; height: 100%; display: block; }
.my-voucher-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--gold-ink);
  margin: 6px 0 10px;
  word-break: break-all;
}
.my-voucher-note { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.my-voucher-used {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--muted);
  margin: 8px 0 12px;
}
.my-voucher-empty { text-align: center; padding: 24px 18px; }
.my-voucher-empty-emoji { font-size: 2.4rem; margin-bottom: 10px; }
.my-voucher-empty-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.my-voucher-empty-desc { font-size: .875rem; color: var(--muted); margin-bottom: 16px; line-height: 1.4; }

/* ── Safe Place strip (signal de confiance dans le feed) ─────────── */
.safeplace-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--app-fg-a-04);
  border: 1px solid color-mix(in srgb, var(--success) 22%, transparent);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.safeplace-strip:focus-visible {
  background: color-mix(in srgb, var(--success) 7%, transparent);
  border-color: color-mix(in srgb, var(--success) 38%, transparent);
  outline: none;
}
@media (hover: hover) and (pointer: fine) { .safeplace-strip:hover {
  background: color-mix(in srgb, var(--success) 7%, transparent);
  border-color: color-mix(in srgb, var(--success) 38%, transparent);
  outline: none;
} }
.safeplace-strip:active {
  transform: scale(0.98);
}
.safeplace-shield {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}
.safeplace-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.safeplace-text strong {
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.safeplace-text span {
  font-size: .875rem;
  color: var(--muted2);
  line-height: 1.3;
}
.safeplace-chev {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--success) 60%, transparent);
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1;
}

/* ── Safe Place panel body ─────────────────────────────────────────── */
.safeplace-panel-sheet {
  max-height: 80vh;
  overflow-y: auto;
}
.safeplace-panel-body {
  padding: 16px 18px 24px;
}
.safeplace-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.safeplace-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.45;
}
.safeplace-list li strong {
  color: var(--text);
}
.safeplace-list-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.safeplace-close-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 28%, transparent);
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  min-height: 44px;
}

.safeplace-close-btn:focus-visible {
  background: color-mix(in srgb, var(--success) 22%, transparent);
  outline: none;
}
@media (hover: hover) and (pointer: fine) { .safeplace-close-btn:hover {
  background: color-mix(in srgb, var(--success) 22%, transparent);
  outline: none;
} }


/* ── Stories de soirée (recaps éphémères) ─────────────────────────── */
.stories-bar {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 14px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-pill {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.story-pill-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--accent), var(--gold), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
}
.story-pill:active .story-pill-ring { transform: scale(0.93); }
.story-pill-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
}
.story-pill.live .story-pill-ring {
  animation: storyPulseRing 1.6s ease-in-out infinite;
}
@keyframes storyPulseRing {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); }
}
.story-pill-name {
  font-size: .75rem;
  color: var(--muted2);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* Full-screen IG-style viewer */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.story-viewer.active { opacity: 1; }
.story-viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 2;
}

.story-progress {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
}
.story-progress-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--app-fg-a-25);
  overflow: hidden;
}
.story-progress-bar .fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--text);
}
.story-progress-bar.done .fill { width: 100%; }

.story-close {
  position: absolute;
  top: 22px;
  right: 12px;
  z-index: 6;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-shade-a-30);
  border: none;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.story-stage {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.story-tap {
  position: absolute;
  top: 70px;
  bottom: 0;
  width: 40%;
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
}
.story-tap--left { left: 0; }
.story-tap--right { right: 0; width: 60%; }

.story-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  border-radius: 8px;
  animation: storyCardIn 0.4s ease;
}
@keyframes storyCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.story-card--cover {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border: 1px solid var(--app-fg-a-08);
}
.story-cover-name {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.05;
  color: var(--text);
}
.story-cover-date {
  font-size: 0.95rem;
  color: var(--text2);
}
/* Majuscule au seul premier mot : en français les mois restent en minuscules. */
.story-cover-date::first-letter { text-transform: uppercase; }
.story-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--app-on-accent);
  background: var(--app-accent-fill);
  padding: 5px 12px;
  border-radius: 4px;
}
.story-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: storyPulseDot 1.2s ease-in-out infinite;
}
@keyframes storyPulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.story-card--stat {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  border: 1px solid var(--app-fg-a-10);
}
.story-stat-emoji { font-size: 2.6rem; }
.story-stat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(4rem, 22vw, 7rem);
  line-height: 1;
  color: var(--text);
}
.story-stat-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.story-card--cta {
  background: color-mix(in srgb, var(--gold-fill) 26%, transparent);
  border: 1px solid var(--app-fg-a-08);
}
.story-cta-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.2;
  color: var(--text);
}
.story-cta-btn {
  margin-top: 6px;
  padding: 14px 26px;
  border: none;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .story-card,
  .story-pill.live .story-pill-ring,
  .story-live-dot {
    animation: none;
  }
  .story-progress-bar .fill { transition: none; }
}


/* ── Ma progression (gamification) ───────────────────────────── */
.prog-body {
  padding: 0 16px 28px;
  overflow-y: auto;
}
.prog-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
  padding: 14px 16px;
  border-radius: 8px;
  cursor: pointer;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 32%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}

.prog-cta-card:focus-visible {
  transform: translateY(-1px);
  outline: none;
}
@media (hover: hover) and (pointer: fine) { .prog-cta-card:hover {
  outline: none;
} }
.prog-cta-card-emoji { font-size: 1.4rem; }
.prog-cta-card-text {
  flex: 1;
  font-weight: 600;
  font-size: .98rem;
  color: #fff;
}
.prog-cta-card-arrow { color: var(--gold); font-weight: 700; }

/* Header niveau */
.prog-level {
  text-align: center;
  padding: 22px 16px 18px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--app-fg-a-06);
}
.prog-level-badge { font-size: 3rem; line-height: 1; margin-bottom: 6px; }
.prog-level-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.prog-level-xp {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 2px;
}
.prog-xp-bar {
  height: 10px;
  border-radius: 8px;
  background: var(--app-fg-a-08);
  overflow: hidden;
  margin: 14px auto 8px;
  max-width: 320px;
}
.prog-xp-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--accent);
  width: 0%;
  transition: width 900ms cubic-bezier(.22,1,.36,1);
}
.prog-xp-hint { font-size: .875rem; color: var(--app-text-a-60); }

/* Streak */
.prog-streak {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-06);
}
.prog-streak-flame { font-size: 1.5rem; }
.prog-streak-main { font-weight: 600; color: var(--text); flex: 1; }
.prog-streak-record { font-size: .875rem; color: var(--app-text-a-55); }

/* Stats rapides */
.prog-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.prog-stat-tile {
  text-align: center;
  padding: 12px 6px;
  border-radius: 8px;
  background: var(--app-fg-a-04);
  border: 1px solid var(--app-fg-a-06);
}
.prog-stat-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--app-accent-ink);
  line-height: 1;
}
.prog-stat-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--app-text-a-55);
  margin-top: 4px;
}

/* Section title */
.prog-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 12px;
}

/* Achievements grid */
.prog-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.prog-ach {
  text-align: center;
  padding: 14px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 28%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-fill) 25%, transparent);
}
.prog-ach-icon { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.prog-ach-label { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.prog-ach-done { font-size: .75rem; color: var(--gold); margin-top: 6px; font-weight: 600; }
.prog-ach--locked {
  background: var(--app-fg-a-03);
  border-color: var(--app-fg-a-08);
  filter: grayscale(0.6);
  box-shadow: none;
}
.prog-ach--locked .prog-ach-icon { opacity: 0.5; }
.prog-ach--locked .prog-ach-label { color: var(--app-text-a-60); }
.prog-ach--new {
  animation: progAchNewPop 0.9s var(--ease-out) both;
}
@keyframes progAchNewPop {
  0%   { transform: scale(0.92); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-fill) 0%, transparent); }
  40%  { transform: scale(1.04); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-fill) 45%, transparent), 0 6px 22px color-mix(in srgb, var(--gold-fill) 30%, transparent); }
  100% { transform: scale(1); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-fill) 25%, transparent), 0 4px 16px color-mix(in srgb, var(--gold-fill) 10%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .prog-ach--new { animation: none; }
}
.prog-ach-pbar {
  height: 6px;
  border-radius: 8px;
  background: var(--app-fg-a-08);
  overflow: hidden;
  margin: 8px 4px 4px;
}
.prog-ach-pfill {
  height: 100%;
  border-radius: 8px;
  background: var(--accent);
}
.prog-ach-prog { font-size: .75rem; color: var(--app-text-a-55); }

/* Classement parrainage */
.prog-rank-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold-fill) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 36%, transparent);
  margin-bottom: 10px;
}
.prog-rank-me--none { background: var(--app-fg-a-04); border-color: var(--app-fg-a-08); }
.prog-rank-medal {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}
.prog-rank-me-text { flex: 1; font-size: .875rem; color: var(--text); }
.prog-rank-me-count { font-weight: 700; color: var(--gold); }
.prog-rank-list { display: flex; flex-direction: column; gap: 6px; }
.prog-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--app-fg-a-03);
  border: 1px solid var(--app-fg-a-05);
}
.prog-rank-row--me {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.prog-rank-pos { font-weight: 700; color: var(--app-text-a-55); width: 34px; }
.prog-rank-name { flex: 1; font-weight: 600; color: var(--text); font-size: .88rem; }
.prog-rank-title { font-size: .75rem; color: var(--app-text-a-50); }
.prog-rank-count { font-weight: 700; color: var(--app-accent-ink); }

.prog-cta {
  display: block;
  width: 100%;
  margin: 18px 0 4px;
  padding: 14px;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: #09090E;
  cursor: pointer;
  background: var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}

.prog-empty {
  text-align: center;
  padding: 1.4rem;
  color: var(--app-text-a-60);
  font-size: .88rem;
}

@media (min-width: 560px) {
  .prog-ach-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .prog-xp-fill,
  .prog-cta,
  .prog-cta-card { transition: none; }
}

/* Tab nav: respect reduced-motion (no icon bounce / underline animation) */
@media (prefers-reduced-motion: reduce) {
  .tab-bar-item .tab-icon { transition: none; }
  .tab-bar-item.active .tab-icon { transform: none; }
  .tab-bar-item.active::after { animation: none; }
  .tab-bar-item:active .tab-icon { transform: none; }
}

/* ── Carte profil membre (connection-gated) ─────────────────────── */
.member-body {
  padding: 8px 4px 16px;
}
.member-card {
  text-align: center;
  padding: 24px 18px 22px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--app-fg-a-07);
}
.member-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
}
.member-avatar-img,
.member-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.member-avatar-fallback {
  background: var(--accent-glow);
  color: var(--app-accent-ink);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.member-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.member-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--gold-fill) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold-fill) 28%, transparent);
}
.member-level-emoji { font-size: 1rem; line-height: 1; }
.member-level-name {
  color: var(--gold);
  font-weight: 700;
  font-size: .875rem;
}
.member-city {
  color: var(--muted2);
  font-size: .9rem;
  margin-top: 10px;
}
.member-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}
.member-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid var(--app-fg-a-12);
  background: var(--app-fg-a-04);
  color: var(--text);
}
.member-chip--mood {
  background: var(--accent-glow);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--app-accent-ink);
}
.member-chip--rel {
  background: color-mix(in srgb, var(--gold-fill) 10%, transparent);
  border-color: color-mix(in srgb, var(--gold-fill) 26%, transparent);
  color: var(--gold);
}
.member-bio {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--app-fg-a-07);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.6;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Gated / unavailable state */
.member-gated {
  text-align: center;
  padding: 36px 22px 30px;
}
.member-gated-icon {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 12px;
}
.member-gated-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.member-gated-text {
  color: var(--muted2);
  font-size: .9rem;
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}
/* Tappable member rows */
.attendees-panel-item--tappable { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .attendees-panel-item--tappable:hover { background: var(--app-fg-a-03); } }
.attendees-panel-item--tappable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}
.pote-friend-card--tappable { cursor: pointer; }
.pote-friend-card--tappable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .member-avatar-img,
  .member-avatar-fallback { box-shadow: none; }
}


/* ════════════════════════════════════════════════
   Branded Klarrro spinner (rose loader)
   Reuses the global @keyframes spin from components.css
   ════════════════════════════════════════════════ */
.klarrro-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}
.klarrro-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .klarrro-spinner {
    animation: none;
    border: 3px solid color-mix(in srgb, var(--accent) 18%, transparent);
    border-top-color: var(--accent);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   SKELETON CARDS — Feed & Events tab loaders (no layout jump)
   ═══════════════════════════════════════════════════════════════════ */
.skel {
  background: var(--surface);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.skel-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--app-fg-a-06) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: skelSweep 1.4s ease-in-out infinite;
}
@keyframes skelSweep {
  100% { transform: translateX(100%); }
}
.skel-event-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--app-fg-a-06);
  background: var(--surface);
}
.skel-event-card .skel-event-banner {
  height: 96px;
  border-radius: 0;
}
.skel-event-card .skel-event-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skel-event-card .skel-line-lg { height: 16px; width: 65%; border-radius: 4px; }
.skel-event-card .skel-line-sm { height: 11px; width: 40%; border-radius: 4px; }
.skel-feed-card {
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--app-fg-a-06);
  background: var(--surface);
}
.skel-feed-card .skel-feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.skel-feed-card .skel-feed-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.skel-feed-card .skel-feed-head-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.skel-feed-card .skel-line-lg { height: 14px; width: 55%; border-radius: 4px; }
.skel-feed-card .skel-line-sm { height: 10px; width: 35%; border-radius: 4px; }
.skel-feed-card .skel-line-full { height: 11px; width: 100%; border-radius: 4px; margin-bottom: 8px; }
.skel-feed-card .skel-line-mid { height: 11px; width: 80%; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .skel-shimmer::after { animation: none; display: none; }
  .skel { background: var(--surface); }
}


/* ═══════════════════════════════════════════════════════════════════
   ANNONCE MOOD — single source of truth via CSS vars (mirrors _MOOD_COLORS)
   ═══════════════════════════════════════════════════════════════════ */
.annonce-card[data-mood="romantique"] { --mood: #E0527A; --mood-soft: rgba(224,82,122,0.2); --mood-glow: rgba(224,82,122,0.35); }
.annonce-card[data-mood="mysterieux"] { --mood: #C4B5FD; --mood-soft: rgba(196,181,253,0.2); --mood-glow: rgba(196,181,253,0.35); }
.annonce-card[data-mood="chill"]      { --mood: #2DD4BF; --mood-soft: rgba(45,212,191,0.2); --mood-glow: rgba(45,212,191,0.35); }
.annonce-card[data-mood="festif"]     { --mood: #FB923C; --mood-soft: rgba(251,146,60,0.2); --mood-glow: rgba(251,146,60,0.35); }
.annonce-card[data-mood="confiant"]   { --mood: #F8BF45; --mood-soft: rgba(248,191,69,0.2); --mood-glow: rgba(248,191,69,0.35); }
.annonce-card[data-mood="curieux"]    { --mood: #60A5FA; --mood-soft: rgba(96,165,250,0.2); --mood-glow: rgba(96,165,250,0.35); }

.annonce-card[data-mood] {
  border-left: 3px solid var(--mood, var(--accent));
}
.annonce-card[data-mood] .annonce-avatar {
  background: var(--mood-soft, color-mix(in srgb, var(--accent) 15%, transparent));
  color: var(--mood, var(--app-accent-ink));
  box-shadow: 0 0 0 2px var(--mood, var(--accent));
}


/* ═══════════════════════════════════════════════════════════════════
   FRIEND PICKER — branded bottom-sheet (parity with .auth-card glass)
   ═══════════════════════════════════════════════════════════════════ */
.friend-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--app-bg-a-70);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: friendPickerFade .2s ease-out;
}
@keyframes friendPickerFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.friend-picker-card {
  background: var(--surface);
  border: 1px solid var(--app-fg-a-10);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 48px var(--app-shadow-a-50);
  animation: friendPickerSlide .26s ease-out;
}
@keyframes friendPickerSlide {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.friend-picker-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--app-fg-a-06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.friend-picker-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}
.friend-picker-subtitle {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}
.friend-picker-close {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--app-fg-a-05);
  border: 1px solid var(--app-fg-a-08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.friend-picker-close:active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--app-accent-ink);
}
@media (hover: hover) and (pointer: fine) { .friend-picker-close:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--app-accent-ink);
} }
.friend-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}
.friend-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  background: var(--app-fg-a-03);
  border: 1px solid var(--app-fg-a-07);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.friend-picker-item:active {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-1px);
}
@media (hover: hover) and (pointer: fine) { .friend-picker-item:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
} }
.friend-picker-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--app-accent-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.friend-picker-item-body { flex: 1; min-width: 0; }
.friend-picker-item-name { font-weight: 600; font-size: .9rem; }
.friend-picker-item-username { font-size: .75rem; color: var(--muted); }
.friend-picker-item-cta { color: var(--app-accent-ink); font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.friend-picker-empty,
.friend-picker-error {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: .875rem;
}
@media (prefers-reduced-motion: reduce) {
  .friend-picker-overlay,
  .friend-picker-card { animation: none; }
  
  .friend-picker-item:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .friend-picker-item:hover { transform: none; } }
}


/* ── Bottom-sheet swipe-to-dismiss (Item 11) ─────────────── */
/* Grab handle: 36x4 rounded muted bar at top of each sheet */
.sheet-grab {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--border2);
  margin: 8px auto 2px;
  flex-shrink: 0;
  /* enlarge the touch/visual affordance without growing the bar */
  cursor: grab;
}
/* During an active finger drag, kill the transition so the sheet
   tracks the finger 1:1. On release the class is removed and the
   element's own transform transition springs it back / out. */
.sheet-dragging {
  transition: none !important;
  will-change: transform;
}
/* Partner overlay card animates in via @keyframes; give it the same
   spring-back transition once that one-shot animation has settled. */
.partner-overlay-card,
.friend-picker-card {
  transition: transform 300ms cubic-bezier(0.32, 1, 0.23, 1);
}
@media (prefers-reduced-motion: reduce) {
  .sheet-dragging { will-change: auto; }
}


/* ── Feed items stagger entrance (Item 13) ───────────────── */
/* Applied only to static activity items (.feed-item.stagger-item),
   NOT the live-feed socket items in #live-feed-items. The inline
   animation-delay (set in JS, capped to the first 10 items at 40ms
   each) drives the cascade. `backwards` keeps delayed items hidden
   until their turn. Placed after .feed-item so it wins on source order. */
.feed-item.stagger-item {
  opacity: 1; /* override .stagger-item{opacity:0} (klarrro-ux.css) — keyframe transform-only ne restaure plus l'opacity */
  animation: feedItemIn var(--dur-move) var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * var(--stagger)); /* plafonné à 8 lignes */
}
/* Conversation list reuses the same staggered entrance. */
.conv-item.stagger-item {
  opacity: 1;
  animation: feedItemIn var(--dur-move) var(--ease-out) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * var(--stagger)); /* plafonné à 8 lignes */
}
@keyframes feedItemIn {
  from { transform: translateY(8px); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-item.stagger-item,
  .conv-item.stagger-item {
    animation: none;
    animation-delay: 0ms;
    opacity: 1;
    transform: none;
  }
}


/* ── Unified button utilities (Item 14) ──────────────────── */
/* Reusable, opt-in button classes. Existing buttons are NOT refactored
   to these — they are made available for future use. */
.klarrro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.klarrro-btn:active:not(:disabled) { transform: scale(.97); }
.klarrro-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.klarrro-btn--primary {
  background: var(--accent);
  color: #09090E;
  border-color: var(--accent);
}
.klarrro-btn--ghost {
  background: transparent;
  color: var(--app-accent-ink);
  border-color: var(--accent);
}
@media (hover: hover) and (pointer: fine) { .klarrro-btn--ghost:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
} }
.klarrro-btn--sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: .875rem;
  border-radius: 8px;
}

/* Consistent press feedback across the community app. Tab-bar items and
   buttons that already define a custom :active scale are excluded so their
   own values win. */
.community-app button:active:not(:disabled):not(.tab-bar-item):not(.msg-action-btn):not(.thread-send-btn):not(.story-pill) {
  transform: scale(0.97);
}
@media (prefers-reduced-motion: reduce) {
  .klarrro-btn:active:not(:disabled),
  .community-app button:active:not(:disabled):not(.tab-bar-item):not(.msg-action-btn):not(.thread-send-btn):not(.story-pill) {
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   KLARRRO PREMIUM — refonte abonnement (vente + carte membre + accroche)
   Or = premium. Bottom-sheet mobile, carte de membre dorée, shimmer CSS pur.
   ════════════════════════════════════════════════════════════════════ */
:root { --kp-gold:#F8BF45; --kp-gold-hi:#FFE09A; --kp-gold-lo:#C9902F; --kp-gold-soft:rgba(248,191,69,.14); }

/* ── Selling bottom-sheet ── */
.kprem-sheet-overlay{position:fixed;inset:0;z-index:9000;display:flex;align-items:flex-end;justify-content:center;
  background:var(--app-bg-a-62);opacity:0;transition:opacity .28s ease}
.kprem-sheet-overlay.kprem-sheet-visible{opacity:1}
.kprem-sheet{position:relative;width:100%;max-width:460px;max-height:92dvh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--border2);border-bottom:none;
  border-radius:8px 8px 0 0;padding:14px 16px calc(20px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -30px 80px -20px var(--app-shadow-a-70);
  transform:translateY(100%);transition:transform .32s cubic-bezier(.22,1,.36,1);-webkit-overflow-scrolling:touch}
.kprem-sheet-visible .kprem-sheet{transform:translateY(0)}
@media(min-width:560px){
  .kprem-sheet-overlay{align-items:center}
  .kprem-sheet{border-radius:8px;border-bottom:1px solid var(--border2);max-height:90dvh;transform:translateY(18px)}
  .kprem-sheet-visible .kprem-sheet{transform:translateY(0)}
}
.kprem-close{position:absolute;top:10px;right:12px;width:30px;height:30px;border-radius:8px;border:none;
  background:var(--app-fg-a-06);color:var(--muted);font-size:1.2rem;line-height:1;cursor:pointer;z-index:2}
.kprem-grab{width:38px;height:4px;border-radius:8px;background:var(--border2);margin:2px auto 14px}
.kprem-eyebrow{display:flex;align-items:center;gap:5px;justify-content:center;font-size:.75rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--kp-gold);font-weight:800}
.kprem-title{font-family:'Playfair Display',Georgia,serif;font-size:1.6rem;text-align:center;margin:.35rem 6px .15rem;
  line-height:1.14;font-weight:800;text-wrap:balance;color:var(--text)}
/* mot d'accent : mot-sticker or (règle commune dans base.css) */
.kprem-sub{text-align:center;color:var(--muted);font-size:.875rem;margin:0 8px 14px;line-height:1.4}
.kprem-stack{display:flex;flex-direction:column;gap:2px;margin:0 0 16px}
.kprem-vrow{display:flex;gap:11px;align-items:flex-start;padding:9px 8px;border-radius:8px}
.kprem-vrow:nth-child(odd){background:var(--app-fg-a-02)}
.kprem-vico{flex:0 0 auto;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:15px;
  background:var(--kp-gold-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--gold-fill) 25%, transparent)}
.kprem-vtx b{display:block;font-size:.9rem;font-weight:700;color:var(--text)}
.kprem-vtx span{font-size:.875rem;color:var(--muted)}
.kprem-plans{display:grid;grid-template-columns:1fr 1.15fr;gap:9px;margin:2px 0 10px}
.kprem-plan{position:relative;border:1px solid var(--border);border-radius:8px;padding:14px 10px;
  text-align:center;background:var(--app-fg-a-03);cursor:pointer;transition:.18s;color:var(--text)}
.kprem-plan:focus-visible{outline:2px solid var(--kp-gold);outline-offset:2px}
.kprem-cyc{font-size:.75rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.kprem-price{font-family:'Playfair Display',Georgia,serif;font-size:1.6rem;font-weight:800;margin:.1rem 0;font-variant-numeric:tabular-nums}
.kprem-note{font-size:.75rem;color:var(--muted2)}
.kprem-plan--sel{box-shadow:0 0 0 2px var(--kp-gold)}
.kprem-plan--best{border-color:transparent;background: color-mix(in srgb, var(--gold-fill) 12%, transparent)}
.kprem-plan--best .kprem-price{color:var(--kp-gold)}
.kprem-ribbon{position:absolute;top:-9px;left:50%;transform:translateX(-50%);white-space:nowrap;
  background: var(--kp-gold-hi);color:#1a1206;font-size:.75rem;font-weight:900;
  padding:3px 9px;border-radius:8px;letter-spacing:.02em}
.kprem-anchor{text-align:center;font-size:.75rem;color:var(--muted);margin:0 0 12px}
.kprem-anchor b{color:var(--text)}
.kprem-cta{display:block;width:100%;border:none;border-radius:8px;padding:15px;font-weight:800;font-size:1rem;cursor:pointer;
  color:#1a1206;background: var(--kp-gold-hi);position:relative;overflow:hidden}
.kprem-ttc{font-family:'DM Sans',system-ui,sans-serif;font-size:.75rem;font-weight:700;color:var(--muted)}
.kprem-recap{background:var(--app-fg-a-03);border:1px solid var(--border);border-radius:8px;padding:11px 13px;margin:0 0 12px;font-size:.8125rem;color:var(--muted);line-height:1.4}
.kprem-recap-title{font-weight:800;color:var(--text);margin-bottom:5px;font-size:.875rem}
.kprem-recap ul{margin:0;padding-left:18px}
.kprem-recap li{margin:3px 0}
.kprem-recap b{color:var(--text)}
.kprem-recap a{color:var(--kp-gold);text-decoration:underline;text-underline-offset:2px}
.kprem-consent{display:flex;gap:11px;align-items:flex-start;min-height:44px;padding:8px 2px;margin:0 0 10px;cursor:pointer;font-size:.8125rem;line-height:1.4;color:var(--text)}
.kprem-consent input{flex:0 0 auto;width:24px;height:24px;margin:0;accent-color:var(--kp-gold);cursor:pointer}
.kprem-consent input:focus-visible{outline:2px solid var(--kp-gold);outline-offset:2px}
.kprem-cta:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.kprem-cta{min-height:52px;line-height:1.25}
.kprem-unavailable{text-align:center;color:var(--muted);font-size:.875rem;padding:18px 8px}
.kprem-reassure{display:flex;align-items:center;gap:6px;justify-content:center;font-size:.75rem;color:var(--muted);margin-top:10px;text-align:center}
.kprem-mimetic{text-align:center;font-size:.875rem;color:var(--kp-gold);font-weight:700;margin-top:8px}

/* ── Member card (management) ── */
.kprem-card{position:relative;border-radius:8px;padding:18px;overflow:hidden;color:#241a06;aspect-ratio:1.6/1;
  display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(135deg,#FFE7A8 0%,var(--gold-fill) 42%,#C9902F 100%);
  box-shadow:0 24px 50px -18px color-mix(in srgb, var(--gold-fill) 50%, transparent),inset 0 1px 0 var(--app-fg-a-50)}
.kprem-card-top,.kprem-card-mid,.kprem-card-foot{position:relative;z-index:1}
.kprem-card-top{display:flex;justify-content:space-between;align-items:flex-start}
.kprem-card-brand{font-weight:900;font-size:1.05rem;letter-spacing:.02em;line-height:1}
.kprem-card-brand small{display:block;font-size:.75rem;letter-spacing:.3em;font-weight:800;opacity:.7;margin-top:3px}
.kprem-card-star{font-size:1.4rem}
.kprem-card-name{font-family:'Playfair Display',Georgia,serif;font-size:1.15rem;font-weight:800}
.kprem-card-since{font-size:.75rem;font-weight:700;opacity:.72}
.kprem-card-foot{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;font-weight:800}
.kprem-card-chip{width:26px;height:19px;border-radius:4px;background:linear-gradient(135deg,var(--app-fg-a-40),var(--app-shade-a-12));box-shadow:inset 0 0 0 1px var(--app-shadow-a-20)}
.kprem-bill{margin:16px 0 6px;border:1px solid var(--border);border-radius:8px;
  background:var(--surface);overflow:hidden}
.kprem-brow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 14px;font-size:.875rem}
.kprem-brow+.kprem-brow{border-top:1px solid var(--border)}
.kprem-brow span{color:var(--muted)}
.kprem-brow b{font-weight:700;color:var(--text);text-align:right}
.kprem-ok{color:var(--success)}
.kprem-warn{color:var(--kp-gold)}
.kprem-chips{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 0}
.kprem-chip{font-size:.75rem;font-weight:700;padding:5px 10px;border-radius:8px;background:var(--kp-gold-soft);
  color:var(--kp-gold);border:1px solid color-mix(in srgb, var(--gold-fill) 25%, transparent)}
.kprem-mrow{display:flex;gap:8px;margin:12px 0 0}
.kprem-mbtn{flex:1;border:1px solid var(--border2);background:var(--surface);
  color:var(--text);border-radius:8px;padding:12px;font-weight:700;font-size:.875rem;cursor:pointer}
.kprem-mbtn--q{color:var(--muted2);border-color:var(--border);font-weight:600}
.kprem-endnote{font-size:.75rem;color:var(--muted);font-style:italic;line-height:1.45}
.kprem-endnote b{color:var(--text);font-style:normal}

/* ── Entry upsell (free) ── */
.kprem-entry{display:flex;align-items:center;gap:12px;padding:14px;border-radius:8px;cursor:pointer;
  background: color-mix(in srgb, var(--gold-fill) 16%, transparent);border:1px solid color-mix(in srgb, var(--gold-fill) 30%, transparent)}
.kprem-estar{width:40px;height:40px;border-radius:8px;display:grid;place-items:center;font-size:20px;flex:0 0 auto;
  background: var(--kp-gold-hi);color:#1a1206}
.kprem-etx b{display:block;font-size:.95rem;color:var(--text)}
.kprem-etx span{font-size:.875rem;color:var(--muted)}
.kprem-eprice{margin-left:auto;text-align:right;font-weight:800;color:var(--kp-gold);font-size:.9rem;white-space:nowrap}
.kprem-eprice small{display:block;font-size:.75rem;color:var(--muted);font-weight:600}

@media (prefers-reduced-motion: reduce){
  .kprem-sheet,.kprem-sheet-overlay{transition:none}
}

/* Premium — badge "Bientôt" sur les avantages roadmap (pas encore live) */
.kprem-soon{display:inline-block;font-size:.75rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  vertical-align:middle;margin-left:6px;padding:2px 7px;border-radius:8px;
  background:var(--app-fg-a-08);color:var(--muted);border:1px solid var(--border2)}
.kprem-vrow--soon .kprem-vico{opacity:.7}
.kprem-vrow--soon .kprem-vtx span{opacity:.85}

/* ── Passe qualité app (2026-10) : verrou de défilement des feuilles ──
   En mode community, <html> défile (chat.css). Le verrou se pose sur lui ;
   :has() couvre aussi les feuilles créées hors de community.js. */
html:has(.kprem-sheet-overlay.kprem-sheet-visible),
html:has(body.mode-community):has(.attendees-panel-overlay.active) { overflow: hidden !important; }
.kprem-sheet, .kprem-sheet-overlay, .attendees-panel-overlay, .attendees-panel-sheet,
.attendees-panel-list, .story-viewer { overscroll-behavior: contain; }
.kprem-sheet-overlay, .attendees-panel-overlay, .story-viewer { touch-action: none; }
.kprem-sheet, .attendees-panel-list, .prog-body, .member-body, .my-voucher-body, .safeplace-panel-body { touch-action: pan-y; }

/* app.html (connexion, inscription) ne charge ni chat-ux-v2.css ni
   responsive.css : sans cette règle ses champs sortent à 14 px et iOS zoome
   au focus. Portée hors de klarrro.html (body.klr-app, déjà à 16 px) et
   spécificité minimale (0,1,1) pour ne battre que les règles génériques. */
body:not(.klr-app) :where(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden]), select, textarea) { font-size: max(16px, 1rem); }

/* Cartes cliquables en div : focus visible au clavier (WCAG 2.4.7). */
[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.klr-img-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; color: #fff; }

/* Barres de progression pilotées par --p (0 à 1) : transform, jamais width. */
.klr-bar, .prog-xp-fill, .xp-toast-bar-fill, #community-xp-fill {
  width: 100% !important; transform-origin: left center; transform: scaleX(var(--p, 0));
  transition: transform 600ms var(--ease-out);
}
.story-progress-bar .fill { width: 100%; transform-origin: left center; transform: scaleX(0); }
.story-progress-bar.done .fill { width: 100%; transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .klr-bar, .prog-xp-fill, .xp-toast-bar-fill, #community-xp-fill { transition: none; }
}

/* Relances du fil : une ligne, et rien au-dessus du bloc « en direct ». */
#sec-feed:has(.klr-live) #feed-profile-nudges { display: none; }
.profile-incomplete-banner--compact { padding: 10px 12px; gap: 10px; align-items: center; }
.profile-incomplete-banner--compact .profile-incomplete-banner-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-incomplete-banner--compact .profile-incomplete-banner-text strong { font-size: 1rem; line-height: 1.3; }
.profile-incomplete-banner--compact .profile-incomplete-banner-sub { font-size: .875rem; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-incomplete-banner--compact .profile-incomplete-banner-close { min-width: 44px; min-height: 44px; }

/* ═══════════════════════════════════════════════════════
   Audit design 19/10 — chiffres, icônes SVG, aides
   ═══════════════════════════════════════════════════════ */

/* Chiffres : Playfair a des chiffres elzéviriens (« 110 » se lit « 11o »).
   Les valeurs numériques passent en DM Sans tabulaire ; les noms (pseudo,
   cartes) gardent Playfair avec des chiffres alignés sur la ligne. */
.pulse-stat-num,
.profile-stat-val,
.profile-insta-stat-val,
.checkin-modal-xp,
.xp-toast,
.story-stat-num,
.prog-stat-val,
.prog-level-xp {
  font-family: 'DM Sans', system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.profile-name,
.profile-insta-pseudo,
.event-card-name,
.member-name,
.partner-name,
.badge-card-name,
.match-celebration-name,
.story-cover-name,
.profile-event-mini-name,
.profile-share-card-name,
.pote-share-card-name {
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
}

/* Icônes fonctionnelles (SVG trait, couleur du texte). */
.k-ic { width: 1em; height: 1em; flex-shrink: 0; vertical-align: -0.125em; }
.k-ic-wrap { display: inline-flex; align-items: center; margin-right: 4px; }
.profile-edit-gear .k-ic { width: 20px; height: 20px; vertical-align: middle; }
.profile-edit-pencil .k-ic { width: 12px; height: 12px; }

/* Pastille d'aide « vibes » : 28 px visibles, zone tactile de 44 px. */
.profile-vibe-help {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0;
  border: 1px solid var(--app-fg-a-15);
  border-radius: 8px;
  background: none;
  color: var(--muted2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.profile-vibe-help::before { content: ''; position: absolute; inset: -8px; }
.profile-vibe-help .k-ic { width: 16px; height: 16px; vertical-align: middle; }

/* Palier suivant sous la barre d'XP du profil. */
.profile-xp-next {
  margin-top: 4px;
  font-size: .6875rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* Bandeau en direct : soirée tout juste lancée, une phrase au lieu de trois zéros. */
body.klr-app .klr-live-stats.is-fresh { display: block; }
.klr-live-fresh {
  margin: 0;
  padding: 10px 12px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--screen-text, var(--text));
}

/* Les <button> n'héritent pas la police par défaut du navigateur (Arial). */
.community-app button,
.community-tab-bar .tab-bar-item,
.desktop-topbar button { font-family: inherit; }

/* Messages = icône d'en-tête (4 onglets max : Feed, Events, Annonces, Profil). */
.community-msg-btn { position: relative; }
.community-msg-btn.active { color: var(--app-accent-ink); border-color: var(--accent); }
.community-msg-btn .msg-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full, 999px);
  background: var(--app-accent-fill);
  color: var(--app-on-accent, #fff);
  font-size: .6875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.desktop-topbar-icon.community-msg-btn.active { background: var(--surface2); }

/* Onglet Events : soirées en cours en tête, même source que le bandeau du fil. */
.events-live-now { display: grid; gap: 10px; margin-bottom: 16px; }
.events-live-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface, transparent));
}
.events-live-card-main { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.events-live-card-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  color: var(--text);
}
.events-live-card-meta { font-size: .8125rem; color: var(--muted2); }
.events-live-card .btn { flex-shrink: 0; min-height: 44px; }

/* Stories : deux lignes pour distinguer « Soirée Pro » de « Soirée Solo ». */
.story-pill-name {
  max-width: 84px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}

/* ══ DA 21/10 : icônes SVG à la place des emoji ══ */
body.klr-app .ki-spice { display: inline-flex; align-items: center; gap: 1px; color: var(--app-accent-ink); vertical-align: middle; }
body.klr-app .ki-spice .k-icon { --k-icon-size: 14px; }
body.klr-app .ki-gold { color: var(--gold-ink); }
body.klr-app .vibe-dot { display: inline-block; flex-shrink: 0; width: 52px; height: 52px; border-radius: 999px; background: var(--vibe, var(--app-accent-ink)); }
body.klr-app .vibe-dot--lg { width: 52px; height: 52px; }
body.klr-app .vibe-dot--sm { width: 12px; height: 12px; margin-inline-end: 6px; vertical-align: middle; }
body.klr-app .visit-star.active .k-icon,
body.klr-app .annonce-liked .k-icon { fill: currentColor; stroke: none; }

body.klr-app .einfo-row-icon,
body.klr-app .feed-item-icon,
body.klr-app .chip-icon,
body.klr-app .notif-pref-icon,
body.klr-app .sph-role-icon,
body.klr-app .prog-ach-icon,
body.klr-app .trophee-icon,
body.klr-app .member-gated-icon,
body.klr-app .prog-level-badge { display: inline-flex; align-items: center; justify-content: center; color: var(--app-accent-ink); }
body.klr-app .einfo-row-icon .k-icon,
body.klr-app .chip-icon .k-icon,
body.klr-app .notif-pref-icon .k-icon,
body.klr-app .sph-role-icon .k-icon { --k-icon-size: 20px; }

body.klr-app .einfo-game-icon,
body.klr-app .warn-overlay-emoji,
body.klr-app .engagement-overlay-icon,
body.klr-app .challenge-banner-icon,
body.klr-app .event-ending-emoji,
body.klr-app .post-event-emoji,
body.klr-app [class^="ux-tod-"][class$="-emoji"],
body.klr-app [class^="ux-pres-"][class$="-emoji"],
body.klr-app .community-empty-icon,
body.klr-app .checkin-modal-icon,
body.klr-app .rsvp-alert-icon,
body.klr-app .share-prompt-icon,
body.klr-app .pote-invite-icon,
body.klr-app .onboarding-icon,
body.klr-app .prog-cta-card-emoji { display: inline-flex; align-items: center; justify-content: center; color: var(--app-accent-ink); line-height: 1; }
body.klr-app .challenge-banner-icon .k-icon { --k-icon-size: 24px; }
body.klr-app .trophee-icon .k-icon,
body.klr-app .feed-item-icon .k-icon,
body.klr-app .prog-ach-icon .k-icon,
body.klr-app .prog-level-badge .k-icon,
body.klr-app .member-gated-icon .k-icon { --k-icon-size: 26px; }
body.klr-app .prog-streak-flame { color: var(--app-accent-ink); }
body.klr-app .prog-streak-flame .k-icon { --k-icon-size: 20px; }

body.klr-app .my-voucher-empty-emoji,
body.klr-app .my-voucher-cta-emoji { color: var(--gold-ink); display: inline-flex; }
body.klr-app .safeplace-list-icon,
body.klr-app .safeplace-shield,
body.klr-app .safe-quick-cat { color: var(--success); }
body.klr-app .safe-quick-cat { display: inline-flex; align-items: center; justify-content: center; }

