/* ════════════════════════════════════════════════════════════════════
   SafarCircle — UI Refresh Phase 3
   Adds bespoke layouts for: Beacon-Mode Passport, Live Nearby map
   drawer, Find-My-Circle intro card, Midnight Feed wordmark,
   Build-Your-Safar-Circle day planner strip, Community Feedback list.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Passport: Beacon Mode toggle + world map vignette ─── */
.pp-beacon-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.6rem;
  position: relative; z-index: 2;
  margin-bottom: 0.5rem;
}
.pp-beacon-row .pp-greeting {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
}
.beacon-switch {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.78rem; color: var(--text-dim); font-weight: 600;
  cursor: pointer; user-select: none;
}
.beacon-switch .track {
  width: 38px; height: 22px; border-radius: 999px;
  background: rgba(255,255,255,0.12); position: relative;
  transition: background .15s ease;
}
.beacon-switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-dim);
  transition: transform .18s ease, background .18s ease;
}
.beacon-switch input { display: none; }
.beacon-switch input:checked + .track { background: rgba(212,168,83,0.6); }
.beacon-switch input:checked + .track::after { transform: translateX(16px); background: var(--gold); }

.passport-worldmap {
  margin-top: 1rem;
  height: 130px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 50%, rgba(212,168,83,0.10), transparent 70%),
    linear-gradient(180deg, #0E1A40 0%, #0A1330 100%);
  border: 1px solid rgba(212,168,83,0.18);
  position: relative; z-index: 2; overflow: hidden;
}
.passport-worldmap svg { width: 100%; height: 100%; display: block; }

.passport-cta {
  margin-top: 1rem; position: relative; z-index: 2;
  display: flex; gap: 0.6rem;
}
.passport-cta .btn-gold-pill {
  flex: 1;
  background: linear-gradient(180deg, var(--gold-lt), var(--gold) 70%, var(--gold-dk));
  color: #1B2349;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* ─── Map: Live Nearby drawer ─── */
.live-nearby {
  position: absolute;
  left: 0.6rem; right: 0.6rem;
  bottom: calc(var(--nav-total-h) + 1.5rem);
  z-index: 405;
  background: linear-gradient(180deg, rgba(15,25,60,0.96), rgba(10,19,48,0.96));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.5rem 0.7rem 0.7rem;
  max-height: 42vh;
  display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.9,.2,1), opacity .2s ease;
}
.live-nearby.collapsed { transform: translateY(calc(100% - 56px)); }
.live-nearby .ln-handle {
  width: 42px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.2);
  margin: 0.3rem auto 0.5rem; cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.live-nearby .ln-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(111,180,149,0.18);
  color: #B4E3CD;
  border: 1px solid rgba(111,180,149,0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.85rem;
  align-self: center;
  margin-bottom: 0.55rem;
}
.live-nearby .ln-pill::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #6FB495; box-shadow: 0 0 0 4px rgba(111,180,149,0.35);
}
.live-nearby .ln-list { overflow-y: auto; display: flex; flex-direction: column; gap: 0.45rem; }
.live-nearby .ln-row {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
}
.live-nearby .ln-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #213168, #0F1A42);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-lt); font-weight: 700;
  flex: 0 0 38px;
}
.live-nearby .ln-info { flex: 1; min-width: 0; }
.live-nearby .ln-name { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.live-nearby .ln-sub { font-size: 0.78rem; color: var(--text-dim); }
.live-nearby .ln-act {
  background: transparent; border: 1px solid rgba(212,168,83,0.4);
  color: var(--gold-lt);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
}

/* ─── Find My Circle — onboarding overlay ─── */
.fmc-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 6;
  padding: 2rem 1.5rem 4rem;
  animation: scAuthReveal 0.45s ease both;
}
.fmc-overlay .fmc-logo {
  width: 70px; height: 70px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--primary);
  font-size: 2.4rem;
}
.fmc-overlay h2 {
  font-family: var(--serif);
  font-size: 2.1rem; line-height: 1.15;
  color: #1B2349;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 0.5rem;
}
.fmc-overlay p {
  font-size: 0.95rem; color: #4F5A75;
  text-align: center; max-width: 280px;
}
.fmc-overlay .fmc-cta {
  position: absolute; left: 1.25rem; right: 1.25rem;
  bottom: calc(2rem + var(--safe-bottom));
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.fmc-overlay .fmc-cta button {
  width: 100%;
  background: linear-gradient(180deg, var(--primary-lt), var(--primary) 65%, var(--primary-dk));
  color: #fff;
  border: none; border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-weight: 700; font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(201,117,96,0.35);
}

/* ─── Midnight Feed wordmark on home/feed greeting ─── */
.midnight-wordmark {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.1rem 0;
}
.midnight-wordmark .mw-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.midnight-wordmark .mw-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #213168, #0F1A42) center/cover no-repeat;
  border: 2px solid var(--gold);
}
.midnight-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--text);
  margin: 0.4rem 0.1rem 0.8rem;
}

/* ─── Build Your Safar Circle day-strip (trip planner extra) ─── */
.bysc {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  margin: 0.4rem 0 1rem;
}
.bysc-head {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.7rem;
}
.bysc-days {
  display: flex; gap: 0.4rem; overflow-x: auto;
  padding-bottom: 0.55rem;
  scrollbar-width: none;
}
.bysc-days::-webkit-scrollbar { display: none; }
.bysc-day {
  flex: 0 0 48px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.78rem;
}
.bysc-day .num {
  font-size: 1.05rem; color: var(--text);
}
.bysc-day.active {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: #1B2349;
}
.bysc-day.active .num { color: #1B2349; }
.bysc-items { display: flex; flex-direction: column; gap: 0.55rem; }
.bysc-item {
  display: flex; align-items: center; gap: 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}
.bysc-item .bi-icon {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.bysc-item .bi-body { flex: 1; }
.bysc-item .bi-name { font-family: var(--serif); color: var(--text); font-size: 1rem; }
.bysc-item .bi-sub  { color: var(--text-dim); font-size: 0.8rem; }
.bysc-add {
  width: 100%; margin-top: 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(212,168,83,0.45);
  color: var(--gold-lt);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.bysc-add:hover { background: var(--gold); color: #1B2349; border-color: var(--gold); }

/* ─── Community Feedback list (companion detail / user-home) ─── */
.cf-section { margin-top: 1rem; }
.cf-head {
  font-family: var(--serif);
  font-size: 1.3rem; color: var(--text);
  margin: 0.4rem 0 0.6rem;
}
.cf-card {
  display: flex; gap: 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
}
.cf-card .cf-av {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: linear-gradient(135deg, #213168, #0F1A42);
  border: 2px solid var(--gold);
}
.cf-card .cf-stars { color: var(--gold); letter-spacing: 0.05em; font-size: 0.85rem; }
.cf-card .cf-body { color: var(--text-dim); font-size: 0.85rem; font-style: italic; margin-top: 0.18rem; line-height: 1.35; }

.cf-cta {
  width: 100%;
  margin-top: 0.7rem;
  background: transparent;
  border: 1.5px solid rgba(212,168,83,0.5);
  color: var(--gold-lt);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 700; cursor: pointer;
}
.cf-cta:hover { background: var(--gold); color: #1B2349; border-color: var(--gold); }
