/* ===================================================================
   OUTLY — design system
   =================================================================== */
:root {
  --neon: #B6FF3B;
  --neon-dim: #7fae3a;
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --panel: #131313;
  --panel-2: #1a1a1a;
  --line: rgba(255,255,255,0.07);
  --txt: #ffffff;
  --txt-2: rgba(255,255,255,0.55);
  --txt-3: rgba(255,255,255,0.4);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --glow: 0 0 18px rgba(182,255,59,0.6);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #060606;
  color: var(--txt);
  font-family: var(--body);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 0; height: 0; }
button { font-family: inherit; }
img { display: block; }

.noscript {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; font-family: var(--body); color: var(--neon);
}

/* ---- device shell: full-bleed on phones, framed on desktop ---- */
.device {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  body {
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(120% 80% at 50% -10%, #14180f 0%, #0a0a0a 55%, #060606 100%);
    padding: 24px 0;
  }
  .device {
    width: 402px;
    height: min(880px, calc(100dvh - 48px));
    min-height: 0;
    border-radius: 44px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 0 0 10px #050505, 0 0 60px rgba(182,255,59,0.06);
  }
}

/* ---- screen area ---- */
.screen-area { position: relative; flex: 1; overflow: hidden; }
.screen { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; }
.screen.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen-pad { padding: calc(56px + var(--safe-top)) 22px 12px; flex-shrink: 0; background: linear-gradient(var(--bg) 70%, transparent); }
.screen-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 22px 120px; }
.screen-title { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; }
.screen-sub { font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--txt-2); margin-top: 2px; }

/* ---- generic neon helpers ---- */
.neon-text { color: var(--neon); text-shadow: 0 0 18px rgba(182,255,59,0.6); }
.section-label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; color: var(--txt-2); margin: 24px 0 12px; }

/* =========================== MAP =========================== */
#leaflet-map { position: absolute; inset: 0; background: #070707; }
.leaflet-container { background: #070707; font-family: var(--body); }
.leaflet-control-attribution {
  background: rgba(10,10,10,0.7) !important; color: rgba(255,255,255,0.5) !important;
  font-size: 9px !important; backdrop-filter: blur(6px);
}
.leaflet-control-attribution a { color: var(--neon-dim) !important; }
/* tone the dark tiles toward the brand green */
.leaflet-tile { filter: brightness(0.85) saturate(0.7) hue-rotate(15deg); }
.leaflet-control-zoom { display: none; }

.map-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 600;
  padding: calc(14px + var(--safe-top)) 18px 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: linear-gradient(var(--bg) 30%, rgba(10,10,10,0));
  pointer-events: none;
}
.map-topbar > * { pointer-events: auto; }
.map-topbar .hamburger { justify-self: start; }
.map-topbar .brand { justify-self: center; }
.map-topbar .top-actions { justify-self: end; }
.hamburger { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; border: none; background: none; padding: 0; }
.hamburger span { height: 2px; background: var(--neon); border-radius: 2px; box-shadow: 0 0 8px rgba(182,255,59,0.7); }
.hamburger span:nth-child(1), .hamburger span:nth-child(2) { width: 24px; }
.hamburger span:nth-child(3) { width: 16px; }
.brand { text-align: center; }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.22em; color: var(--neon); text-shadow: 0 0 22px rgba(182,255,59,0.8); line-height: 1; }
.brand .brand-tag { font-family: var(--display); font-weight: 500; font-size: 8px; letter-spacing: 0.32em; color: var(--txt-2); margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(182,255,59,0.4); background: rgba(20,20,20,0.6); display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); }
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--neon); box-shadow: 0 0 14px rgba(182,255,59,0.6); overflow: hidden; cursor: pointer; padding: 0; background: #222; }
.avatar-btn img, .avatar img { width: 100%; height: 100%; object-fit: cover; }

/* filter rail */
.filter-rail { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 11px; z-index: 600; }
.filter-pill {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 12px; border-radius: 999px;
  cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 13px; white-space: nowrap;
  transition: all .2s; backdrop-filter: blur(8px); border: 1.5px solid rgba(255,255,255,0.16);
  background: rgba(12,12,12,0.78); color: rgba(255,255,255,0.78); box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.filter-pill.active { background: var(--neon); color: #0a0a0a; border-color: var(--neon); box-shadow: 0 0 20px rgba(182,255,59,0.55); }
.filter-pill .fi { display: flex; color: var(--neon); }
.filter-pill.active .fi { color: #0a0a0a; }

/* New Moment dock */
.moment-dock { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 11px; align-items: center; z-index: 600; padding: 0 18px; }
.round-glass { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(182,255,59,0.4); background: rgba(15,15,15,0.85); display: flex; align-items: center; justify-content: center; flex-shrink: 0; backdrop-filter: blur(8px); cursor: pointer; }
.cta {
  flex: 1; max-width: 200px; height: 46px; border-radius: 999px; background: var(--neon); border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  box-shadow: 0 0 24px rgba(182,255,59,0.65), 0 8px 24px rgba(0,0,0,0.5);
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; color: #0a0a0a;
}
.cta:active { transform: scale(0.97); }

/* custom map markers */
.club-marker { background: none !important; border: none !important; }
.club-pin {
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(182,255,59,0.6));
}
.club-pin .pin-card {
  position: relative; background: #0d0d0d; border: 1.5px solid rgba(182,255,59,0.65); border-radius: 14px;
  padding: 7px; width: 132px; box-shadow: 0 0 22px rgba(0,0,0,0.7), 0 0 14px rgba(182,255,59,0.18);
}
.club-pin .badge {
  position: absolute; top: -11px; left: 10px; min-width: 28px; height: 22px; padding: 0 7px;
  background: var(--neon); color: #0a0a0a; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 12px; box-shadow: 0 0 14px rgba(182,255,59,0.8);
}
.club-pin .thumb { width: 100%; height: 64px; border-radius: 9px; object-fit: cover; background: #1a1a1a; }
.club-pin .pin-name { font-family: var(--display); font-weight: 700; font-size: 14px; margin-top: 6px; }
.club-pin .pin-genre { font-family: var(--body); font-weight: 600; font-size: 10.5px; color: var(--txt-2); margin-top: 2px; }
.club-pin .pin-hours { font-family: var(--body); font-weight: 700; font-size: 10.5px; color: var(--neon); margin-top: 3px; }
.club-pin .dot { width: 11px; height: 11px; background: var(--neon); border-radius: 50%; margin-top: 6px; box-shadow: 0 0 12px rgba(182,255,59,0.9); }

/* compact map markers (small, for zoomed-in maps) */
.club-pin-mini { display: flex; flex-direction: column; align-items: center; cursor: pointer; filter: drop-shadow(0 0 6px rgba(182,255,59,0.5)); }
.club-pin-mini .mini-thumb {
  position: relative; width: 44px; height: 44px; border-radius: 13px; border: 2px solid var(--neon);
  box-shadow: 0 0 12px rgba(182,255,59,0.5); background-size: cover; background-position: center; background-color: #111;
}
.club-pin-mini .mini-badge {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 18px; padding: 0 5px; background: var(--neon);
  color: #0a0a0a; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 11px; box-shadow: 0 0 10px rgba(182,255,59,0.8);
}
.club-pin-mini .mini-dot { width: 8px; height: 8px; background: var(--neon); border-radius: 50%; margin-top: 4px; box-shadow: 0 0 10px rgba(182,255,59,0.9); }

/* moment markers (joinable plans) */
.moment-marker { background: none !important; border: none !important; }
.moment-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; filter: drop-shadow(0 0 7px rgba(182,255,59,0.55)); }
.moment-pin .m-ava { width: 42px; height: 42px; border-radius: 50%; border: 2px solid #fff; background-size: cover; background-position: center; box-shadow: 0 0 12px rgba(0,0,0,0.6); }
.moment-pin.joined .m-ava { border-color: var(--neon); box-shadow: 0 0 14px rgba(182,255,59,0.7); }
.moment-pin .m-count { margin-top: 5px; background: var(--neon); color: #0a0a0a; font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 10px rgba(182,255,59,0.6); }

/* pin-drop mode */
.drop-crosshair { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 590; color: var(--neon); filter: drop-shadow(0 0 10px rgba(182,255,59,0.8)); pointer-events: none; animation: outlyFloat 2.4s ease-in-out infinite; }
@keyframes outlyFloat { 0%,100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }
.drop-bar .cta { max-width: 260px; }
.me-marker { background: none !important; border: none !important; }
.me-pulse { position: relative; width: 22px; height: 22px; }
.me-pulse .dot { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--neon); border: 3px solid #0a0a0a; box-shadow: 0 0 16px rgba(182,255,59,0.95); }
.me-pulse .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(182,255,59,0.6); animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(0.6); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }

/* =========================== EVENTS =========================== */
.live-head { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 1.4s infinite; }
.live-head .label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--neon); }
.event-live { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 16px; border: 1.5px solid rgba(182,255,59,0.5); box-shadow: 0 0 20px rgba(182,255,59,0.12); }
.event-live .cover { width: 100%; height: 170px; object-fit: cover; background: #1a1a1a; }
.event-live .scrim { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,8,8,0.92)); }
.chip-live { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px; background: rgba(182,255,59,0.92); padding: 5px 10px; border-radius: 999px; }
.chip-live .d { width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; animation: pulse 1.2s infinite; }
.chip-live span { font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.1em; color: #0a0a0a; }
.chip-count { position: absolute; top: 12px; right: 12px; background: rgba(10,10,10,0.7); backdrop-filter: blur(8px); padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.event-live .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.event-live .meta .t { font-family: var(--display); font-weight: 700; font-size: 21px; }
.event-live .meta .v { font-weight: 600; font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.event-live .meta .h { font-weight: 700; font-size: 12.5px; color: var(--neon); margin-top: 5px; }

.coming-head { display: flex; align-items: center; gap: 8px; margin: 22px 0 14px; }
.coming-head .label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); }
.coming-head .rule { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.event-row { display: flex; gap: 13px; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.event-row .date { flex-shrink: 0; width: 54px; text-align: center; }
.event-row .date .m { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; color: var(--neon); }
.event-row .date .d { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.event-row .thumb { width: 62px; height: 62px; flex-shrink: 0; border-radius: 13px; object-fit: cover; background: #1a1a1a; }
.event-row .info { flex: 1; min-width: 0; }
.event-row .info .t { font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-row .info .v { font-weight: 600; font-size: 12px; color: var(--txt-2); margin-top: 2px; }
.row-btns { display: flex; gap: 8px; margin-top: 9px; }

/* small pill buttons (RSVP/SAVE/etc) */
.pill-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 14px;
  border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.04em; transition: all .2s; white-space: nowrap; background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}
.pill-btn.on { background: var(--neon); color: #0a0a0a; border-color: var(--neon); box-shadow: 0 0 14px rgba(182,255,59,0.5); }
.pill-btn.on.white { background: rgba(255,255,255,0.92); border-color: rgba(255,255,255,0.92); box-shadow: none; }

/* =========================== OFFERS =========================== */
.offer-card { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 15px; background: #111; border: 1px solid var(--line); }
.offer-card .cover { width: 100%; height: 128px; object-fit: cover; background: #1a1a1a; }
.offer-card .scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,0.85), rgba(8,8,8,0.25)); }
.offer-timer { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; background: rgba(10,10,10,0.75); backdrop-filter: blur(8px); border: 1px solid rgba(182,255,59,0.5); padding: 5px 11px; border-radius: 999px; }
.offer-timer span { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--neon); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.offer-timer.expired span { color: rgba(255,255,255,0.5); }
.offer-card .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 132px 14px 16px; }
.offer-card .club-row { display: flex; align-items: center; gap: 8px; }
.offer-card .club-row .logo { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.25); object-fit: cover; background: #1a1a1a; }
.offer-card .club-row .name { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); }
.offer-card .title { font-family: var(--display); font-weight: 700; font-size: 20px; margin-top: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.redeem-btn {
  position: absolute; right: 14px; bottom: 14px; height: 38px; padding: 0 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--neon);
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; transition: all .2s;
  background: var(--neon); color: #0a0a0a; box-shadow: 0 0 18px rgba(182,255,59,0.6);
}
.redeem-btn.done { background: rgba(10,10,10,0.7); color: var(--neon); box-shadow: none; }
.redeem-btn:disabled { opacity: 0.5; cursor: default; }

/* =========================== PEOPLE =========================== */
.person { display: flex; gap: 13px; align-items: center; padding: 13px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.person .pic { position: relative; flex-shrink: 0; }
.person .pic .img { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(182,255,59,0.4); }
.person .pic .img img { width: 100%; height: 100%; object-fit: cover; }
.person .pic .online { position: absolute; bottom: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--neon); border: 2.5px solid var(--panel); box-shadow: 0 0 8px var(--neon); }
.person .info { flex: 1; min-width: 0; }
.person .info .name-row { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.person .info .name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.person .info .age { font-weight: 600; font-size: 13px; color: var(--txt-2); }
.person .info .dist { font-weight: 600; font-size: 11px; color: var(--txt-3); }
.status-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; background: rgba(182,255,59,0.12); border: 1px solid rgba(182,255,59,0.3); padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 10.5px; color: var(--neon); }
.person .genres { font-weight: 600; font-size: 11px; color: var(--txt-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .actions { display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }
.add-btn { height: 40px; padding: 0 16px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 12.5px; transition: all .2s; white-space: nowrap; background: var(--neon); color: #0a0a0a; border: 1px solid var(--neon); box-shadow: 0 0 14px rgba(182,255,59,0.5); }
.add-btn.added { background: rgba(182,255,59,0.14); color: var(--neon); border: 1px solid rgba(182,255,59,0.5); box-shadow: none; }
.msg-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: var(--panel-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* =========================== PROFILE =========================== */
.profile-cover { position: relative; height: 190px; flex-shrink: 0; }
.profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-cover .scrim { position: absolute; inset: 0; background: linear-gradient(transparent 20%, var(--bg)); }
.profile-body { padding: 0 22px 120px; margin-top: -58px; position: relative; }
.profile-head { display: flex; align-items: flex-end; gap: 14px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; border: 3px solid var(--neon); box-shadow: 0 0 22px rgba(182,255,59,0.6); flex-shrink: 0; background: #222; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--display); font-weight: 700; font-size: 23px; }
.profile-handle { font-weight: 600; font-size: 13px; color: var(--neon); }
.profile-bio { font-weight: 500; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.6); margin-top: 14px; }
.stats { display: flex; gap: 10px; margin-top: 18px; }
.stat { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; }
.stat .n { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--neon); }
.stat .l { font-weight: 600; font-size: 10.5px; letter-spacing: 0.06em; color: var(--txt-2); margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { padding: 10px 18px; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 13.5px; transition: all .2s; white-space: nowrap; background: transparent; color: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.18); }
.tag.on { background: var(--neon); color: #0a0a0a; border-color: var(--neon); box-shadow: 0 0 16px rgba(182,255,59,0.45); }
.settings-list { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.settings-row { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left; color: var(--txt); }
.settings-row:last-child { border-bottom: none; }
.settings-row .lbl { flex: 1; font-weight: 600; font-size: 15px; }

/* =========================== BOTTOM NAV =========================== */
.bottom-nav {
  flex-shrink: 0; display: flex; align-items: flex-start; padding: 11px 8px calc(14px + var(--safe-bottom));
  background: linear-gradient(transparent, rgba(8,8,8,0.96) 30%); border-top: 1px solid var(--line);
  position: relative; z-index: 700;
}
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px 0; font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); transition: color .2s; }
.nav-item.active { color: var(--neon); text-shadow: 0 0 14px rgba(182,255,59,0.85); }

/* =========================== OVERLAYS =========================== */
.overlay { position: absolute; inset: 0; z-index: 800; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; animation: slideup .26s cubic-bezier(.2,.8,.2,1); }
@keyframes slideup { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.overlay-back { position: absolute; top: calc(14px + var(--safe-top)); left: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(10,10,10,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }
.overlay-fav { position: absolute; top: calc(14px + var(--safe-top)); right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(10,10,10,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; }

/* club detail */
.club-hero { position: relative; height: 280px; }
.club-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #1a1a1a; }
.club-hero .scrim { position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--bg)); }
.club-hero .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.going-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(182,255,59,0.92); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.going-chip .d { width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; animation: pulse 1.2s infinite; }
.going-chip span { font-family: var(--display); font-weight: 700; font-size: 11px; color: #0a0a0a; }
.club-hero .name { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1; }
.club-hero .sub { font-weight: 600; font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }
.club-detail-body { padding: 18px 22px 40px; }
.club-desc { font-weight: 500; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.62); }
.club-actions { display: flex; gap: 10px; margin-top: 18px; }
.going-btn { flex: 1; height: 52px; border-radius: 999px; background: var(--neon); border: none; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 0 22px rgba(182,255,59,0.55); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: #0a0a0a; transition: all .2s; }
.going-btn.on { background: rgba(182,255,59,0.14); color: var(--neon); box-shadow: none; border: 1px solid rgba(182,255,59,0.5); }
.share-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); background: var(--panel-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.offer-banner { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 16px; border: 1px solid rgba(182,255,59,0.4); background: rgba(182,255,59,0.06); }
.offer-banner .t { font-family: var(--display); font-weight: 700; font-size: 15px; flex: 1; }
.offer-banner .c { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--neon); font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery > * { width: 100%; height: 96px; border-radius: 12px; object-fit: cover; background: #1a1a1a; }

/* chat */
.chat { position: absolute; inset: 0; z-index: 850; display: flex; flex-direction: column; background: var(--bg); animation: slideup .26s cubic-bezier(.2,.8,.2,1); }
.chat-head { padding: calc(14px + var(--safe-top)) 16px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); flex-shrink: 0; }
.chat-back { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: none; }
.chat-head .pic { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(182,255,59,0.4); flex-shrink: 0; }
.chat-head .pic img { width: 100%; height: 100%; object-fit: cover; }
.chat-head .who { flex: 1; }
.chat-head .who .n { font-family: var(--display); font-weight: 700; font-size: 16px; }
.chat-head .who .o { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11px; color: var(--txt-2); }
.chat-head .who .o .d { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 7px var(--neon); }
.chat-msgs { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-row { display: flex; }
.msg-row.me { justify-content: flex-end; }
.bubble { max-width: 76%; padding: 11px 15px; font-weight: 500; font-size: 14px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; }
.bubble.them { background: var(--panel-2); color: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; }
.bubble.me { background: var(--neon); color: #0a0a0a; border-radius: 18px 18px 5px 18px; }
.chat-input { flex-shrink: 0; padding: 12px 14px calc(16px + var(--safe-bottom)); display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-input input { flex: 1; height: 44px; border-radius: 999px; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.1); padding: 0 18px; font-family: var(--body); font-weight: 500; font-size: 14px; color: #fff; outline: none; }
.chat-input input::placeholder { color: var(--txt-3); }
.chat-send { width: 44px; height: 44px; border-radius: 50%; background: var(--neon); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 16px rgba(182,255,59,0.6); flex-shrink: 0; }

/* =========================== MODAL (New Moment / Search / Menu) =========================== */
.modal-scrim { position: absolute; inset: 0; z-index: 900; background: rgba(4,4,4,0.7); backdrop-filter: blur(6px); display: flex; align-items: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { width: 100%; background: #101010; border-top-left-radius: 26px; border-top-right-radius: 26px; border: 1px solid var(--line); border-bottom: none; padding: 10px 22px calc(28px + var(--safe-bottom)); animation: slideup .28s cubic-bezier(.2,.8,.2,1); max-height: 88%; overflow-y: auto; }
.sheet .grab { width: 42px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.2); margin: 4px auto 16px; }
.sheet h3 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.sheet .sub { font-weight: 600; font-size: 13px; color: var(--txt-2); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: var(--txt-2); margin-bottom: 8px; }
.field select, .field input, .field textarea { width: 100%; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 13px 14px; color: #fff; font-family: var(--body); font-size: 14px; outline: none; resize: none; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: rgba(182,255,59,0.5); }
.sheet .submit { width: 100%; height: 52px; border-radius: 999px; background: var(--neon); border: none; color: #0a0a0a; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; cursor: pointer; box-shadow: 0 0 22px rgba(182,255,59,0.5); margin-top: 6px; }
.vibe-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vibe { padding: 9px 15px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.18); background: transparent; color: rgba(255,255,255,0.7); font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; }
.vibe.on { background: var(--neon); color: #0a0a0a; border-color: var(--neon); }

/* new-moment create sheet */
.loc-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(182,255,59,0.1); border: 1px solid rgba(182,255,59,0.35); color: var(--neon); font-family: var(--display); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; margin-bottom: 16px; }

/* moment detail / join sheet */
.moment-head { display: flex; align-items: center; gap: 13px; }
.moment-ava { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid var(--neon); flex-shrink: 0; }
.moment-host { font-family: var(--display); font-weight: 700; font-size: 18px; }
.moment-vibe { font-weight: 700; font-size: 12px; color: var(--neon); margin-top: 3px; }
.moment-going { margin-left: auto; text-align: center; }
.moment-going .n { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--neon); line-height: 1; }
.moment-going .l { font-weight: 700; font-size: 10px; letter-spacing: 0.08em; color: var(--txt-2); margin-top: 2px; }
.moment-mine { font-weight: 600; font-size: 13px; color: var(--txt-2); margin: 14px 0; }
.submit.ghost { background: transparent; color: var(--neon); border: 1.5px solid rgba(182,255,59,0.5); box-shadow: none; }

/* menu map credit */
.map-credit { font-weight: 600; font-size: 10.5px; color: var(--txt-3); text-align: center; margin-top: 18px; }

/* redeem QR pass */
.qr-label { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; color: var(--neon); text-align: center; margin-bottom: 8px; }
.modal-scrim .sheet .qr-label + h3 { text-align: center; }
.qr-card { width: 220px; max-width: 70%; aspect-ratio: 1; margin: 18px auto 14px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 0 40px rgba(182,255,59,0.25); }
.qr-img { width: 100%; height: 100%; display: block; }
.qr-img svg { display: block; border-radius: 6px; }
.qr-code { text-align: center; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; color: #fff; border: 1px dashed rgba(182,255,59,0.5); border-radius: 12px; padding: 10px; margin: 0 auto 14px; width: max-content; }
.qr-expiry { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--neon); font-variant-numeric: tabular-nums; }
.qr-expiry.expired { color: rgba(255,255,255,0.5); }
.qr-note { text-align: center; font-weight: 600; font-size: 11.5px; color: var(--txt-3); margin: 8px 0 16px; }
.wallet-row { display: flex; gap: 10px; margin: 16px 0 4px; }
.wallet-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 14px; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.14); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13px; cursor: pointer; }
.wallet-btn span:first-child { color: var(--neon); }
.wallet-btn:active { transform: scale(0.98); }
/* center the club name + subtitle in the QR sheet */
.modal-scrim .sheet:has(.qr-label) h3,
.modal-scrim .sheet:has(.qr-label) .sub { text-align: center; }

/* search results */
.search-result { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; cursor: pointer; }
.search-result .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(182,255,59,0.12); border: 1px solid rgba(182,255,59,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-result .n { font-family: var(--display); font-weight: 700; font-size: 15px; }
.search-result .k { font-weight: 600; font-size: 11px; color: var(--txt-2); margin-top: 2px; }
.empty { text-align: center; color: var(--txt-3); font-weight: 600; font-size: 14px; padding: 30px 0; }

/* =========================== TOAST =========================== */
.toast-wrap { position: absolute; bottom: calc(90px + var(--safe-bottom)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 950; pointer-events: none; padding: 0 20px; }
.toast { background: rgba(18,18,18,0.96); border: 1px solid rgba(182,255,59,0.4); color: #fff; font-family: var(--body); font-weight: 600; font-size: 13.5px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 18px rgba(182,255,59,0.15); display: flex; align-items: center; gap: 9px; animation: toastin .3s cubic-bezier(.2,.8,.2,1); max-width: 100%; }
.toast .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); flex-shrink: 0; }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* install banner */
.install-banner { position: absolute; left: 14px; right: 14px; bottom: calc(90px + var(--safe-bottom)); z-index: 940; background: rgba(16,16,16,0.97); border: 1px solid rgba(182,255,59,0.35); border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.7); animation: slideup .3s; }
.install-banner .txt { flex: 1; }
.install-banner .txt .t { font-family: var(--display); font-weight: 700; font-size: 14px; }
.install-banner .txt .s { font-weight: 600; font-size: 11.5px; color: var(--txt-2); margin-top: 2px; }
.install-banner button { border: none; cursor: pointer; font-family: var(--display); font-weight: 700; }
.install-banner .go { background: var(--neon); color: #0a0a0a; padding: 9px 16px; border-radius: 999px; font-size: 13px; }
.install-banner .x { background: none; color: var(--txt-2); font-size: 18px; padding: 4px 8px; }

/* island watermark behind map handled by leaflet; subtle vignette */
.map-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 500; box-shadow: inset 0 0 120px 30px rgba(0,0,0,0.55); }
