/* ============================================
   eResonate — Social network demo
   ============================================ */

.nav-links a.active { color: var(--text); }

/* Demo notice bar */
.demo-bar {
  margin-top: var(--nav-h);
  background: rgba(62, 224, 140, 0.08);
  border-bottom: 1px solid rgba(62, 224, 140, 0.25);
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  text-align: center;
}
.demo-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--money);
  border: 1px solid rgba(62, 224, 140, 0.4);
  border-radius: 20px;
  padding: 0.15rem 0.7rem;
  white-space: nowrap;
}

/* ============================================ SIGNUP */
.signup {
  min-height: calc(100vh - var(--nav-h) - 44px);
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 10%, rgba(168, 85, 247, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(217, 70, 239, 0.1), transparent 65%),
    var(--bg);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}
.signup-pitch h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.signup-pitch p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 480px;
  margin-bottom: 1.5rem;
}
.signup-points li {
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.12), 0 24px 70px rgba(0, 0, 0, 0.5);
}
.signup-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.signup-card input,
.signup-card select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  appearance: none;
  margin-bottom: 0.9rem;
}
.signup-card input:focus, .signup-card select:focus { border-color: var(--accent); }
.signup-card input::placeholder { color: var(--text-dim); }
.avatar-pick { margin: 0.2rem 0 1.1rem; }
.ap-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ap-swatches { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ap-swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.ap-swatch:hover { transform: scale(1.12); }
.ap-swatch.picked { border-color: #fff; transform: scale(1.12); box-shadow: 0 0 14px var(--accent-glow); }
.signup-fine {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.9rem;
  line-height: 1.5;
}

/* Onboarding */
.onboard-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.1rem; }
.onboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.ob-artist {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
}
.ob-info { flex: 1; min-width: 0; }
.ob-name { font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-city { font-size: 0.65rem; color: var(--text-dim); }

/* ============================================ APP SHELL */
.app { padding-top: 1.5rem; padding-bottom: 4rem; }
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.app-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
}
.app-tab {
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.3rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.app-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}
.app-me {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

/* Avatars (initials circles, social-app style) */
.s-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}
.s-avatar.sm { width: 30px; height: 30px; font-size: 0.62rem; }
.s-avatar.artist { border: 2px solid rgba(168, 85, 247, 0.6); }

/* Composer */
.composer {
  display: flex;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
}
.composer form { display: flex; flex: 1; gap: 0.6rem; }
.composer input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0.7rem 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.composer input:focus { border-color: var(--accent); }
.c-post { padding: 0.6rem 1.4rem; font-size: 0.85rem; }

/* Posts */
.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.9rem;
  animation: postIn 0.35s ease;
}
@keyframes postIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.post.live-card { border-color: rgba(168, 85, 247, 0.4); }
.post-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.ph-names { flex: 1; min-width: 0; }
.ph-name { font-weight: 700; font-size: 0.9rem; }
.ph-name .verified { color: var(--accent); font-size: 0.75rem; }
.ph-meta { font-size: 0.7rem; color: var(--text-dim); }
.post-follow {
  background: none;
  border: 1px solid var(--border-accent);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.post-follow:hover { background: rgba(168, 85, 247, 0.12); }
.post-follow.on { background: rgba(168, 85, 247, 0.18); color: var(--text); border-color: transparent; }
.post-body { font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.75rem; word-wrap: break-word; }
.post-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  margin-bottom: 0.75rem;
  background: #0A1020;
}
.post-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-media .live-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
}
.post-media .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.post-media .pm-watch {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 1;
  background: rgba(7, 11, 24, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
}
.post-actions {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.pa-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  transition: color 0.15s, transform 0.1s;
}
.pa-btn:hover { color: var(--text); }
.pa-btn:active { transform: scale(0.94); }
.pa-btn.liked { color: #FF6B9C; }
.pa-btn.reposted { color: var(--money); }
.pa-count { font-variant-numeric: tabular-nums; }

/* Replies */
.post-replies { margin-top: 0.7rem; border-top: 1px solid var(--border); padding-top: 0.7rem; }
.reply {
  display: flex;
  gap: 0.55rem;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  animation: postIn 0.3s ease;
}
.reply-name { font-weight: 700; margin-right: 0.3rem; }
.reply-body { color: var(--text-muted); }
.reply-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.reply-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.45rem 0.9rem;
  color: var(--text);
  font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.reply-row input:focus { border-color: var(--accent); }
.reply-row .btn { padding: 0.4rem 0.9rem; font-size: 0.72rem; }

/* ============================================ DISCOVER */
.view-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.3rem; }
.view-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.d-artist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.d-artist:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.d-thumb {
  aspect-ratio: 16 / 7;
  position: relative;
  background: linear-gradient(135deg, #240a38, #1a0a2e);
}
.d-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-body { padding: 0.8rem 1rem 1rem; }
.d-name { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem; }
.d-city { font-size: 0.72rem; color: var(--text-muted); margin: 0.1rem 0 0.2rem; }
.d-followers { font-size: 0.7rem; color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.d-artist .post-follow { width: 100%; padding: 0.4rem; }

/* ============================================ PROFILE */
.profile-card {
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.12), var(--bg-card) 55%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
}
.pc-top { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.pc-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 30px var(--accent-glow);
}
.pc-name { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; }
.pc-genre {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 0.15rem 0.6rem;
  margin-top: 0.3rem;
}
.pc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06140D;
  background: var(--money);
  border-radius: 16px;
  padding: 0.18rem 0.6rem;
  margin-top: 0.3rem;
  margin-left: 0.4rem;
}
.pc-joined { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.35rem; }
.pc-stats { display: flex; gap: 2rem; margin-bottom: 1.1rem; }
.pcs { text-align: left; }
.pcs-num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.pcs-label { font-size: 0.68rem; color: var(--text-muted); }
.pc-following { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pcf-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.25rem 0.7rem;
}
.pc-signout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 0.75rem;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.pc-signout:hover { color: #FF7A5C; border-color: rgba(255, 122, 92, 0.4); }
.pv-subhead { font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 0.9rem; }
.pv-empty { color: var(--text-dim); font-size: 0.85rem; padding: 1rem 0; }

/* ============================================ SIDEBAR */
.side-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
}
.side-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.ln-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.ln-item:last-child { border-bottom: none; }
.ln-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.ln-info { flex: 1; min-width: 0; }
.ln-name { font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-meta { font-size: 0.65rem; color: var(--text-dim); }
.ln-watch { font-size: 0.68rem; color: var(--accent); font-weight: 700; white-space: nowrap; }
.sg-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.sg-item:last-child { border-bottom: none; }
.sg-info { flex: 1; min-width: 0; }
.sg-name { font-size: 0.8rem; font-weight: 700; }
.sg-meta { font-size: 0.65rem; color: var(--text-dim); }
.side-cta { text-align: center; border-color: var(--border-accent); }
.side-cta p { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8rem; }

/* Toasts */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(10, 16, 34, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(62, 224, 140, 0.35);
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  animation: toastIn 0.3s ease, toastOut 0.4s ease 3.2s forwards;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .signup-grid { grid-template-columns: 1fr; gap: 2rem; }
  .app-grid { grid-template-columns: 1fr; }
  .app-side { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .side-cta { display: none; }
}
@media (max-width: 640px) {
  .discover-grid { grid-template-columns: 1fr; }
  .onboard-grid { grid-template-columns: 1fr; }
  .app-side { grid-template-columns: 1fr; }
  .composer { flex-direction: row; }
}

/* hidden attr must beat the flex display */
.signup[hidden], #appView[hidden] { display: none; }
.post-media { display: block; }

/* ============================================ CUSTOMIZABLE FAN PAGE */
.profile-card { padding: 0; overflow: hidden; }
.pc-banner { height: 96px; }
.pc-inner { padding: 0 1.75rem 1.75rem; }
.pc-top { margin-top: -34px; align-items: flex-end; }
.pc-avatar { border: 3px solid var(--bg-card); }
.pc-bio { font-size: 0.9rem; color: var(--text); margin: 0.2rem 0 0.9rem; max-width: 520px; }
.pc-meta-row { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1rem; }
.pc-edit {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--border-accent);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  margin-right: 0.6rem;
  transition: background 0.2s;
}
.pc-edit:hover { background: rgba(168, 85, 247, 0.25); }

/* Editor modal */
.pe-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 8, 18, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.pe-modal.on { opacity: 1; pointer-events: auto; }
.pe-card {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.22), 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.pe-modal.on .pe-card { transform: none; }
.pe-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}
.pe-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 800; margin-bottom: 1.1rem; }
.pe-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.9rem 0 0.35rem;
}
.pe-card input, .pe-card select, .pe-card textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  appearance: none;
  resize: vertical;
}
.pe-card input:focus, .pe-card select:focus, .pe-card textarea:focus { border-color: var(--accent); }
.pe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pe-banners { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.pe-banner-sw {
  width: 64px; height: 34px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.pe-banner-sw:hover { transform: scale(1.06); }
.pe-banner-sw.picked { border-color: #fff; transform: scale(1.06); box-shadow: 0 0 14px var(--accent-glow); }
.pe-card .btn-full { margin-top: 1.3rem; justify-content: center; }

/* ============================================ PHOTO AVATARS */
.s-avatar { overflow: hidden; }
.s-avatar img, .pc-avatar img, .fm-avatar img, .pe-photo-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.pc-avatar { overflow: hidden; }
.pe-photo-row { display: flex; align-items: center; gap: 0.8rem; }
.pe-photo-preview {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.pe-photo-btn { padding: 0.45rem 1rem; font-size: 0.78rem; cursor: pointer; }
.pe-photo-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
}
.pe-photo-remove:hover { color: #FF7A5C; }
.pe-hint { text-transform: none; letter-spacing: 0; color: var(--text-dim); font-weight: 400; }

/* ============================================ FAN PROFILE MODAL */
.fan-card-modal { width: min(380px, 100%); }
.fm-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.fm-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.fm-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem; }
.fm-bio { font-size: 0.8rem; color: var(--text-muted); }
.fm-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.fm-stats strong { color: var(--accent); font-family: 'Outfit', sans-serif; }
.fm-btns { display: flex; gap: 0.7rem; }
.fm-btns .btn { flex: 1; justify-content: center; font-size: 0.85rem; padding: 0.6rem; }
.fm-btns .btn[disabled] { opacity: 0.45; pointer-events: none; }
#fmConnect.connected {
  background: rgba(62, 224, 140, 0.15);
  border: 1px solid rgba(62, 224, 140, 0.4);
  color: var(--money);
  box-shadow: none;
}

/* Clickable fan identities */
.post-head.fan-click, .reply .s-avatar.fan-click, .reply .reply-name.fan-click { cursor: pointer; }
.post-head.fan-click:hover .ph-name { text-decoration: underline; }

/* ============================================ MESSAGES */
.tab-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--money);
  box-shadow: 0 0 8px rgba(62, 224, 140, 0.7);
  margin-left: 0.4rem;
  vertical-align: 1px;
}
.dm-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 380px;
}
.dm-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.6rem;
  overflow-y: auto;
  max-height: 480px;
}
.dm-empty { font-size: 0.78rem; color: var(--text-dim); padding: 0.8rem; line-height: 1.5; }
.dm-conv {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 0.15s;
}
.dm-conv:hover { background: rgba(255, 255, 255, 0.05); }
.dm-conv.active { background: rgba(168, 85, 247, 0.14); }
.dm-conv-info { flex: 1; min-width: 0; }
.dm-conv-name { font-size: 0.8rem; font-weight: 700; }
.dm-conv-last {
  font-size: 0.68rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dm-conv .tab-dot { margin-left: 0; }
.dm-thread {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.dm-thread-head {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}
.dm-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-width: thin;
}
.dm-msg {
  max-width: 75%;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.4;
  animation: postIn 0.25s ease;
  word-wrap: break-word;
}
.dm-msg.them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 4px;
}
.dm-msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dm-input {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--border);
}
.dm-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.55rem 0.95rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 0;
}
.dm-input input:focus { border-color: var(--accent); }
.dm-input .btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
@media (max-width: 700px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-list { max-height: 180px; }
}

/* ============================================ SEARCH + FAN DIRECTORY */
.d-search {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  appearance: none;
  margin-bottom: 1.5rem;
}
.d-search:focus { border-color: var(--accent); box-shadow: 0 0 20px rgba(168, 85, 247, 0.15); }
.d-section {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.4rem 0 0.8rem;
}
.fan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.f-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.f-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.f-info { flex: 1; min-width: 0; }
.f-handle { font-size: 0.85rem; font-weight: 700; }
.f-bio {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0.15rem 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.f-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.f-chip {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}
.f-chip.genre { color: var(--accent); border-color: var(--border-accent); }
.f-connected {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--money);
  white-space: nowrap;
  flex-shrink: 0;
}
.d-noresults { color: var(--text-dim); font-size: 0.88rem; padding: 1.5rem 0; text-align: center; }
@media (max-width: 640px) {
  .fan-grid { grid-template-columns: 1fr; }
}

/* ============================================ BAND & VENUE PAGES */
.ent-back {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.ent-back:hover { color: var(--text); border-color: var(--border-accent); }
.ent-banner {
  position: relative;
  aspect-ratio: 16 / 6;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #240a38, #1a0a2e);
}
.ent-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ent-banner .live-badge { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1; }
.ent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.ent-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.5rem;
  margin-top: -30px;
  position: relative;
  flex-wrap: wrap;
}
.ent-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}
.ent-title { flex: 1; min-width: 200px; padding-bottom: 0.2rem; }
.ent-name { font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 800; }
.ent-name .verified { color: var(--accent); font-size: 0.9rem; }
.ent-sub { font-size: 0.8rem; color: var(--text-muted); }
.ent-body { padding: 1rem 1.5rem 1.5rem; }
.ent-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0 0.9rem; }
.ent-bio { font-size: 0.92rem; line-height: 1.55; color: var(--text); max-width: 620px; margin-bottom: 1.1rem; }
.ent-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ent-section {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1.3rem 0 0.6rem;
}
.show-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.show-row:last-child { border-bottom: none; }
.show-date {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent);
  min-width: 84px;
}
.show-what { flex: 1; min-width: 0; }
.show-link { color: var(--text); font-weight: 600; cursor: pointer; }
.show-link:hover { text-decoration: underline; }
.show-where { color: var(--text-dim); font-size: 0.75rem; }
.show-free {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--money);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.rig-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #06140D;
  background: var(--money);
  border-radius: 14px;
  padding: 0.2rem 0.6rem;
}
.ent-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ent-link-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ent-link-chip:hover { border-color: var(--border-accent); color: var(--text); }
.f-card .f-handle .verified { color: var(--accent); font-size: 0.7rem; }

/* ============================================ FIGMA-INSPIRED PROFILE REDESIGN */
/* Role pills */
.role-pill {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 5px;
  padding: 0.08rem 0.42rem;
  margin-left: 0.4rem;
  vertical-align: 1px;
}
.role-pill.musician { color: #C9A2FF; background: rgba(168, 85, 247, 0.16); }
.role-pill.fan { color: var(--text-muted); background: rgba(255, 255, 255, 0.08); }
.role-pill.venue { color: var(--money); background: rgba(62, 224, 140, 0.13); }

/* Post anatomy: engagement summary + always-open comments */
.post-summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.45rem;
}
.post-summary .ps-likes { color: var(--text-muted); }
.reply-meta { color: var(--text-dim); font-size: 0.68rem; margin-left: 0.35rem; }

/* Entity tab bar (Feed | About) */
.ent-tabs {
  display: flex;
  gap: 1.6rem;
  padding: 0.9rem 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.ent-tab {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s;
}
.ent-tab:hover { color: var(--text); }
.ent-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.ent-loc-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.ent-followers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.ent-fl-avs { display: flex; }
.ent-fl-avs span {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-right: -7px;
}

/* About icon rows (venue) */
.about-row {
  display: flex;
  gap: 0.7rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.about-row .ar-icon { flex-shrink: 0; width: 1.3rem; text-align: center; }
.about-row a { color: var(--accent); }

/* Social links card rows */
.slink-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}
.slink-row:last-child { border-bottom: none; }
.slink-ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Upcoming show thumbs */
.show-thumb {
  width: 52px; height: 34px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #240a38, #0f1a3d);
  border: 1px solid var(--border);
}

/* Fan profile: identity on the banner */
.pc-banner { height: 140px; position: relative; }
.pc-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(7, 11, 24, 0.72), rgba(7, 11, 24, 0.25) 65%, transparent);
}
.pc-banner-overlay .pc-avatar {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.85);
  width: 84px; height: 84px;
}
.pc-ov-info { min-width: 0; }
.pc-ov-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.pc-ov-sub {
  font-size: 0.78rem;
  color: rgba(245, 244, 251, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-ov-loc { font-size: 0.72rem; color: rgba(245, 244, 251, 0.7); margin-top: 0.15rem; }
.pc-inner { padding-top: 1.1rem; }
.pc-top-slim { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
@media (max-width: 560px) {
  .pc-banner-overlay .pc-avatar { width: 64px; height: 64px; }
  .pc-ov-name { font-size: 1.05rem; }
}

/* ============================================ VENUE OVERVIEW POLISH (Figma round 2) */
.f-chip.warm { color: #FF9E80; background: rgba(255, 122, 92, 0.12); border-color: rgba(255, 122, 92, 0.3); }
.f-chip.cool { color: #7FB8FF; background: rgba(58, 111, 184, 0.15); border-color: rgba(58, 111, 184, 0.35); }
.f-chip.lav { color: #C9A2FF; background: rgba(168, 85, 247, 0.13); border-color: rgba(168, 85, 247, 0.3); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } }
.ent-banner .live-now {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Sidebar: promoted ads + community hashtags */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.promo-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  text-align: center;
}
.promo-art {
  height: 54px;
  border-radius: 7px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.promo-name { font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.promo-off { font-size: 0.66rem; color: var(--money); font-weight: 700; }
.promo-link { font-size: 0.64rem; color: var(--accent); font-weight: 600; margin-top: 0.25rem; display: block; }
.promo-note { font-size: 0.6rem; color: var(--text-dim); margin-top: 0.6rem; text-align: center; }
.hash-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.hash-row:last-child { border-bottom: none; }
.hash-ico {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-shrink: 0;
}
.hash-name { font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.hash-meta { font-size: 0.62rem; color: var(--text-dim); }
.sg-handle { font-size: 0.62rem; color: var(--text-dim); }
