:root {
  --bg: #f6dfe3;
  --card: #ffffff;
  --text: #3a2a2e;
  --muted: #7c6a6e;
  --shadow: 0 1px 2px rgba(58, 42, 46, .06), 0 4px 14px rgba(58, 42, 46, .06);
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 16px calc(48px + env(safe-area-inset-bottom));
}

.share {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.share svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.profile { text-align: center; padding-top: 16px; }

.avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #e9c4cb;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

h1 { font-size: 30px; font-weight: 700; margin: 22px 0 6px; letter-spacing: -.01em; }

.bio { font-size: 18px; margin: 0; line-height: 1.4; }

.socials { display: flex; justify-content: center; gap: 22px; margin: 22px 0 8px; }
.socials a { color: var(--text); display: block; width: 34px; height: 34px; transition: transform .15s; }
.socials a:hover { transform: scale(1.1); }
.socials svg { width: 100%; height: 100%; }

.section-title { text-align: center; font-size: 18px; font-weight: 700; margin: 36px 0 14px; }

.links { display: flex; flex-direction: column; gap: 16px; }

.link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 10px 64px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  font: inherit;
  width: 100%;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.link:hover { transform: scale(1.015); }
.link:active { transform: scale(.98); }

.link .thumb {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.link .thumb img { width: 100%; height: 100%; object-fit: cover; }
.link .thumb svg { width: 24px; height: 24px; color: var(--text); }

.link .label { flex: 1; }
.link .title { display: block; font-size: 17px; font-weight: 500; line-height: 1.3; word-break: break-word; }
.link .subtitle { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.link .badge {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 20px;
  height: 20px;
}
.link .badge svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .page { padding-top: 48px; }
}
