/* Screen 10: My Profile / Nightlife Identity
   A nightlife passport: portrait, identity tags, a DNA card, then the
   places, nights and people that made it. Reuses cards, tags, spots row,
   avatar groups and progress bars from earlier screens. */

/* bottom-nav avatar can show the profile photo */
.tab .me.photo { padding: 0; overflow: hidden; }
.tab .me img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tab.active .me { box-shadow: 0 0 0 2px var(--accent-light), 0 0 12px var(--glow); }

.pf-scroll {
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.pf-scroll::-webkit-scrollbar { display: none; }
.pf-content {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 4px;
  padding-bottom: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.pf-muted { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.vd-section-head .pf-muted { margin-left: auto; }

/* ---------- Hero ---------- */
.pf-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 18px 18px;
  border-radius: 30px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(157, 92, 255, 0.3), transparent 70%),
    var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.35);
  text-align: center;
}
.pf-avatar {
  width: 112px; height: 112px; border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 0 6px rgba(157, 92, 255, 0.16), 0 0 34px var(--glow);
  margin-bottom: 8px;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pf-avatar.initials { background: linear-gradient(135deg, var(--a1), var(--a2)); font-family: var(--font-display); font-size: 40px; font-weight: 800; }
.pf-name { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.pf-name span { font-family: var(--font-body); font-weight: 500; font-size: 24px; text-transform: none; color: #d9d5e3; }
.pf-hero .vd-place { justify-content: center; }
.pf-bio { margin: 4px 0 0; font-size: 15px; font-style: italic; color: #d9d5e3; }
.pf-hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 12px; }
.pf-hero-actions .btn { min-height: 44px; font-size: 14px; }
.pf-share-btn { color: var(--accent-light); border-color: rgba(185, 139, 255, 0.4); }

/* ---------- Nightlife DNA ---------- */
.pf-dna {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(185, 139, 255, 0.4);
  box-shadow: 0 0 34px rgba(157, 92, 255, 0.18);
}
.pf-persona {
  padding: 18px 18px 16px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(157, 92, 255, 0.45), transparent 60%),
    linear-gradient(135deg, #1d1530, #120e1c);
  border-bottom: 1px solid rgba(185, 139, 255, 0.25);
}
.pf-persona-title { margin: 6px 0 4px; font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; text-shadow: 0 0 20px rgba(157, 92, 255, 0.5); }
.pf-persona-line { margin: 0; font-size: 14px; color: #d9d5e3; }
.pf-dna-body { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 6px; padding: 12px 14px 4px 6px; }
.pf-radar { width: 100%; height: auto; display: block; }
.pf-radar-ring { fill: none; stroke: #2a2440; stroke-width: 1; }
.pf-radar-axis { stroke: #241f33; stroke-width: 1; }
.pf-radar-shape { fill: rgba(157, 92, 255, 0.32); stroke: var(--accent-light); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(157, 92, 255, 0.6)); }
.pf-radar-dot { fill: #fff; }
.pf-radar text { fill: var(--muted); font-family: var(--font-body); font-size: 9px; font-weight: 700; }
.pf-dna-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-dna-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; color: #d9d5e3; font-weight: 600; }
.pf-dna-list b { font-size: 15px; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }
.pf-dna-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; }
.pf-dna-foot > span { font-size: 11px; color: var(--muted); }
.pf-dna-foot .cr-text-btn { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pf-dna-foot svg { width: 14px; height: 14px; }

/* ---------- This month ---------- */
.pf-month { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pf-month div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 4px; text-align: center; min-width: 0; }
.pf-month div + div { border-left: 1px solid var(--line); }
.pf-month b { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--accent-light); font-variant-numeric: tabular-nums; }
.pf-month span { font-size: 10px; color: var(--muted); font-weight: 700; line-height: 1.25; }

/* ---------- Spots ---------- */
.pf-visits { padding-inline: 4px; margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--accent-light); }

/* ---------- Night map ---------- */
.pf-map { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0a0810; }
.pf-map svg { display: block; width: 100%; height: auto; aspect-ratio: 480 / 270; max-width: 100%; }
.pf-map-glow { fill: rgba(157, 92, 255, 0.28); filter: url(#pf-blur); }
.pf-map-dot { fill: var(--accent-light); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 0 6px var(--accent)); }
.pf-map text { fill: #e9e2ff; font-family: var(--font-body); font-size: 14px; font-weight: 800; paint-order: stroke; stroke: rgba(5, 4, 7, 0.85); stroke-width: 4px; }
.pf-map-note {
  margin: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.pf-map-note svg { width: 12px; height: 12px; color: var(--accent-light); }

/* ---------- My nights grid ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 18px; overflow: hidden; }
.pf-night { position: relative; aspect-ratio: 3 / 4; max-width: 100%; background: #0d0a14; overflow: hidden; }
.pf-night video, .pf-night img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%); pointer-events: none; }
.pf-night-venue { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; font-size: 10px; font-weight: 800; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-night.fresh { box-shadow: inset 0 0 0 2px var(--accent-light); }
.pf-night-new {
  position: absolute; top: 6px; left: 6px; z-index: 1;
  padding: 2px 7px; border-radius: 999px;
  background: var(--accent);
  font-size: 9px; font-weight: 800;
}

/* ---------- Connections ---------- */
.pf-connections { display: flex; flex-direction: column; gap: 10px; }
.pf-connections .vd-section-head { margin-bottom: 0; }
.pf-conn.new { box-shadow: 0 0 0 2px var(--accent-light), 0 0 12px var(--glow); }
.pf-conn-names { margin: 0; font-size: 13px; color: #d9d5e3; }
.pf-conn-new { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-light); }
.pf-conn-new svg { width: 14px; height: 14px; flex: none; }
.pf-conn-new b { color: var(--fg); }

/* ---------- Summaries ---------- */
.pf-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pf-summary .btn { min-height: 42px; font-size: 14px; }
.pf-summary-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-summary-list li { font-size: 14px; color: #d9d5e3; }
.pf-summary-list b { color: var(--accent-light); font-size: 16px; margin-right: 4px; font-variant-numeric: tabular-nums; }
.pf-rewards-row { display: flex; align-items: center; gap: 10px; }
.pf-rewards-row .rw-coin { width: 38px; height: 38px; }
.pf-rewards-row .rw-coin svg { width: 20px; height: 20px; }
.pf-balance { font-family: var(--font-display); font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-rewards-row > span:last-child { font-size: 13px; color: var(--muted); font-weight: 700; }
.pf-pool { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-color: rgba(185, 139, 255, 0.35); }
.pf-pool .rw-progress { width: 100%; }
.pf-pool-title { margin: 0; font-size: 17px; font-weight: 800; }
.pf-pool-meta, .pf-pool-mine { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.pf-pool-meta b, .pf-pool-mine b { color: var(--fg); }
.pf-pool .btn { min-height: 42px; font-size: 14px; margin-top: 4px; }
.pf-pool-empty {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px dashed #3a3350;
  text-align: left;
}
.pf-pool-empty .rw-coin { width: 38px; height: 38px; flex: none; }
.pf-pool-empty .rw-coin svg { width: 18px; height: 18px; }
.pf-pool-empty > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-pool-empty b { font-size: 15px; font-weight: 800; }
.pf-pool-empty > span span { font-size: 12px; color: var(--muted); }
.pf-pool-empty > svg { width: 16px; height: 16px; color: var(--muted); }

/* ---------- Completion, visibility, privacy ---------- */
.pf-controls { display: flex; flex-direction: column; gap: 16px; }
.pf-complete { display: flex; flex-direction: column; gap: 8px; }
.pf-complete-top { display: flex; align-items: center; justify-content: space-between; }
.pf-complete-top b { font-size: 13px; font-weight: 800; }
.pf-complete ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.pf-visibility { display: flex; flex-direction: column; gap: 8px; }
.pf-privacy-link { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--accent-light); }
.pf-privacy-link svg { width: 16px; height: 16px; }
.pf-privacy-link svg:last-child { margin-left: auto; color: var(--muted); }

/* ---------- Edit sheet ---------- */
.pf-edit { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.pf-photo-opts { display: flex; gap: 12px; }
.pf-photo-opt { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); padding: 0; }
.pf-photo-opt.on { border-color: var(--accent-light); box-shadow: 0 0 14px var(--glow); }
.pf-photo-opt img { width: 100%; height: 100%; object-fit: cover; }
.pf-photo-opt span { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); font-weight: 800; font-size: 22px; }
.pf-fields { display: grid; grid-template-columns: 1fr 88px; gap: 10px; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-field > span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.pf-field input, .pf-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg); font: inherit; font-size: 15px;
  outline: none; resize: none;
}
.pf-field input:focus, .pf-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 12px rgba(157, 92, 255, 0.25); }
.pf-error { margin: 0; font-size: 13px; font-weight: 700; color: #ff8fa3; }
.pf-edit .cp-sheet-actions { position: sticky; bottom: -26px; padding-block: 10px; background: #0b0911; }

/* ---------- Settings, about, share ---------- */
.pf-settings { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.pf-settings .fs-title { margin-bottom: 8px; }
.pf-setting { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.pf-setting:last-child { border-bottom: 0; }
.pf-login-email { min-width: 0; margin-left: 16px; text-align: right; overflow-wrap: anywhere; }
.pf-setting > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pf-setting b { font-size: 15px; font-weight: 800; }
.pf-setting > span span { font-size: 12px; color: var(--muted); }
.pf-setting > svg { width: 16px; height: 16px; color: var(--muted); }

.pf-about { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 0 4px; text-align: center; }
.pf-about .wordmark { font-size: 22px; }
.pf-about .btn, .pf-share .btn { align-self: stretch; }
.pf-tagline { margin: 0; font-family: "Jost", var(--font-body); font-weight: 300; letter-spacing: 0.24em; font-size: 13px; color: #cbb0ff; }

.pf-share { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 10px; text-align: center; }
.pf-share-card {
  width: 100%; max-width: 310px;
  padding: 22px 20px;
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(157, 92, 255, 0.45), transparent 70%),
    linear-gradient(160deg, #1d1530, #0b0911);
  border: 1px solid rgba(185, 139, 255, 0.5);
  box-shadow: 0 0 40px rgba(157, 92, 255, 0.3);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: iv-in 0.4s ease;
}
.pf-share-card .wordmark { font-size: 15px; margin-bottom: 8px; }
.pf-share-whose { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #d9d5e3; }
.pf-share-title { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; text-shadow: 0 0 20px rgba(157, 92, 255, 0.6); }
.pf-share-card ul { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.pf-share-card li { display: grid; grid-template-columns: 86px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #d9d5e3; text-align: left; }
.pf-share-card li i { height: 5px; border-radius: 3px; background: #2a2440; overflow: hidden; }
.pf-share-card li i b { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #d2b6ff); }
.pf-share-card li em { font-style: normal; font-weight: 800; color: var(--fg); text-align: right; }
.pf-share-top { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.pf-share-top b { color: var(--fg); margin-left: 4px; }
.pf-share-tag { margin: 2px 0 0; font-family: "Jost", var(--font-body); font-weight: 300; letter-spacing: 0.18em; font-size: 12px; color: #cbb0ff; }

.pf-vibe-btn { margin: 0 16px 16px; width: calc(100% - 32px); min-height: 48px; }
.pf-vibe-btn svg { width: 18px; height: 18px; }

/* avatar is a button: tap to edit your profile */
.pf-avatar-btn { display: block; border-radius: 50%; }
.pf-avatar-btn:active { transform: scale(0.96); }
.pf-switch { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #2a2438; position: relative; transition: background 0.2s; }
.pf-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8f88a3; transition: transform 0.2s, background 0.2s; }
.pf-switch.on { background: var(--accent); box-shadow: 0 0 12px rgba(157, 92, 255, 0.4); }
.pf-switch.on i { transform: translateX(18px); background: #fff; }
.pf-settings .sf-stack { margin-top: 4px; }
.pf-music-tag { display: inline-flex; align-items: center; gap: 5px; border-color: rgba(185, 139, 255, 0.45); color: var(--accent-light); }
.pf-music-tag svg { width: 13px; height: 13px; }
