* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a25;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}

.head { text-align: center; margin-bottom: 28px; }

.avatar-ring {
  width: 128px; height: 128px; margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand, #ff7aa8), #fff);
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  display: block;
}
.avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--brand, #ff7aa8);
  font-family: 'Playfair Display', serif;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.bio {
  font-size: 15px;
  line-height: 1.5;
  color: #5a5a6a;
  margin: 0 auto;
  max-width: 420px;
  white-space: pre-line;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}
.soc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #1a1a25;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(0,0,0,.04);
}
.soc:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.soc .ic { width: 20px; height: 20px; }

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.btn-label { flex: 1; text-align: center; }
.btn-arrow { opacity: .35; font-size: 18px; }
.btn-ic { width: 22px; height: 22px; flex-shrink: 0; }

.btn-of {
  background: linear-gradient(135deg, #00aff0 0%, #0084c7 100%);
  color: #fff;
  border: none;
  padding: 18px 20px;
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(0, 175, 240, 0.3);
  margin-bottom: 20px;
}
.btn-of:hover { box-shadow: 0 14px 36px rgba(0, 175, 240, 0.4); }
.of-logo {
  background: #fff;
  color: #00aff0;
  font-weight: 900;
  font-size: 13px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}

.foot {
  text-align: center;
  margin-top: auto;
  padding-top: 32px;
}
.brand {
  font-size: 13px;
  color: rgba(0,0,0,.5);
  text-decoration: none;
  font-weight: 500;
}
.peach { font-size: 16px; }

/* Dark theme overrides */
body.theme-dark { color: #f3f3f7; }
body.theme-dark .bio { color: #b8b8c8; }
body.theme-dark .soc { background: #16161f; color: #f3f3f7; border-color: #2a2a38; }
body.theme-dark .btn { background: #16161f; color: #f3f3f7; border-color: #2a2a38; }
body.theme-dark .btn:hover { background: #1f1f2b; }
body.theme-dark .brand { color: rgba(255,255,255,.4); }

/* Solid theme */
body.theme-solid { color: #fff; }
body.theme-solid .bio { color: rgba(255,255,255,.85); }
body.theme-solid .soc { background: rgba(255,255,255,.15); color: #fff; border: none; backdrop-filter: blur(10px); }
body.theme-solid .btn { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px); }
body.theme-solid .btn:hover { background: rgba(255,255,255,.22); }
body.theme-solid .brand { color: rgba(255,255,255,.8); }
body.theme-solid .avatar-ring { background: rgba(255,255,255,.3); }

@media (max-width: 480px) {
  .wrap { padding: 40px 16px 24px; }
  .avatar-ring { width: 112px; height: 112px; }
  .name { font-size: 24px; }
}

/* ---- handle + size variants (v2) ---- */
.handle {
  color: rgba(0,0,0,.5);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
}
body.theme-dark .handle { color: rgba(255,255,255,.55); }
body.theme-solid .handle { color: rgba(255,255,255,.75); }

.lnk { position: relative; }
.lnk-thumb {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: center/cover no-repeat #eee;
  flex: none;
}
.lnk-image.lnk-small .lnk-thumb { width: 32px; height: 32px; border-radius: 10px; }
.lnk-image.lnk-big .lnk-thumb { width: 64px; height: 64px; border-radius: 14px; }

.lnk-big {
  padding: 22px 20px;
  font-size: 17px;
  border-radius: 20px;
  min-height: 92px;
  font-weight: 700;
}
.lnk-medium { /* default existing .btn padding */ }
.lnk-small {
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 12px;
  min-height: 0;
}
.lnk-button {
  padding: 14px 18px;
  font-size: 15px;
  background: rgba(0,0,0,.04);
  border: 0;
  box-shadow: none;
}
.lnk-button:hover { background: rgba(0,0,0,.08); box-shadow: none; transform: none; }
body.theme-dark .lnk-button { background: #1a1a24; }
body.theme-solid .lnk-button { background: rgba(255,255,255,.18); }
