/* ============================================================
   EN VILLE — REVAMP: Bottom Nav + Events Page + Map Page
   Appended to homepage.css via <link> in index.html
   v1 — 2026-04-15
   ============================================================ */

/* ============================================================
   BOTTOM NAV — mobile only (max-width: 768px)
   Scenario A: 4 tabs + raised centre FAB
   ============================================================ */
.ev-bottom-nav {
  display: none; /* desktop: hidden */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 64px;
  transform: translateZ(0); /* force GPU layer — prevents nav from disappearing on Android viewport resize */
  background: rgba(10, 10, 22, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 768px) {
  .ev-bottom-nav { display: flex; }

  /* Push main content above bottom nav */
  .main-content { padding-bottom: 76px; }

  /* Map page: no extra padding (sheet handles clearance) */
  body.page-map .main-content { padding-bottom: 0; }

  /* Hide legacy topbar on hero pages — hp-hero provides search + id */
  body.page-dashboard .topbar,
  body.page-map       .topbar { display: none; }

  /* Events page: hide the hero (we use our own ctrl bar instead) */
  body.page-events #hp-hero-root { display: none !important; pointer-events: none; }
}

.ev-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s;
  flex: 1;
  border: none;
  background: none;
  position: relative;
}
.ev-bnav-item i    { font-size: 20px; transition: transform 0.18s; }
.ev-bnav-item span { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; }
.ev-bnav-item.active       { color: var(--accent-color, #FF5C35); }
.ev-bnav-item.active i     { transform: scale(1.12); }

/* Centre FAB */
.ev-bnav-fab-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4px;
}

.ev-bnav-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color, #FF5C35) 0%, #FF3366 100%);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 92, 53, 0.52), 0 2px 6px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s, box-shadow 0.14s;
  margin-bottom: 14px; /* Float above nav bar */
}
.ev-bnav-fab:active {
  transform: scale(0.91);
  box-shadow: 0 3px 10px rgba(255, 92, 53, 0.38);
}

/* ============================================================
   EVENTS PAGE — content offset driven by hp-hero height
   ============================================================ */

/* Clamp the page itself — prevents any child causing viewport expansion */
#page-events {
  padding: 0 !important;   /* Override legacy styles.css 230px top padding */
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ev-page-content {
  /* Uses CSS var set by _measureHero(); falls back to 200px if not yet measured */
  padding-top: var(--hp-hero-full, 200px);
  padding-left: 12px;
  padding-right: 12px;
  transition: padding-top 0.25s ease;
  /* Belt-and-suspenders: prevent horizontal overflow causing mobile zoom-out */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Events page: no hero, no topbar (EV theme) → ctrl bar sits flush at top */
body.page-events .ev-page-content {
  padding-top: 0 !important;
  padding-left: 0;
  padding-right: 0;
}

/* ── Sticky controls bar ── */
.ev-ctrl-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 22, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ev-ctrl-sort {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.ev-ctrl-sort::-webkit-scrollbar { display: none; }

.ev-ctrl-search-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.ev-ctrl-search-btn:active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── Inline search row (replaces sort pills when active) ── */
.ev-ctrl-search-row {
  align-items: center;
  gap: 8px;
}
.ev-ctrl-search-back {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.ev-ctrl-search-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 7px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.ev-ctrl-search-input:focus {
  border-color: var(--accent-color, #FF5C35);
}
.ev-ctrl-search-input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Distance pill: muted when Near Me is off (distance sort has no effect without location) */
#ev-sort-distance:not(.near-me-active) {
  opacity: 0.5;
}

.ev-ctrl-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ev-ctrl-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
}
.ev-ctrl-actions-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ev-view-toggle {
  display: flex;
  gap: 2px;
}

/* Slim sort pills in ctrl bar */
.ev-ctrl-sort .ev-sort-pill {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ev-ctrl-sort .ev-sort-pill.active {
  background: var(--accent-color, #FF5C35);
  border-color: var(--accent-color, #FF5C35);
  color: #fff;
  font-weight: 600;
}

/* Slim "Près de moi" label — hide text on very small screens */
@media (max-width: 380px) {
  .ev-ctrl-near-label { display: none; }
}

/* ── Compact event row ── */
.ev-compact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.ev-compact-row:active { background: rgba(255,255,255,0.04); }

.ev-compact-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}
.ev-compact-dot {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.85;
}

.ev-compact-body {
  flex: 1;
  min-width: 0;
}
.ev-compact-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  color: rgba(255,255,255,0.92);
}
.ev-compact-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-compact-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.ev-compact-time {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-variant-numeric: tabular-nums;
}
.ev-compact-stats {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  display: flex;
  gap: 6px;
}
.ev-compact-stats .going  { color: #30D158; }
.ev-compact-stats .inter  { color: var(--accent-color, #FF5C35); }
.ev-compact-stats .here   { color: #BF5AF2; }
.ev-compact-badge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
}

/* ── Time-of-day group header ── */
.ev-timegroup { margin-bottom: 4px; }
.ev-timegroup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.ev-timegroup-header span:first-child { font-size: 13px; }

/* ── Date pills as week selector ── */
.ev-date-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  scrollbar-width: none;
}
.ev-date-pills::-webkit-scrollbar { display: none; }
.ev-date-pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.ev-date-pill.active {
  background: var(--accent-color, #FF5C35);
  border-color: var(--accent-color, #FF5C35);
  color: #fff;
  font-weight: 700;
}

/* All block children of the content area stay inside their column */
.ev-page-content *,
.ev-page-content *::before,
.ev-page-content *::after {
  box-sizing: border-box;
  max-width: 100%;
}

/* Scrollable rows are exempt from max-width (they scroll internally) */
.ev-date-pills,
.ev-sort-row {
  max-width: none;
}

/* Filter count badge on filter button */
.ev-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--accent-color, #FF5C35);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  margin-left: 4px;
}

/* ── Inline search result sections (within events-list container) ── */
.ev-search-section { margin-bottom: 4px; }
.ev-search-voir-plus {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-color, #FF5C35);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.ev-search-voir-plus:hover { text-decoration: underline; }

/* ============================================================
   MAP PAGE — Full-screen Google Maps DNA
   ============================================================ */
#page-map {
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
}

.ev-map-fullscreen {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Height + marginTop set by map.js init() */
}

/* Leaflet map fills the container */
.ev-map-fullscreen #event-map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Floating top bar ── */
.ev-map-topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ev-map-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 22, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ev-map-search-wrap i { font-size: 13px; flex-shrink: 0; }

.ev-map-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.ev-map-search-input::placeholder { color: rgba(255,255,255,0.38); }

.ev-map-filter-fab {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(10, 10, 22, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.ev-map-filter-fab.has-filter {
  background: var(--accent-color, #FF5C35);
  border-color: var(--accent-color, #FF5C35);
}

.ev-map-filter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(10, 10, 22, 0.9);
}

/* ── Segment pills floating over map ── */
.ev-map-segments {
  position: absolute;
  top: 70px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ev-map-segments::-webkit-scrollbar { display: none; }

.ev-map-seg {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  background: rgba(10, 10, 22, 0.84);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}
.ev-map-seg.active {
  background: var(--accent-color, #FF5C35);
  border-color: var(--accent-color, #FF5C35);
  color: #fff;
  box-shadow: 0 3px 14px rgba(255, 92, 53, 0.42);
}

/* Pulsing live dot */
.ev-map-live-dot {
  width: 7px;
  height: 7px;
  background: #ff3b30;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ev-live-pulse 1.2s ease-in-out infinite;
}
@keyframes ev-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.48; transform: scale(0.72); }
}

/* ── Hero hidden on map page (Pin Theatre — full-bleed map) ── */
body.page-map #hp-hero-root { display: none !important; pointer-events: none; }

/* ── Near-me FAB ── */
.ev-map-near-fab {
  position: absolute;
  bottom: 80px;
  right: 14px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 10, 22, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, bottom 0.28s cubic-bezier(0.34, 1.26, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.ev-map-near-fab.active {
  background: var(--accent-color, #FF5C35);
  border-color: var(--accent-color, #FF5C35);
  color: #fff;
}
/* Bump near-me FAB up when pin card is open */
.ev-map-fullscreen.ev-map-card-open .ev-map-near-fab { bottom: 160px; }

/* ── Pin Theatre: single event card ── */
.ev-map-pin-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 600;
  height: 120px;
  background: rgba(10, 10, 22, 0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 16px;
  cursor: pointer;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.34, 1.26, 0.64, 1);
}
.ev-map-pin-card.open { transform: translateY(0); }
.ev-map-pin-card:active { background: rgba(20, 20, 38, 0.99); }

/* Close button */
.ev-map-pin-card-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
}
.ev-map-pin-card-close:hover { background: rgba(255, 255, 255, 0.18); }

/* Card inner layout */
.ev-map-pin-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-right: 32px;
  pointer-events: none;
}
.ev-map-pin-card-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.ev-map-pin-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ev-map-pin-card-body {
  flex: 1;
  min-width: 0;
}
.ev-map-pin-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}
.ev-map-pin-card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ev-map-pin-card-meta i { font-size: 10px; }
.ev-map-pin-card-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ff3b30;
}
.ev-map-pin-card-fox {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-color, #FF5C35);
}
.ev-map-pin-card-chevron {
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  flex-shrink: 0;
}

/* Desktop: centered card, max width */
@media (min-width: 769px) {
  .ev-map-pin-card {
    left: 50%;
    right: auto;
    width: 420px;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }
  .ev-map-pin-card.open { transform: translateX(-50%) translateY(0); }
  .ev-map-near-fab { bottom: 80px; }
}

/* ── Custom map markers ── */
.ev-map-marker-wrap { background: none !important; border: none !important; }

.ev-map-marker {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  background: var(--m-color, #FF5C35);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.ev-map-marker.ev-marker-selected {
  transform: scale(1.25);
  box-shadow: 0 0 0 3px var(--m-color, #FF5C35), 0 4px 16px rgba(0,0,0,0.4);
  z-index: 1000;
}
.ev-map-marker.ev-marker-dim { opacity: 0.35; }

/* Live / Fox pulse on marker */
.ev-map-marker.ev-marker-live {
  animation: ev-marker-pulse 1.8s ease-in-out infinite;
}
@keyframes ev-marker-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,0.35), 0 0 0 0 var(--m-color, #FF5C35); }
  50%       { box-shadow: 0 2px 10px rgba(0,0,0,0.35), 0 0 0 8px transparent; }
}

.ev-marker-count { pointer-events: none; }

/* RSVP badge — small pill anchored bottom-right of the marker circle */
.ev-map-marker { position: relative; }
.ev-marker-rsvp {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 10;
}
.ev-marker-rsvp--interested { background: #FFB800; color: #fff; }
.ev-marker-rsvp--going      { background: #22C55E; color: #fff; }
.ev-marker-rsvp--there      { background: #3B82F6; color: #fff; }

/* ── Custom cluster ── */
.ev-map-cluster-wrap { background: none !important; border: none !important; }

.ev-map-cluster {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  background: var(--m-color, #FF5C35);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 3px 14px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}

/* ── hp-mobile-nav (legacy) — force hidden globally ── */
#hp-mobile-nav { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   HERO SEGMENT PILLS — Urgency/time strip (dashboard + events)
   ═══════════════════════════════════════════════════════════ */
.hp-hero-segs {
  display: flex;
  gap: 8px;
  padding: 0;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hp-hero-segs::-webkit-scrollbar { display: none; }

/* Hide on map page — map has its own segment pills */
body.page-map .hp-hero-segs { display: none; }

.hp-hero-seg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.hp-hero-seg:active { transform: scale(0.95); }

.hp-hero-seg.active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* Live pill — pulsing red dot */
.hp-hero-seg--live.active {
  background: rgba(255,59,48,0.18);
  border-color: rgba(255,59,48,0.6);
  color: #ff3b30;
}
.hp-hero-seg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  flex-shrink: 0;
  animation: hp-seg-pulse 1.4s ease infinite;
}
@keyframes hp-seg-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Compact hero — shrink pill row slightly */
.hp-hero--compact .hp-hero-segs {
  margin-top: 6px;
}
.hp-hero--compact .hp-hero-seg {
  padding: 4px 10px;
  font-size: 12px;
}

/* ============================================================
   CE SOIR FAB — pulsing gold orb (centre tab)
   ============================================================ */
.ev-bnav-fab-wrap { position: relative; }

.ev-bnav-cesoir {
  position: relative;
  width: 54px;
  height: 54px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Fox button image */
.ev-bnav-fox-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  animation: ev-fox-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 14px rgba(255, 111, 0, 0.55));
  display: block;
}

@keyframes ev-fox-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 4px 14px rgba(255, 111, 0, 0.55)); }
  50%       { transform: scale(1.1); filter: drop-shadow(0 6px 22px rgba(255, 111, 0, 0.85)); }
}

.ev-bnav-cesoir:active .ev-bnav-fox-img { transform: scale(0.92); animation: none; }

/* ============================================================
   3D DICE — Surprends-moi tab
   ============================================================ */
.ev-dice-wrap {
  width: 22px;
  height: 22px;
  perspective: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev-dice {
  width: 20px;
  height: 20px;
  position: relative;
  transform-style: preserve-3d;
  animation: ev-dice-idle 6s ease-in-out infinite;
}

.ev-dice-face {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  color: #111;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ev-dice-front  { transform: rotateY(0deg)    translateZ(10px); }
.ev-dice-back   { transform: rotateY(180deg)  translateZ(10px); }
.ev-dice-right  { transform: rotateY(90deg)   translateZ(10px); }
.ev-dice-left   { transform: rotateY(-90deg)  translateZ(10px); }
.ev-dice-top    { transform: rotateX(90deg)   translateZ(10px); }
.ev-dice-bottom { transform: rotateX(-90deg)  translateZ(10px); }

@keyframes ev-dice-idle {
  0%   { transform: rotateX(0deg)   rotateY(0deg); }
  20%  { transform: rotateX(-18deg) rotateY(28deg); }
  40%  { transform: rotateX(-90deg) rotateY(90deg); }
  60%  { transform: rotateX(12deg)  rotateY(185deg); }
  80%  { transform: rotateX(90deg)  rotateY(270deg); }
  100% { transform: rotateX(0deg)   rotateY(360deg); }
}

.ev-bnav-item:active .ev-dice {
  animation: ev-dice-tap 0.42s ease-in-out forwards;
}

@keyframes ev-dice-tap {
  0%   { transform: rotateX(0deg)    rotateY(0deg); }
  50%  { transform: rotateX(-180deg) rotateY(270deg); }
  100% { transform: rotateX(-360deg) rotateY(540deg); }
}

/* Lottie dice icon */
.ev-dice-lottie {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}

/* ============================================================
   CE SOIR MODAL — story carousel
   ============================================================ */
.ev-cesoir-overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
}
.ev-cesoir-overlay.active { display: flex; }

.ev-cesoir-modal {
  width: 100%;
  max-width: 440px;
  height: 88vh;
  background: #0a0a16;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Progress bars */
.ev-cesoir-progress {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}

.ev-cs-prog-bar {
  height: 2px;
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
}

.ev-cs-prog-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 2px;
}

.ev-cs-prog-fill--done   { width: 100%; }
.ev-cs-prog-fill--active { animation: ev-cs-prog 5s linear forwards; }

@keyframes ev-cs-prog {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Header */
.ev-cesoir-header {
  position: absolute;
  top: 20px; left: 12px; right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ev-cesoir-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  flex: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ev-cesoir-freeze,
.ev-cesoir-close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s;
  flex-shrink: 0;
}
.ev-cesoir-freeze:active,
.ev-cesoir-close:active { background: rgba(255, 255, 255, 0.28); }

/* Carousel */
.ev-cesoir-carousel-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.ev-cesoir-carousel {
  display: flex;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Card */
.ev-cs-card {
  min-width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.ev-cs-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ev-cs-card-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: rgba(255,255,255,0.2);
}

.ev-cs-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 20px 28px;
  background: linear-gradient(to top,
    rgba(0,0,0,0.90) 0%,
    rgba(0,0,0,0.55) 50%,
    transparent 100%);
}

.ev-cs-card-rank {
  font-size: 10px;
  font-weight: 800;
  color: #FFB300;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ev-cs-card-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.ev-cs-card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 10px;
}

.ev-cs-card-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ev-cs-card-here {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #BF5AF2;
  background: rgba(191, 90, 242, 0.18);
  padding: 3px 8px;
  border-radius: 10px;
}
.ev-cs-card-here i { font-size: 7px; }

.ev-cs-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Arrows */
.ev-cesoir-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s;
}
.ev-cesoir-arrow:active     { background: rgba(255,255,255,0.28); }
.ev-cesoir-arrow--left      { left: 10px; }
.ev-cesoir-arrow--right     { right: 10px; }
.ev-cesoir-arrow[disabled]  { opacity: 0.25; pointer-events: none; }

/* Dots */
.ev-cesoir-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px 18px;
  flex-shrink: 0;
}

.ev-cs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ev-cs-dot.active {
  background: #FFB300;
  transform: scale(1.3);
}

/* "Autre événement" button in event modal (surprise mode) */
.ev-surprends-autre {
  background: rgba(255, 160, 0, 0.1) !important;
  border: 1px solid rgba(255, 160, 0, 0.4) !important;
  color: #FFB300 !important;
}
.ev-surprends-autre:hover {
  background: rgba(255, 160, 0, 0.2) !important;
}

/* ============================================================
   CE SOIR MODAL — Surprends-moi footer chip
   ============================================================ */
.ev-cesoir-footer {
  display: flex;
  justify-content: center;
  padding: 0 16px 20px;
  flex-shrink: 0;
}

.ev-cesoir-surprends-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: 24px;
  padding: 8px 20px;
  color: #FFB300;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.2px;
}
.ev-cesoir-surprends-chip:active {
  background: rgba(255, 179, 0, 0.24);
  transform: scale(0.97);
}
.ev-cesoir-dice-lottie {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================================
   STANDALONE LANGUAGE PILL — fixed top-right, always visible
   ============================================================ */
.ev-lang-pill {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1150;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ev-lang-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
/* Map page has its own topbar occupying top-right — hide pill there (hub has lang toggle) */
body.page-map .ev-lang-pill { display: none; }

/* ============================================================
   PROFILE TAB — 5th bottom-nav slot
   ============================================================ */
.ev-bnav-profile {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

/* Silhouette icon (logged-out) */
.ev-hub-anon-icon {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  transition: color 0.2s;
}
.ev-bnav-profile:hover .ev-hub-anon-icon { color: rgba(255,255,255,0.85); }

/* Avatar bubble (logged-in) */
.ev-hub-tab-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
  margin: 0 auto;
}

/* New-content pulse dot */
.ev-hub-tab-dot {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color, #FF5C35);
  border: 2px solid var(--background-color, #07080F);
  animation: ev-hub-pulse 2s ease-in-out infinite;
}

@keyframes ev-hub-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,92,53,0.6); }
  50%       { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(255,92,53,0); }
}

/* ── WHAT'S NEW: pulse boost when has-new ───────────────── */
#ev-bnav-profile.has-new .ev-hub-tab-dot {
  animation: ev-wnp-ring 1.4s ease-out infinite;
}
@keyframes ev-wnp-ring {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0   rgba(255, 59, 48, 0.8); }
  60%  { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);   }
  100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(255, 59, 48, 0);   }
}

/* ── WHAT'S NEW: popover card ───────────────────────────── */
.ev-whats-new-popover {
  position: fixed;
  bottom: calc(64px + 10px);
  right: 12px;
  background: rgba(28, 28, 36, 0.97);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  min-width: 200px;
  max-width: 280px;
  z-index: 901;
  cursor: pointer;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.ev-whats-new-popover.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.ev-wnp-headline {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}
.ev-wnp-breakdown {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

/* ============================================================
   PROFILE HUB PANEL
   ============================================================ */
/* Minimal anchor — NO full-screen inset so iOS Safari fixed children work */
.ev-hub {
  position: fixed;
  bottom: 64px;
  right: 0;
  z-index: 1099;
  pointer-events: none;
}

/* Backdrop lives independently at full-screen — only inserted when open */
.ev-hub-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1098;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
body.hub-open .ev-hub-backdrop {
  opacity: 1;
  pointer-events: all;
}

/* Panel — slides up from bottom-right */
.ev-hub-panel {
  position: relative;
  width: min(360px, 100vw);
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  background: #12131f;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.34, 1.3, 0.64, 1), visibility 0s linear 0.26s;
  pointer-events: none;
}
.ev-hub.open .ev-hub-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.34, 1.3, 0.64, 1), visibility 0s linear 0s;
  pointer-events: all;
}

/* ── Header (avatar + name + settings CTA) ── */
.ev-hub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 20px 20px 0 0;
}
.ev-hub-header:hover { background: rgba(255,255,255,0.04); }

.ev-hub-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.12);
}

.ev-hub-info { flex: 1; min-width: 0; }
.ev-hub-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-hub-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.ev-hub-arrow {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ── Divider ── */
.ev-hub-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 16px;
}

/* ── Section header (notifications) ── */
.ev-hub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
}
.ev-hub-section-header span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.4);
}
.ev-hub-notif-clear {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 2px 0;
  transition: color 0.15s;
}
.ev-hub-notif-clear:hover { color: rgba(255,255,255,0.65); text-decoration: underline; }

/* ── Notification list ── */
.ev-hub-notif-list {
  padding: 4px 0;
  max-height: 280px;
  overflow-y: auto;
}
.ev-hub-notif-list .notif-item {
  cursor: pointer;
  padding: 10px 16px;
  transition: background 0.15s;
}
.ev-hub-notif-list .notif-item:hover { background: rgba(255,255,255,0.04); }
.ev-hub-notif-list .notif-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── Generic item (admin link, logout) ── */
.ev-hub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.ev-hub-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ev-hub-item i { font-size: 15px; width: 18px; text-align: center; color: rgba(255,255,255,0.45); }
.ev-hub-item-danger { color: #FF453A; }
.ev-hub-item-danger i { color: #FF453A; }
.ev-hub-item-danger:hover { background: rgba(255,69,58,0.08); }

/* ── Admin badge ── */
.ev-hub-badge {
  margin-left: auto;
  background: #FF9F0A;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 2px 7px;
  line-height: 1.4;
}

/* ── Logged-out login button ── */
.ev-hub-auth-section {
  padding: 24px 16px;
}
.ev-hub-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.ev-hub-login-btn:hover {
  background: #ff7355;
  transform: translateY(-1px);
}
.ev-hub-login-btn i { font-size: 15px; }

/* ── Hub logged-out nudge ── */
.ev-hub-loggedout-nudge {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* ── Hub see-all button ── */
.ev-hub-see-all {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

/* ── Hub RSVP rows ── */
.ev-hub-rsvp-list {
  padding: 4px 0 8px;
}
.ev-hub-rsvp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.ev-hub-rsvp-row:hover { background: rgba(255,255,255,0.05); }
.ev-hub-rsvp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ev-hub-rsvp-dot.jy_vais    { background: #30d158; }
.ev-hub-rsvp-dot.interesse  { background: #ff9f0a; }
.ev-hub-rsvp-info {
  flex: 1;
  min-width: 0;
}
.ev-hub-rsvp-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-hub-rsvp-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.ev-hub-rsvp-empty {
  padding: 10px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ── Mes RSVPs chip (events ctrl bar) ── */
.ev-myrsvps-chip { display: none; }
.ev-myrsvps-chip.auth-visible { display: flex; }
.ev-myrsvps-chip.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* ── Invite friends modal ── */
.ev-invite-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ev-invite-modal {
  background: #1c1c24;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ev-invite-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ev-invite-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.ev-invite-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.ev-invite-follower-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.ev-invite-follower-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.ev-invite-follower-row:hover { background: rgba(255,255,255,0.05); }
.ev-invite-follower-row.selected { background: rgba(99,102,241,0.15); }
.ev-invite-follower-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  object-fit: cover;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ev-invite-follower-info { flex: 1; min-width: 0; }
.ev-invite-follower-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.ev-invite-follower-status {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.ev-invite-follower-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.ev-invite-follower-row.selected .ev-invite-follower-check {
  background: #6366f1;
  border-color: #6366f1;
}
.ev-invite-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.ev-invite-send-btn {
  width: 100%;
  padding: 13px;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.ev-invite-send-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
