.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.brandmark-small {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.brandmark-small .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 12px #A855F7, 0 0 20px #EC4899;
}

.friends-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.friends-wrap .card {
  padding: 24px;
}

.friends-wrap .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.friends-wrap .section-head h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.friends-wrap .section-head select {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input {
  flex: 1;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all 0.2s ease;
}

.search-row input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.friend-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.friend-row:hover {
  border-color: var(--btn-a);
  background: var(--surface-hover);
}

.friend-row .row-actions {
  display: flex;
  gap: 8px;
}

