/* ═══════════════════════════════════════════════════════════
   Profile Page — modern card-style layout
   ═══════════════════════════════════════════════════════════ */

.prof-page {
  max-width: 480px; margin: 0 auto;
  padding: 60px 16px 100px;
  position: relative;
  animation: profFadeIn .35s cubic-bezier(.16,1,.3,1) both;
}
@keyframes profFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero: Banner + Avatar + Actions ─────────────────── */
.prof-hero {
  position: relative;
  margin-bottom: 16px;
}

.prof-banner {
  width: 100%; height: 160px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(124,156,255,.15) 0%, rgba(255,107,157,.1) 50%, rgba(167,139,250,.12) 100%);
}
.prof-banner-img {
  width: 100%; height: 100%; object-fit: cover;
}
.prof-banner-empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(124,156,255,.12) 0%, rgba(255,107,157,.08) 50%, rgba(167,139,250,.1) 100%);
}
.prof-banner-edit-hint {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  opacity: 0; transition: opacity .2s;
}
.prof-banner:hover .prof-banner-edit-hint { opacity: 1; }

/* Avatar floating over banner bottom */
.prof-hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: -40px;
  padding: 0 12px;
}
.prof-avatar-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  position: relative; cursor: pointer;
  border: 3px solid var(--bg);
  overflow: visible;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.prof-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.prof-avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--accent);
}
.prof-avatar-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.prof-avatar-wrap:hover .prof-avatar-badge {
  transform: scale(1.15);
}

/* Top action buttons (back + edit) */
.prof-hero-actions {
  display: flex; gap: 8px;
  margin-bottom: 8px;
}
.prof-action-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 12px;
  background: rgba(0,0,0,.4); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  color: rgba(255,255,255,.85);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}
.prof-action-btn:hover {
  background: rgba(0,0,0,.6);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.prof-action-btn svg { flex-shrink: 0; }
.prof-action-edit {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.prof-action-edit:hover {
  background: var(--accent);
  filter: brightness(1.15);
  color: var(--bg);
}

/* ── Identity (name, spirit animal, bio) ─────────────── */
.prof-identity {
  padding: 18px 4px 0;
}
.prof-name {
  font-size: 24px; font-weight: 800;
  margin-bottom: 3px; letter-spacing: -.02em;
}
.prof-username-display {
  font-size: 14px; color: var(--text-muted); margin-bottom: 4px;
  font-weight: 500;
}
.prof-spirit-display {
  font-size: 13px; font-weight: 600; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--vita-v, #ff6b9d), var(--vita-i, #ffb347), var(--vita-t, #7c9cff));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: .03em;
}
.prof-bio-display {
  font-size: 14px; color: var(--muted); line-height: 1.5;
  margin-top: 4px;
}
.prof-bio-placeholder {
  font-size: 13px; color: var(--muted); opacity: .5;
  margin-top: 4px; font-style: italic;
}
.prof-location-display {
  font-size: 13px; color: var(--text-dim); margin-top: 6px;
}

/* ── Select (Home City) ──────────────────────────────── */
.prof-select {
  appearance: auto;
  cursor: pointer;
}

/* ── Stats ────────────────────────────────────────────── */
.prof-stats {
  display: flex; gap: 0;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.prof-stat {
  flex: 1; text-align: center;
  position: relative;
}
.prof-stat + .prof-stat::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--border);
}
.prof-stat-num {
  display: block; font-size: 20px; font-weight: 800;
  color: var(--text-primary, var(--text));
}
.prof-stat-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}

/* ── Friend Code Strip ────────────────────────────────── */
.prof-code-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.prof-code-label {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .05em; white-space: nowrap;
}
.prof-code-value {
  font-size: 16px; font-weight: 700;
  letter-spacing: .06em; color: var(--accent);
  flex: 1;
}
.prof-code-copy,
.prof-code-share {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; flex-shrink: 0;
  background: none; border: none;
  transition: all .15s;
}
.prof-code-copy:hover,
.prof-code-share:hover {
  background: var(--accent-dim, rgba(124,156,255,.12));
  color: var(--accent);
}

/* ── Festival Badges ─────────────────────────────────── */
.prof-badges-section {
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.prof-badges-section h3 {
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.prof-badges-sub {
  font-size: 12px; color: var(--muted); margin-bottom: 12px;
}
.prof-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.prof-badge {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 12px 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; text-align: center;
  transition: all .2s ease; cursor: default;
}
.prof-badge.earned {
  border-color: rgba(255,107,157,.2);
  background: linear-gradient(135deg, rgba(255,107,157,.05) 0%, rgba(124,156,255,.05) 100%);
}
.prof-badge.earned:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,107,157,.12);
}
.prof-badge.locked { opacity: .35; }
.prof-badge.locked:hover { opacity: .5; }
.prof-badge-icon { font-size: 26px; line-height: 1; }
.prof-badge-name {
  font-size: 10px; font-weight: 700; color: var(--muted);
  line-height: 1.2;
}
.prof-badge.earned .prof-badge-name { color: var(--text-primary, var(--text)); }

/* ── Edit Mode ───────────────────────────────────────── */
.prof-form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 24px;
  padding-top: 4px;
}
.prof-label {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 6px;
}
.prof-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 15px; outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.prof-input:focus { border-color: var(--accent); }

.prof-username-wrap { display: flex; align-items: center; gap: 0; }
.prof-username-at {
  padding: 10px 0 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
}
.prof-username-input { border-radius: 0 10px 10px 0 !important; flex: 1; }

.prof-spirit-wrap { display: flex; gap: 8px; align-items: center; }
.prof-spirit-input { flex: 1; }
.prof-spirit-random {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 20px; display: flex; align-items: center; justify-content: center;
  transition: all .15s; cursor: pointer;
}
.prof-spirit-random:hover {
  border-color: var(--accent); background: var(--accent-dim, rgba(124,156,255,.1));
  transform: rotate(15deg) scale(1.05);
}

.prof-field-hint { font-size: 11px; color: var(--muted); margin-top: 3px; }

.prof-bio { resize: none; line-height: 1.5; min-height: 76px; }

/* City autocomplete */
.prof-city-wrap { position: relative; }
.prof-city-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface, #1a1d24);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  border-radius: 10px; margin-top: 4px;
  max-height: 220px; overflow-y: auto;
  z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.prof-city-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  border: none; background: transparent;
  color: var(--text, #fff); font-size: 13px; font-weight: 500;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background .1s;
}
.prof-city-item:hover { background: rgba(255,255,255,.06); }
.prof-city-pin { font-size: 12px; flex-shrink: 0; }
.prof-city-empty { color: var(--muted); cursor: default; }

.prof-regions { display: flex; flex-direction: column; gap: 6px; }
.prof-region-check {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: border-color .15s;
}
.prof-region-check:hover { border-color: var(--accent); }
.prof-region-check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 5px;
  background: var(--surface2); cursor: pointer;
  position: relative; transition: all .15s;
}
.prof-region-check input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.prof-region-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; top: 2px; left: 6px;
  width: 5px; height: 10px;
  border: solid var(--bg); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Edit mode top bar */
.prof-edit-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.prof-topbar-title {
  font-size: 16px; font-weight: 700; color: var(--text);
}
.prof-topbar-cancel {
  background: none; border: none;
  color: var(--muted); font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.prof-topbar-cancel:hover { color: var(--text); background: rgba(255,255,255,.05); }
.prof-topbar-save {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 8px;
  padding: 8px 18px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: filter .15s;
}
.prof-topbar-save:hover { filter: brightness(1.1); }
.prof-status { min-height: 20px; text-align: center; font-size: 14px; }

/* Upload overlay spinner */
.prof-upload-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit;
  z-index: 5;
}
.prof-upload-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: profSpin .7s linear infinite;
}
@keyframes profSpin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   Spotify / Music Taste Section
   ═══════════════════════════════════════════════════════════ */

.prof-spotify-section {
  margin-top: 20px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.prof-spotify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.prof-spotify-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.prof-spotify-icon {
  flex-shrink: 0;
}
.prof-spotify-connected {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #1DB954;
  font-weight: 600;
}

.prof-spotify-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.prof-spotify-genre {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(29,185,84,.12);
  border: 1px solid rgba(29,185,84,.25);
  border-radius: 100px;
  font-size: 12px;
  color: #1DB954;
  font-weight: 600;
  text-transform: capitalize;
}

/* Genre DNA card */
.prof-genre-dna {
  margin: 16px 0 12px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.prof-genre-dna-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: .3px;
}
.prof-genre-dna-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 4px;
  background: rgba(29,185,84,.06);
  border: 1px solid rgba(29,185,84,.12);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  font-family: inherit;
  color: inherit;
}
.prof-genre-dna-row:hover {
  background: rgba(29,185,84,.12);
  border-color: rgba(29,185,84,.25);
}
.prof-genre-dna-name {
  flex: 0 0 auto;
  min-width: 80px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  color: #1DB954;
}
.prof-genre-dna-bar {
  flex: 1 1 0;
  height: 6px;
  background: linear-gradient(90deg, #1DB954 0%, #1ed760 100%);
  border-radius: 3px;
  min-width: 4px;
  transition: width .4s ease;
}
.prof-genre-dna-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.prof-spotify-artists {
  margin-bottom: 12px;
}
.prof-spotify-artists-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.prof-spotify-artist {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 4px 4px 0;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}

.prof-spotify-disconnect {
  display: block;
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.prof-spotify-disconnect:hover {
  border-color: rgba(255,80,80,.4);
  color: #ff5050;
}

/* Disconnected state */
.prof-spotify-disconnected .prof-spotify-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 14px;
}
.prof-spotify-connect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: #1DB954;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.prof-spotify-connect:hover {
  background: #1ed760;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,185,84,.35);
}

/* ═══════════════════════════════════════════════════════════
   Other User Profile (oup-*) — social view
   ═══════════════════════════════════════════════════════════ */

.oup-page {
  max-width: 430px; margin: 0 auto;
  padding-bottom: 100px;
  animation: profFadeIn .35s cubic-bezier(.16,1,.3,1) both;
}
.oup-loading, .oup-empty {
  padding: 80px 20px; text-align: center;
  color: var(--muted); font-size: 15px;
}

/* ── Nav bar ─────────────────────────────────────────────── */
.oup-back-bar {
  padding: 8px 16px;
}
.oup-nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  background: var(--surface2, rgba(30,40,60,.5));
  border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  font-size: 13px; font-family: inherit;
}
.oup-nav-back:hover { border-color: var(--accent); color: var(--text); }

/* ── Profile header (centered) ───────────────────────────── */
.oup-header {
  padding: 24px 20px 0;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.oup-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #e06c75, #c678dd);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
  border: 3px solid rgba(224,108,117,.3);
  position: relative; overflow: hidden;
  margin-bottom: 10px;
}
.oup-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.oup-name {
  font-size: 22px; font-weight: 800; letter-spacing: -.02em;
  color: var(--text);
}
.oup-spirit {
  font-size: 13px; font-weight: 600; margin-top: 2px;
  background: linear-gradient(90deg, var(--vita-v, #ff6b9d), var(--vita-i, #ffb347), var(--vita-t, #7c9cff));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.oup-bio {
  font-size: 13px; color: var(--text-dim, rgba(232,234,237,.6));
  margin-top: 6px; line-height: 1.4; max-width: 280px;
}
.oup-location {
  font-size: 12px; color: var(--muted); margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}

/* ── Mutual friends strip (in header) ────────────────────── */
.oup-mutual-friends {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 14px;
}
.oup-mutual-avatars { display: flex; }
.oup-mutual-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
  border: 2px solid var(--bg);
  margin-left: -6px; overflow: hidden;
}
.oup-mutual-av:first-child { margin-left: 0; }
.oup-mutual-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.oup-mutual-text {
  font-size: 12px; color: var(--text-dim, rgba(232,234,237,.6)); font-weight: 500;
}
.oup-mutual-text strong { color: var(--accent); font-weight: 600; }

/* ── Action buttons ──────────────────────────────────────── */
.oup-actions {
  display: flex; gap: 8px; padding: 16px 20px 0;
  justify-content: center;
}
.oup-action-btn {
  flex: 1; max-width: 160px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: 6px;
  transition: all .15s; border: none;
}
.oup-action-primary {
  background: var(--accent); color: var(--bg);
}
.oup-action-primary:hover { filter: brightness(1.1); }
.oup-action-secondary {
  background: var(--surface2, rgba(30,40,60,.5)); color: var(--text);
  border: 1px solid var(--border);
}
.oup-action-secondary:hover { border-color: var(--accent); }
.oup-action-friend {
  background: rgba(52,211,153,.1); color: var(--green, #34d399);
  border: 1px solid rgba(52,211,153,.2);
}

/* ── Inline stats ────────────────────────────────────────── */
.oup-stats-row {
  display: flex; gap: 0; padding: 16px 20px 0;
}
.oup-stat { flex: 1; text-align: center; padding: 8px 0; }
.oup-stat-num {
  font-size: 18px; font-weight: 800; letter-spacing: -.02em;
}
.oup-stat-label {
  font-size: 10px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; margin-top: 1px;
}

/* ── Section divider & header ────────────────────────────── */
.oup-section-divider {
  height: 1px; background: var(--border); margin: 16px 20px 0;
}
.oup-section-header {
  padding: 16px 20px 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ── Shared events ───────────────────────────────────────── */
.oup-shared-events {
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.oup-shared-event {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface, rgba(17,24,39,.65));
  border: 1px solid var(--border);
  cursor: pointer; transition: border-color .15s;
}
.oup-shared-event:hover { border-color: var(--accent); }
.oup-shared-event-date { flex-shrink: 0; width: 40px; text-align: center; }
.oup-shared-event-month {
  font-size: 9px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em;
}
.oup-shared-event-day {
  font-size: 18px; font-weight: 900; color: var(--text); line-height: 1;
}
.oup-shared-event-info { flex: 1; min-width: 0; }
.oup-shared-event-title {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.oup-shared-event-venue {
  font-size: 11px; color: var(--text-dim, rgba(232,234,237,.6)); margin-top: 1px;
}
.oup-shared-event-badge {
  flex-shrink: 0; padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  background: rgba(52,211,153,.1); color: var(--green, #34d399);
}
.oup-shared-event-badge.you-too {
  background: rgba(124,156,255,.1); color: var(--accent);
}

/* ── Shared crews ────────────────────────────────────────── */
.oup-shared-crews {
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.oup-shared-crew {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface, rgba(17,24,39,.65));
  border: 1px solid var(--border);
  cursor: pointer; transition: border-color .15s;
}
.oup-shared-crew:hover { border-color: var(--accent); }
.oup-shared-crew-emoji { font-size: 22px; flex-shrink: 0; }
.oup-shared-crew-info { flex: 1; min-width: 0; }
.oup-shared-crew-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oup-shared-crew-meta {
  font-size: 11px; color: var(--text-dim, rgba(232,234,237,.6)); margin-top: 1px;
}
.oup-shared-crew-badge {
  flex-shrink: 0; padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  background: rgba(139,92,246,.1); color: var(--vita-t, #c471ed);
}

/* ── Mutual friends list ─────────────────────────────────── */
.oup-mutual-list {
  padding: 0 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.oup-mutual-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 12px;
  background: var(--surface, rgba(17,24,39,.65));
  border: 1px solid var(--border);
  cursor: pointer; transition: border-color .15s;
}
.oup-mutual-row:hover { border-color: var(--accent); }
.oup-mutual-row-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  overflow: hidden;
}
.oup-mutual-row-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.oup-mutual-row-name {
  font-size: 13px; font-weight: 600; flex: 1; color: var(--text);
}
.oup-mutual-row-label {
  font-size: 10px; color: var(--muted); font-weight: 600;
}

/* ── Badges ──────────────────────────────────────────────── */
.oup-badge-list {
  padding: 0 16px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.oup-badge-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 100px;
  background: rgba(124,156,255,.06);
  border: 1px solid rgba(124,156,255,.12);
  font-size: 11px; font-weight: 600;
  color: var(--text-dim, rgba(232,234,237,.6));
}
.oup-badge-icon { font-size: 13px; }

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 520px) {
  .oup-avatar { width: 68px; height: 68px; font-size: 24px; }
  .oup-name { font-size: 20px; }
  .oup-stat-num { font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   §8  EVENT MEMORY WALL
   ══════════════════════════════════════════════════════════════ */

.prof-memory-wall {
  margin-top: 32px;
  padding: 0 16px 40px;
}

/* Header */
.prof-mw-header {
  margin-bottom: 16px;
}
.prof-mw-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #e8eaed);
  display: flex;
  align-items: center;
  gap: 8px;
}
.prof-mw-title::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f97316, #ec4899);
}
.prof-mw-subtitle {
  font-size: 12px;
  color: var(--text-dim, rgba(232,234,237,.5));
  margin-top: 4px;
  padding-left: 12px;
}

/* Masonry Grid */
.prof-mw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.prof-mw-grid .prof-mw-card:first-child {
  grid-column: 1 / -1;
  min-height: 180px;
}

/* Card */
.prof-mw-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 140px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.prof-mw-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.prof-mw-card:active {
  transform: scale(.97);
}

/* Card Background */
.prof-mw-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.7) saturate(1.1);
  transition: filter .3s ease;
}
.prof-mw-card:hover .prof-mw-card-bg {
  filter: brightness(.8) saturate(1.2);
}

/* Card Overlay */
.prof-mw-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

/* Card Content */
.prof-mw-card-date {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.prof-mw-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prof-mw-card-venue {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-mw-card-friends {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
.prof-mw-card-friends::before {
  content: '👥';
  font-size: 12px;
}

/* Empty State */
.prof-mw-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim, rgba(232,234,237,.5));
}
.prof-mw-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  opacity: .5;
}
.prof-mw-empty p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto;
}

/* Loading */
.prof-mw-loading {
  text-align: center;
  padding: 32px;
  color: var(--text-dim, rgba(232,234,237,.5));
  font-size: 13px;
}

/* ── Memory Wall mobile adjustments ──────────────────────── */
@media (max-width: 360px) {
  .prof-mw-grid {
    grid-template-columns: 1fr;
  }
  .prof-mw-card { min-height: 120px; }
}

/* ═══════════════════════════════════════════════════════════
   YOUR LINEUP — cross-crew Going / Interested aggregation.
   Lives as a profile section between Music Taste and Memory
   Wall. Each row deep-links into the relevant crew page.
   ═══════════════════════════════════════════════════════════ */

.prof-lineup-section {
  /* prof-section base already gives the surrounding card chrome */
}
.prof-lineup-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.prof-lineup-header h3 {
  margin: 0;
  font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, #ffb347, #ff6b9d, #c471ed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.prof-lineup-sub {
  font-size: 11px; color: #7b8ba5;
  font-variant-numeric: tabular-nums;
}
.prof-lineup-empty {
  font-size: 13px; color: #7b8ba5; line-height: 1.5;
  margin: 4px 0 0;
}

/* ── Skeleton (shown while data loads) ── */
.prof-lineup-skel {
  display: flex; flex-direction: column; gap: 8px;
}
.prof-lineup-skel-row {
  height: 56px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%);
  background-size: 200% 100%;
  animation: prof-lineup-shimmer 1.4s ease-in-out infinite;
}
@keyframes prof-lineup-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Event group ── */
.prof-lineup-event { margin-bottom: 14px; }
.prof-lineup-event:last-child { margin-bottom: 0; }
.prof-lineup-event-name {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #c471ed;
  margin-bottom: 6px;
}
.prof-lineup-list {
  display: flex; flex-direction: column; gap: 6px;
}

/* ── Row (one voted set) ── */
.prof-lineup-row {
  display: grid;
  grid-template-columns: 56px 1fr 14px;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(15,15,30,.4);
  cursor: pointer;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1),
              border-color .15s, background .15s;
  outline: none;
}
.prof-lineup-row:hover {
  transform: translateY(-1px);
  border-color: rgba(196,113,237,.35);
  background: rgba(20,20,40,.55);
}
.prof-lineup-row:focus-visible {
  border-color: #c471ed;
  box-shadow: 0 0 0 2px rgba(196,113,237,.35);
}
.prof-lineup-row-time {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1px; min-width: 0;
}
.prof-lineup-row-day {
  font-size: 9px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: #7b8ba5;
}
.prof-lineup-row-clock {
  font-size: 13px; font-weight: 700; color: #fff;
  font-variant-numeric: tabular-nums;
}
.prof-lineup-row-end {
  display: block;
  font-size: 9px; color: #7b8ba5; font-weight: 500;
}
.prof-lineup-row-body { min-width: 0; }
.prof-lineup-row-title {
  font-size: 13px; font-weight: 600; color: #f0f2f8;
  line-height: 1.3;
  word-break: break-word;
}
.prof-lineup-row-meta {
  display: flex; flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 11px; color: #7b8ba5;
  align-items: center;
}
.prof-lineup-stage {
  color: #ffb347; font-weight: 600;
}
.prof-lineup-status {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.prof-lineup-status.going {
  background: rgba(74,222,128,.14);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.28);
}
.prof-lineup-status.interested {
  background: rgba(255,179,71,.12);
  color: #ffb347;
  border: 1px solid rgba(255,179,71,.26);
  opacity: .85;
}
.prof-lineup-crew { color: #c8cdd8; }
.prof-lineup-pos { color: #ff6b9d; font-weight: 600; }
.prof-lineup-note {
  margin-top: 4px;
  font-size: 11px; font-style: italic; color: #c8cdd8;
  opacity: .8;
}
.prof-lineup-chev {
  width: 14px; height: 14px;
  align-self: center;
  color: #5a6678;
  transition: color .15s, transform .15s;
}
.prof-lineup-row:hover .prof-lineup-chev {
  color: #c471ed;
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .prof-lineup-row {
    grid-template-columns: 50px 1fr 12px;
    gap: 8px; padding: 9px 10px;
  }
  .prof-lineup-row-clock { font-size: 12px; }
  .prof-lineup-row-title { font-size: 12px; }
}
