/* ============================================================
   App shell
   - Logged-in app: centered tablet-width (max 768px) on ALL sizes,
     with a fixed mobile header + bottom nav constrained to the shell.
   - Pre-login (public) pages: unchanged mobile column.
   ============================================================ */

[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ---------- Public / pre-login shell (unchanged) ---------- */
.app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100svh;
  background: var(--bg);
  position: relative;
}
@media (min-width: 520px) {
  .app-shell {
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 60px -20px rgba(24, 24, 27, .18);
  }
}
.app-shell > .screen { flex: 1 0 auto; min-height: 0; }

/* ---------- Logged-in app shell (centered 768, Timeleft-style) ---------- */
body.is-app { background: #F2F2F2; --app-header-h: 56px; --app-nav-h: 64px; }

.app-shell--app {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  overflow-x: clip;           /* nothing can bleed past the column width */
  /* The fixed header + nav are NOT inside this shell (see layout.php), so the
     clip here can't trap them. Keeping it safe anyway: don't add
     container-type/transform/filter to an ancestor of the header/nav. */
}

/* Safety net: long text in a flex row shrinks/ellipsizes instead of pushing siblings off-screen */
.app-shell--app .row > * { min-width: 0; }
.app-shell--app .badge-verified { flex-shrink: 0; }

/* Heights as variables so header/nav/content stay in sync.
   Defined on body.is-app (above) because header + nav sit outside the shell. */

/* Fixed top header — constrained to the shell, not the viewport */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  height: calc(var(--app-header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 40;
}
.app-header .wordmark {
  font-family: 'Baloo 2', 'Poppins', cursive;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.4px;
  color: var(--text);
}
.app-header .wordmark .irl { color: var(--verified); }
.app-header .header-action {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  color: var(--text); background: transparent; border: none; cursor: pointer; text-decoration: none;
}

/* Main content clears the fixed header and nav */
.app-main {
  padding-top: calc(var(--app-header-h) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--app-nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.app-main > .screen { flex: 1 0 auto; min-height: 0; }

/* Let the document scroll so Chrome's native pull-to-refresh works.
   Header + nav are already position:fixed, so they stay in place. */
body.is-app:not(.is-setup) {
  min-height: 100dvh;
}
body.is-app:not(.is-setup) .app-shell--app {
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
body.is-app:not(.is-setup) .app-main {
  flex: 1 1 auto; min-height: 0;
  -webkit-overflow-scrolling: touch;
}

/* Floating pill bottom nav (Jomo-style) — inset, rounded, soft shadow, constrained to the shell */
.is-app .nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 24px);
  max-width: 744px;
  height: var(--app-nav-h);
  margin: 0;
  padding: 6px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 10px 30px -8px rgba(24, 24, 27, 0.18), 0 2px 8px rgba(24, 24, 27, 0.06);
  z-index: 40;
}

/* ---------- Shared UI ---------- */
a.btn-active, a.btn-stroke, a.btn-danger { text-decoration: none; }

.btn-active:active, .btn-stroke:active, .btn-danger:active,
.navitem:active, .chip:active { transform: scale(.96); }
.btn-active, .btn-stroke, .btn-danger, .navitem, .chip { transition: transform .12s ease; }

.input { background: var(--bg); color: var(--text); outline: none; transition: border-color .15s ease; }
.input::placeholder { color: var(--text-secondary); opacity: 1; }
.input:focus { border-color: var(--text); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 62px; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  font: 500 13px 'Poppins', sans-serif; color: var(--text-secondary); padding: 8px;
}

.flash {
  margin: 12px 20px 0;
  padding: 12px 14px;
  border-radius: var(--r-input);
  font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.flash--error { background: #FDECEC; color: #7F1D1D; border-color: #F6C9C9; }
.flash--info  { background: #EEF2FF; color: #1E3A8A; border-color: #D4DDFB; }

/* Bottom nav items — active one sits in its own soft rounded capsule (Jomo-style) */
.nav .navitem {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--text-secondary); font-size: 11px; font-weight: 500;
  flex: 1; border-radius: 18px;
  transition: color .15s ease;
}
.nav .navitem.on { color: var(--text); }
.nav .navitem > svg, .nav .navitem > span:not(.nav-pill) { position: relative; z-index: 1; }
/* The active capsule — glides between tabs via a shared view transition */
.nav-pill { position: absolute; inset: 0; background: var(--surface); border-radius: 18px; z-index: 0; }
.nav .navitem svg { display: block; }

/* ---------- Overlays: centered + capped to the shell (backdrop full viewport) ---------- */
.overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(24, 24, 27, .45);
  z-index: 60;
  display: flex; justify-content: center; align-items: flex-end;
}
.overlay-backdrop.center { align-items: center; }
.sheet, .modal, .drawer {
  width: 100%; max-width: 768px; margin: 0 auto;
  background: var(--bg);
}
.sheet {
  border-radius: 24px 24px 0 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.modal { border-radius: var(--r-card); margin: 20px; width: calc(100% - 40px); max-width: 728px; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--app-nav-h, 64px) + 16px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 40px); max-width: 728px;
  background: var(--text); color: #fff;
  padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  z-index: 70;
}
.sheet .grab { width: 38px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 16px; }

/* ============================================================
   Onboarding / profile setup chrome
   ============================================================ */
.setup-top {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 768px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
  background: var(--bg); z-index: 40;
}
.setup-top-row { display: flex; align-items: center; justify-content: space-between; }
.setup-back {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); border-radius: 999px; text-decoration: none;
}
.setup-back--ghost { visibility: hidden; }
.setup-count { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.progress { margin-top: 10px; height: 4px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width .35s ease; }

.setup-main {
  display: block;
  padding-top: calc(env(safe-area-inset-top, 0px) + 76px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 100px);
  min-height: 100dvh;
}
.setup-body { padding: calc(env(safe-area-inset-top, 0px) + 24px) var(--screen-x) 0; }

.setup-foot {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 768px;
  padding: 14px var(--screen-x) calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 72%, rgba(255, 255, 255, 0));
  z-index: 40;
}
.setup-foot .btn-active, .setup-foot .btn-stroke { width: 100%; }
.btn-active:disabled { opacity: .4; }

.step-h { font-size: 26px; font-weight: 500; line-height: 1.2; letter-spacing: -.3px; margin-top: 6px; }
.step-sub { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.field { margin-top: 20px; }
.field-hint { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; }
.input-area {
  display: block; height: auto; min-height: 92px; padding: 12px 14px;
  line-height: 1.5; resize: none; font: 400 15px 'Poppins', sans-serif;
}
.input.select {
  display: block; height: 48px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding-right: 40px; font: 400 15px 'Poppins', sans-serif;
}

/* Interests chips */
.chipwrap { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.chip-emoji { font-size: 14px; }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; width: 100%; max-width: 340px; }
.photo-slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.photo-slot.filled { background: var(--surface); }
.photo-slot.filled img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slot.add {
  flex-direction: column; gap: 6px; background: var(--surface);
  border: 1.5px dashed var(--border-strong); color: var(--text-secondary);
  font-size: 12px; font-weight: 500; cursor: pointer;
}
.photo-slot.empty { background: var(--surface); border: 1px solid var(--border); opacity: .5; }
.photo-main {
  position: absolute; left: 8px; bottom: 8px; background: rgba(24, 24, 27, .82); color: #fff;
  font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 999px;
}
.photo-del-form { position: absolute; top: 6px; right: 6px; margin: 0; }
.photo-del {
  width: 26px; height: 26px; border-radius: 999px; border: none;
  background: rgba(24, 24, 27, .6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Mode cards */
.mode-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.mode-card {
  position: relative; display: block; border: 1.5px solid var(--border);
  border-radius: var(--r-card); padding: 18px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.mode-card .mode-emoji { font-size: 26px; display: block; }
.mode-card .mode-title { display: block; font-size: 17px; font-weight: 500; margin-top: 8px; }
.mode-card .mode-desc { display: block; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; margin-top: 4px; }
.mode-card .mode-check {
  position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--text); display: none; align-items: center; justify-content: center;
}
.mode-card.on { border-color: var(--text); background: var(--surface); }
.mode-card.on .mode-check { display: flex; }

/* Profile photo preview (home landing) */
.profile-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.profile-photo { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo.main { grid-column: span 2; grid-row: span 2; }

/* ============================================================
   Location + intent + deck (Stage 4)
   ============================================================ */
.loc-badge {
  width: 84px; height: 84px; border-radius: 999px; background: var(--explore);
  display: flex; align-items: center; justify-content: center;
}

/* Intent tiles */
.intent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.intent-tile {
  position: relative; background: var(--tile-bg); color: var(--tile-ink);
  border-radius: var(--r-card); padding: 18px 16px; min-height: 104px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, border-color .15s ease;
}
.intent-tile:active { transform: scale(.97); }
.intent-emoji { font-size: 26px; }
.intent-label { font-size: 16px; font-weight: 500; }
.intent-check {
  position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--tile-ink); display: none; align-items: center; justify-content: center;
}
.intent-tile.on { border-color: var(--tile-ink); }
.intent-tile.on .intent-check { display: flex; }

/* Deck */
.deck-wrap { display: flex; flex-direction: column; flex: 1; padding: 10px var(--screen-x) 0; min-height: 0; }
.deck-mode { display: flex; gap: 6px; background: var(--surface); border-radius: 12px; padding: 4px; margin: 0 0 10px; }
.dm-btn { flex: 1; border: none; background: transparent; padding: 10px 0; border-radius: 9px; font: 600 14px 'Poppins', sans-serif; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.dm-btn.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(24,24,27,.1); }
.dm-btn:active { transform: scale(.98); }
.deck-mode-hint { font-size: 12.5px; color: var(--text-secondary); text-align: center; margin: 0 2px 12px; line-height: 1.4; }
.deck-mode-hint strong { color: var(--text); font-weight: 600; }

/* The Host — proactive nudge card at the top of Discover */
.host-card {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--verified);
  border-radius: var(--r-card); padding: 14px 38px 14px 14px; margin: 2px 0 14px;
  box-shadow: 0 4px 14px rgba(24,24,27,.06);
  animation: hostIn .22s ease both;
}
.host-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--surface);
}
.host-body { min-width: 0; flex: 1; }
.host-kicker {
  display: block; font: 600 11px 'Poppins', sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: var(--verified); margin-bottom: 3px;
}
.host-copy { margin: 0 0 10px; font: 500 14px/1.45 'Poppins', sans-serif; color: var(--text); }
.host-cta-wrap { margin: 0; }
.host-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px;
  border-radius: 999px; border: none; background: var(--text); color: #fff;
  font: 600 13.5px 'Poppins', sans-serif; cursor: pointer; text-decoration: none;
}
.host-cta:active { transform: scale(.97); }
.host-x {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border: none; background: transparent;
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 8px;
}
.host-x:active { transform: scale(.9); }
.host-card--gone { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; }
@keyframes hostIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .host-card { animation: none; }
  .host-card--gone { transition: none; }
}
.deck-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 12px;
}
.deck-sub-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-sub-text strong { color: var(--text); font-weight: 500; }
.deck-edit { color: var(--text); font-weight: 500; text-decoration: none; flex-shrink: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-city, .deck-plan { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0; max-width: 49%; padding: 6px 10px 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font: 500 13.5px 'Poppins', sans-serif; color: var(--text); text-decoration: none; cursor: pointer; }
.deck-city span, .deck-plan span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-city svg, .deck-plan svg { flex-shrink: 0; color: var(--text-secondary); }
.deck-city:active, .deck-plan:active { transform: scale(.97); }
.city-list { max-height: min(46vh, 360px); overflow: auto; }
.city-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; background: transparent; border: none; border-top: 1px solid var(--border); font: 400 16px 'Poppins', sans-serif; color: var(--text); cursor: pointer; text-align: left; }
.city-opt:first-child { border-top: none; }
.city-opt:active { background: rgba(0, 0, 0, .05); }
.city-opt.on { color: var(--text-secondary); }
.city-cur { font-size: 12px; font-weight: 600; color: var(--verified); flex-shrink: 0; }

.deck { position: relative; flex: 1; min-height: 360px; }
.swipe-card {
  position: absolute; inset: 0; background: var(--bg); border-radius: var(--r-swipe);
  border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 12px 32px -14px rgba(24, 24, 27, .35);
  transform-origin: center; will-change: transform;
  transition: transform .28s ease, opacity .28s ease;
}
.swipe-card:nth-last-child(2) { transform: scale(.955) translateY(12px); }
.swipe-card:nth-last-child(3) { transform: scale(.91) translateY(24px); }
.swipe-card:nth-last-child(n+4) { transform: scale(.9) translateY(24px); opacity: 0; }
.card-visual {
  position: relative; flex: 1; background: var(--card-bg); color: var(--card-ink);
  display: flex; align-items: center; justify-content: center;
}
.card-emoji-big { font-size: 92px; line-height: 1; filter: saturate(1.1); }
.card-type {
  position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .72); color: var(--card-ink);
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-dist {
  position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, .72); color: var(--card-ink);
  font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-meta { padding: 16px 18px 20px; background: var(--bg); }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-name { font-size: 20px; font-weight: 500; }
.card-time { font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.card-line { margin-top: 6px; font-size: 14px; color: var(--text-secondary); line-height: 1.45; }

/* Swipe feedback stamps */
.swipe-card::before, .swipe-card::after {
  position: absolute; top: 20px; font-size: 22px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 14px; border-radius: 10px; border: 3px solid; opacity: 0; transition: opacity .1s ease; z-index: 3;
}
.swipe-card::after { content: "IN"; right: 18px; color: var(--walk-ink); border-color: var(--walk-ink); transform: rotate(12deg); }
.swipe-card::before { content: "PASS"; left: 18px; color: var(--danger); border-color: var(--danger); transform: rotate(-12deg); }
.swipe-card.show-like::after { opacity: 1; }
.swipe-card.show-pass::before { opacity: 1; }

.deck-actions { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 18px 0 6px; }
.deck-btn {
  width: 60px; height: 60px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(24, 24, 27, .3); transition: transform .12s ease;
}
.deck-btn:active { transform: scale(.92); }
.deck-btn.pass { color: var(--text-secondary); }
.deck-btn.like { color: var(--drinks-ink); width: 66px; height: 66px; }

.deck-empty {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px;
}
.deck-actions[hidden] { display: none; }
.card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.14) 0%, rgba(0,0,0,0) 26%);
  pointer-events: none;
}
.deck-empty-icon { font-size: 44px; }
.deck-empty-h { font-size: 18px; font-weight: 500; margin-top: 22px; }
.deck-empty-sub { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-top: 6px; max-width: 300px; }
.deck-empty-cta { max-width: 260px; margin: 18px auto 0; }

/* ============================================================
   Logo wordmark (used in every chrome)
   ============================================================ */
.wordmark {
  font-family: 'Baloo 2', 'Poppins', cursive;
  font-weight: 800; letter-spacing: -.5px; color: var(--text); font-size: 20px; line-height: 1;
}
.wordmark .irl { color: var(--verified); }
.app-header .wordmark { font-size: 22px; }

/* ============================================================
   Motion: cross-page slide + press feedback on every control
   ============================================================ */
/* MPA view transitions removed: on iOS Safari a fixed element caught in a
   cross-document transition could get stuck following scroll. Pages swap
   plainly now; the bottom nav stays rock-solid fixed. */

.btn-active, .btn-stroke, .btn-danger, .pick-tile, .seg-item, .pill-btn,
.mode-card, .deck-edit, .contact-link, .intent-tile, .chip, .navitem, .deck-btn, .setup-back {
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-active:active, .btn-stroke:active, .btn-danger:active, .pick-tile:active, .seg-item:active,
.pill-btn:active, .mode-card:active, .deck-edit:active, .contact-link:active, .setup-back:active { transform: scale(.97); }
.navitem:active, .deck-btn:active, .chip:active, .intent-tile:active { transform: scale(.94); }

/* ============================================================
   Plans tab: create form
   ============================================================ */
.plan-form { margin-top: 4px; }
/* Plans: New plan / Live now toggle + step flow */
.plan-flow .btn-active { width: 100%; }
.plan-step-n { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--text-secondary); margin-top: 4px; }
.plan-flow .step-h { margin-top: 4px; margin-bottom: 4px; }
.step-back { border: none; background: none; color: var(--text-secondary); font: 500 14px 'Poppins', sans-serif; cursor: pointer; padding: 0; margin: 0 0 10px; }
.step-back:active { transform: translateX(-2px); }
/* Step 2 as a pushed screen with a back arrow */
.plan-screen-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.plan-back { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; flex-shrink: 0; }
.plan-back:active { transform: scale(.94); }
.plan-screen-title { font-size: 16px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  [data-pview="step2"]:not([hidden]) { animation: planPush .28s cubic-bezier(.22,.61,.36,1); }
}
@keyframes planPush { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
.plan-live-row { margin-bottom: 10px; }
.plan-live-info { flex: 1; min-width: 0; }
.plan-live-label { font-weight: 500; font-size: 14px; }
.plan-live-note { font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-live-end { flex-shrink: 0; }
.pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.pick-tile {
  position: relative; background: var(--surface); border: 2px solid transparent; border-radius: 18px;
  padding: 16px 8px 13px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; min-height: 120px; justify-content: space-between;
}
.pick-tile:has(input:checked) { border-color: var(--border-strong); background: var(--bg); box-shadow: 0 8px 20px -12px rgba(24,24,27,.28); }
.intent-pick .intent-pick-check { position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 999px; background: var(--text); display: none; align-items: center; justify-content: center; }
.pick-tile.intent-pick:has(input:checked) .intent-pick-check { display: flex; }
.pick-illus { position: relative; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
.pick-illus-main {
  width: 46px; height: 46px; border-radius: 15px; background: var(--c);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  transform: rotate(-7deg); box-shadow: 0 5px 12px -5px rgba(24,24,27,.28);
}
.pick-illus-dot { display: none; }
.pick-tile:has(input:checked) .pick-illus-dot { border-color: var(--bg); }
.pick-label { font-size: 13px; font-weight: 500; color: var(--text); }

.seg { display: flex; gap: 6px; background: var(--surface); border-radius: 12px; padding: 4px; margin-top: 6px; }
.seg-item { flex: 1; text-align: center; padding: 9px 0; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-secondary); cursor: pointer; }
.seg-item:has(input:checked) { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(24,24,27,.1); }

.pill-btn { height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg); color: var(--text); font: 500 13px 'Poppins'; cursor: pointer; }

/* ============================================================
   Matches tab + contact sharing
   ============================================================ */
.match-card { border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; margin-top: 14px; }
.match-top { display: flex; align-items: center; gap: 12px; }
.match-ava { width: 54px; height: 54px; border-radius: 999px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 500; color: var(--text-secondary); font-size: 20px; }
.match-ava img { width: 100%; height: 100%; object-fit: cover; }
.match-ava--sm { width: 44px; height: 44px; font-size: 17px; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-weight: 500; font-size: 16px; }
.match-name.sm { font-size: 14px; }
.match-sub { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }
.past-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.past-row:last-child { border-bottom: none; }
.past-pill { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.past-pill--met { background: var(--walk); color: var(--walk-ink); }
.past-pill--conn { background: var(--explore); color: var(--explore-ink); }
.past-pill--missed, .past-pill--exp { background: var(--surface); color: var(--text-secondary); }
.match-note { margin-top: 12px; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.match-wait { margin-top: 14px; font-size: 13.5px; color: var(--walk-ink); background: var(--walk); padding: 10px 12px; border-radius: 10px; }
.match-review { margin-top: 14px; }
.match-vf { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
.match-vf.is-ok { color: var(--verified); border-color: var(--verified); }
.match-vf svg { flex-shrink: 0; }
.match-review-hint { font-size: 13px; color: var(--text-secondary); margin-top: 10px; line-height: 1.45; }
.match-accept-row { display: flex; gap: 10px; margin-top: 12px; }
.match-accept-row form { flex: 1; margin: 0; }
.match-accept-row .btn-stroke, .match-accept-row .btn-active { width: 100%; }
.safety-share { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 10px 14px; border-radius: 999px; background: var(--walk); color: var(--walk-ink); border: none; font: 500 13.5px 'Poppins', sans-serif; cursor: pointer; }
.safety-share svg { flex-shrink: 0; }
.safety-share:active { transform: scale(.98); }
.safe-link { display: flex; gap: 8px; padding: 12px 14px; }
.safe-link .input { flex: 1; min-width: 0; font-size: 13px; }
.safe-link .btn-stroke { flex-shrink: 0; width: auto; height: 46px; padding: 0 18px; }
.meet-ask { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.meet-ask-q { font-size: 15px; font-weight: 500; color: var(--text); }
.meet-ask-row { display: flex; gap: 10px; margin-top: 10px; }
.meet-ask-row form { flex: 1; margin: 0; }
.meet-ask-row .btn-active, .meet-ask-row .btn-stroke { width: 100%; }
.share-form { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.share-input { height: 44px; }
.contact-box { margin-top: 14px; background: var(--surface); border-radius: 12px; padding: 14px; }
.contact-h { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; }
.contact-link { display: block; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.contact-link:last-child { border-bottom: none; }

/* ============================================================
   Match overlay modal
   ============================================================ */
.match-modal { padding: 30px 22px 22px; text-align: center; }
.match-emoji { font-size: 50px; line-height: 1; }
.match-h { font-size: 23px; font-weight: 500; margin-top: 10px; }
.match-sub { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin: 8px 0 20px; }
.match-modal .btn-active, .match-modal .btn-stroke { width: 100%; }

/* ============================================================
   Settings + safety (Stage 6)
   ============================================================ */
.set-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin: 26px 0 10px; }
.set-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
  text-decoration: none; color: var(--text); font-size: 15px; font-weight: 500; background: var(--bg);
}
.set-row--btn { cursor: pointer; font-family: 'Poppins', sans-serif; }
.set-row--danger { color: var(--danger); }
.set-chevron { color: var(--text-secondary); font-size: 18px; }

.seg--btns { margin-top: 6px; }
.seg-btn { flex: 1; border: none; background: transparent; padding: 11px 0; border-radius: 9px; font: 500 14px 'Poppins', sans-serif; color: var(--text-secondary); cursor: pointer; }
.seg-btn.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(24,24,27,.1); }

.report-reasons { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.report-reason { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; }
.report-reason input { accent-color: var(--text); width: 18px; height: 18px; flex-shrink: 0; }
.report-reason:has(input:checked) { border-color: var(--text); background: var(--surface); }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--text); }

.match-safety { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--surface); }
.match-safety-link { background: none; border: none; padding: 0; color: var(--text-secondary); font: 500 13px 'Poppins', sans-serif; cursor: pointer; text-decoration: none; }
.match-safety-sep { color: var(--border-strong); }
.match-safety-form { margin: 0; display: inline; }

/* ============================================================
   Verification (Stage 7)
   ============================================================ */
.vcheck { display: inline-flex; vertical-align: middle; margin-left: 5px; }
.vcheck svg { display: block; }
.badge-pending { display: inline-flex; align-items: center; background: var(--surface); color: var(--text-secondary); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.badge-getverified { display: inline-flex; align-items: center; gap: 4px; background: #EEF2FF; color: var(--verified); font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; border: 1px solid #D4DDFB; }

.verify-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 30px; }
.verify-badge-big { width: 76px; height: 76px; border-radius: 999px; background: var(--verified); display: flex; align-items: center; justify-content: center; }
.verify-badge-big--pending { background: var(--surface); font-size: 34px; }
.verify-h { font-size: 19px; font-weight: 500; margin-top: 16px; }
.verify-sub { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-top: 6px; max-width: 300px; }
.pose-card { margin-top: 20px; background: var(--surface); border-radius: var(--r-card); padding: 18px; text-align: center; }
.pose-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.pose-text { font-size: 18px; font-weight: 500; margin-top: 6px; }

/* ============================================================
   Subscriptions + likes-you (Stage 9)
   ============================================================ */
.plan-active { background: var(--walk); color: var(--walk-ink); padding: 14px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-top: 16px; }
.tier-card { border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; margin-top: 16px; }
.tier-card--current { border-color: var(--text); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; }
.tier-name { font-size: 19px; font-weight: 600; }
.tier-price { font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.tier-perks { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.tier-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tier-perks li svg { flex-shrink: 0; }
.tier-card .btn-active, .tier-card .btn-stroke { width: 100%; }

.likes-banner { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #EEF2FF; color: var(--verified); border: 1px solid #D4DDFB; border-radius: 12px; padding: 12px 14px; margin-top: 14px; text-decoration: none; font-size: 14px; font-weight: 500; }

.likes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.like-card { display: flex; flex-direction: column; align-items: center; }
.like-photo, .like-cell { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.like-photo img, .like-cell img { width: 100%; height: 100%; object-fit: cover; }
.like-ava-letter { font-size: 28px; font-weight: 600; color: var(--text-secondary); }
.like-name { font-size: 14px; font-weight: 500; margin-top: 8px; }
.like-sub { font-size: 12.5px; color: var(--text-secondary); }
.likes-grid--locked { filter: blur(7px); pointer-events: none; opacity: .9; }
.likes-lock { text-align: center; margin-top: -34px; position: relative; z-index: 1; background: linear-gradient(to top, var(--bg) 58%, transparent); padding-top: 44px; }
.likes-lock-h { font-size: 17px; font-weight: 600; }
.likes-lock-sub { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* ============================================================
   Notifications (bell + feed + 3D empty state)
   ============================================================ */
.header-circ { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--bg); text-decoration: none; flex-shrink: 0; }
.header-circ:active { transform: scale(.92); transition: transform .12s ease; }
.header-circ.has-dot::after { content: ""; position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 999px; background: var(--danger); border: 2px solid var(--bg); }

.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.notif-row:last-child { border-bottom: none; }
.notif-ic { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; flex-shrink: 0; }
.notif-ic img { width: 100%; height: 100%; object-fit: cover; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font: 500 15px 'Poppins', sans-serif; color: var(--text); }
.notif-sub { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); }
.notif-chev { flex-shrink: 0; color: var(--text-secondary); }

/* ============================================================
   Support tickets (user)
   ============================================================ */
.ticket { border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-subj { font-weight: 500; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-status { flex-shrink: 0; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--text-secondary); }
.ticket-status.s-open { background: #FCF2DC; color: #8A5B00; }
.ticket-status.s-in_progress { background: #EAF0FE; color: var(--verified); }
.ticket-status.s-resolved { background: var(--walk); color: var(--walk-ink); }
.ticket-meta { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }
.ticket-reply { margin-top: 10px; background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; }
.ticket-reply-h { display: block; font-weight: 500; font-size: 12px; color: var(--text-secondary); margin-bottom: 3px; }

/* Screen-level form utilities */
.screen-form { margin-top: 18px; }
.form-field { margin-top: 14px; }
.form-actions { margin-top: 18px; }
.form-cancel { margin-top: 10px; text-decoration: none; }
.form-section { margin-top: 28px; }
.form-hint-center { text-align: center; margin-top: 12px; }
.form-muted { font-weight: 400; }
.form-check { margin-top: 16px; }
.likes-cta { max-width: 260px; margin: 16px auto 0; }
.tab-empty-cta { max-width: 260px; margin-top: 18px; }

/* ============================================================
   iOS-style action sheet (Log out / Delete account)
   ============================================================ */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(24, 24, 27, .4); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s ease; }
.sheet-backdrop.show { opacity: 1; }
.action-sheet { width: 100%; max-width: 748px; margin: 0 auto; padding: 0 8px calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; transform: translateY(24px); transition: transform .34s cubic-bezier(.22,.61,.36,1); }
.sheet-backdrop.show .action-sheet { transform: none; }
.as-group { background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; overflow: hidden; }
.as-head { padding: 17px 18px 15px; text-align: center; border-bottom: 1px solid var(--border); }
.as-icon { font-size: 30px; display: block; margin-bottom: 6px; }
.as-title { font-size: 16px; font-weight: 600; color: var(--text); }
.as-msg { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.45; }
.as-group form { margin: 0; }
.as-btn { width: 100%; height: 56px; background: transparent; border: none; font: 400 19px 'Poppins', sans-serif; color: var(--verified); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.as-btn:active { background: rgba(0, 0, 0, .05); }
.as-btn--active { font-weight: 600; color: var(--text); }
.as-group .as-btn + .as-btn, .as-group form + form .as-btn { border-top: 1px solid var(--border); }
.as-destructive { color: var(--danger); font-weight: 500; }
.as-cancel { background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ============================================================
   Profile — grouped cards
   ============================================================ */
.pf-title { font-size: 30px; font-weight: 600; letter-spacing: -.5px; margin: 4px 0 18px; }
.pf-head { display: flex; align-items: center; gap: 16px; }
.pf-ava { width: 68px; height: 68px; border-radius: 999px; overflow: hidden; background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--text-secondary); font-size: 24px; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; }
.pf-name { font-size: 19px; font-weight: 600; }
.pf-edit { display: inline-flex; align-items: center; gap: 2px; color: var(--text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; margin-top: 3px; }
.pf-stats { display: flex; gap: 20px; margin: 16px 2px 6px; font-size: 15px; }
.pf-stats b { font-weight: 600; }
.pf-sec { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin: 24px 2px 10px; text-transform: uppercase; letter-spacing: .3px; }
.pf-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pf-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--text); background: none; border: none; width: 100%; cursor: pointer; font: inherit; text-align: left; }
.pf-row + .pf-row, .pf-card form + form .pf-row, .pf-card a + form .pf-row, .pf-card form + a.pf-row { border-top: 1px solid var(--border); }
.pf-card > form:not(:first-child) .pf-row { border-top: 1px solid var(--border); }
.pf-row:active { background: var(--surface); }
.pf-ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; }
.pf-row-main { flex: 1; min-width: 0; }
.pf-row-title { font-size: 15px; font-weight: 400; display: block; color: var(--text); }
.pf-row-sub { font-size: 13px; color: var(--text-secondary); margin-top: 1px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-row-chev { color: var(--border-strong); flex-shrink: 0; }

/* ============================================================
   v2 screens (map, plans, interest loop) in the original design system:
   white shell, Poppins 400/500, greyscale, colour only on intent cards,
   blue only for the verified badge, black main button + stroke secondary.
   ============================================================ */

/* Headings used by the v2 screens */
.bp-label{font:500 13px 'Poppins',sans-serif;color:var(--text-secondary);margin:22px 0 10px;}

/* Buttons: two styles only. Main = black fill, secondary = stroke. */
.bp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;cursor:pointer;text-decoration:none;font:500 14px 'Poppins',sans-serif;padding:0 16px;height:40px;border-radius:var(--r-btn);white-space:nowrap;transition:transform .12s ease;}
.bp-btn:active{transform:scale(.96);}
.bp-btn-blue,.bp-btn-gold{background:var(--text);color:#fff;}
.bp-btn-ghost{background:var(--bg);color:var(--text);border:1.5px solid var(--border-strong);}
.bp-btn-lg{height:var(--btn-height);width:100%;font-size:15px;}
.bp-btn:disabled{opacity:.5;}

/* Small tags (neutral) */
.bp-badge{display:inline-flex;align-items:center;background:var(--surface);color:var(--text-secondary);font:500 12px 'Poppins',sans-serif;padding:4px 10px;border-radius:999px;white-space:nowrap;}
.bp-badge-blue{background:var(--text);color:#fff;}

/* Stat / status card */
.bp-dash{border-radius:var(--r-card);background:var(--surface);padding:16px 18px;color:var(--text);display:flex;align-items:center;gap:14px;}
.bp-dash-n{font:500 30px 'Poppins',sans-serif;line-height:1;}
.bp-dash-l{font:500 15px 'Poppins',sans-serif;line-height:1.2;}
.bp-dash-sub{font:400 13px 'Poppins',sans-serif;color:var(--text-secondary);display:block;margin-top:3px;}

/* Photo tiles */
.bp-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;}
.bp-tile{position:relative;display:block;aspect-ratio:1/1;border-radius:var(--r-card);overflow:hidden;background:var(--surface);text-decoration:none;color:#fff;}
.bp-tile img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),rgba(0,0,0,.04) 55%);}
.bp-tile-txt{position:absolute;left:12px;right:12px;bottom:12px;z-index:1;}
.bp-tile-h{font:500 16px 'Poppins',sans-serif;line-height:1.15;}
.bp-tile-s{font:400 12.5px 'Poppins',sans-serif;opacity:.92;margin-top:4px;}
.bp-tile .bp-badge{position:absolute;top:10px;left:10px;z-index:1;background:rgba(255,255,255,.92);color:var(--text);}

/* Chips */
.tb-chips{display:flex;gap:8px;overflow-x:auto;margin:16px 0 2px;padding-bottom:4px;scrollbar-width:none;}
.tb-chips::-webkit-scrollbar{display:none;}
.tb-chip{flex-shrink:0;padding:8px 14px;border-radius:999px;background:#fff;border:1.5px solid var(--border-strong);font:500 13px 'Poppins',sans-serif;color:var(--text);text-decoration:none;white-space:nowrap;}
.tb-chip.on{background:var(--text);border-color:var(--text);color:#fff;}

/* Row panels */
.bp-panel{background:var(--bg);border:1px solid var(--border);border-radius:var(--r-card);padding:4px 10px;}
.bp-row{display:flex;align-items:center;gap:12px;padding:12px 4px;}
.bp-row + .bp-row{border-top:1px solid var(--surface);}
.bp-row-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:inherit;}
.bp-thumb{width:46px;height:46px;border-radius:50%;overflow:hidden;background:var(--surface);flex-shrink:0;}
.bp-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-row-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.bp-row-title{font:500 15px 'Poppins',sans-serif;color:var(--text);line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.bp-row-sub{display:flex;align-items:center;gap:6px;min-width:0;font:400 13px 'Poppins',sans-serif;color:var(--text-secondary);}
.bp-row-sub > span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.bp-row-sub .bp-badge{flex-shrink:0;}
.bp-row form{margin:0;flex-shrink:0;}
.bp-row .bp-btn{height:36px;padding:0 14px;font-size:13px;}
.tb-screen{padding-bottom:110px;}

/* Floating main action */
.bp-fab{position:fixed;right:18px;bottom:calc(var(--app-nav-h,64px) + 24px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border-radius:50%;background:var(--text);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1;text-decoration:none;box-shadow:0 10px 24px -8px rgba(24,24,27,.4);z-index:45;transition:transform .12s ease;}
.bp-fab:active{transform:scale(.94);}

/* Plan page */
.bp-cover{position:relative;border-radius:var(--r-card);overflow:hidden;aspect-ratio:16/11;background:var(--surface);margin-bottom:16px;}
.bp-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-cover .bp-badge{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.92);color:var(--text);}
.bp-cover .tb-card-tag{position:absolute;top:12px;left:12px;}
.tb-card-tag{display:inline-flex;align-items:center;gap:5px;background:rgba(255,255,255,.92);color:var(--text);font:500 12px 'Poppins',sans-serif;padding:5px 11px;border-radius:999px;}
.tb-note{font-size:15px;color:var(--text);margin-top:12px;font-style:italic;}
.tb-members{display:flex;flex-direction:column;}
.tb-member{display:flex;align-items:center;gap:12px;padding:10px 4px;}
.tb-member + .tb-member{border-top:1px solid var(--surface);}
.tb-member-ava{width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--surface);display:flex;align-items:center;justify-content:center;font:500 16px 'Poppins',sans-serif;color:var(--text-secondary);flex-shrink:0;}
.tb-member-ava img{width:100%;height:100%;object-fit:cover;}
.tb-member-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.tb-member-name{font:500 15px 'Poppins',sans-serif;color:var(--text);display:inline-flex;align-items:center;gap:5px;}
.tb-detail-head{margin-bottom:4px;}
.tb-detail-meta{font:400 14px 'Poppins',sans-serif;color:var(--text-secondary);margin-top:4px;}
.pf-page-title--sm{font-size:22px;margin:0;}
.tb-action-btn{height:36px;padding:0 12px;font-size:13px;border-radius:12px;}
.tb-safety-center{justify-content:center;margin-top:18px;border-top:0;padding-top:0;}
.tb-safety-btn{background:none;border:none;padding:0;cursor:pointer;}
.tb-disabled{opacity:.6;cursor:default;}
.tb-ig-hint{text-align:center;font-size:12.5px;color:var(--text-secondary);margin-top:10px;}
.tb-more-link{margin-top:8px;}
.tb-actions{margin-top:22px;}
.tb-you-note{text-align:center;color:var(--text-secondary);font-size:14px;margin-bottom:10px;}
.tb-empty{text-align:center;padding:22px 0;}
.tb-empty-h{font:500 17px 'Poppins',sans-serif;margin-top:14px;}
.tb-empty-sub{color:var(--text-secondary);font-size:14px;margin-top:6px;}
.bp-plan{margin-top:16px;padding:16px 18px;border-radius:var(--r-card);background:var(--surface);color:var(--text);}
.bp-plan-h{font:500 17px 'Poppins',sans-serif;line-height:1.2;}
.bp-plan-sub{font:400 13.5px 'Poppins',sans-serif;color:var(--text-secondary);margin-top:5px;line-height:1.45;}
.bp-venue,.bp-ig{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px;border-radius:var(--r-card);background:var(--bg);border:1px solid var(--border);text-decoration:none;color:inherit;}
.bp-venue .bp-btn,.bp-ig .bp-btn{height:38px;padding:0 14px;font-size:13px;flex-shrink:0;}
.bp-venue-pin,.bp-ig-ic{width:40px;height:40px;border-radius:12px;background:var(--surface);color:var(--text-secondary);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.bp-venue-pin.big{width:44px;height:44px;}
.bp-venue-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.bp-venue-name{font:500 15px 'Poppins',sans-serif;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bp-safety{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px;}
.bp-safety form{margin:0;}
.bp-safety .bp-btn{width:100%;height:42px;padding:0 6px;font-size:12.5px;}

/* Start a plan */
.bp-pick{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;}
.bp-pick label{position:relative;display:block;aspect-ratio:1/1;border-radius:var(--r-card);overflow:hidden;cursor:pointer;}
.bp-pick img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-pick label::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.58),rgba(0,0,0,.05) 55%);}
.bp-pick-l{position:absolute;left:10px;right:10px;bottom:9px;z-index:1;color:#fff;font:500 14px 'Poppins',sans-serif;line-height:1;}
.bp-pick-ring{display:none;position:absolute;inset:0;border:2px solid var(--text);border-radius:var(--r-card);z-index:2;box-shadow:inset 0 0 0 2px #fff;}
.bp-pick input:checked ~ .bp-pick-ring{display:block;}
.bp-seg{display:flex;gap:8px;flex-wrap:wrap;}
.bp-seg label{cursor:pointer;}
.bp-seg label span{display:inline-flex;align-items:center;height:38px;padding:0 15px;border-radius:999px;background:#fff;border:1.5px solid var(--border-strong);font:500 13.5px 'Poppins',sans-serif;color:var(--text);}
.bp-seg input:checked + span{background:var(--text);border-color:var(--text);color:#fff;}
.bp-input{width:100%;height:46px;border:1px solid var(--border);border-radius:var(--r-input);padding:0 14px;font:400 15px 'Poppins',sans-serif;background:var(--bg);outline:none;color:var(--text);}
.bp-input:focus{border-color:var(--text);}
.bp-plus{margin-top:22px;padding:16px;border-radius:16px;background:var(--surface);border:1px dashed var(--border-strong);}
.bp-plus-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font:500 15px 'Poppins',sans-serif;color:var(--text);}
.bp-plus-lock{font:400 13.5px 'Poppins',sans-serif;color:var(--text-secondary);line-height:1.5;margin:6px 0 12px;}
.bp-plus-lock--flush{margin:0 0 8px;}
.tb-check{display:flex;align-items:center;gap:10px;margin-top:14px;font:500 14px 'Poppins',sans-serif;color:var(--text);}
.tb-check input{width:18px;height:18px;accent-color:var(--text);flex-shrink:0;}
.bp-venues{display:flex;flex-direction:column;gap:8px;}
.bp-venue-opt{position:relative;display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:#fff;border:1px solid var(--border);cursor:pointer;}
.bp-venue-opt:has(input:checked){border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);}
.bp-venue-check{display:none;width:22px;height:22px;border-radius:50%;background:var(--text);color:#fff;align-items:center;justify-content:center;flex-shrink:0;}
.bp-venue-check::after{content:"";width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-top:-2px;}
.bp-venue-opt input:checked ~ .bp-venue-check{display:flex;}

/* Welcome */
.bp-welcome-tile{position:relative;border-radius:var(--r-card);overflow:hidden;aspect-ratio:16/10;margin-bottom:22px;}
.bp-welcome-tile img{width:100%;height:100%;object-fit:cover;display:block;}
.bp-welcome-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.58),rgba(0,0,0,.05) 55%);}
.bp-welcome-tile .bp-tile-txt{position:absolute;left:14px;right:14px;bottom:14px;z-index:1;color:#fff;}
.bp-welcome-tile .bp-badge{position:absolute;top:12px;left:12px;z-index:1;background:rgba(255,255,255,.92);color:var(--text);}

/* Profile stats (two neutral cards) */
.pf-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 4px;}
.pf-stat{border-radius:var(--r-card);background:var(--surface);padding:14px 16px;color:var(--text);display:flex;flex-direction:column;}
.pf-stat b{font:500 26px 'Poppins',sans-serif;line-height:1;}
.pf-stat span{font:400 13px 'Poppins',sans-serif;color:var(--text-secondary);margin-top:4px;}

/* Parked Discover entry */
.tb-entry{display:flex;align-items:center;gap:12px;padding:13px 14px;margin:2px 0 14px;background:var(--bg);border:1px solid var(--border);border-radius:16px;text-decoration:none;color:inherit;}
.tb-entry-ico{width:42px;height:42px;border-radius:12px;background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.tb-entry-main{flex:1;min-width:0;display:flex;flex-direction:column;}
.tb-entry-title{font:500 15px 'Poppins',sans-serif;color:var(--text);}
.tb-entry-sub{font:400 12.5px 'Poppins',sans-serif;color:var(--text-secondary);margin-top:2px;}
.tb-entry-arrow{color:var(--text-secondary);font-size:22px;flex-shrink:0;}

/* ---------- Map home ---------- */
.mp-wrap{position:fixed;top:0;bottom:0;left:0;right:0;margin:0 auto;width:100%;max-width:768px;z-index:1;isolation:isolate;background:#EEF0F3;}
.mp-map{position:absolute;inset:0;}
.leaflet-container{font-family:'Poppins',sans-serif;background:#EEF0F3;}
.mp-tiles{filter:grayscale(1) brightness(1.06) contrast(.92) opacity(.9);}
.mp-top{position:absolute;left:12px;right:12px;top:calc(var(--app-header-h,56px) + env(safe-area-inset-top,0px) + 10px);display:flex;gap:8px;z-index:1100;}
.mp-chip{flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:42px;padding:0 14px;border:1.5px solid var(--border-strong);border-radius:999px;background:#fff;color:var(--text);font:500 14px 'Poppins',sans-serif;box-shadow:0 6px 16px -10px rgba(24,24,27,.3);cursor:pointer;}
.mp-chip > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mp-chip:active{transform:scale(.97);}
.mp-list-btn{position:absolute;left:18px;bottom:calc(var(--app-nav-h,64px) + 24px + env(safe-area-inset-bottom,0px));z-index:1100;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 16px;border:1.5px solid var(--border-strong);border-radius:999px;background:#fff;color:var(--text);font:500 14px 'Poppins',sans-serif;box-shadow:0 10px 24px -10px rgba(24,24,27,.35);cursor:pointer;}
.mp-list-btn:active{transform:scale(.97);}
.mp-wrap .bp-fab{position:absolute;z-index:1100;}
.mp-attr{position:absolute;left:0;right:0;bottom:calc(var(--app-nav-h,64px) + 12px + env(safe-area-inset-bottom,0px));text-align:center;font:400 10px 'Poppins',sans-serif;color:var(--text-secondary);z-index:1100;pointer-events:none;}
.mp-pin{background:none;border:0;}
.mp-pin-ring{display:block;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 3px #fff,0 8px 20px -8px rgba(24,24,27,.45);}
.mp-pin-ring.is-me{box-shadow:0 0 0 3px var(--text),0 8px 20px -8px rgba(24,24,27,.45);}
.mp-pin-ring img{width:100%;height:100%;object-fit:cover;display:block;}
.mp-pin-em{position:absolute;right:-2px;bottom:4px;width:24px;height:24px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;box-shadow:0 2px 6px rgba(24,24,27,.22);}
.mp-pin::after{content:"";position:absolute;left:50%;bottom:0;width:10px;height:10px;background:#fff;transform:translateX(-50%) rotate(45deg);box-shadow:2px 2px 4px rgba(24,24,27,.1);}
.mp-ps{padding:4px 2px 2px;}
.mp-ps-cover{border-radius:16px;overflow:hidden;aspect-ratio:16/8;margin-bottom:-26px;}
.mp-ps-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.mp-ps-head{display:flex;align-items:center;gap:12px;padding:0 10px;}
.mp-ps-ava{width:60px;height:60px;border-radius:50%;overflow:hidden;background:var(--surface);flex-shrink:0;box-shadow:0 0 0 3px #fff;}
.mp-ps-ava img{width:100%;height:100%;object-fit:cover;display:block;}
.mp-ps-main{flex:1;min-width:0;padding-top:22px;}
.mp-ps-name{font:500 16px 'Poppins',sans-serif;color:var(--text);display:flex;align-items:center;gap:5px;}
.mp-ps-head .bp-badge{margin-top:22px;}
.mp-ps-title{font:500 17px 'Poppins',sans-serif;color:var(--text);margin:14px 10px 0;line-height:1.3;}
.mp-ps-when{font:400 14px 'Poppins',sans-serif;color:var(--text-secondary);margin:4px 10px 14px;}
.mp-ps form{margin:0 10px;}
.mp-ps .bp-btn-ghost{margin:8px 10px 6px;width:calc(100% - 20px)!important;}

/* ============================================================
   Timeleft-model: home, events, chat, group chat, welcome
   Classes match the actual view files created by agents.
   ============================================================ */

/* --- Home screen (home.php) --- */
.home-screen { padding: 10px 20px 0; }

/* City selector */
.home-city { margin-bottom: 18px; }
.home-city-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; font: 500 24px 'Poppins', sans-serif; color: var(--text); cursor: pointer; padding: 0; letter-spacing: -.2px; }
.home-city-btn:active { transform: scale(.97); }
.home-city-btn svg { color: var(--text-secondary); flex-shrink: 0; }

/* Intent filter chips (no icons, Timeleft style) */
.home-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-bottom: 24px; }
.home-chips::-webkit-scrollbar { display: none; }
.home-chip { flex-shrink: 0; padding: 8px 18px; border-radius: 999px; background: var(--bg); border: 1.5px solid var(--border); font: 400 14px 'Poppins', sans-serif; color: var(--text); text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.home-chip:active { transform: scale(.97); }
.home-chip.on { background: var(--text); border-color: var(--text); color: #fff; }

/* Section headers on home */
.home-sec { font: 500 20px 'Poppins', sans-serif; color: var(--text); margin: 0 0 6px; letter-spacing: -.2px; }
.home-sec-sub { font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); margin: 0 0 16px; }

/* Feedback banner */
.home-fb-banner { background: var(--walk); border-radius: var(--r-card); padding: 16px; margin-bottom: 20px; }
.home-fb-title { font: 500 15px 'Poppins', sans-serif; color: var(--walk-ink); margin: 0; }

/* Happening soon horizontal scroll */
.home-soon-scroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; margin: 0 -20px 28px; padding-left: 17px; padding-right: 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.home-soon-scroll::-webkit-scrollbar { height: 4px; }
.home-soon-scroll::-webkit-scrollbar-track { background: transparent; }
.home-soon-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
@media (hover: none) { .home-soon-scroll { scrollbar-width: none; } .home-soon-scroll::-webkit-scrollbar { display: none; } }
.home-soon-card { flex-shrink: 0; width: 300px; border-radius: 20px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: 0 2px 12px rgba(24, 24, 27, .06); transition: transform .12s ease; scroll-snap-align: start; }
.home-soon-card:active { transform: scale(.98); }
.home-soon-cover { aspect-ratio: 4/3; width: 100%; object-fit: cover; display: block; background: var(--surface); }
.home-soon-info { padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 2px; }
.home-soon-title { font: 500 18px/1.3 'Poppins', sans-serif; color: var(--text); }
.home-soon-date { font: 500 15px 'Poppins', sans-serif; color: var(--text); margin-top: 2px; }
.home-soon-time { font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); }
.home-soon-footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 16px; }
.home-soon-booked { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); }
.home-soon-arrow { color: var(--text-secondary); flex-shrink: 0; }

/* Arrow circle button (Timeleft style) */
.ev-arrow { width: 44px; height: 44px; border-radius: 999px; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* --- Vertical event card row (used in home + events-tab) --- */
.ev-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: inherit; transition: transform .12s ease; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(24, 24, 27, .04); }
.ev-card:active { transform: scale(.98); }
.ev-card--past { opacity: .7; }
.ev-emoji { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ev-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-card-date { font: 500 15px 'Poppins', sans-serif; color: var(--text); }
.ev-card-title { font: 500 16px 'Poppins', sans-serif; color: var(--text); }
.ev-card-meta { font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-card-spots { font: 500 13px 'Poppins', sans-serif; color: var(--text-secondary); }
.ev-card-end { flex-shrink: 0; color: var(--text-secondary); }
.ev-card-chev { flex-shrink: 0; color: var(--text-secondary); }

/* --- Events tab toggle (ev-pill used in events-tab + chat) --- */
.ev-toggle { display: flex; gap: 0; background: var(--surface); border-radius: 14px; padding: 5px; margin-bottom: 22px; }
.ev-pill { flex: 1; border: none; background: transparent; padding: 12px 0; border-radius: 10px; font: 500 15px 'Poppins', sans-serif; color: var(--text-secondary); cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.ev-pill.on { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(24, 24, 27, .08); }
.ev-pill:active { transform: scale(.98); }

/* --- Feedback card (events-tab past section) --- */
.ev-feedback { background: var(--walk); border-radius: var(--r-card); padding: 16px; margin-bottom: 18px; }
.ev-fb-title { font: 500 15px 'Poppins', sans-serif; color: var(--walk-ink); margin: 0; }
.ev-fb-sub { font: 400 13px 'Poppins', sans-serif; color: var(--walk-ink); margin-top: 4px; opacity: .8; }

/* --- Event detail page (event.php) --- */
.ev-detail { padding: 0 0 20px; }
.evd-cover { position: relative; aspect-ratio: 16/10; background: var(--surface); overflow: hidden; }
.evd-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evd-tag { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--text); font: 500 13px 'Poppins', sans-serif; padding: 6px 14px; border-radius: 999px; }
.evd-head { padding: 18px 20px 0; }
.evd-title { font: 500 22px/1.2 'Poppins', sans-serif; color: var(--text); letter-spacing: -.2px; margin: 0; }
.evd-when { font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); margin: 6px 0 0; }
.evd-lang { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); margin: 4px 0 0; }
.evd-desc { font: 400 14px/1.6 'Poppins', sans-serif; color: var(--text-secondary); margin: 14px 20px 0; }

/* Venue */
.evd-venue { display: flex; align-items: center; gap: 14px; margin: 20px 20px 0; padding: 16px; background: var(--surface); border-radius: 16px; }
.evd-venue-pin { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text); }
.evd-venue-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.evd-venue-name { font: 500 15px 'Poppins', sans-serif; color: var(--text); }
.evd-venue-addr { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evd-venue-map { font: 500 13px 'Poppins', sans-serif; color: var(--verified); text-decoration: none; flex-shrink: 0; }

/* Spots progress bar */
.evd-spots { margin: 16px 20px 0; }
.evd-spots-bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.evd-spots-fill { height: 100%; background: var(--text); border-radius: 3px; transition: width .3s ease; }
.evd-spots-label { display: block; font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); margin-top: 6px; }

/* Attendees + group members */
.evd-sec { font: 500 13px 'Poppins', sans-serif; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; margin: 24px 20px 12px; }
.evd-people { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 20px; }
.evd-person { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; }
.evd-ava { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center; font: 500 16px 'Poppins', sans-serif; color: var(--text-secondary); }
.evd-ava img { width: 100%; height: 100%; object-fit: cover; }
.evd-pname { font: 400 12px 'Poppins', sans-serif; color: var(--text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Booking actions */
.evd-chat-btn { margin: 18px 20px 0; display: flex; }
.evd-status { margin: 18px 20px 0; text-align: center; font: 500 15px 'Poppins', sans-serif; color: var(--text-secondary); padding: 14px; background: var(--surface); border-radius: 12px; }
.evd-booked { margin: 18px 20px 0; text-align: center; padding: 16px; background: var(--walk); border-radius: 14px; }
.evd-booked-h { font: 500 16px 'Poppins', sans-serif; color: var(--walk-ink); margin: 0; }
.evd-booked-sub { font: 400 13px 'Poppins', sans-serif; color: var(--walk-ink); margin: 4px 0 0; opacity: .8; }
.evd-cancel { width: 100%; margin: 10px 0 0; }
.evd-book { width: 100%; margin: 18px 0 0; }
.ev-detail form { padding: 0 20px; }
.evd-safety { text-align: center; font: 400 12.5px 'Poppins', sans-serif; color: var(--text-secondary); margin: 16px 20px 0; opacity: .7; }

/* --- Chat tab (chat.php) --- */
.chat-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: transform .12s ease; }
.chat-row:last-child { border-bottom: none; }
.chat-row:active { transform: scale(.98); }
.chat-ava { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.chat-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-row-name { font: 500 15px 'Poppins', sans-serif; color: var(--text); }
.chat-row-preview { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* People I met rows */
.met-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.met-row:last-child { border-bottom: none; }
.met-ava { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 500 18px 'Poppins', sans-serif; color: var(--text-secondary); }
.met-ava img { width: 100%; height: 100%; object-fit: cover; }
.met-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.met-row-name { font: 500 15px 'Poppins', sans-serif; color: var(--text); }
.met-row-sub { font: 400 13px 'Poppins', sans-serif; color: var(--text-secondary); }

/* --- Group chat (group-chat.php) --- */
.gc-screen { display: flex; flex-direction: column; height: 100%; }
.gc-info { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.gc-info-emoji { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.gc-info-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-info-title { font: 500 14px 'Poppins', sans-serif; color: var(--text); }
.gc-info-meta { font: 400 12px 'Poppins', sans-serif; color: var(--text-secondary); }
.gc-members-strip { display: flex; gap: 6px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.gc-members-strip::-webkit-scrollbar { display: none; }
.gc-member-ava { width: 32px; height: 32px; border-radius: 999px; overflow: hidden; background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 500 12px 'Poppins', sans-serif; color: var(--text-secondary); }
.gc-member-ava img { width: 100%; height: 100%; object-fit: cover; }
.gc-messages { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.gc-empty { text-align: center; color: var(--text-secondary); font: 400 14px 'Poppins', sans-serif; padding: 40px 0; }
.gc-date-sep { font: 500 12px 'Poppins', sans-serif; color: var(--text-secondary); margin: 16px 0 8px; background: var(--surface); padding: 3px 12px; border-radius: 999px; align-self: center; text-align: center; }
.gc-msg { max-width: 82%; }
.gc-msg--me { margin-left: auto; }
.gc-msg--them { margin-right: auto; }
.gc-msg-name { font: 500 12px 'Poppins', sans-serif; color: var(--text-secondary); margin-bottom: 2px; }
.gc-bubble { display: inline-block; padding: 10px 14px; border-radius: 16px; font: 400 14px/1.5 'Poppins', sans-serif; color: var(--text); background: var(--surface); word-break: break-word; }
.gc-bubble--me { background: #3478F6; color: #fff; border-radius: 16px 16px 4px 16px; }
.gc-bubble--them { border-radius: 16px 16px 16px 4px; }
.gc-time { display: block; font: 400 11px 'Poppins', sans-serif; color: var(--text-secondary); margin-top: 2px; }
.gc-msg--me .gc-time { text-align: right; color: rgba(255,255,255,.6); }
.gc-compose { display: flex; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--border); }
.gc-input { flex: 1; height: 44px; border-radius: 22px; padding: 0 16px; font: 400 14px 'Poppins', sans-serif; background: var(--surface); border: 1px solid var(--border); color: var(--text); outline: none; }
.gc-input:focus { border-color: var(--text); }
.gc-send { width: 44px; height: 44px; border-radius: 999px; border: none; background: #3478F6; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.gc-send:active { transform: scale(.94); }
.gc-send:disabled { opacity: .5; }

/* --- Profile hero (Corner-style centered layout) --- */
.pf-screen { padding: 6px 20px 0; }
.pf-page-title { font: 500 28px/1.1 'Poppins', sans-serif; letter-spacing: -.4px; color: var(--text); margin: 8px 0 28px; }
.pf-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 28px; }
.pf-ava--xl { width: 88px; height: 88px; font-size: 30px; }
.pf-hero .pf-name { font-size: 22px; font-weight: 500; margin: 14px 0 0; }
.pf-hero .pf-edit { margin-top: 6px; font-size: 14px; }
.pf-stats-inline { display: flex; align-items: center; gap: 6px; margin-top: 14px; font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); }
.pf-stats-inline b { font-weight: 500; color: var(--text); margin-right: 3px; }
.pf-stats-dot { width: 3px; height: 3px; border-radius: 999px; background: var(--border-strong); flex-shrink: 0; }
.pf-city { font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); margin-top: 2px; }
.pf-row--danger .pf-row-title { color: var(--danger); }
.pf-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 32px 0 16px; }
.pf-logout-btn { background: none; border: 1.5px solid var(--border); border-radius: 999px; padding: 12px 32px; font: 500 15px 'Poppins', sans-serif; color: var(--text); cursor: pointer; width: 100%; }
.pf-logout-btn:active { background: var(--surface); }
.pf-delete-btn { background: none; border: none; font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary); cursor: pointer; padding: 10px; }
.pf-delete-btn:active { color: var(--danger); }

/* ============================================================
   Auth screens (Bond-inspired: ultra-minimal, one-screen pattern)
   ============================================================ */
body:not(.is-app), body.is-setup { background: #F6F6F6; }
body:not(.is-app) .app-shell, body.is-setup .app-shell { background: #F6F6F6; }

/* Shared auth layout */
.auth {
  display: flex; flex-direction: column; min-height: 100dvh;
  padding: 0 24px env(safe-area-inset-bottom, 0px);
}
.auth-top {
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 0 0;
  position: relative; min-height: 56px;
}
.auth-back {
  position: absolute; left: 0; top: calc(env(safe-area-inset-top, 0px) + 14px);
  width: 40px; height: 40px; border-radius: 999px; background: #EBEBEB;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; border: none; cursor: pointer;
}
.auth-back:active { transform: scale(.92); }
.auth-wordmark {
  font-family: 'Baloo 2', 'Poppins', cursive;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px;
  color: var(--text); line-height: 1;
}
.auth-wordmark .irl { color: var(--verified); }

.auth-body {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 0 4px;
}
.auth-h {
  font: 500 26px/1.15 'Poppins', sans-serif; color: var(--text);
  letter-spacing: -.3px; margin: 0;
}
.auth-sub {
  font: 400 14px/1.5 'Poppins', sans-serif; color: var(--text-secondary);
  margin: 10px 0 0; max-width: 300px;
}
.auth-emoji { font-size: 52px; line-height: 1; margin-bottom: 20px; }
.auth-success { font: 500 17px 'Poppins', sans-serif; color: #1E6B41; margin-top: 16px; }
.auth-error { font: 500 17px 'Poppins', sans-serif; color: var(--danger); margin-top: 16px; }

/* Auth form fields */
.auth-fields {
  width: 100%; max-width: 340px; margin-top: 32px;
  display: flex; flex-direction: column; gap: 12px; text-align: left;
}
.auth-field-label {
  font: 500 13px 'Poppins', sans-serif; color: var(--text-secondary);
  margin-bottom: 4px; display: block;
}
.auth-input {
  width: 100%; height: 50px; border: 1.5px solid #DCDCDC;
  border-radius: 12px; padding: 0 16px; font: 400 15px 'Poppins', sans-serif;
  color: var(--text); background: #fff; outline: none;
  transition: border-color .15s ease;
}
.auth-input::placeholder { color: #A1A1A1; }
.auth-input[type="date"] { -webkit-appearance: none; appearance: none; color: var(--text); }
.auth-input[type="date"]:invalid { color: #A1A1A1; }
.auth-input:focus { border-color: var(--text); }
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 64px; }
.auth-pass-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font: 500 13px 'Poppins', sans-serif; color: var(--text-secondary); padding: 8px;
}

/* Auth footer area */
.auth-foot {
  padding: 0 0 calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.auth-btn {
  width: 100%; height: 54px; border-radius: 999px; border: none;
  background: var(--text); color: #fff;
  font: 500 16px 'Poppins', sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.auth-btn:active { transform: scale(.97); }
.auth-btn:disabled { opacity: .35; }
.auth-btn--stroke {
  background: transparent; color: var(--text);
  border: 1.5px solid #DCDCDC;
}
.auth-link {
  font: 400 14px 'Poppins', sans-serif; color: var(--text-secondary);
}
.auth-link a {
  color: var(--text); font-weight: 500; text-decoration: none;
}
.auth-terms {
  font: 400 12px/1.5 'Poppins', sans-serif; color: #A1A1A1;
  text-align: center; max-width: 280px;
}
.auth-terms a { color: #A1A1A1; text-decoration: underline; }
.auth-forgot {
  display: block; text-align: right; margin-top: 4px;
  font: 500 13px 'Poppins', sans-serif;
}
.auth-forgot a { color: var(--text); text-decoration: none; }

/* Circle arrow button (Bond-style forward action) */
.auth-circle-btn {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--text); color: #fff; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.auth-circle-btn:active { transform: scale(.92); }
.auth-circle-btn:disabled { opacity: .3; }

/* Resend link style */
.auth-resend {
  background: none; border: none; cursor: pointer; padding: 0;
  font: 500 14px 'Poppins', sans-serif; color: var(--text);
  text-decoration: underline; text-underline-offset: 2px;
}

/* Setup-screen body: left-aligned, top-aligned */
.auth-body--start { justify-content: flex-start; padding-top: 24px; }
.auth-body--start .auth-h, .auth-body--start .auth-sub { text-align: left; max-width: none; }
.auth-body--start .auth-sub { margin-top: 6px; }
.auth-body--stretch { align-items: stretch; }
.auth-hint { font: 400 12.5px 'Poppins', sans-serif; color: #A1A1A1; margin-top: 6px; }
.auth-hint--center { text-align: center; }
.auth-textarea { height: auto; min-height: 92px; padding: 12px 16px; line-height: 1.5; resize: none; }
.auth-section { margin-top: 28px; }
.auth-section--sm { margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  .auth-back, .auth-btn, .auth-circle-btn, .auth-resend { transition: none; }
}

/* --- Tab empty states --- */
.tab-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; }
.tab-empty-icon { font-size: 36px; display: block; margin-bottom: 4px; }
.tab-empty-h { font: 500 18px 'Poppins', sans-serif; color: var(--text); margin: 12px 0 0; }
.tab-empty-sub { font: 400 14px/1.5 'Poppins', sans-serif; color: var(--text-secondary); margin-top: 8px; max-width: 300px; }
