* { box-sizing: border-box; }

:root {
  --radius: 14px;
}

body.theme-dark {
  --bg: #0f0f14;
  --bg-gradient: radial-gradient(circle at top, #1c1c26, #0f0f14 60%);
  --text: #f5f5f7;
  --text-muted: #a3a3ad;
  --card-bg: #1c1c24;
  --card-border: rgba(255,255,255,0.08);
  --card-hover: #26262f;
  --accent: #8b5cf6;
}

body.theme-light {
  --bg: #f4f2ff;
  --bg-gradient: radial-gradient(circle at top, #ffffff, #f0edff 60%);
  --text: #1a1a1f;
  --text-muted: #6b6b78;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.06);
  --card-hover: #f2effe;
  --accent: #7c3aed;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 480px;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-border);
  margin-bottom: 14px;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}

.display-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.bio {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 340px;
  line-height: 1.5;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.link-btn:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.link-btn:active {
  transform: translateY(0);
}

.link-btn-icon {
  position: absolute;
  left: 18px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-btn-icon svg {
  width: 100%;
  height: 100%;
}

.social-row {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background: var(--card-hover);
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

.page-footer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-muted);
}
