/* Public profile (.xp). Shared by the public page, the dashboard live preview, landing demo and theme thumbnails. */
.xp-body { margin: 0; -webkit-font-smoothing: antialiased; background: var(--page-bg, #111); }
.xp { --p-shadow: 0 6px 18px -6px rgba(0, 0, 0, .28); position: relative; min-height: 100vh; min-height: 100dvh; background: var(--p-bg); background-attachment: fixed; color: var(--p-text); font-family: var(--p-font); display: flex; flex-direction: column; box-sizing: border-box; }
.xp *, .xp *::before, .xp *::after { box-sizing: border-box; }
.xp-inner { width: 100%; max-width: 620px; margin: 0 auto; padding: 56px 20px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.xp-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px color-mix(in srgb, var(--p-text) 18%, transparent), var(--p-shadow); margin-bottom: 16px; background: color-mix(in srgb, var(--p-text) 12%, transparent); }
.xp-avatar-initials { display: grid; place-items: center; font: 700 2rem/1 var(--p-font); color: var(--p-text); }
.xp-name { font: 700 1.35rem/1.25 var(--p-font); margin: 0 0 6px; letter-spacing: -.01em; word-break: break-word; }
.xp-bio { margin: 0 0 18px; opacity: .88; font-size: .98rem; line-height: 1.5; max-width: 30em; word-break: break-word; }
.xp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 24px; }
.xp-social { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--p-text); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s; }
.xp-social:hover { transform: translateY(-2px) scale(1.08); background: color-mix(in srgb, var(--p-text) 12%, transparent); }
.xp-social .ic { width: 24px; height: 24px; display: block; }
.xp-links { width: 100%; display: grid; gap: 14px; }
.xp-link { position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 14px 52px; border-radius: var(--p-radius); font: 600 1rem/1.3 var(--p-font); text-decoration: none; word-break: break-word; cursor: pointer;
  background: var(--p-btn); color: var(--p-btn-text); border: 2px solid transparent;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), box-shadow .22s, background .22s, color .22s;
  animation: xpIn .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.xp-link:hover { transform: translateY(-2px) scale(1.015); }
.xp-link:active { transform: scale(.98); }
.xp-link:focus-visible { outline: 3px solid var(--p-text); outline-offset: 3px; }
@keyframes xpIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.xp[data-style="soft"] .xp-link { box-shadow: var(--p-shadow); }
.xp[data-style="soft"] .xp-link:hover { box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); }
.xp[data-style="outline"] .xp-link { background: transparent; border-color: var(--p-btn); color: var(--p-btn-text); }
.xp[data-style="outline"] .xp-link:hover { background: color-mix(in srgb, var(--p-btn) 14%, transparent); }
.xp[data-style="hard"] .xp-link { border-color: var(--p-btn-text); box-shadow: 4px 4px 0 var(--p-btn-text); }
.xp[data-style="hard"] .xp-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--p-btn-text); }
.xp[data-style="hard"] .xp-link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--p-btn-text); }
.xp[data-style="glass"] .xp-link { background: color-mix(in srgb, var(--p-btn) 18%, transparent); border-color: color-mix(in srgb, var(--p-btn) 38%, transparent); color: var(--p-btn-text); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); }
.xp[data-style="glass"] .xp-link:hover { background: color-mix(in srgb, var(--p-btn) 28%, transparent); }

.xp-empty { opacity: .75; font-size: .95rem; }
.xp-foot { padding: 12px 20px 28px; display: flex; justify-content: center; }
.xp-brand { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 .8rem/1 var(--p-font); color: var(--p-text); text-decoration: none; background: color-mix(in srgb, var(--p-text) 10%, transparent); transition: background .2s, transform .2s; }
.xp-brand:hover { background: color-mix(in srgb, var(--p-text) 18%, transparent); transform: translateY(-1px); }
.xp-brand svg { border-radius: 4px; }
.xp-share { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--p-text); background: color-mix(in srgb, var(--p-text) 12%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.xp-share:hover { background: color-mix(in srgb, var(--p-text) 22%, transparent); transform: scale(1.06); }
.xp-share .ic { width: 18px; height: 18px; }
.xp-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(20, 16, 15, .92); color: #fff; font: 600 .88rem/1 system-ui, sans-serif; animation: xpIn .3s both; z-index: 10; }

/* Inside a phone frame (dashboard preview + landing demo) */
.phone-screen .xp { min-height: 100%; height: 100%; overflow-y: auto; scrollbar-width: none; background-attachment: scroll; }
.phone-screen .xp::-webkit-scrollbar { display: none; }
.phone-screen .xp-inner { padding: 64px 16px 16px; }
.phone-screen .xp-avatar { width: 80px; height: 80px; }
.phone-screen .xp-name { font-size: 1.12rem; }
.phone-screen .xp-bio { font-size: .84rem; }
.phone-screen .xp-link { min-height: 48px; padding: 10px 40px; font-size: .88rem; }
.phone-screen .xp-links { gap: 11px; }
.phone-screen .xp-social { width: 34px; height: 34px; }
.phone-screen .xp-social .ic { width: 19px; height: 19px; }
.phone-screen .xp-share { top: 54px; right: 12px; width: 32px; height: 32px; }
.xp-demo .xp-link { cursor: default; padding-inline: 14px; white-space: nowrap; }
.xp-demo .xp-bio { text-wrap: balance; }
.xp-demo .xp-link:hover { transform: none; }

/* Mini theme thumbnail */
.theme-thumb.xp { min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 12px; background-attachment: scroll; }
.theme-thumb .tt-av { width: 22px; height: 22px; border-radius: 50%; background: var(--p-text); opacity: .85; margin-bottom: 4px; }
.theme-thumb .tt-btn { width: 100%; min-height: 0; height: 14px; padding: 0; border-width: 1.5px; animation: none; }
.xp[data-style="hard"] .theme-thumb .tt-btn, .theme-thumb.xp[data-style="hard"] .tt-btn { box-shadow: 2px 2px 0 var(--p-btn-text); }

@media (prefers-reduced-motion: reduce) { .xp-link { animation: none; } .xp-link, .xp-social { transition: none; } }
