/* ── Design tokens ─────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --page:      #0f1215;
  --surface:   #171c20;
  --surface-2: #20272d;
  --surface-3: #283139;
  --text:      #fffaf0;
  --muted:     #aeb9bf;
  --line:      #35414a;
  --green:     #4ee6a7;
  --cyan:      #55c9ff;
  --amber:     #ffc15a;
  --red:       #ff6f61;
  --violet:    #a78bfa;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 8%,  rgba(78,230,167,0.18), transparent 26rem),
    radial-gradient(circle at 82% 0%,  rgba(85,201,255,0.15), transparent 24rem),
    linear-gradient(145deg, #0f1215, #181b1a 55%, #0d1214);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { border: 0; color: inherit; font: inherit; cursor: pointer; }
p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 0; }

/* ── Stage (desktop/tablet wrapper) ────────────────────────── */
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 24px;
}

/* ── Phone frame ────────────────────────────────────────────── */
.phone {
  width: min(100%, 430px);
  height: min(930px, 90dvh);
  min-height: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  background: rgba(15,18,21,0.96);
  box-shadow: 0 34px 100px rgba(0,0,0,0.5);
}

/* ── App header ─────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px 14px;
  padding-top: max(20px, calc(14px + env(safe-area-inset-top)));
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}

.brand, .kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin-top: 3px;
  font-size: clamp(22px, 5vw, 29px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-top: 7px;
  font-size: clamp(18px, 4.5vw, 25px);
  line-height: 1.1;
}

/* ── Header actions ─────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-pill span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(78,230,167,0.16);
  flex-shrink: 0;
}

.round-button {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #06130d;
  font-size: 16px;
  font-weight: 950;
  flex-shrink: 0;
}

/* ── Views ──────────────────────────────────────────────────── */
.view {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 18px;
  padding-bottom: max(18px, calc(14px + env(safe-area-inset-bottom)));
}

.view.is-active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── Dashboard ──────────────────────────────────────────────── */
.hero-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 20px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(78,230,167,0.16), rgba(85,201,255,0.08)),
    var(--surface);
}

.hero-meter {
  width: 96px; height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: var(--text);
  color: #101415;
  flex-shrink: 0;
}

.hero-meter span  { font-size: clamp(42px, 10vw, 54px); font-weight: 950; line-height: 0.9; }
.hero-meter small { font-size: 11px; font-weight: 900; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
}

/* ── People list ─────────────────────────────────────────────── */
.people-list { display: grid; gap: 8px; }

.person-card {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.person-card.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(78,230,167,0.35);
}

.person-card:active { background: var(--surface-2); }

.avatar {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.person-card strong, .person-card small, .person-card em { display: block; }
.person-card strong { font-size: 16px; }
.person-card small  { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.person-card em     { color: var(--text); font-style: normal; font-weight: 950; font-size: 15px; }

/* ── Actions row ─────────────────────────────────────────────── */
.actions { margin-top: auto; }

.actions.two {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 10px;
}

.primary, .secondary {
  min-height: 50px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 950;
  transition: opacity 0.15s, transform 0.1s;
}

.primary:active, .secondary:active { opacity: 0.8; transform: scale(0.98); }

.primary   { background: var(--green); color: #07120d; }
.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

/* ── Meet screen ─────────────────────────────────────────────── */
.session-card { padding: 12px; border-radius: 12px; background: var(--surface); }

.session-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.session-topline strong { color: var(--green); }

.map, .parking-map {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(78,230,167,0.08), transparent 46%), #20262b;
}

.map { height: clamp(180px, 32dvh, 270px); }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}

.building, .phase-badge {
  position: absolute;
  top: 12px; z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,18,21,0.78);
  color: var(--muted);
  font-size: 12px; font-weight: 900;
}

.building      { left: 12px; }
.phase-badge   { right: 12px; color: var(--green); }

.route {
  position: absolute;
  left: 27%; top: 27%; width: 48%; height: 46%;
  border-top: 3px solid var(--cyan);
  border-right: 3px solid var(--cyan);
  border-radius: 0 32px 0 0;
}

.pin {
  position: absolute;
  min-width: 48px; padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px; font-weight: 950;
  transform: translate(-50%, -50%);
}

.pin.you    { left: 50%; top: 50%; background: var(--green); color: #08130e; z-index: 2; }
.pin.friend { left: 50%; top: 22%; background: var(--red);   z-index: 2; transition: left 300ms ease, top 300ms ease; }

/* ── Precision panel ─────────────────────────────────────────── */
.precision-panel {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 48px 48px, rgba(78,230,167,0.16), transparent 70px),
    var(--surface);
}

.arrow {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 35deg, var(--green) 0 18%, rgba(78,230,167,0.08) 18% 100%);
  box-shadow: inset 0 0 0 1px rgba(78,230,167,0.2);
  transition: transform 260ms ease;
}

.arrow::after {
  content: "";
  display: block;
  width: 38px; height: 38px;
  margin: 29px auto;
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  background: var(--text);
}

.phase-label  { color: var(--green); font-size: 11px; font-weight: 950; letter-spacing: 0.05em; text-transform: uppercase; }
.distance     { margin-top: 3px; font-size: clamp(34px, 9dvh, 48px); font-weight: 950; line-height: 0.95; }
.target, .floor-hint, .support { color: var(--muted); font-weight: 800; font-size: 14px; }
.floor-hint   { grid-column: 1 / -1; min-height: 18px; font-size: 13px; }

.signal-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.signal-rail span {
  padding: 7px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  text-align: center;
  font-size: 11px; font-weight: 950;
  transition: background 0.25s, color 0.25s;
}

.signal-rail span.is-active { background: var(--green); color: #07120d; }

/* ── Parking ─────────────────────────────────────────────────── */
.parking-panel { display: grid; gap: 16px; padding: 12px; border-radius: 12px; background: var(--surface); }

.parking-map {
  height: clamp(220px, 38dvh, 340px);
  display: grid; place-items: center;
}

.parking-marker {
  position: relative; z-index: 1;
  width: 120px; height: 120px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #241606;
  font-size: clamp(56px, 14vw, 76px);
  font-weight: 950;
}

.parking-row {
  position: absolute; bottom: 24px; z-index: 1;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,193,90,0.15);
  color: var(--amber); font-weight: 950; font-size: 13px;
}

/* ── Technology ─────────────────────────────────────────────── */
.signal-stack { display: grid; gap: 9px; }

.signal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.signal span   { color: var(--muted); font-weight: 900; font-size: 13px; }
.signal strong { font-size: 18px; font-weight: 950; }
.signal small  { grid-column: 1 / -1; color: var(--muted); font-weight: 750; font-size: 13px; }

.signal.is-active                          { border-color: var(--green);  box-shadow: inset 0 0 0 1px var(--green); }
.signal[data-signal="wifi"].is-active      { border-color: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.signal[data-signal="bluetooth"].is-active { border-color: var(--cyan);   box-shadow: inset 0 0 0 1px var(--cyan); }
.signal[data-signal="uwb"].is-active       { border-color: var(--amber);  box-shadow: inset 0 0 0 1px var(--amber); }

/* ── Privacy ─────────────────────────────────────────────────── */
.privacy-panel { padding: 20px; border-radius: 12px; background: var(--surface); }

.privacy-list { display: grid; gap: 9px; margin-top: 18px; }

.privacy-list p {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
}

.privacy-list strong, .privacy-list span { display: block; }
.privacy-list strong { font-size: 15px; font-weight: 900; }
.privacy-list span   { margin-top: 5px; color: var(--muted); font-weight: 750; font-size: 14px; }

/* ── Bottom nav ─────────────────────────────────────────────── */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 8px 10px;
  padding-bottom: max(10px, calc(8px + env(safe-area-inset-bottom)));
  border-top: 1px solid var(--line);
  background: rgba(14,17,20,0.98);
  flex-shrink: 0;
}

.nav-item {
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 950;
  transition: background 0.15s, color 0.15s;
}

.nav-item.is-active { background: var(--text); color: #101415; }
.nav-item:active    { opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── Mobile: fill full screen, no frame ────────────────────── */
@media (max-width: 460px) {
  .stage {
    padding: 0;
    display: block;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    min-height: unset;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Safe area top only on mobile */
  .app-header {
    padding-top: max(20px, calc(14px + env(safe-area-inset-top)));
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .view {
    padding-left:  max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .bottom-nav {
    padding-left:  max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
}

/* ── Compact phones (height < 680px, e.g. iPhone SE) ───────── */
@media (max-height: 680px) {
  .app-header      { padding-top: 14px; padding-bottom: 10px; }
  .hero-panel      { min-height: 120px; padding: 16px; }
  .hero-meter      { width: 80px; height: 80px; }
  .hero-meter span { font-size: 40px; }
  .person-card     { min-height: 56px; }
  .view.is-active  { gap: 10px; }
  .precision-panel { padding: 12px; gap: 10px; }
  .parking-marker  { width: 96px; height: 96px; font-size: 52px; }
  .primary, .secondary { min-height: 46px; }
}

/* ── Very compact phones (height < 580px) ───────────────────── */
@media (max-height: 580px) {
  .app-header      { padding-top: 12px; padding-bottom: 8px; }
  h1               { font-size: 20px; }
  .hero-panel      { min-height: 100px; padding: 12px; }
  .hero-meter      { width: 70px; height: 70px; }
  .hero-meter span { font-size: 34px; }
  .view.is-active  { gap: 8px; padding-top: 2px; }
  .bottom-nav      { padding-top: 6px; padding-bottom: max(8px, calc(6px + env(safe-area-inset-bottom))); }
  .nav-item        { min-height: 38px; font-size: 10px; }
  .precision-panel { grid-template-columns: 80px 1fr; }
  .arrow           { width: 80px; height: 80px; }
  .arrow::after    { width: 32px; height: 32px; margin: 24px auto; }
  .distance        { font-size: 34px; }
}

/* ── Landscape phone ────────────────────────────────────────── */
@media (orientation: landscape) and (max-height: 500px) {
  .app-header { padding-top: 10px; padding-bottom: 8px; }
  h1 { font-size: 18px; }

  .map         { height: 160px; }
  .parking-map { height: 180px; }

  .hero-panel {
    min-height: 80px;
    padding: 12px 16px;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-meter      { width: 68px; height: 68px; }
  .hero-meter span { font-size: 32px; }

  .precision-panel { padding: 10px 12px; gap: 10px; }
  .arrow           { width: 76px; height: 76px; }
  .arrow::after    { width: 30px; height: 30px; margin: 23px auto; }
  .distance        { font-size: 30px; }

  .view.is-active  { gap: 8px; }
  .primary, .secondary { min-height: 42px; }
  .nav-item        { min-height: 38px; font-size: 10px; }
}

/* ── Narrow phones (< 360px wide) ──────────────────────────── */
@media (max-width: 359px) {
  .app-header   { padding-left: 14px; padding-right: 14px; }
  .view         { padding-left: 14px; padding-right: 14px; }
  h2            { font-size: 17px; }
  .person-card  { grid-template-columns: 36px 1fr auto; gap: 8px; padding: 10px; }
  .avatar       { width: 36px; height: 36px; font-size: 14px; }
  .person-card strong { font-size: 14px; }
  .live-pill    { display: none; }
  .precision-panel { grid-template-columns: 80px 1fr; gap: 10px; padding: 12px; }
  .arrow        { width: 80px; height: 80px; }
  .arrow::after { width: 30px; height: 30px; margin: 25px auto; }
  .signal-rail  { gap: 4px; }
  .signal-rail span { font-size: 10px; padding: 6px 2px; }
  .bottom-nav   { gap: 3px; padding-left: 6px; padding-right: 6px; }
  .nav-item     { font-size: 10px; }
}

/* ── Tablet / large screen: padding around the phone ───────── */
@media (min-width: 600px) {
  .stage {
    align-items: center;
    padding: 32px;
  }
}

@media (min-width: 900px) {
  .stage { padding: 40px; }
}

/* ═══════════════════════════════════════════════════════════
   NEW COMPONENTS
═══════════════════════════════════════════════════════════ */

/* ── Header title / avatar ──────────────────────────────────── */
.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(78,230,167,0.35);
  background: rgba(78,230,167,0.12);
  color: var(--green);
  font-size: 15px; font-weight: 950;
  cursor: pointer;
  transition: transform 0.15s;
}
.header-avatar:active { transform: scale(0.93); }

/* ── Radar map ──────────────────────────────────────────────── */
.radar-map {
  position: relative;
  height: clamp(180px, 30dvh, 240px);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(78,230,167,0.06) 0%, transparent 65%), #191f24;
  overflow: visible; /* allow pins to slightly overflow the edge */
}

/* Clip the background but allow pin overflow using a separate overlay */
.radar-map::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  aspect-ratio: 1;           /* always circular */
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* Size rings based on height so they stay circular in a wide container */
.radar-ring.r1 { height: 30%; }
.radar-ring.r2 { height: 60%; }
.radar-ring.r3 { height: 92%; }

/* ── Pairing panel ──────────────────────────────────────────── */
.pair-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
}

.pair-card.waiting {
  align-items: center;
  text-align: center;
}

.pair-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pair-code {
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 950;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 4px 0;
}

.pair-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.pair-divider::before,
.pair-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* ── Code / name input ──────────────────────────────────────── */
.code-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px; font-weight: 900;
  font-family: inherit;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.15s;
}
.code-input:focus { border-color: var(--green); }
.code-input::placeholder { color: var(--muted); letter-spacing: 0; font-weight: 700; }

/* ── Full-width button helper ───────────────────────────────── */
.full { width: 100%; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  text-align: center;
  flex: 1;
}
.empty-icon { font-size: 36px; line-height: 1; margin-bottom: 4px; }
.empty-state p { font-size: 17px; font-weight: 900; }
.empty-state small { color: var(--muted); font-size: 14px; font-weight: 700; }

/* ── Name prompt ────────────────────────────────────────────── */
.name-prompt {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78,230,167,0.12), rgba(85,201,255,0.06)), var(--surface);
  border: 1px solid rgba(78,230,167,0.25);
}
.name-prompt-label {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--green);
}
.name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

/* ── Compass permission button ──────────────────────────────── */
.compass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255,193,90,0.12);
  border: 1px solid rgba(255,193,90,0.3);
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
  transition: opacity 0.15s;
}
.compass-btn:active { opacity: 0.7; }
.compass-btn.hidden { display: none; }

/* ── Person card — non-interactive (contacts list) ──────────── */
.person-card.static {
  cursor: default;
}
.person-card.static:active { background: var(--surface); }

/* ── Landscape: radar shrinks ───────────────────────────────── */
@media (orientation: landscape) and (max-height: 500px) {
  .radar-map { height: 140px; }
}

/* ── Short phone: radar shrinks ─────────────────────────────── */
@media (max-height: 680px) {
  .radar-map { height: clamp(140px, 24dvh, 180px); }
  .pair-card { padding: 14px; }
  .pair-code { font-size: 34px; }
}

/* ═══════════════════════════════════════════════════════════
   MEET VIEW — LIVE STATES
═══════════════════════════════════════════════════════════ */

/* ── GPS status bar (top of Meet view) ─────────────────────── */
.meet-gps-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.meet-gps-bar .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.meet-gps-bar.is-ready {
  color: var(--text);
}
.meet-gps-bar.is-ready .status-dot {
  background: var(--green);
  animation: gps-pulse 2.4s ease infinite;
}

.meet-gps-bar.is-error { color: var(--red); }
.meet-gps-bar.is-error .status-dot { background: var(--red); }

@keyframes gps-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(78,230,167,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(78,230,167,0);   }
}

/* ── Waiting screen status row ──────────────────────────────── */
.wait-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
  animation: amber-pulse 1.6s ease infinite;
}

@keyframes amber-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(255,193,90,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(255,193,90,0);   }
}

/* ── Arrow: glow pulse when within 9 m ─────────────────────── */
.arrow.pulse-close {
  animation: arrow-close 1s ease-in-out infinite;
}

@keyframes arrow-close {
  0%, 100% { box-shadow: 0 0 0 0px  rgba(78,230,167,0.6); }
  50%       { box-shadow: 0 0 0 14px rgba(78,230,167,0);   }
}

/* ── Confirm button lights up when ready ───────────────────── */
.primary.is-ready {
  background: var(--green);
  animation: btn-ready 1.4s ease infinite;
}

@keyframes btn-ready {
  0%, 100% { box-shadow: 0 0 0 0px  rgba(78,230,167,0.5); }
  50%       { box-shadow: 0 0 0 10px rgba(78,230,167,0);   }
}

/* ── Friend pin dim state ───────────────────────────────────── */
.pin.friend {
  transition: left 350ms ease, top 350ms ease, opacity 0.3s;
}
