/* UAP.CLUB — mobile-first social app
   Photo-led + Maps-led. Light gray scaffold. One sky-blue accent. Inter throughout. */

:root {
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --bg-3: #ebedf0;
  --line: #e5e7eb;
  --line-2: #d4d7dc;
  --ink: #0b0d10;
  --ink-2: #2a2e35;
  --ink-3: #4d5260;
  --fog: #6c7280;
  --mist: #9aa0aa;

  --sky: #f15a24;          /* signal amber — incident-log accent */
  --sky-deep: #c84512;
  --sky-soft: #fdece4;

  --hot: #b42318;          /* disputed / urgent */
  --green: #2e7d5b;        /* corroborated / verified */

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(15,18,25,0.04), 0 1px 1px rgba(15,18,25,0.03);
  --shadow-2: 0 8px 24px -8px rgba(15,18,25,0.10), 0 2px 6px -2px rgba(15,18,25,0.06);
  --shadow-3: 0 24px 48px -16px rgba(15,18,25,0.18), 0 8px 16px -8px rgba(15,18,25,0.08);

  --t-fast: 160ms cubic-bezier(.2,.7,.2,1);
  --t-med: 280ms cubic-bezier(.2,.7,.2,1);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body, #app { margin: 0; padding: 0; height: 100%; background: #0b0d10; }
body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
button { font-family: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0.01em; }

/* ============================================================
   STAGE — landing hero + iOS preview frame.
   ============================================================ */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(56px, 8vw, 128px);
  padding: 72px clamp(32px, 7vw, 112px) 48px;
  background:
    radial-gradient(circle at 24% 18%, rgba(241,90,36,0.10), transparent 34%),
    linear-gradient(115deg, #140c08 0%, #0b0d10 44%, #050608 100%);
  overflow: hidden;
  position: relative;
}
.stage::before {
  content: "";
  position: absolute;
  top: 72px;
  bottom: 72px;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.10);
  pointer-events: none;
}
.stage::after {
  content: "uap.club";
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: clamp(24px, 5vw, 80px);
  color: rgba(255,255,255,0.08);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(72px, 10vw, 160px);
  font-style: italic;
  letter-spacing: -0.06em;
  pointer-events: none;
}
.stage-label { display: none; }
.frame-wrap {
  position: relative;
}
.hero-device,
.launch-copy,
.mobile-launch-copy {
  position: relative;
  z-index: 1;
}
.mobile-launch-copy {
  display: none;
}
.hero-device {
  flex: 0 0 auto;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.50));
}
.launch-copy {
  width: min(560px, 42vw);
  color: #fff;
}
.launch-kicker {
  margin-bottom: 28px;
  color: rgba(255,255,255,0.42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
}
.launch-copy h1,
.split-heading {
  margin: 0;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-wrap: balance;
}
.split-line {
  display: block;
}
.split-line.muted {
  color: rgba(255,255,255,0.56);
}
.split-line.italic {
  font-style: italic;
}
.rotating-line {
  min-height: 1em;
  overflow: hidden;
  color: var(--sky);
}
.rotating-phrase {
  display: inline-block;
  color: var(--sky);
  animation: rotateSightPhrase 720ms cubic-bezier(.16,1,.3,1) both;
}
.split-char {
  display: inline-block;
  transform: translateY(0.22em);
  opacity: 0;
  animation: splitTextIn 780ms cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--char-delay);
  will-change: transform, opacity;
}
.launch-lede {
  margin: 34px 0 0;
  max-width: 520px;
  color: rgba(255,255,255,0.72);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 300;
  line-height: 1.72;
}
.launch-note {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.48);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}
@keyframes splitTextIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes rotateSightPhrase {
  from {
    transform: translateY(0.42em) rotateX(18deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .stage {
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 72px 0 0;
    gap: 18px;
    background: #0b0d10;
  }
  .stage::before,
  .stage::after { display: none; }
  .hero-device {
    transform: scale(0.92);
    transform-origin: top center;
    filter: none;
  }
  .launch-copy { display: none; }
  .mobile-launch-copy {
    display: block;
    width: min(390px, calc(100vw - 32px));
    color: #fff;
    text-align: center;
  }
  .mobile-launch-copy .split-heading {
    margin: 0;
    font-size: 42px;
    line-height: 0.9;
    letter-spacing: -0.055em;
  }
  .mobile-launch-copy small {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.52);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .stage-label { display: none; }
}
@media (max-width: 520px) {
  #coming-soon-banner {
    padding: 8px 10px !important;
    justify-content: flex-start !important;
    font-size: 11px !important;
    gap: 8px !important;
  }
  #coming-soon-banner .banner-copy {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #coming-soon-banner .banner-copy::after {
    content: "";
  }
}
@media (max-width: 430px) {
  .stage { padding-top: 62px; gap: 14px; }
  .hero-device { transform: scale(0.88); }
  .mobile-launch-copy .split-heading { font-size: 38px; }
}
@media (max-width: 375px) {
  .hero-device { transform: scale(0.82); }
  .mobile-launch-copy .split-heading { font-size: 34px; }
}

/* ============================================================
   APP SHELL — the actual mobile app inside the iOS frame.
   ============================================================ */
.app {
  width: 100%;
  height: 100%;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: var(--ink);
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.scroll::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   TOP NAV — sticky compact app bar.
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topnav .brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  user-select: none;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 2px 0;
}
.topnav .brand .uap {
  font-size: 24px;
  line-height: 1;
}
.topnav .brand .dot {
  font-size: 24px;
  line-height: 1;
  margin: 0 1px 0 1px;
  color: var(--ink-3);
}
.topnav .brand .club {
  font-size: 24px;
  line-height: 1;
  color: var(--ink-2);
}
.topnav .brand .reg {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--mist);
  text-transform: uppercase;
  margin-left: 6px;
  align-self: center;
  position: relative;
  top: -4px;
}
.topnav .right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  position: relative;
}
.topnav-btn:hover { background: var(--bg-2); }
.topnav-btn .pip {
  position: absolute; top: 8px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hot); border: 2px solid var(--bg);
}

.locchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.locchip .pin { color: var(--sky); }
.locchip .chev { opacity: 0.45; margin-left: 2px; }

/* ============================================================
   NEAR-ME SCREEN — the soul. Mini-map + photo cards.
   ============================================================ */
.nearme-head {
  padding: 16px 20px 8px;
}
.nearme-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nearme-head .sub {
  font-size: 13px;
  color: var(--fog);
}
.nearme-head .sub b { color: var(--ink-2); font-weight: 600; }

/* Mini map — looks like Google Maps on mobile */
.minimap {
  position: relative;
  margin: 12px 16px 0;
  height: 200px;
  border-radius: var(--r);
  overflow: hidden;
  background: #e9eef3;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
}
.minimap svg { display: block; width: 100%; height: 100%; }
.minimap-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.minimap .corner {
  position: absolute;
  bottom: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 6px 11px 6px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-2);
  pointer-events: auto;
}
.minimap .corner svg { width: 14px; height: 14px; }
.minimap .badge-count {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 5px 10px 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  display: inline-flex; align-items: center; gap: 6px;
}
.minimap .badge-count .live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(31,181,106,0.18);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(31,181,106,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(31,181,106,0.04); }
}

/* Distance filter pills (sit between map and feed) */
.filter-rail {
  display: flex;
  gap: 8px;
  padding: 16px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-rail::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.pill:hover { background: var(--bg-3); }
.pill.active {
  background: var(--ink);
  color: var(--bg);
}
.pill .ico { display: inline-flex; margin-right: 6px; opacity: 0.7; vertical-align: -2px; }
.pill.active .ico { opacity: 0.85; }

/* Section headers between feed groups */
.feed-section {
  padding: 18px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feed-section h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fog);
}
.feed-section .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
}

/* Photo card — Instagram-spacious */
.card {
  background: var(--bg);
  margin: 0 16px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
}
.card-head .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.card-head .who {
  display: flex; flex-direction: column;
  min-width: 0;
  flex: 1;
}
.card-head .who .name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.card-head .who .name .verif {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: -3px;
  margin-left: 4px;
  color: var(--sky);
}
.card-head .who .where {
  font-size: 12px;
  color: var(--fog);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  margin-top: 1px;
}
.card-head .who .where .pin { color: var(--ink-3); display: inline-flex; }
.card-head .when {
  font-size: 12px;
  color: var(--mist);
  margin-left: auto;
  white-space: nowrap;
}
.card-head .more {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  margin-left: 4px;
}
.card-head .more:hover { background: var(--bg-2); }

.card-photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-3);
  background-size: cover;
  background-position: center;
}
.card-photo .stamp {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11,13,16,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px 6px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}
.card-photo .stamp svg { width: 12px; height: 12px; }
.card-photo .corroborate {
  position: absolute;
  bottom: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-pill);
}
.card-photo .corroborate .face {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-3);
  background-size: cover;
  border: 1.5px solid #fff;
  margin-left: -8px;
}
.card-photo .corroborate .face:first-of-type { margin-left: 0; }

.card-actions {
  display: flex;
  align-items: center;
  padding: 10px 12px 6px;
  gap: 4px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.act:hover { background: var(--bg-2); }
.act.pushed { color: var(--hot); }
.act .num { color: var(--ink-3); font-weight: 500; }
.act-spacer { flex: 1; }

.card-body {
  padding: 4px 16px 16px;
}
.card-body .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--ink);
}
.card-body .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 10px;
}
.card-body .desc .more {
  color: var(--fog); font-weight: 500;
}
.card-body .meta {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--fog);
}
.card-body .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--mist); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.tag .swatch { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.tag.sky { color: var(--sky-deep); background: var(--sky-soft); }
.tag.sky .swatch { background: var(--sky); }
.tag.green { color: #117a48; background: #e3f7ec; }
.tag.green .swatch { background: var(--green); }

/* ============================================================
   TAB BAR — bottom nav.
   ============================================================ */
.tabbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: 6px 0 8px;
  flex-shrink: 0;
}
.tab {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  color: var(--fog);
  padding: 6px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tab .ico { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.tab.active { color: var(--ink); }
.tab.active .ico { color: var(--ink); }
.tab.fab {
  position: relative;
}
.tab.fab .ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--sky);
  color: #fff;
  margin-top: -10px;
  box-shadow: 0 6px 16px -4px rgba(241,90,36,0.45), 0 2px 4px rgba(11,13,16,0.12);
}
.tab.fab .label { color: var(--ink-3); }

/* ============================================================
   MAP SCREEN — full-bleed, with bottom sheet of cards.
   ============================================================ */
.map-screen {
  position: relative;
  flex: 1;
  background: #e9eef3;
  overflow: hidden;
}
.map-screen svg { width: 100%; height: 100%; display: block; }
.map-search {
  position: absolute;
  top: 56px; left: 12px; right: 12px;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 9px 8px 9px 14px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  height: 40px;
  box-sizing: border-box;
}
.map-search > svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-2); }
.map-search .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-search .av {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
}
.map-chips {
  position: absolute;
  top: 104px; left: 12px; right: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.map-chips::-webkit-scrollbar { display: none; }
.map-chip {
  flex-shrink: 0;
  background: var(--bg);
  border-radius: var(--r-pill);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.map-chip.active { background: var(--ink); color: var(--bg); }

.map-fab {
  position: absolute;
  right: 14px; bottom: 332px;
  background: var(--bg);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2);
  color: var(--ink);
}

/* Bottom sheet of cards on map — vertical scrolling list */
.sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  box-shadow: 0 -8px 32px -8px rgba(11,13,16,0.18);
  padding: 8px 0 0;
  height: 320px;
  display: flex;
  flex-direction: column;
}
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--line-2);
  border-radius: 4px;
  margin: 0 auto 10px;
  flex-shrink: 0;
}
.sheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 18px 10px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.sheet-head .ttl { font-size: 14px; font-weight: 700; }
.sheet-head .sub { font-size: 12px; color: var(--fog); margin-top: 2px; }
.sheet-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
.sheet-list::-webkit-scrollbar { width: 0; }
.sheet-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
  cursor: pointer;
}
.sheet-row:hover, .sheet-row.active { background: var(--bg-2); }
.sheet-row.active { background: var(--sky-soft); }
.sheet-row .thumb {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  flex-shrink: 0;
}
.sheet-row .info { min-width: 0; }
.sheet-row .info .name {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0 0 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet-row .info .where {
  font-size: 11px;
  color: var(--fog);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sheet-row .info .where .pin { color: var(--ink-3); }
.sheet-row .info .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10px;
  color: var(--mist);
  font-weight: 500;
}
.sheet-row .info .meta .verif { color: var(--sky); }
.sheet-row .arrow {
  color: var(--mist);
  flex-shrink: 0;
}

/* Map pin */
.mpin {
  cursor: pointer;
  transition: transform var(--t-fast);
  transform-origin: center bottom;
  transform-box: fill-box;
}
.mpin.active { transform: scale(1.15); }
.mpin-pulse { animation: mppulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mppulse {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

/* ============================================================
   DETAIL SCREEN
   ============================================================ */
.detail {
  position: relative;
}
.detail-back {
  position: absolute;
  top: 56px; left: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2);
  z-index: 20;
  color: var(--ink);
  cursor: pointer;
  border: 0;
}
.detail-back:hover { background: #fff; }
.detail-photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
}
.detail-body { padding: 16px 18px 24px; }
.detail-body h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin: 0 0 8px;
}
.detail-body .lede {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.detail-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 18px;
}
.detail-spec > div {
  padding: 12px 14px;
  background: var(--bg);
}
.detail-spec dt { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog); margin-bottom: 4px; }
.detail-spec dd { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.detail-spec dd.mono { font-family: var(--mono); font-size: 12px; }

.witness-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: var(--r);
  margin-bottom: 14px;
}
.witness-row .stack {
  display: flex;
}
.witness-row .stack .face {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-3);
  background-size: cover; background-position: center;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.witness-row .stack .face:first-child { margin-left: 0; }
.witness-row .lbl { font-size: 13px; color: var(--ink-2); }
.witness-row .lbl b { color: var(--ink); font-weight: 600; }
.witness-row .cta { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--sky); }

.h2 { font-size: 14px; font-weight: 700; margin: 18px 0 10px; letter-spacing: -0.005em; }

.thread { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.cmt {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: flex-start;
}
.cmt .av { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); background-size: cover; background-position: center; }
.cmt .bub {
  background: var(--bg-2);
  border-radius: 4px 14px 14px 14px;
  padding: 8px 12px;
}
.cmt .bub .who { font-size: 12px; font-weight: 600; color: var(--ink); }
.cmt .bub .who .when { color: var(--fog); font-weight: 500; margin-left: 6px; }
.cmt .bub .body { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 2px; }
.cmt .acts { display: flex; gap: 14px; margin-top: 6px; padding-left: 12px; font-size: 12px; color: var(--fog); font-weight: 600; }
.cmt .acts span:hover { color: var(--ink-2); }

.composer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.composer .av { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-3); background-size: cover; background-position: center; }
.composer .field {
  flex: 1;
  background: var(--bg-2);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: 13px;
  color: var(--fog);
}
.composer .send { color: var(--sky); font-weight: 700; font-size: 14px; padding: 6px 10px; }

/* ============================================================
   POST FLOW (lightweight modal)
   ============================================================ */
.modal {
  position: absolute; inset: 0;
  background: rgba(11,13,16,0.45);
  z-index: 50;
  display: flex; align-items: flex-end;
  animation: fadein 200ms ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideup { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal .panel {
  width: 100%;
  background: var(--bg);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  padding: 8px 0 24px;
  max-height: 92%;
  overflow-y: auto;
  animation: slideup 280ms cubic-bezier(.2,.7,.2,1);
}
.modal .panel .handle { width: 36px; height: 4px; background: var(--line-2); border-radius: 4px; margin: 0 auto 12px; }
.modal .panel .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.modal .panel .head h2 { font-size: 17px; font-weight: 700; margin: 0; }

.post-step { padding: 18px; }
.post-drop {
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--bg-2);
  padding: 36px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.post-drop .ico {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.post-drop .t { font-size: 15px; font-weight: 600; color: var(--ink); }
.post-drop .s { font-size: 12px; color: var(--fog); }

.post-preview {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r);
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  overflow: hidden;
}
.post-preview .replace {
  position: absolute; top: 10px; right: 10px;
  background: rgba(11,13,16,0.7); color: #fff;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
}

.field-label { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.field-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field-input:focus { outline: none; border-color: var(--sky); background: var(--bg); }
textarea.field-input { min-height: 110px; line-height: 1.5; resize: vertical; }
.field-help { font-size: 11px; color: var(--fog); margin-top: 6px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.cat-tile {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  transition: all var(--t-fast);
}
.cat-tile:hover { background: var(--bg-2); }
.cat-tile.selected {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--sky-deep);
}
.cat-tile .glyph {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 16px;
}
.cat-tile.selected .glyph { background: var(--bg); color: var(--sky-deep); }

/* Buttons inside the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; }
.btn-sky { background: var(--sky); color: #fff; }
.btn-sky:hover { background: var(--sky-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }

/* Notifications */
.notif {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.notif .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-3); background-size: cover; background-position: center;
  position: relative;
}
.notif .av .pip {
  position: absolute; bottom: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.notif .av .pip.hot { background: var(--hot); }
.notif .av .pip.green { background: var(--green); }
.notif .body { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.notif .body b { color: var(--ink); font-weight: 600; }
.notif .body .when { display: block; font-size: 11px; color: var(--fog); margin-top: 2px; }
.notif .thumb {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
}

.notif-section {
  padding: 18px 18px 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fog);
}

/* Profile */
.profile-head { padding: 20px 18px 12px; }
.profile-row {
  display: flex; align-items: center; gap: 16px;
}
.profile-row .av {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--bg-3); background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.profile-row .stats {
  display: flex; flex: 1;
  justify-content: space-around;
  text-align: center;
}
.profile-row .stats .stat { padding: 0 6px; }
.profile-row .stats .num { font-size: 17px; font-weight: 700; }
.profile-row .stats .lbl { font-size: 11px; color: var(--fog); margin-top: 2px; }
.profile-bio { padding: 14px 18px 14px; }
.profile-bio .name { font-size: 15px; font-weight: 700; }
.profile-bio .handle { font-size: 13px; color: var(--fog); margin-bottom: 4px; }
.profile-bio .bio { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.profile-actions { display: flex; gap: 8px; padding: 0 18px 14px; }
.profile-actions .btn { flex: 1; padding: 9px 14px; font-size: 13px; }

.profile-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.profile-tabs .pt {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 0;
  color: var(--fog);
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
}
.profile-tabs .pt.active { color: var(--ink); border-bottom-color: var(--ink); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 2px 0 0;
}
.grid-3 .cell {
  aspect-ratio: 1/1;
  background-size: cover; background-position: center;
  background-color: var(--bg-3);
  position: relative;
}
.grid-3 .cell .verif {
  position: absolute; top: 6px; right: 6px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

/* Onboarding */
.onb {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.onb .hero {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px 26px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 70%, var(--bg) 100%),
    radial-gradient(circle at 30% 30%, var(--sky-soft) 0%, transparent 60%),
    var(--bg);
  position: relative;
}
.onb .hero .grid {
  position: absolute;
  top: 60px; left: 0; right: 0; height: 60%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 18px;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 90%);
  pointer-events: none;
}
.onb .hero .grid .cell {
  border-radius: var(--r-sm);
  background-size: cover; background-position: center;
  background-color: var(--bg-2);
  aspect-ratio: 3/4;
}
.onb .hero .grid .cell:nth-child(2) { transform: translateY(20px); }
.onb .hero .grid .cell:nth-child(3) { transform: translateY(8px); }
.onb .pill-stat {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px 6px 8px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  position: relative; z-index: 1;
  margin-bottom: 18px;
}
.onb .pill-stat .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31,181,106,0.16);
}
.onb h1 {
  position: relative; z-index: 1;
  font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 12px;
  color: var(--ink);
}
.onb p {
  position: relative; z-index: 1;
  font-size: 15px; line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 320px;
}
.onb .actions { padding: 0 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.onb .foot {
  text-align: center;
  font-size: 12px;
  color: var(--fog);
}
.onb .foot a { color: var(--sky); font-weight: 600; }

/* Posted toast */
.toast {
  position: absolute;
  left: 16px; right: 16px; bottom: 84px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-3);
  animation: slideup 280ms cubic-bezier(.2,.7,.2,1);
  z-index: 60;
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.toast .mono { color: rgba(255,255,255,0.5); margin-left: auto; font-size: 11px; }
