
/* ═══════════════════════════════════════════════════════════════
   POP UP LA — Static Site Design System
   Colors: Pink #ff1d58, Purple #2D0052, Orange #ff8c00
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --pink: #ff1d58;
  --pink-light: #ff69b4;
  --purple: #2D0052;
  --purple-dark: #1a0033;
  --orange: #ff8c00;
  --bg: #FFF5F7;
  --card-bg: #2D0052;
  --text: #1a1a2e;
  --text-light: rgba(255,255,255,0.7);
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px rgba(45, 0, 82, 0.22);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: linear-gradient(135deg, var(--bg) 0%, #ffffff 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ─── Navigation ──────────────────────────────────────────── */

.app-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--purple), #4a0e8f);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.app-banner a { color: #fff; text-decoration: underline; }
.app-banner strong { font-weight: 900; }
.banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.banner-close:hover { color: #fff; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,0,82,0.06);
}

.nav-logo {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), #7a2cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink); text-decoration: none; }

.nav-login {
  background: var(--pink) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-login:hover { opacity: 0.9; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ─── Nav Dropdown ────────────────────────────────────────── */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  padding: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}
.nav-dropdown-toggle:hover { color: var(--pink); }

.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(45,0,82,0.12);
  border: 1px solid rgba(45,0,82,0.06);
  min-width: 160px;
  padding: 8px 0;
  z-index: 200;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,29,88,0.06);
  color: var(--pink);
  text-decoration: none;
}

/* Desktop: hover to open */
@media (hover: hover) {
  .nav-dropdown:hover .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
}

/* Touch/click: toggle via JS class */
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 60px 20px 30px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), #7a2cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: #666;
  font-weight: 600;
  margin-bottom: 24px;
}

.search-bar {
  max-width: 500px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: 999px;
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  box-shadow: 0 8px 24px rgba(45,0,82,0.06);
  outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--pink); }

/* ─── Filter Row ──────────────────────────────────────────── */

.live-filter-row {
  display: flex;
  gap: 8px;
  padding: 0 20px 10px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ─── Filters Trigger Button (one-button filter pattern, mirrors iOS) ─── */
.filters-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,29,88,0.3);
  background: #fff;
  color: var(--pink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.filters-trigger-btn:hover {
  background: rgba(255,29,88,0.06);
  border-color: var(--pink);
}
.filters-trigger-icon { font-size: 14px; }
.filters-trigger-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: 2px;
}

/* ─── Filters Modal ───────────────────────────────────────── */
.filters-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.filters-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}
.filters-modal-panel {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  animation: filtersSlideUp 0.25s ease-out;
}
@keyframes filtersSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (min-width: 768px) {
  .filters-modal { align-items: center; }
  .filters-modal-panel { border-radius: 20px; max-height: 80vh; }
}

.filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.filters-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}
.filters-modal-close {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #444;
}
.filters-modal-close:hover { background: #e5e7eb; }

.filters-modal-body {
  padding: 12px 20px;
  overflow-y: auto;
  flex: 1;
}

.filters-section {
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.filters-section:last-child { border-bottom: none; }
.filters-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filters-section-hint {
  margin: -6px 0 10px;
  font-size: 12px;
  color: #6b7280;
}
.filters-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
}
.filters-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  cursor: pointer;
  flex-shrink: 0;
}
.filters-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  font-family: var(--font);
  color: #111;
  margin-bottom: 8px;
}
.filters-select:focus { border-color: var(--pink); outline: none; }

.filters-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters-pill-grid .filter-pill {
  /* Reuse existing .filter-pill styles defined below */
}

.filters-modal-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.filters-clear-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #dc2626;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}
.filters-clear-btn:hover { background: #fef2f2; border-color: #fca5a5; }
.filters-done-btn {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
}
.filters-done-btn:hover { background: #d61773; }

.live-filter-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(45,0,82,0.05);
  color: #555;
  transition: all 0.2s;
}
.live-filter-btn:hover { background: rgba(255,29,88,0.08); }
.live-filter-btn.active {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,29,88,0.3);
}

.type-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px 4px;
  -webkit-overflow-scrolling: touch;
}
.type-filter-row::-webkit-scrollbar { display: none; }

.type-filter {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--purple);
  background: transparent;
  color: var(--purple);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.type-filter:hover { background: rgba(45,0,82,0.06); }
.type-filter.active {
  background: var(--purple);
  color: #fff;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 24px 12px;
  -webkit-overflow-scrolling: touch;
}
.filter-row::-webkit-scrollbar { display: none; }

.event-count {
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  color: #888;
}

.location-filters {
  display: flex;
  gap: 10px;
  padding: 4px 24px 8px;
  flex-wrap: wrap;
}

.location-select {
  padding: 8px 14px;
  border-radius: 12px;
  border: 2px solid rgba(45,0,82,0.08);
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.location-select:focus {
  outline: none;
  border-color: var(--pink);
}

.filter-pill {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,29,88,0.08);
  background: rgba(255,255,255,0.9);
  color: var(--pink);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255,29,88,0.06);
  transition: all 0.2s;
}
.filter-pill:hover { background: rgba(255,29,88,0.08); }
.filter-pill.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* ─── Events Grid ─────────────────────────────────────────── */

.feed-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ─── View Toggles (Grid / Calendar / Map) ────────────────── */

.view-toggles {
  display: flex;
  gap: 8px;
  padding: 0 8px 14px;
  justify-content: center;
  align-items: center;
}

.view-toggle {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  color: var(--purple);
  background: rgba(45,0,82,0.05);
  border: 2px solid transparent;
  transition: all 0.2s;
}
.view-toggle:hover {
  background: rgba(255,29,88,0.08);
  text-decoration: none;
}
.view-toggle.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* Inline variant — keeps the help icon on the same row as Grid / Calendar / Map */
.help-section-inline {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-top: 16px;
}

/* ─── Event Card ──────────────────────────────────────────── */

.event-card {
  display: block;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(45,0,82,0.3);
  text-decoration: none;
}

.card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide / not-interested control (mirrors the save/heart affordance) */
.imm-image { position: relative; }
.card-hide-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 999px;
  background: rgba(10,15,23,0.55); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, background .15s, transform .1s;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.event-card:hover .card-hide-btn,
.event-card:focus-within .card-hide-btn { opacity: 1; }
.card-hide-btn:hover { background: rgba(220,38,38,.9); transform: scale(1.06); }
.card-hide-btn:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 1px; }
@media (hover: none) { .card-hide-btn { opacity: .85; } }
/* Hidden-events manager */
.hidden-mode-banner {
  display: none; margin: 10px 0; padding: 10px 14px; border-radius: 10px;
  background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.3);
  font-size: 14px; align-items: center; gap: 10px; justify-content: space-between;
}
.hidden-mode-banner.active { display: flex; }
.hidden-mode-banner button {
  border: none; background: #111827; color: #fff; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.card-unhide-btn {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  padding: 6px 12px; border: none; border-radius: 999px;
  background: rgba(16,185,129,.95); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}
.card-badge.new {
  background: linear-gradient(90deg, var(--orange), var(--pink));
}
.card-badge.editors-pick {
  background: linear-gradient(90deg, #7a2cff, var(--pink));
}

.card-body {
  padding: 18px;
}

.card-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}

.card-cat {
  display: inline-block;
  background: rgba(255,29,88,0.2);
  color: var(--pink);
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Halloween subcategory — purple, so it reads as more specific than the
   top-level category pill next to it. */
.card-cat.card-subcat {
  background: rgba(122,44,255,0.22);
  color: #c084fc;
}

/* Scare level. Deliberately not uppercased: it carries a numeric ratio and
   skull glyphs, which uppercase transform would only make noisier. Intensity
   ramps with the level so a 5 is visually distinct from a 1 at a glance. */
.card-cat.card-scare {
  background: rgba(120,120,130,0.25);
  color: #d4d4d8;
  text-transform: none;
  letter-spacing: 0.2px;
}
.card-cat.card-scare[data-scare="3"] {
  background: rgba(234,179,8,0.20);
  color: #fbbf24;
}
.card-cat.card-scare[data-scare="4"] {
  background: rgba(249,115,22,0.22);
  color: #fb923c;
}
.card-cat.card-scare[data-scare="5"] {
  background: rgba(220,38,38,0.25);
  color: #f87171;
}

/* Schedule-confidence notice on event detail. Amber rather than red: the
   listing is legitimate, the dates simply are not confirmed yet. */
.detail-schedule-notice {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(234,179,8,0.10);
  border: 1px solid rgba(234,179,8,0.35);
  border-left: 4px solid #eab308;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #fde68a;
}
.detail-schedule-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #fbbf24;
}

.card-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 6px;
}
.card-type-badge.recurring {
  background: rgba(122,44,255,0.2);
  color: #a855f7;
}
.card-type-badge.permanent {
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
}
.card-type-badge.multi-day {
  background: rgba(255,140,0,0.2);
  color: var(--orange);
}

.card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}

.card-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 10px 0;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-meta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.card-date {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 700;
}

.card-city {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.card-venue {
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.card-price {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.card-rsvp {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
}

/* ─── Event Detail ────────────────────────────────────────── */

.event-detail {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.event-hero {
  width: 100%;
  position: relative;
}
.event-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.event-content {
  padding: 24px 20px;
}

.event-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cat-pill {
  background: rgba(255,29,88,0.1);
  color: var(--pink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.event-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 20px;
  line-height: 1.1;
}

.event-info-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-icon { font-size: 20px; }
.info-item div { display: flex; flex-direction: column; gap: 2px; }
.info-item strong { font-size: 15px; }
.info-item span { font-size: 13px; color: #666; }
.info-item a { color: var(--pink); font-weight: 600; }

.event-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn-ticket {
  background: var(--pink) !important;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.btn-going { background: #22c55e !important; }

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-actions-top {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(45,0,82,0.06); }

.detail-type-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}
.detail-type-badge.recurring { background: rgba(122,44,255,0.1); color: #7a2cff; }
.detail-type-badge.permanent { background: rgba(59,130,246,0.1); color: #3b82f6; }
.detail-type-badge.multi-day { background: rgba(255,140,0,0.1); color: var(--orange); }
.detail-type-badge.single { background: rgba(255,29,88,0.08); color: var(--pink); }

.detail-info-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 16px 0;
  background: #fff;
  border: 1px solid rgba(45,0,82,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(45,0,82,0.06);
  overflow: hidden;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(45,0,82,0.05);
}
.info-row:last-child { border-bottom: none; }
.info-row-icon { font-size: 18px; min-width: 24px; text-align: center; }
.info-row-content { display: flex; flex-direction: column; gap: 1px; }
.info-row-label {
  font-size: 11px;
  font-weight: 900;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.info-row-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--purple);
}

.tz-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}
.tz-picker label {
  font-size: 13px;
  font-weight: 700;
  color: #666;
}
.tz-select {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(45,0,82,0.1);
  background: rgba(45,0,82,0.03);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.tz-select:focus { outline: none; border-color: var(--pink); }

.detail-creator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.detail-creator:hover { opacity: 0.8; text-decoration: none; }
.creator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,29,88,0.5), rgba(122,44,255,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.creator-avatar-img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  flex-shrink: 0;
}
.detail-creator div { display: flex; flex-direction: column; }
.detail-creator strong { font-size: 14px; color: var(--pink); }
.detail-creator span { font-size: 11px; color: #888; }

.detail-divider {
  height: 1px;
  background: rgba(45,0,82,0.08);
  margin: 20px 0;
}

.detail-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 12px;
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 10px;
}
.hero-badge.editors-pick { background: linear-gradient(90deg, #7a2cff, var(--pink)); }
.hero-badge.new { background: linear-gradient(90deg, var(--orange), var(--pink)); }

.event-hero { position: relative; }

.rsvp-count, .going-count {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.event-description {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.event-description p { margin-bottom: 12px; }

/* ─── Share Card ──────────────────────────────────────────── */

.share-card {
  display: none;
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.share-card.open { display: block; }
.share-card-header {
  font-size: 14px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: none;
  background: #f8f8fa;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.share-option:last-child { margin-bottom: 0; }
.share-option:hover { background: rgba(255,29,88,0.04); transform: translateX(2px); }
.share-option:active { transform: scale(0.98); }
.share-option-icon { font-size: 24px; flex-shrink: 0; }
.share-option-text { display: flex; flex-direction: column; gap: 2px; }
.share-option-text strong { font-size: 14px; font-weight: 800; color: #1a1a2e; }
.share-option-text span { font-size: 12px; color: #888; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,29,88,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,29,88,0.35); }

.btn-secondary {
  background: rgba(45,0,82,0.08);
  color: var(--purple);
}
.btn-secondary:hover { background: rgba(45,0,82,0.14); }

.btn-apple {
  background: #000;
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
}

/* ─── Comments ────────────────────────────────────────────── */

.event-comments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(45,0,82,0.08);
}
.event-comments h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
  margin-bottom: 8px;
}

.login-prompt {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 16px;
}

/* ─── Calendar ────────────────────────────────────────────── */

.calendar-view {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.cal-month {
  margin-bottom: 32px;
}

.cal-month-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,29,88,0.1);
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(45,0,82,0.06);
  text-decoration: none;
  transition: transform 0.15s;
}
.cal-event:hover { transform: translateX(4px); text-decoration: none; }

.cal-date {
  font-size: 24px;
  font-weight: 900;
  color: var(--pink);
  min-width: 36px;
  text-align: center;
}

.cal-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cal-info strong { font-size: 14px; color: var(--text); }
.cal-info span { font-size: 12px; color: #666; }

/* ─── Party Wall ──────────────────────────────────────────── */

.wall-feed {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wall-post {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45,0,82,0.08);
}

.wall-media img,
.wall-media video {
  width: 100%;
  display: block;
}

.wall-content {
  padding: 16px;
}

.wall-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wall-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.wall-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.wall-time {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.wall-caption {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.wall-location {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  display: block;
}

.wall-actions {
  display: flex;
  gap: 16px;
}

.wall-actions button {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}
.wall-actions button:hover { background: rgba(255,29,88,0.08); }
.wall-heart-count, .wall-comment-count, .wall-comment-like-count { font-weight: 700; }
.wall-comment-btn { gap: 4px; }

/* Wall Comments */
.wall-comments {
  padding: 12px 0 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 10px;
}

.wall-comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
}

.wall-comment-item {
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.wall-comment-item strong {
  font-weight: 700;
  margin-right: 6px;
}

.wall-comment-time {
  font-size: 11px;
  color: #999;
  margin-left: 6px;
}

.wall-comment-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
/* "Replying to @name" bar above a comment input, so a threaded reply is
   obviously a reply and not a new top-level comment. */
.wall-replying-to {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary, #888);
  background: var(--pink-soft, rgba(255,91,167,0.08));
  border-radius: 10px;
  padding: 5px 10px;
  margin-bottom: 4px;
}
.wall-replying-to strong { color: var(--pink, #ff5ba7); font-weight: 700; }
.wall-replying-cancel {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary, #999); font-size: 14px; line-height: 1; padding: 2px 4px;
}
.wall-replying-cancel:hover { color: var(--pink, #ff5ba7); }

.wall-comment-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #e0d4f0;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}

.wall-comment-input:focus {
  border-color: var(--pink);
}

.wall-comment-send {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.wall-comment-send:hover {
  opacity: 0.9;
}

/* ─── Wall New Post Form ──────────────────────────────────── */

.wall-new-post {
  max-width: 600px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.wall-post-form {
  margin-top: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(45,0,82,0.06);
}

.wall-post-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}
.wall-post-form textarea:focus { outline: none; border-color: var(--pink); }

.wall-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wall-file-label {
  display: inline-block;
  padding: 8px 14px;
  background: rgba(45,0,82,0.06);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.wall-file-label:hover { background: rgba(45,0,82,0.12); }

.wall-file-input { display: none; }

.wall-file-name {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ─── Wall Video ──────────────────────────────────────────── */

.wall-video {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #000;
  border-radius: 0;
  display: block;
}

/* Ensure native video controls are never hidden */
.wall-video::-webkit-media-controls {
  display: flex !important;
  visibility: visible !important;
}

.wall-video::-webkit-media-controls-panel {
  display: flex !important;
  visibility: visible !important;
}

.wall-video::-webkit-media-controls-play-button,
.wall-video::-webkit-media-controls-volume-slider,
.wall-video::-webkit-media-controls-mute-button,
.wall-video::-webkit-media-controls-timeline,
.wall-video::-webkit-media-controls-current-time-display,
.wall-video::-webkit-media-controls-time-remaining-display,
.wall-video::-webkit-media-controls-fullscreen-button {
  display: flex !important;
  visibility: visible !important;
}

/* ─── Groups Actions ──────────────────────────────────────── */

.groups-actions {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.create-group-form {
  margin-top: 12px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(45,0,82,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.create-group-form input,
.create-group-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
}
.create-group-form input:focus,
.create-group-form textarea:focus { outline: none; border-color: var(--pink); }
.create-group-form textarea { resize: vertical; }

.group-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.group-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(45,0,82,0.14);
  text-decoration: none;
}

/* ─── Members ─────────────────────────────────────────────── */

.members-search-bar {
  max-width: 400px;
  margin: 16px auto 0;
}
.members-search-bar input {
  width: 100%;
  padding: 12px 18px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--font);
  background: #fff;
  box-shadow: 0 4px 12px rgba(45,0,82,0.04);
  outline: none;
  transition: border-color 0.2s;
}
.members-search-bar input:focus { border-color: var(--pink); }

.members-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.member-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(45,0,82,0.08);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45,0,82,0.14);
  text-decoration: none;
}

.member-card-photo {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e6ff, #ffe6f0);
}

.member-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  text-align: center;
}

.member-card-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.member-card-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-card-badge {
  font-size: 12px;
  flex-shrink: 0;
}

.member-card-username {
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
}

.member-card-city {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

@media (max-width: 500px) {
  .members-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px 60px; }
  .member-card-photo { height: 240px; }
  .member-card-info { padding: 10px 8px; }
  .member-card-name { font-size: 13px; }
}

.member-profile {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.profile-cover {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #ff1d58, #7a2cff);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.profile-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
}

.profile-header-info {
  text-align: center;
  padding: 60px 20px 20px;
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-name-row h1 {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  color: #fff;
}

.profile-badge.admin {
  background: linear-gradient(90deg, #2D0052, #7a2cff);
}

.profile-badge.founder {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.profile-username {
  color: #666;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

.profile-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 16px 0;
  background: #f8f8fa;
  border-radius: 14px;
  padding: 12px 0;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.profile-stat strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--purple);
}

.profile-stat span {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.08);
}

.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.profile-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin: 0 20px;
}

.profile-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.profile-tab.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.profile-tab:hover {
  color: var(--pink);
}

.profile-tab-content {
  padding: 20px;
}

.profile-info-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  overflow: hidden;
}

.profile-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: inherit;
}

.profile-info-row:last-child {
  border-bottom: none;
}

.profile-social-link:hover {
  background: rgba(255,29,88,0.03);
}

.profile-info-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  padding-top: 2px;
}

.profile-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.profile-info-label {
  font-size: 11px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-info-value {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.4;
}

.profile-info-value.social-handle {
  color: var(--pink);
}

.profile-link-arrow {
  font-size: 14px;
  color: rgba(255,29,88,0.4);
  align-self: center;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-photo-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
}

.profile-section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 12px;
}

.profile-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}

.profile-event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
}

.profile-event-card img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-event-info strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-event-info span {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.profile-empty {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 40px 20px;
}

.profile-going-section {
  margin-top: 24px;
}

.profile-going-note {
  font-size: 13px;
  color: #888;
  font-style: italic;
}

.btn-following {
  background: rgba(45,0,82,0.08) !important;
  color: var(--purple) !important;
  box-shadow: none !important;
}

/* ─── Messaging ───────────────────────────────────────────── */

.messages-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.thread-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.thread-item:hover { background: rgba(255,29,88,0.04); text-decoration: none; }

.thread-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.thread-info {
  flex: 1;
  min-width: 0;
}
.thread-info strong { font-size: 14px; color: var(--text); display: block; }
.thread-info p { font-size: 13px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }

.thread-unread {
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversation {
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(45,0,82,0.06);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.conversation-header:hover { background: rgba(255,29,88,0.03); text-decoration: none; }

.conversation-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.conversation-delete-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.conversation-delete-btn:hover { background: rgba(255,0,0,0.08); }

.conversation-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
}

.conversation-header-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.back-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  padding: 8px 0;
  display: block;
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  max-width: 75%;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.message.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.message.theirs {
  align-self: flex-start;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.message-content {
  display: flex;
  flex-direction: column;
}

.message-sender-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: 2px;
}

.message.mine .message-content {
  align-items: flex-end;
}

.message.mine .message-content p {
  background: var(--pink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
}
.message.theirs .message-content p {
  background: rgba(45,0,82,0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.message p { margin: 0; font-size: 14px; }
.msg-time { font-size: 10px; opacity: 0.6; display: block; margin-top: 4px; }

.message-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(45,0,82,0.08);
}

.msg-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
}
.msg-input:focus { outline: none; border-color: var(--pink); }

.empty-state {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  font-size: 15px;
}

/* ─── Comments ────────────────────────────────────────────── */

.comment-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(45,0,82,0.05);
}
.comment-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
}
.comment-item p { font-size: 14px; margin: 4px 0; }
.comment-time { font-size: 11px; color: #999; }

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

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--purple);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Groups ──────────────────────────────────────────────── */

.groups-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.group-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45,0,82,0.08);
}

.group-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.group-info {
  padding: 16px;
}
.group-info h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.group-info p { font-size: 13px; color: #666; margin-bottom: 8px; }
.group-members { font-size: 12px; color: var(--pink); font-weight: 700; }

/* ─── Login ───────────────────────────────────────────────── */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
}

.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(45,0,82,0.12);
  text-align: center;
}
.login-card h1 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.login-card > p { font-size: 14px; color: #666; margin-bottom: 24px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #ccc;
  font-size: 13px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form input {
  padding: 12px 16px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
}
.login-form input:focus { outline: none; border-color: var(--pink); }

.login-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}

.login-note {
  margin-top: 20px;
  font-size: 13px;
  color: #888;
  text-align: center;
}

/* ─── Page Header ─────────────────────────────────────────── */

.page-header {
  text-align: center;
  padding: 40px 20px 24px;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--purple);
  margin-bottom: 6px;
}
.page-header p {
  font-size: 15px;
  color: #666;
}

/* ─── Help Section ────────────────────────────────────────── */

.help-section {
  position: relative;
  display: inline-block;
  margin: 0 0 8px 24px;
}

.help-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(45,0,82,0.1);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(45,0,82,0.08);
  transition: all 0.2s;
}
.help-icon-btn:hover {
  border-color: var(--pink);
  box-shadow: 0 4px 12px rgba(255,29,88,0.15);
  transform: scale(1.1);
}

.help-tooltip {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 200;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(45,0,82,0.18);
  border: 1px solid rgba(45,0,82,0.08);
  animation: tooltipFadeIn 0.2s ease;
}
.help-tooltip.open { display: block; }

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.help-tooltip-arrow {
  position: absolute;
  top: -6px;
  left: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(45,0,82,0.08);
  border-top: 1px solid rgba(45,0,82,0.08);
  transform: rotate(45deg);
}

.help-tooltip-content {
  padding: 16px;
}

.help-tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(45,0,82,0.06);
}
.help-tooltip-header strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple);
}
.help-tooltip-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #888;
  padding: 4px;
  line-height: 1;
}
.help-tooltip-close:hover { color: var(--pink); }

.help-card {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(45,0,82,0.02);
  border-radius: 10px;
}
.help-card:last-child { margin-bottom: 0; }
.help-card h3 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--purple);
}
.help-card p {
  font-size: 12px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 3px;
}
.help-card p:last-child { margin-bottom: 0; }
.help-card a { color: var(--pink); font-weight: 700; }

@media (max-width: 600px) {
  .help-tooltip {
    width: calc(100vw - 40px);
    left: -4px;
  }
}

/* ─── Pagination ──────────────────────────────────────────── */

.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px;
}

.pagination-info {
  font-size: 13px;
  font-weight: 700;
  color: #888;
}

/* ─── Photo Zoom Overlay ──────────────────────────────────── */

.photo-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.photo-zoom-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.photo-zoom-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
}

.photo-zoom-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ─── Followers Modal ─────────────────────────────────────── */

.followers-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.followers-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.followers-modal-header strong {
  font-size: 16px;
  font-weight: 800;
}

.followers-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.follower-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.15s;
}
.follower-item:hover { background: rgba(255,29,88,0.04); text-decoration: none; }

.follower-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.follower-info {
  display: flex;
  flex-direction: column;
}
.follower-info strong { font-size: 14px; color: var(--text); }
.follower-info span { font-size: 12px; color: #888; }

/* ─── Video Player Controls ───────────────────────────────── */

.wall-video-wrapper {
  position: relative;
  background: #000;
}

.wall-video {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* @mention autocomplete + highlighting */
.wall-comment-form { position: relative; }
.mention-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
  max-height: 260px;
  overflow-y: auto;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mention-item:hover, .mention-item.active { background: rgba(255,255,255,0.08); }
.mention-item img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mention-item .mi-name { font-weight: 700; color: #fff; font-size: 0.85rem; }
.mention-item .mi-handle { color: #ff5ca8; font-size: 0.75rem; }
.mention-link { color: #ff5ca8; font-weight: 700; text-decoration: none; }
.mention-link:hover { text-decoration: underline; }

.wall-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
}
.wall-video-wrapper:hover .wall-video-controls { opacity: 1; }

.wall-video-play {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.wall-video-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.wall-video-progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.wall-video-time {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 36px;
}

.wall-video-mute {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.wall-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.wall-video-wrapper.paused .wall-video-play-overlay { opacity: 1; }

/* ─── Location Filter Fix ─────────────────────────────────── */

.location-select {
  max-width: 140px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 600px) {
  .location-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .location-select {
    min-width: 0;
    max-width: 120px;
    font-size: 12px;
    padding: 6px 10px;
    padding-right: 22px;
  }
}

/* ─── Live/Ended Toggle ───────────────────────────────────── */

.live-filter-row {
  display: flex;
  gap: 8px;
  padding: 0 20px 10px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.live-toggle {
  display: inline-flex;
  background: rgba(45,0,82,0.05);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.live-toggle-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  color: #555;
  transition: all 0.2s;
}
.live-toggle-btn:hover { color: var(--pink); }
.live-toggle-btn.active {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,29,88,0.3);
}

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

.site-footer {
  text-align: center;
  padding: 32px 20px;
  background: var(--purple-dark);
  color: var(--text-light);
  font-size: 13px;
}
.site-footer a { color: var(--pink-light); }
.site-footer p { margin-bottom: 8px; }

/* ─── Create Event ────────────────────────────────────────── */

.ce-notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.ce-notice p { margin: 0; color: #166534; font-size: 0.9rem; font-weight: 600; }

.ce-section-header {
  font-size: 1rem;
  font-weight: 900;
  color: var(--pink);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255,29,88,0.1);
}

.ce-field {
  display: block;
  margin-bottom: 14px;
}
.ce-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}
.ce-required { color: var(--pink); }
.ce-hint { font-size: 0.75rem; color: #888; margin-top: 4px; }

/* ─── Immersive detail page ────────────────────────────────── */
/* The photo leads, then the identical field stack below.
   No forced aspect ratio: the base .event-hero-img already uses auto height,
   so the hero shows the whole image. Only the clamp differs from a normal hero,
   so a very tall photo still leaves the title visible above the fold. */
.event-detail-immersive .event-hero { position: relative; overflow: hidden; }
.event-detail-immersive .event-hero-img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: cover;
}
.detail-byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #777; margin-bottom: 10px;
}
.detail-byline strong { color: var(--purple); }

/* ─── Immersive (Instagram-style) event card ───────────────── */
/* Shares .event-card so grid/filter/pagination behaviour is unchanged. */
/* The immersive card deliberately drops the dark card chrome. An Instagram post
   has no container: header and caption sit on the page background and the photo
   is the only thing with visual weight. Using the light page surface also means
   text colour is normal dark-on-light, which is what the rest of the site uses. */
.event-card-immersive {
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.event-card-immersive:hover { transform: none; box-shadow: none; }

/* Full-bleed on phones, matching Instagram's feed where the photo spans the
   entire screen width with no side gutters and no rounded media corners.
   The negative margins cancel whatever horizontal padding the page container
   applies, so the card escapes it without needing to know the value.
   Desktop keeps a contained column, because the grid is multi-column there and
   an edge-to-edge card would make no sense - same as instagram.com on web. */
@media (max-width: 640px) {
  .event-card-immersive {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45,0,82,0.08);
  }
  .event-card-immersive .imm-image,
  .event-card-immersive .imm-image img { border-radius: 0; }
}
.imm-head {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  text-decoration: none; color: inherit;
}
a.imm-head:hover .imm-author { text-decoration: underline; }
.imm-media-link { text-decoration: none; color: inherit; display: block; }
.imm-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, #ff5ca8, #7b0690);
}
.imm-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 800; color: #fff;
}
/* Present for search only — the venue already shows on the detail page. */
.imm-venue-hidden { display: none; }

/* Latest comment preview, placed under the caption as Instagram does. */
.imm-comments { padding: 4px 14px 0; }
.imm-comment {
  margin: 0; font-size: 0.82rem; color: #555; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.imm-comment-who { font-weight: 800; color: var(--text); }
.imm-comment-more {
  display: inline-block; margin-top: 2px;
  font-size: 0.78rem; font-weight: 600; color: #999; text-decoration: none;
}
.imm-comment-more:hover { color: var(--pink); }
.imm-author {
  font-size: 0.86rem; font-weight: 800; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.imm-cat { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: var(--pink); flex: 0 0 auto; }

/* Image sizing follows Instagram's rule rather than forcing one shape.
   Instagram preserves a feed photo's own aspect ratio as long as it falls
   between 1.91:1 landscape and 4:5 portrait, and only crops outside that range.
   We previously forced a 4/5 aspect-ratio with object-fit cover, which hard
   cropped the left and right edges off any squarer flyer - exactly the kind of
   image organizers post, where the border and edge text are part of the design.

   Auto height shows the photo whole. max-height is the only clamp, so a
   pathologically tall image cannot swallow the entire scroll; in that rare case
   object-fit cover trims rather than letterboxing.
   NOTE: no backticks in this file - it is a template literal. */
.imm-image { position: relative; width: 100%; overflow: hidden; background: #f2f2f5; }
.imm-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: cover;
}
/* Meta row sits where Instagram puts its like/comment/share actions: directly
   under the photo, before the caption. */
.imm-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  padding: 10px 14px 4px;
}
.imm-meta-item { font-size: 0.8rem; font-weight: 700; color: #666; }
.imm-price { color: #1a8f4a; font-weight: 900; }
.imm-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

/* Scare level on an immersive card. Intensity ramps with the rating so a 5 reads
   differently from a 1 without having to be read. Only rendered when the event
   actually carries a rating. */
.imm-scare { color: #71717a; letter-spacing: 0.2px; }
.imm-scare[data-scare="3"] { color: #b45309; }
.imm-scare[data-scare="4"] { color: #c2410c; }
.imm-scare[data-scare="5"] { color: #b91c1c; }

/* Caption block: name in bold then the title, exactly like an IG caption. */
.imm-caption {
  display: block; padding: 2px 14px 0;
  text-decoration: none; line-height: 1.4;
}
.imm-caption:hover .imm-title { text-decoration: underline; }
.imm-caption-name {
  font-size: 0.86rem; font-weight: 800; color: var(--text); margin-right: 6px;
}
.imm-title {
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.imm-more-link {
  display: inline-block; padding: 6px 14px 0;
  font-size: 0.78rem; font-weight: 800; color: var(--pink); text-decoration: none;
}
.imm-more-link:hover { text-decoration: underline; }

/* ─── Social Circle parity additions ─────────────────────── */

/* QOTD: card container + question heading */
.qotd-card { padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,29,88,0.05), rgba(100,0,160,0.03)); border: 1px solid rgba(255,29,88,0.12); margin-bottom: 16px; }
.qotd-header { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 10px; }
.qotd-votes { margin-left: auto; font-size: 11px; font-weight: 700; opacity: 0.7; }
.qotd-question { font-size: 15px; font-weight: 800; margin-bottom: 12px; line-height: 1.35; }
/* QOTD: options are buttons now so the web can vote. */
.qotd-option {
  position: relative; display: flex; align-items: center; width: 100%;
  border: 1px solid rgba(45,0,82,0.12); border-radius: 10px;
  background: #fff; cursor: pointer; overflow: hidden;
  padding: 10px 12px; margin-bottom: 7px;
  font-family: var(--font); text-align: left;
}
.qotd-option:hover { border-color: var(--pink); }
.qotd-option.chosen { border-color: var(--pink); border-width: 2px; }
.qotd-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,29,88,0.12); transition: width 0.3s ease;
}
.qotd-opt-text { position: relative; flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.qotd-pct { position: relative; font-size: 13px; font-weight: 900; color: var(--pink); }
.qotd-tag-prompt { font-size: 12px; font-weight: 800; color: var(--pink); margin-top: 4px; }
/* Recent responses snapshot — mirrors the iOS QOTDCard preview block. */
.qotd-recent { margin-top: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.qotd-recent-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }
.qotd-recent-row { display: flex; gap: 8px; align-items: flex-start; }
.qotd-recent-row + .qotd-recent-row { margin-top: 8px; }
.qotd-recent-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 24px; }
.qotd-recent-av-fallback { display: flex; align-items: center; justify-content: center; background: rgba(255,29,88,0.15); color: var(--pink); font-size: 11px; font-weight: 900; }
.qotd-recent-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.qotd-recent-name { font-size: 12px; font-weight: 800; }
.qotd-recent-text { font-size: 12px; opacity: 0.72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qotd-foot { display: flex; gap: 8px; margin-top: 10px; }
.qotd-comments-btn, .qotd-board-btn {
  flex: 1; border: none; cursor: pointer; border-radius: 10px; padding: 9px 0;
  font-family: var(--font); font-size: 12.5px; font-weight: 800;
}
.qotd-comments-btn { background: rgba(255,29,88,0.08); color: var(--pink); }
.qotd-board-btn { background: rgba(255,140,0,0.1); color: #c2410c; }
.qotd-comments-btn:hover { background: rgba(255,29,88,0.16); }
.qotd-board-btn:hover { background: rgba(255,140,0,0.2); }
.qotd-thread, .qotd-board { margin-top: 10px; }
.qotd-comment { font-size: 13px; color: #555; padding: 6px 0; border-top: 1px solid rgba(45,0,82,0.06); }
.qotd-comment strong { color: var(--text); }
.qotd-empty, .qotd-loading { font-size: 12.5px; color: #999; margin: 6px 0; }
.qotd-comment-form { display: flex; gap: 6px; margin-top: 8px; }
.qotd-comment-form input {
  flex: 1; padding: 8px 10px; border: 1px solid rgba(45,0,82,0.15);
  border-radius: 9px; font-family: var(--font); font-size: 13px;
}
.qotd-comment-form button {
  border: none; cursor: pointer; background: var(--pink); color: #fff;
  border-radius: 9px; padding: 8px 14px; font-family: var(--font); font-size: 12.5px; font-weight: 800;
}
.qotd-board-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; padding: 6px 0; border-top: 1px solid rgba(45,0,82,0.06);
}
.qotd-board-rank { font-weight: 900; color: var(--pink); min-width: 18px; }
.qotd-board-score { margin-left: auto; font-weight: 800; color: #666; }

/* Wall: threaded comments with avatars, likes and reply */
.wall-comment-item { display: flex; gap: 8px; padding: 7px 0; }
.wall-comment-reply { margin-left: 30px; }
.wall-comment-avatar-link { flex: 0 0 auto; line-height: 0; }
.wall-comment-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block;
  background: linear-gradient(135deg, #ff5ca8, #7b0690);
}
.wall-comment-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.wall-comment-body { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.wall-comment-name { font-weight: 800; color: var(--text); text-decoration: none; }
.wall-comment-name:hover { text-decoration: underline; }
.wall-comment-meta { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.wall-comment-meta .wall-comment-time { font-size: 11px; color: #999; }
.wall-comment-like, .wall-comment-reply-btn, .wall-comment-report {
  border: none; background: none; cursor: pointer; padding: 0;
  font-family: var(--font); font-size: 11px; font-weight: 700; color: #999;
}
.wall-comment-like:hover, .wall-comment-reply-btn:hover, .wall-comment-report:hover { color: var(--pink); }

/* Wall: post menu (delete / report) */
.wall-post-menu { position: relative; margin-left: auto; }
.wall-menu-btn {
  border: none; background: none; cursor: pointer; color: #999;
  font-size: 20px; line-height: 1; padding: 0 6px;
}
.wall-menu-btn:hover { color: var(--text); }
.wall-menu-pop {
  position: absolute; right: 0; top: 24px; z-index: 20;
  background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  overflow: hidden; min-width: 150px;
}
.wall-menu-pop button {
  display: block; width: 100%; border: none; background: none; cursor: pointer;
  padding: 10px 14px; text-align: left;
  font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--text);
}
.wall-menu-pop button:hover { background: rgba(45,0,82,0.05); }
.wall-delete-btn { color: #dc2626 !important; }

/* Wall: double-tap heart burst */
.wall-media { position: relative; }
.wall-heart-burst {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 84px; opacity: 0; pointer-events: none;
}
.wall-heart-burst.go { animation: wallBurst 0.75s ease-out; }
@keyframes wallBurst {
  0%   { opacity: 0; transform: scale(0.4); }
  25%  { opacity: 1; transform: scale(1.15); }
  60%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}

/* ─── Event detail: community media gallery + lightbox ───────────────
   Web counterpart of iOS EventTaggedPostsView / EventMediaGalleryView. */
.event-gallery { margin-top: 8px; }
.egal-sub { font-size: 13px; color: #666; margin: -4px 0 12px; }
.egal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
.egal-thumb {
  position: relative; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 1 / 1; overflow: hidden; background: #f1f1f1;
  border-radius: 4px;
}
.egal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.egal-thumb:hover img { opacity: 0.88; }
.egal-thumb:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
/* Videos have no poster frame stored, so an <img> would break. Dark tile instead. */
.egal-thumb-video { background: #141414; display: grid; place-items: center; }
.egal-video-glyph { font-size: 26px; opacity: 0.65; }
.egal-play {
  position: absolute; right: 6px; bottom: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,0,0,0.62); color: #fff;
  font-size: 11px; display: grid; place-items: center;
}
.egal-thumb:not(.egal-thumb-video) .egal-play { display: none; }

.egal-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.94);
  display: grid; place-items: center;
}
.egal-lightbox[hidden] { display: none; }
.egal-stage { max-width: 92vw; max-height: 80vh; display: grid; place-items: center; }
.egal-stage img, .egal-stage video { max-width: 92vw; max-height: 80vh; display: block; }
.egal-close, .egal-nav {
  position: absolute; background: rgba(0,0,0,0.5); color: #fff;
  border: 0; cursor: pointer; border-radius: 50%;
  width: 44px; height: 44px; font-size: 20px; line-height: 1;
}
.egal-close { top: 16px; right: 16px; font-size: 16px; }
.egal-nav { top: 50%; transform: translateY(-50%); font-size: 30px; }
.egal-prev { left: 12px; }
.egal-next { right: 12px; }
.egal-close:hover, .egal-nav:hover { background: rgba(0,0,0,0.75); }
.egal-counter {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 999px;
}
.egal-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px; color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.72));
  display: flex; align-items: center; gap: 10px;
}
.egal-meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.egal-meta-name { font-size: 13px; font-weight: 700; color: #fff; text-decoration: none; }
.egal-meta-name:hover { text-decoration: underline; }
.egal-meta-caption { font-size: 12px; color: rgba(255,255,255,0.82); }
@media (max-width: 600px) {
  .egal-nav { width: 38px; height: 38px; font-size: 24px; }
}

/* ─── Wall composer: carousel thumbs, location + people pickers ───────
   Brings the web composer up to the iOS New Post sheet. */
.wall-form-stack { display: block; margin-bottom: 10px; }
.wall-autocomplete-wrap { position: relative; }
.wall-text-input {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid #e0e0e0; border-radius: 10px; background: #fff;
}
.wall-text-input:focus { outline: none; border-color: var(--pink); }
.wall-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid #e6e6e6; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 220px; overflow-y: auto;
}
.wall-suggestion { padding: 10px 12px; font-size: 13px; cursor: pointer; }
.wall-suggestion:hover { background: #ffeef5; color: var(--pink); }

.wall-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.wall-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

.wall-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wall-chip, .wall-chosen {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,29,88,0.08); color: var(--pink);
  font-size: 12px; font-weight: 700;
}
.wall-chosen { margin-top: 8px; }
.wall-chip-x {
  background: none; border: 0; cursor: pointer;
  color: var(--pink); font-size: 12px; line-height: 1; padding: 0;
}
.wall-post-status { font-size: 12px; color: #666; margin: 6px 0 0; }

/* Wall: report category sheet — replaces a free-text prompt(), matching the
   fixed categories in the iOS confirmationDialog. */
.wall-report-backdrop {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
}
.wall-report-sheet {
  background: #fff; width: 100%; max-width: 420px;
  border-radius: 16px 16px 0 0; padding: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
@media (min-width: 600px) {
  .wall-report-backdrop { align-items: center; }
  .wall-report-sheet { border-radius: 16px; }
}
.wall-report-title { font-size: 14px; font-weight: 800; text-align: center; padding: 8px 0 12px; color: #111; }
.wall-report-option, .wall-report-cancel {
  display: block; width: 100%; padding: 13px; margin-bottom: 6px;
  border: 0; border-radius: 10px; background: #f4f4f5;
  font-size: 15px; font-weight: 600; cursor: pointer; color: #111;
}
.wall-report-option:hover { background: #ffe4ee; color: var(--pink); }
.wall-report-cancel { background: transparent; color: #666; font-weight: 700; margin-bottom: 0; }

/* Wall: reply thread collapse toggle */
.wall-replies-toggle {
  background: none; border: 0; cursor: pointer;
  font-size: 12px; font-weight: 600; color: #888;
  padding: 2px 0 8px 38px;
}
.wall-replies-toggle:hover { color: var(--pink); }

/* Wall: location becomes a maps link when the post carries a coordinate */
.wall-location-link { text-decoration: none; }
.wall-location-link:hover { text-decoration: underline; }

/* Wall: own-comment edit / delete affordances */
.wall-comment-edit, .wall-comment-delete {
  background: none; border: 0; cursor: pointer;
  font-size: 11px; font-weight: 600; color: #999; padding: 0;
}
.wall-comment-edit:hover { color: var(--pink); }
.wall-comment-delete:hover { color: #d00; }

/* Wall empty state — iOS shows a friendly prompt here rather than blank space */
.wall-empty { text-align: center; padding: 48px 20px; }
.wall-empty-icon { font-size: 44px; margin-bottom: 8px; }
.wall-empty h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.wall-empty p { font-size: 14px; color: #666; margin: 0; }

/* Wall: linked event chip — matches iOS pink badge style */
.wall-linked-event {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 14px 6px; padding: 5px 10px;
  font-size: 12px; font-weight: 700; color: var(--pink); text-decoration: none;
  background: rgba(255, 29, 88, 0.08); border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 28px);
}
.wall-linked-event:hover { background: rgba(255, 29, 88, 0.15); text-decoration: none; }
/* Content top — author + chip above media */
.wall-content-top { padding: 14px 14px 0; }
/* Reaction bubbles — mirrors the iOS ReactionBubbles component. */
.wall-reactions { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.wall-reaction {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 6px; border-radius: 10px; font-size: 12px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.09);
}
.wall-reaction-count { font-size: 10px; font-weight: 800; opacity: 0.7; }
/* Composer: link a post to a pop-up (parity with the iOS event picker). */
.wall-event-label { font-size: 12.5px; font-weight: 800; color: var(--pink); }
.wall-event-select {
  flex: 1; min-width: 0; max-width: 100%;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.06); color: inherit;
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font); font-size: 13px; font-weight: 600;
}
.wall-event-select option { color: #111; }
/* Multi-image carousel (Instagram-style swipeable with dots). */
.wall-carousel { position: relative; overflow: hidden; border-radius: 0; aspect-ratio: 1 / 1; }
.wall-carousel-track { display: flex; transition: transform 0.3s ease; height: 100%; }
.wall-carousel-img { min-width: 100%; height: 100%; object-fit: cover; flex: 0 0 100%; }
.wall-carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.wall-carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); transition: background 0.2s; }
.wall-carousel-dot.active { background: #fff; }
.wall-carousel-prev, .wall-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.wall-carousel:hover .wall-carousel-prev, .wall-carousel:hover .wall-carousel-next { opacity: 1; }
.wall-carousel-prev { left: 8px; }
.wall-carousel-next { right: 8px; }
/* Reaction picker (tap "+" to add a new emoji). */
.wall-react-add { border: none; background: rgba(255,255,255,0.07); color: var(--pink); font-size: 16px; font-weight: 900; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; margin-left: auto; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.wall-react-add:hover { background: rgba(255,29,88,0.15); }
.wall-react-picker { display: flex; gap: 4px; padding: 6px 8px; background: rgba(30,0,50,0.95); border-radius: 20px; position: absolute; bottom: 36px; right: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 10; animation: popIn 0.15s ease; }
.wall-react-pick { border: none; background: none; font-size: 22px; cursor: pointer; padding: 4px; border-radius: 8px; transition: transform 0.1s, background 0.1s; }
.wall-react-pick:hover { background: rgba(255,255,255,0.12); transform: scale(1.2); }
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wall-tagged { font-size: 12.5px; color: #666; margin: 4px 0; }
.wall-tagged-user { color: var(--purple); font-weight: 700; text-decoration: none; }
.wall-tagged-user:hover { text-decoration: underline; }

/* ─── Photo crop editor ───────────────────────────────────── */
.crop-backdrop {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.82);
  display: flex; align-items: center; justify-content: center;
}
.crop-sheet {
  background: #12121a; width: 100%; max-width: 520px; max-height: 96vh;
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.crop-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.crop-head h3 { margin: 0; font-size: 0.95rem; color: #fff; font-weight: 800; }
.crop-cancel, .crop-done {
  border: none; background: none; cursor: pointer;
  font-family: var(--font); font-size: 0.9rem; font-weight: 800;
}
.crop-cancel { color: rgba(255,255,255,0.6); }
.crop-done { color: var(--pink-light); }
.crop-cancel:hover { color: #fff; }

/* Checkerboard shows where the frame ends when the photo is letterboxed. */
.crop-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 14px; background: #0b0b10; min-height: 240px;
  overflow: hidden; touch-action: none;
}
#crop-canvas {
  display: block; max-width: 100%; cursor: grab;
  border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
#crop-canvas.dragging { cursor: grabbing; }

.crop-controls { padding: 12px 14px 16px; }
.crop-ratios { display: flex; gap: 8px; margin-bottom: 12px; }
.crop-ratio {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0; cursor: pointer; border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.14); background: transparent;
  color: rgba(255,255,255,0.65);
  font-family: var(--font); font-size: 0.72rem; font-weight: 800;
}
.crop-ratio:hover { border-color: rgba(255,255,255,0.32); color: #fff; }
.crop-ratio.active { border-color: var(--pink-light); color: var(--pink-light); background: rgba(255,105,180,0.1); }
.crop-ratio-icon { font-size: 0.95rem; line-height: 1; }

.crop-zoom { display: flex; align-items: center; gap: 10px; }
.crop-zoom > span { font-size: 0.72rem; font-weight: 800; color: rgba(255,255,255,0.55); }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--pink-light); }
.crop-reset {
  border: none; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer;
  border-radius: 8px; padding: 5px 10px;
  font-family: var(--font); font-size: 0.72rem; font-weight: 800;
}
.crop-reset:hover { background: rgba(255,255,255,0.2); }
.crop-hint { margin: 10px 0 0; font-size: 0.72rem; color: rgba(255,255,255,0.45); text-align: center; }

.ce-recrop-btn {
  margin-top: 8px; border: none; cursor: pointer;
  background: rgba(255,29,88,0.1); color: var(--pink);
  border-radius: 9px; padding: 7px 12px;
  font-family: var(--font); font-size: 0.76rem; font-weight: 800;
}
.ce-recrop-btn:hover { background: rgba(255,29,88,0.18); }

/* ─── Chosen-image preview in the create form ─────────────── */
.ce-img-preview { margin-top: 12px; }
.ce-img-preview-label {
  margin: 0 0 6px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: #aaa;
}
/* Mirrors the feed card: dark surround, whole photo, nothing cropped. */
.ce-img-preview-frame {
  border-radius: 12px; overflow: hidden; background: var(--card-bg);
  max-width: 300px;
}
.ce-img-preview-frame img { display: block; width: 100%; height: auto; }
.ce-img-preview-meta { margin: 6px 0 0; font-size: 0.74rem; color: #777; line-height: 1.4; }
.ce-img-preview-meta.warn { color: #b45309; font-weight: 700; }

/* ─── Card style picker + preview ─────────────────────────── */
.ce-info-btn {
  width: 20px; height: 20px; margin-left: 8px; padding: 0;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--pink); color: #fff;
  font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 12px;
  line-height: 20px; text-align: center; vertical-align: middle;
}
.ce-info-btn:hover { filter: brightness(1.1); }
.ce-info-btn:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.ce-style-picker { display: grid; gap: 10px; margin-top: 6px; }
.ce-style-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px; cursor: pointer;
  border: 2px solid rgba(45,0,82,0.1); border-radius: 12px; background: #fff;
}
.ce-style-option:hover { border-color: rgba(255,92,168,0.5); }
.ce-style-option:has(input:checked) { border-color: var(--pink); background: rgba(255,92,168,0.04); }
.ce-style-option input { margin-top: 3px; accent-color: var(--pink); flex: 0 0 auto; }
.ce-style-body { display: flex; flex-direction: column; gap: 2px; }
.ce-style-name { font-weight: 800; font-size: 0.95rem; color: var(--purple); }
.ce-style-desc { font-size: 0.78rem; color: #777; line-height: 1.35; }

.csp-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.csp-sheet {
  background: #fff; border-radius: 18px; width: 100%; max-width: 460px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.csp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px;
}
.csp-head h3 { margin: 0; font-size: 1.05rem; color: var(--purple); }
.csp-close {
  border: none; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #999; padding: 0 4px;
}
.csp-tabs { display: flex; gap: 8px; padding: 0 18px 12px; }
.csp-tab {
  flex: 1; padding: 9px 0; cursor: pointer;
  border: 2px solid rgba(45,0,82,0.1); border-radius: 999px; background: #fff;
  font-family: var(--font); font-weight: 800; font-size: 0.85rem; color: #888;
}
.csp-tab.active { border-color: var(--pink); color: var(--pink); background: rgba(255,92,168,0.06); }
.csp-scroll { overflow-y: auto; padding: 0 18px 8px; -webkit-overflow-scrolling: touch; }
.csp-caption {
  margin: 10px 0 6px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: #aaa;
}
.csp-note { margin: 8px 0 4px; font-size: 0.76rem; color: #777; line-height: 1.4; }
.csp-phone { border-radius: 14px; background: #f2f2f5; padding: 10px; }

.csp-photo {
  position: relative; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #ff5ca8 0%, #7b0690 100%);
  display: flex; align-items: center; justify-content: center;
}
.csp-photo-short { height: 96px; }
.csp-photo-tall { height: 210px; border-radius: 0; }
.csp-photo-tall2 { height: 180px; border-radius: 10px 10px 0 0; }
.csp-photo-tag {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
}

.csp-trad-card, .csp-detail, .csp-imm-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.csp-trad-body { padding: 10px 12px 12px; }
.csp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.csp-chip {
  font-size: 0.62rem; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: rgba(255,92,168,0.12); color: var(--pink);
}
.csp-title-lg { font-size: 0.98rem; font-weight: 900; color: var(--purple); margin-bottom: 6px; }
.csp-rule { height: 1px; background: rgba(45,0,82,0.08); margin: 7px 0; }
.csp-line { font-size: 0.74rem; color: #666; margin-bottom: 3px; }
.csp-price { font-weight: 800; color: #1a8f4a; }
.csp-skel { height: 7px; border-radius: 4px; background: #ececf1; margin: 7px 0; }
.csp-skel-70 { width: 70%; }
.csp-cta {
  margin-top: 10px; padding: 9px 0; border-radius: 10px;
  background: var(--pink); color: #fff; text-align: center;
  font-size: 0.8rem; font-weight: 800;
}

.csp-imm-head { display: flex; align-items: center; gap: 7px; padding: 9px 11px; }
.csp-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ff5ca8, #7b0690);
}
.csp-avatar-sm { width: 16px; height: 16px; }
.csp-imm-name { font-size: 0.76rem; font-weight: 800; color: var(--purple); }
.csp-imm-cat { margin-left: auto; font-size: 0.66rem; font-weight: 700; color: var(--pink); }
.csp-imm-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
}
.csp-imm-title { font-size: 1rem; font-weight: 900; color: #fff; line-height: 1.2; }
.csp-imm-date { font-size: 0.7rem; color: rgba(255,255,255,0.9); margin-top: 3px; }
.csp-imm-actions { display: flex; align-items: center; gap: 12px; padding: 9px 12px; }
.csp-act { font-size: 1rem; }
.csp-more { margin-left: auto; font-size: 0.74rem; font-weight: 800; color: var(--pink); }
.csp-byline { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: #888; margin-bottom: 6px; }

.csp-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(45,0,82,0.07); }
.csp-use {
  width: 100%; padding: 12px 0; border: none; border-radius: 12px; cursor: pointer;
  background: var(--pink); color: #fff;
  font-family: var(--font); font-size: 0.92rem; font-weight: 800;
}
.csp-use:hover { filter: brightness(1.08); }

.ce-field input[type="text"],
.ce-field input[type="url"],
.ce-field input[type="number"],
.ce-field input[type="datetime-local"],
.ce-field textarea,
.ce-field select,
.ce-field input[type="file"] {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
  font-family: var(--font);
}
.ce-field input:focus, .ce-field textarea:focus, .ce-field select:focus {
  border-color: var(--pink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,29,88,0.08);
}
.ce-field textarea { resize: vertical; min-height: 160px; line-height: 1.6; }

.ce-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ce-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ─── Event media composer (multi-image + video) ────────────────
   Shared by the create form and the organizer dashboard's edit form. */
.emc { margin: 18px 0 22px; }
.emc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.emc-title { font-size: 0.8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #444; }
.emc-quota { font-size: 0.75rem; font-weight: 700; color: #888; }
.emc-quota.emc-quota-full { color: var(--pink); }
.emc-hint { font-size: 0.78rem; color: #888; margin: 0 0 10px; line-height: 1.5; }

.emc-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.emc-tab {
  flex: 1; padding: 8px 10px; border-radius: 9px; border: 1.5px solid #e0e0e0;
  background: #fff; font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  color: #666; cursor: pointer; transition: all .15s;
}
.emc-tab:hover { border-color: #ccc; }
.emc-tab[aria-selected="true"] { border-color: var(--pink); color: var(--pink); background: rgba(255,29,88,0.05); }

.emc-pane { border: 1.5px dashed #e0e0e0; border-radius: 11px; padding: 14px; background: #fafafa; }
.emc-pane[hidden] { display: none; }
.emc-link-row { display: flex; gap: 8px; }
.emc-link-row input {
  flex: 1; padding: 10px 12px; border-radius: 9px; border: 1.5px solid #e0e0e0;
  font-size: 0.9rem; font-family: var(--font); box-sizing: border-box; min-width: 0;
}
.emc-btn {
  padding: 10px 15px; border-radius: 9px; border: none; background: var(--pink); color: #fff;
  font-family: var(--font); font-size: 0.85rem; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.emc-btn:disabled { background: #ccc; cursor: not-allowed; }

.emc-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.emc-item {
  display: flex; align-items: center; gap: 10px; padding: 9px;
  border: 1.5px solid #e8e8e8; border-radius: 11px; background: #fff;
}
.emc-item.emc-item-cover { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,29,88,0.07); }
.emc-item.emc-item-error { border-color: #d32f2f; background: #fff5f5; }
.emc-thumb {
  width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex: 0 0 54px;
  background: #f0f0f0; display: block;
}
.emc-meta { flex: 1; min-width: 0; }
.emc-name { font-size: 0.82rem; font-weight: 700; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emc-sub { font-size: 0.72rem; color: #999; margin-top: 2px; }
.emc-sub-error { color: #d32f2f; font-weight: 700; }
.emc-alt {
  width: 100%; margin-top: 5px; padding: 5px 8px; border-radius: 7px;
  border: 1px solid #e4e4e4; font-size: 0.76rem; font-family: var(--font); box-sizing: border-box;
}
.emc-actions { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.emc-icon-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid #e4e4e4;
  background: #fff; cursor: pointer; font-size: 0.78rem; line-height: 1; color: #666; padding: 0;
}
.emc-icon-btn:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.emc-icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.emc-cover-flag { font-size: 0.64rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--pink); }

.emc-bar { height: 4px; border-radius: 3px; background: #eee; overflow: hidden; margin-top: 6px; }
.emc-bar-fill { height: 100%; background: var(--pink); width: 0; transition: width .2s; }

.emc-paywall {
  margin-top: 10px; padding: 11px 13px; border-radius: 10px;
  background: rgba(255,29,88,0.06); border: 1px solid rgba(255,29,88,0.2);
  font-size: 0.8rem; color: #8a1030; line-height: 1.5;
}
.emc-paywall strong { color: var(--pink); }

@media (max-width: 560px) {
  .emc-item { flex-wrap: wrap; }
  .emc-meta { flex-basis: 100%; order: 3; }
}

.ce-type-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.ce-type-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.ce-type-option:has(input:checked) {
  border-color: var(--pink);
  background: rgba(255,29,88,0.04);
}
.ce-type-option input[type="radio"] { accent-color: var(--pink); }
.ce-type-info {
  background: #f8f8fa;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.ce-type-info p { font-size: 0.8rem; color: #666; margin: 4px 0; line-height: 1.4; }

.ce-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ce-cat-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.ce-cat-pill input { display: none; }
.ce-cat-pill span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  user-select: none;
}
.ce-cat-pill:hover span { border-color: var(--pink); }
.ce-cat-pill input:checked + span {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 2px 8px rgba(255,29,88,0.2);
}

.ce-desc-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.ce-toolbar-btn {
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8fa;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
}
.ce-toolbar-btn:hover { background: #eee; }
.ce-toolbar-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }

.ce-rich-editor {
  min-height: 180px;
  padding: 14px 16px;
  border: 2px solid rgba(45,0,82,0.08);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
  max-height: 400px;
  transition: border-color 0.2s;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ce-rich-editor:focus { border-color: var(--pink); }
.ce-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}
.ce-rich-editor b, .ce-rich-editor strong { font-weight: 700; }
.ce-rich-editor i, .ce-rich-editor em { font-style: italic; }
.ce-rich-editor u { text-decoration: underline; }
.ce-rich-editor ul, .ce-rich-editor ol { padding-left: 20px; margin: 4px 0; }

.ce-address-suggestions {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ce-suggestion {
  padding: 10px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.ce-suggestion:last-child { border-bottom: none; }
.ce-suggestion:hover { background: rgba(255,29,88,0.04); }

.ce-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.ce-toggle {
  cursor: pointer;
}
.ce-toggle-track {
  width: 48px;
  height: 26px;
  background: #ddd;
  border-radius: 13px;
  position: relative;
  transition: background 0.2s;
}
.ce-toggle.active .ce-toggle-track {
  background: var(--pink);
}
.ce-toggle-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ce-toggle.active .ce-toggle-thumb {
  transform: translateX(22px);
}
.ce-toggle-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}
.ce-advanced-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255,29,88,0.08), rgba(138,43,226,0.08));
  border: 1px solid rgba(255,29,88,0.2);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  transition: all 0.2s;
  margin-top: 8px;
}
.ce-advanced-header:hover {
  background: linear-gradient(135deg, rgba(255,29,88,0.14), rgba(138,43,226,0.14));
  border-color: rgba(255,29,88,0.35);
}
.ce-advanced-header.open {
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}
.ce-advanced-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.ce-advanced-header.open .ce-advanced-arrow {
  transform: rotate(90deg);
}
#ce-advanced-section {
  border: 1px solid rgba(255,29,88,0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 20px 18px;
  background: rgba(255,29,88,0.02);
}
.ce-slots-list {
  margin-bottom: 16px;
}
.ce-slot-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,29,88,0.04);
  border: 1px solid rgba(255,29,88,0.15);
  border-radius: 10px;
  margin-bottom: 8px;
}
.ce-slot-card[draggable="true"] { cursor: default; }
.ce-slot-drag-handle {
  cursor: grab;
  padding: 8px 6px;
  color: #6b21a8;
  font-size: 22px;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  background: rgba(124,58,237,0.08);
  border-radius: 6px;
  transition: background 0.15s;
}
.ce-slot-drag-handle:hover { background: rgba(124,58,237,0.18); }
.ce-slot-drag-handle:active { cursor: grabbing; }
.ce-slot-drag-handle::before { content: "\2630"; }
.ce-slot-card .ce-slot-info h4 {
  font-size: 0.9rem;
  margin: 0 0 2px;
  font-weight: 700;
}
.ce-slot-card .ce-slot-info .ce-slot-time {
  font-size: 0.8rem;
  color: #666;
}
.ce-slot-card .ce-slot-info .ce-slot-cap {
  font-size: 0.8rem;
  color: var(--pink);
  margin-top: 2px;
}
.ce-slot-remove-btn {
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.3);
  color: #f44336;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.ce-slot-remove-btn:hover {
  background: rgba(244,67,54,0.2);
}
.ce-slot-add-row {
  padding: 16px;
  background: #f9f9f9;
  border-radius: 12px;
  border: 1px dashed #ddd;
}
.ce-add-slot-btn {
  margin-top: 12px;
}

.ce-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 900;
  margin-top: 24px;
  border-radius: 14px;
}

@media (max-width: 500px) {
  .ce-row-2, .ce-row-3 { grid-template-columns: 1fr; }
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 16px;
  }
  .nav-hamburger { display: block; }

  /* Mobile dropdown: inline expand instead of absolute */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: unset;
    background: transparent;
  }
  .nav-dropdown-menu a {
    padding: 8px 0;
    font-size: 14px;
  }
  /* On mobile, always show dropdown menu when parent nav is open (tap toggles via JS) */
  .nav-dropdown .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .hero-title { font-size: 36px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-title { font-size: 24px; }
  .profile-cover { height: 140px; }
  .profile-avatar-large { width: 80px; height: 80px; }
  .profile-header-info { padding-top: 50px; }
  .profile-name-row h1 { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 20px; }
  .hero-title { font-size: 28px; }
  .card-body { padding: 14px; }
  .card-title { font-size: 17px; }
}

/* ─── Map Page ────────────────────────────────────────────── */

.map-container {
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
  box-shadow: 0 8px 24px rgba(45,0,82,0.1);
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 12px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.map-city-nav {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(45,0,82,0.06);
}
.map-city-nav strong {
  font-size: 13px;
  color: #666;
  display: block;
  margin-bottom: 8px;
}
.map-city-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.map-city-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45,0,82,0.1);
  background: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
  transition: all 0.15s;
}
.map-city-btn:hover { background: rgba(255,29,88,0.06); border-color: var(--pink); }
.map-city-btn.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.map-city-count {
  display: inline-block;
  background: rgba(45,0,82,0.08);
  color: #666;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 4px;
}
.map-city-btn.active .map-city-count { background: rgba(255,255,255,0.3); color: #fff; }

.map-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
}
.legend-pink { background: #ff1d58; }
.legend-blue { background: #3b82f6; }
.legend-purple { background: #7a2cff; }

/* ─── Settings Page ───────────────────────────────────────── */

.settings-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(45,0,82,0.06);
}
.settings-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 10px;
}

.settings-link {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
  padding: 6px 0;
}
.settings-link:hover { text-decoration: underline; }

.settings-logout-btn {
  margin-right: 12px;
}

.settings-delete-btn {
  background: rgba(239,68,68,0.1) !important;
  color: #ef4444 !important;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 8px;
}
.settings-delete-btn:hover { background: rgba(239,68,68,0.2) !important; }

.settings-version {
  text-align: center;
}
.settings-version p {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

/* ─── Notifications Page ──────────────────────────────────── */

.notifications-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(45,0,82,0.04);
  transition: background 0.15s;
}
.notification-item.unread {
  background: rgba(255,29,88,0.04);
  border-left: 3px solid var(--pink);
}

.notification-icon {
  font-size: 20px;
  min-width: 32px;
  text-align: center;
}

.notification-body {
  flex: 1;
  min-width: 0;
}
.notification-body p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}
.notification-body .notification-time {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.notifications-loading,
.notifications-empty {
  text-align: center;
  color: #888;
  padding: 40px 20px;
  font-size: 14px;
}

/* ─── Calendar Enhancements ───────────────────────────────── */

.cal-quick-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cal-filter-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 12px;
}

.cal-day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Membership Card Page ────────────────────────────────── */

.membership-page {
  min-height: 80vh;
}

.membership-bg {
  background: linear-gradient(135deg, #12002b 0%, #2D0052 50%, #1a0033 100%);
  min-height: 80vh;
  padding: 24px 20px 60px;
}

.membership-content {
  max-width: 500px;
  margin: 0 auto;
}

.membership-events {
  margin-bottom: 24px;
}

.membership-events-title {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.membership-event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(90deg, rgba(255,29,88,0.2), rgba(122,44,255,0.15));
  border: 1px solid rgba(255,29,88,0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s;
}
.membership-event-card:hover { transform: translateX(4px); text-decoration: none; }

.membership-event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.membership-event-info strong {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.membership-event-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--pink);
}
.membership-event-perk {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.membership-event-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}

.membership-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255,29,88,0.3);
  margin-bottom: 24px;
}

.membership-card-top {
  background: linear-gradient(135deg, #ff1d58, #7a2cff);
  padding: 20px 24px;
}

.membership-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.membership-card-brand {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin: 0;
}

.membership-card-label {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
}

.membership-card-sparkle {
  font-size: 28px;
}

.membership-card-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.membership-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
}

.membership-card-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.membership-card-user-info strong {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}
.membership-card-user-info span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.membership-since {
  font-size: 11px !important;
  color: rgba(255,255,255,0.5) !important;
}

.membership-card-bottom {
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.membership-qr-container {
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(255,29,88,0.15);
}

.membership-qr-container canvas {
  display: block;
}

.membership-id {
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  color: #888;
}

.membership-scan-text {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.membership-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.membership-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
}
.membership-info-icon {
  font-size: 16px;
  width: 32px;
  text-align: center;
}
.membership-info-row span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.membership-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.membership-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  gap: 16px;
}
.membership-guest-icon {
  font-size: 60px;
  opacity: 0.5;
}
.membership-guest p {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
}

/* ─── Kollab Page ─────────────────────────────────────────── */

.kollab-page {
  max-width: 800px; margin: 0 auto; padding: 0 20px 60px;
  position: relative; z-index: 1;
}

.kollab-hero {
  background: linear-gradient(135deg, var(--pink), #7a2cff);
  border-radius: 32px;
  padding: 48px 40px;
  margin-bottom: 32px;
  color: #fff;
  text-align: center;
}
.kollab-hero::before { display: none; }
.kollab-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.kollab-logo-row { display: flex; align-items: center; gap: 16px; justify-content: center; }
.kollab-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.kollab-hero-text { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.kollab-title { font-size: 36px; font-weight: 900; margin: 0; letter-spacing: -1px; }
.kollab-partner { font-size: 15px; font-weight: 700; opacity: 0.85; margin: 0; }
.kollab-desc { font-size: 18px; line-height: 1.7; opacity: 0.95; margin: 0; max-width: 560px; }
.kollab-desc-sub { font-size: 15px; line-height: 1.6; opacity: 0.75; margin: 0; font-weight: 600; }
.kollab-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.kollab-location { font-size: 15px; font-weight: 700; opacity: 0.85; }
.kollab-visit-btn {
  font-size: 14px; font-weight: 800; color: #fff;
  padding: 10px 22px; background: rgba(255,255,255,0.2); border-radius: 12px;
  text-decoration: none; transition: all 0.2s; border: 1.5px solid rgba(255,255,255,0.3);
}
.kollab-visit-btn:hover { background: rgba(255,255,255,0.35); text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.kollab-site-link { display: none; }

.kollab-rewards { margin-bottom: 28px; }
.kollab-points-row { display: flex; gap: 14px; }
.kollab-points-btn, .kollab-qr-btn {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 20px; background: #fff; border-radius: 16px;
  border: 2px solid rgba(255,29,88,0.1); cursor: pointer;
  text-decoration: none; color: var(--text); transition: all 0.2s;
}
.kollab-points-btn:hover, .kollab-qr-btn:hover {
  border-color: var(--pink); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255,29,88,0.12); text-decoration: none;
}
.kollab-points-btn strong, .kollab-qr-btn strong { font-size: 16px; display: block; font-weight: 800; }
.kollab-points-btn span, .kollab-qr-btn span { font-size: 13px; color: #888; display: block; }
.kollab-points-circle {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #7a2cff);
  color: #fff; font-size: 17px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.kollab-qr-icon { font-size: 28px; flex-shrink: 0; }

.kollab-history-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.kollab-history-content {
  background: #fff; border-radius: 16px; width: 100%; max-width: 450px;
  max-height: 70vh; overflow: hidden; display: flex; flex-direction: column;
}
.kollab-history-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.kollab-history-header strong { font-size: 16px; }
.kollab-history-header button { background: none; border: none; font-size: 18px; cursor: pointer; }
#kollab-history-list { padding: 12px 20px; overflow-y: auto; flex: 1; }
.kollab-txn-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.kollab-txn-pts { font-size: 16px; font-weight: 900; color: #22c55e; min-width: 50px; }
.kollab-txn-info strong { font-size: 13px; display: block; }
.kollab-txn-info span { font-size: 11px; color: #888; }

.kollab-events-section { margin-bottom: 32px; }
.kollab-section-title {
  font-size: 14px; font-weight: 900; color: #888;
  letter-spacing: 1.5px; margin-bottom: 16px; text-transform: uppercase;
}
.kollab-events-list { display: flex; flex-direction: column; gap: 10px; }
.kollab-event-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04); text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.kollab-event-row:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); text-decoration: none; }
.kollab-event-img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.kollab-event-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.kollab-event-info strong { font-size: 16px; font-weight: 800; }
.kollab-event-date { font-size: 13px; font-weight: 700; color: var(--pink); }
.kollab-event-venue { font-size: 12px; color: #888; }
.kollab-event-arrow { font-size: 20px; color: #ccc; }

.kollab-leaderboard-section { margin-bottom: 32px; }
.kollab-lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; border-radius: 12px; margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03); text-decoration: none; color: var(--text);
  transition: all 0.15s;
}
.kollab-lb-row:hover { transform: translateX(4px); text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.kollab-lb-rank { font-size: 18px; min-width: 32px; text-align: center; }
.kollab-lb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.kollab-lb-avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,29,88,0.2), rgba(122,44,255,0.2));
}
.kollab-lb-name { font-size: 15px; font-weight: 700; flex: 1; }
.kollab-lb-pts { font-size: 14px; font-weight: 800; color: var(--pink); }

.kollab-guest { text-align: center; padding: 40px 20px; }
.kollab-guest p { font-size: 15px; color: #666; margin-bottom: 16px; }
.kollab-empty { text-align: center; color: #888; padding: 20px; font-size: 14px; }

/* Kollab Card Modal */
.kollab-card-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.kollab-card-modal-content {
  width: 100%; max-width: 380px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(255,29,88,0.3);
}
.kollab-card-top {
  background: linear-gradient(135deg, var(--pink), #7a2cff);
  padding: 24px;
  color: #fff;
}
.kollab-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.kollab-card-header h2 { font-size: 24px; font-weight: 900; margin: 0; }
.kollab-card-header span { font-size: 11px; font-weight: 800; opacity: 0.7; letter-spacing: 2px; display: block; }
.kollab-card-sparkle { font-size: 28px; opacity: 0.6; }
.kollab-card-user { display: flex; align-items: center; gap: 14px; }
.kollab-card-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.5); }
.kollab-card-user strong { font-size: 17px; font-weight: 900; display: block; color: #fff; }
.kollab-card-user span { font-size: 13px; opacity: 0.6; display: block; color: #fff; }
.kollab-card-bottom {
  background: #fff; padding: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.kollab-card-qr { width: 180px; height: 180px; border-radius: 12px; box-shadow: 0 4px 20px rgba(255,29,88,0.15); }
.kollab-card-id { font-size: 13px; font-weight: 700; font-family: monospace; color: #888; }
.kollab-card-scan-text { font-size: 12px; font-weight: 600; color: #666; }
.kollab-card-close {
  display: block; width: 100%; padding: 14px; background: #f5f5f5; border: none;
  font-size: 14px; font-weight: 700; color: #666; cursor: pointer; text-align: center;
}
.kollab-card-close:hover { background: #eee; }

@media (max-width: 500px) {
  .kollab-points-row { flex-direction: column; }
  .kollab-hero { padding: 24px 20px; }
}

/* ─── RSVP Section & Buttons ─────────────────────────────── */

.rsvp-section {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.rsvp-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.rsvp-btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}

.rsvp-btn.going {
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  color: #fff;
}

.rsvp-btn.maybe {
  border: 2px solid #ff9800;
  color: #ff9800;
  background: transparent;
}

.rsvp-btn.not-going {
  background: rgba(255,255,255,0.08);
  color: #999;
}

.rsvp-btn.active {
  transform: scale(0.95);
  filter: brightness(1.2);
}

.rsvp-payment-notice {
  margin-top: 16px;
}

.payment-notice-box {
  background: linear-gradient(135deg, rgba(255,152,0,0.08), rgba(255,87,34,0.06));
  border: 1px solid rgba(255,152,0,0.3);
  border-radius: 14px;
  padding: 16px 18px;
}

.payment-notice-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e65100;
  margin-bottom: 8px;
}

.payment-notice-box .payment-status {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.payment-notice-box .payment-instructions {
  font-size: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.6);
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.rsvp-confirmed {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(76,175,80,0.08);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 12px;
  color: #2e7d32;
  font-weight: 600;
}

.rsvp-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.rsvp-input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  padding: 12px;
  font-family: var(--font);
  font-size: 14px;
}

.rsvp-consent {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ccc;
}

.rsvp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,29,88,0.25);
  transition: all 0.2s;
}
.rsvp-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,29,88,0.35); }

.capacity-indicator {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.capacity-indicator.urgency {
  color: #ff9800;
}

.capacity-indicator.full {
  color: #f44336;
}

.card-capacity {
  font-size: 12px;
}

.card-capacity.urgency {
  color: #ff9800;
}

.card-capacity.full {
  color: #f44336;
}

/* ─── Slot Picker & Capacity Indicators ──────────────────── */

.slot-picker {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.slot-card {
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.slot-card:hover {
  border-color: #ff6b9d;
}

.slot-card.selected {
  border-color: #ff6b9d;
  background: rgba(255,107,157,0.1);
}

.slot-card.full {
  opacity: 0.6;
  cursor: default;
}

.slot-card .slot-time {
  font-weight: 600;
  font-size: 15px;
}

.slot-card .slot-desc {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

.slot-card .slot-capacity {
  font-size: 12px;
  margin-top: 8px;
}

.slot-card .slot-capacity.urgency {
  color: #ff9800;
}

.slot-card .slot-capacity.full {
  color: #f44336;
}

.slot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.slot-price-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.slot-price-badge.free {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.slot-price-badge.paid {
  background: rgba(156, 39, 176, 0.15);
  color: #CE93D8;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.slot-highlighted {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,157,0); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,157,0.3); }
}

/* ─── QR Display & Dashboard ─────────────────────────────── */

.qr-display {
  text-align: center;
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  margin-top: 16px;
}

.qr-display canvas {
  margin: 16px auto;
  display: block;
}

.qr-display .qr-instructions {
  font-size: 13px;
  color: #999;
  margin-top: 12px;
}

.qr-display .qr-event-title {
  font-size: 16px;
  font-weight: 600;
}

.dashboard-page {
  display: flex;
  min-height: calc(100vh - 200px);
  gap: 0;
}

.dashboard-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 24px 12px;
  background: var(--purple-dark);
  border-radius: 0 0 0 16px;
}

.dashboard-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  padding: 0 12px;
}

.dashboard-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  font-weight: 500;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.dashboard-nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.dashboard-nav-item.active {
  background: linear-gradient(135deg, rgba(255,29,88,0.4), rgba(138,43,226,0.3));
  color: #fff;
  font-weight: 600;
}

.dashboard-main {
  flex: 1;
  padding: 28px;
  background: #fff;
  border-radius: 0 0 16px 0;
}

.dashboard-loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 14px;
}

.dashboard-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.dashboard-error {
  text-align: center;
  padding: 40px 20px;
  color: #d32f2f;
  background: rgba(211,47,47,0.05);
  border-radius: 12px;
}

.dashboard-status {
  position: fixed;
  bottom: 16px;
  right: 16px;
  font-size: 11px;
  color: #666;
}

.dash-ws-connected { color: #4caf50; }
.dash-ws-disconnected { color: #f44336; }
.dash-hint { font-size: 12px; color: #888; margin-bottom: 12px; }

/* Dashboard Event Cards */
.dashboard-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.dash-event-card {
  background: #fff;
  border: 1px solid #e8e0f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(45,0,82,0.06);
}

.dash-event-card:hover {
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(255,29,88,0.12);
  transform: translateY(-2px);
}

.dash-event-card.selected {
  border-color: var(--pink);
  box-shadow: 0 4px 16px rgba(255,29,88,0.2);
}

.dash-event-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.dash-event-body {
  padding: 14px 16px 16px;
}

.dash-event-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.dash-event-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.dash-meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.dash-rsvp-badge {
  background: rgba(76,175,80,0.1);
  color: #2e7d32;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.dash-event-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Dashboard Buttons */
.btn-dash {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
}

.btn-dash-primary {
  background: linear-gradient(135deg, #ff1d58, #8a2be2);
  color: #fff;
}

.btn-dash-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-dash-secondary {
  background: #f5f0fa;
  color: var(--purple);
  border: 1px solid #e0d4f0;
}

.btn-dash-secondary:hover {
  background: #ebe0f8;
}

.btn-dash-sm {
  padding: 6px 10px;
  font-size: 11px;
}

.btn-dash-danger {
  background: #fff0f0;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.btn-dash-danger:hover {
  background: #ffebee;
}

/* Dashboard Panels */
.dashboard-panel {
  background: #fff;
  border: 1px solid #e8e0f0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(45,0,82,0.04);
}

.dashboard-panel h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

/* Dashboard Table */
.dashboard-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e8e0f0;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dashboard-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8f4fc;
  color: #666;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-table td {
  padding: 10px 12px;
  border-top: 1px solid #f0e8f8;
  color: var(--text);
}

.dashboard-table tr:hover td {
  background: #faf8fc;
}

/* Dashboard Badges */
.dash-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.dash-badge-going { background: #e8f5e9; color: #2e7d32; }
.dash-badge-maybe { background: #fff3e0; color: #e65100; }
.dash-badge-not_going { background: #ffebee; color: #c62828; }
.dash-badge-withdrawn { background: #f3e8ff; color: #7c3aed; }
.dash-badge-checked { background: #e8f5e9; color: #2e7d32; }
.dash-badge-pending { background: #f5f5f5; color: #888; }
.dash-badge-paid { background: #e8f5e9; color: #2e7d32; }
.dash-badge-unpaid { background: #fff3e0; color: #e65100; }

/* Dashboard Filters */
.dashboard-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dashboard-filters select,
.dashboard-filters input {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font);
}

/* Dashboard Bulk Actions */
.dashboard-bulk-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Dashboard Broadcast */
.dashboard-broadcast-section textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  resize: vertical;
  box-sizing: border-box;
}

.dashboard-broadcast-options {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.dashboard-broadcast-options select {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font);
}

/* Dashboard Co-host */
.dashboard-cohost-add {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-cohost-add input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
}

.dashboard-cohost-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8f4fc;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}

/* Dashboard Waitlist */
.dashboard-waitlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-waitlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8f4fc;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text);
}

/* Dashboard Edit Form */
.dash-edit-label {
  display: block;
  margin-bottom: 14px;
}

.dash-edit-label span {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.dash-edit-label input,
.dash-edit-label textarea,
.dash-edit-label select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  font-size: 13px;
  font-family: var(--font);
}

.de-rich-editor {
  width: 100%;
  min-height: 150px;
  max-height: 350px;
  overflow-y: auto;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e0d4f0;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  line-height: 1.6;
  outline: none;
  box-sizing: border-box;
}

.de-rich-editor:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255,29,88,0.1);
}

.de-rich-editor:empty::before {
  content: 'Describe your event — what makes it special?';
  color: #aaa;
}

.dash-edit-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.dash-success { color: #2e7d32; font-size: 13px; }
.dash-error { color: #d32f2f; font-size: 13px; }
.dash-empty { color: #888; font-size: 13px; font-style: italic; }

@media (max-width: 768px) {
  .dashboard-page { flex-direction: column; }
  .dashboard-sidebar { width: 100%; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px; }
  .dashboard-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .dashboard-events-grid { grid-template-columns: 1fr; }
  .dashboard-main { border-radius: 0; }
}

/* ─── About Page ──────────────────────────────────────────── */

.about-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  text-align: center;
}
.about-hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 14px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-tagline {
  font-size: 17px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 720px;
  margin: 0 auto;
}

.about-toc {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
.about-toc a {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45,0,82,0.05);
  color: var(--purple);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s;
}
.about-toc a:hover {
  background: var(--pink);
  color: #fff;
}

.about-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px;
  border-bottom: 1px solid #f3f4f6;
  scroll-margin-top: 80px;
}
.about-section:last-child { border-bottom: none; }
.about-section h2 {
  font-size: 30px;
  font-weight: 900;
  color: #111;
  margin: 0 0 18px;
}
.about-section h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--pink);
  margin: 24px 0 10px;
}
.about-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 14px;
}
.about-section a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: underline;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.about-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  border-bottom: 1px solid #f9fafb;
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 12px;
  color: var(--pink);
  font-size: 13px;
}
.about-list li strong {
  color: #111;
  font-weight: 700;
}
.about-numbered {
  padding-left: 20px;
  margin: 0 0 16px;
}
.about-numbered li {
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
}
.about-numbered li strong {
  color: #111;
  font-weight: 700;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  justify-content: center;
}
.about-stat {
  flex: 1 1 180px;
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(45,0,82,0.04), rgba(255,29,88,0.05));
  border-radius: 14px;
  border: 1px solid rgba(45,0,82,0.08);
}
.about-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--pink);
  margin-bottom: 6px;
}
.about-stat span {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 600px) {
  .about-hero { padding: 40px 18px 20px; }
  .about-hero h1 { font-size: 32px; }
  .about-tagline { font-size: 15px; }
  .about-section { padding: 24px 18px; }
  .about-section h2 { font-size: 24px; }
}

/* ─── Social Circle: What's Poppin' ──────────────────────────── */
.sc-tabs {
  display: flex; gap: 8px; max-width: 680px; margin: 0 auto 16px; padding: 0 16px;
}
.sc-tab {
  flex: 1; padding: 10px 12px; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 800; cursor: pointer;
  background: var(--surface-2, #f0f0f5); color: var(--text, #222);
}
.sc-tab.active {
  background: linear-gradient(90deg, var(--orange, #ff8a3d), var(--pink, #ff5ba7));
  color: #fff;
}
.sc-panel { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.sc-live {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
  color: var(--text-secondary, #888); margin: 4px 0 12px;
}
.sc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; display: inline-block; }
.sc-section-title { font-size: 16px; font-weight: 900; margin: 8px 0 10px; }
.sc-trend-strip {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px;
  scrollbar-width: none;
}
.sc-trend-strip::-webkit-scrollbar { display: none; }
.sc-trend-card { flex: 0 0 auto; width: 170px; text-decoration: none; color: inherit; }
.sc-trend-img {
  width: 170px; height: 105px; border-radius: 14px; background-size: cover; background-position: center;
  position: relative; background-color: #eee;
}
.sc-trend-badge {
  position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 900; color: #fff;
  background: rgba(0,0,0,0.55); padding: 3px 7px; border-radius: 999px;
}
.sc-trend-title { font-size: 13px; font-weight: 800; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-trend-when { font-size: 11px; color: var(--text-secondary, #888); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-feed { display: flex; flex-direction: column; gap: 12px; }
.sc-bubble {
  display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: inherit;
  padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,91,167,0.06), rgba(122,44,255,0.05));
  border: 1px solid rgba(255,91,167,0.12);
}
.sc-bubble-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.sc-bubble-body { flex: 1; min-width: 0; }
.sc-bubble-line { font-size: 14px; line-height: 1.35; }
.sc-bubble-subject { color: var(--pink, #ff5ba7); font-weight: 800; }
.sc-bubble-sub { font-size: 12px; color: var(--text-secondary, #888); font-weight: 600; margin-top: 2px; }
.sc-bubble-time { font-size: 11px; color: var(--text-secondary, #aaa); margin-top: 3px; }
.sc-empty { text-align: center; color: var(--text-secondary, #888); padding: 40px 20px; font-weight: 600; }

/* What's Poppin' activity: avatar/name link to the member, body links to the
   event. Comment affordance mirrors the iOS activity card. */
.sc-bubble-avatar-link { flex: 0 0 auto; display: block; line-height: 0; }
.sc-bubble-name { color: inherit; font-weight: 800; text-decoration: none; }
.sc-bubble-name:hover { text-decoration: underline; }
.sc-bubble-target { color: inherit; text-decoration: none; }
.sc-bubble-target:hover { text-decoration: underline; }
.sc-bubble-foot { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.sc-bubble-comment { background: none; border: none; cursor: pointer; padding: 2px 0;
  font-size: 12px; font-weight: 700; color: var(--pink, #ff5ba7); display: inline-flex; align-items: center; gap: 4px; }
.sc-bubble-comment:hover { opacity: 0.8; }

/* Activity comment sheet (modal). */
.sc-cmt-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center; }
.sc-cmt-sheet { background: var(--card-bg, #fff); color: var(--text, #111); width: 100%; max-width: 560px;
  max-height: 80vh; display: flex; flex-direction: column; border-radius: 18px 18px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,0.25); }
@media (min-width: 600px) { .sc-cmt-backdrop { align-items: center; } .sc-cmt-sheet { border-radius: 18px; } }
.sc-cmt-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--sc-hair, rgba(0,0,0,0.08)); }
.sc-cmt-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text-secondary, #888); line-height: 1; }
.sc-cmt-list { flex: 1; overflow-y: auto; padding: 4px 16px; }
.sc-cmt-empty { text-align: center; color: var(--text-secondary, #888); padding: 28px 0; font-weight: 600; font-size: 13px; }
.sc-cmt-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--sc-hair, rgba(0,0,0,0.08)); align-items: center; }
.sc-cmt-input { flex: 1; padding: 10px 12px; border-radius: 20px; border: 1px solid var(--sc-hair, rgba(0,0,0,0.15));
  background: var(--input-bg, rgba(0,0,0,0.03)); color: inherit; font-size: 14px; }
.sc-cmt-send { padding: 10px 16px; border-radius: 20px; border: none; cursor: pointer; font-weight: 700; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, #ff5ca8, #7b0690); }
.sc-cmt-send:disabled { opacity: 0.5; cursor: default; }
.sc-cmt-signin { color: var(--pink, #ff5ba7); font-weight: 700; text-decoration: none; }
