*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d0d0d;
  color: #fff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page {
  width: 100%;
  max-width: 1280px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

/* ── Cover + avatar ── */
.cover-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6b1a6b 0%, #c0334d 60%, #e8552a 100%);
  opacity: 0.9;
}

.profile-row {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #1a1a1a;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2a;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
}

.profile-info { flex: 1; padding-bottom: 2px; }

.display-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  flex-wrap: wrap;
}

.stat-item { white-space: nowrap; }

.stat-sep {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

.following-row {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}

.copy-btn {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  flex-shrink: 0;
}

.copy-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.copy-tooltip.show { opacity: 1; }

/* ── Sections ── */
.section {
  margin: 1.2rem 1rem 0;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

.section-header {
  padding: 0.9rem 1rem 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.section-body {
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── Social media ── */
.social-list {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: #fff;
}

.social-add {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.social-add-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px dashed rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.3);
}

/* ── Not found ── */
.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
}
