/* Botón de compartir perfil (junto a la tienda) */
.profile-share-btn{flex:none;display:grid;place-items:center;width:2.15rem;height:2.15rem;margin-right:.55rem;padding:0;cursor:pointer;
  border-radius:50%;color:#f3e8ff;background:rgba(168,85,247,.16);border:1px solid rgba(216,80,255,.5);
  box-shadow:0 0 10px rgba(216,80,255,.32);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.profile-share-btn svg{width:1.15rem;height:1.15rem}
.profile-share-btn:hover,.profile-share-btn:focus-visible{transform:scale(1.07);background:rgba(168,85,247,.28);box-shadow:0 0 16px rgba(216,80,255,.55);outline:0}
.profile-share-btn:active{transform:scale(.94)}

/* Hoja de compartir */
#shareProfileBackdrop{z-index:90;align-items:center;justify-content:center}
.share-profile{width:min(26rem,100%);max-height:94vh;overflow-y:auto;padding:1rem 1.1rem 1.2rem;border-radius:24px;
  background:linear-gradient(180deg,#140b24,#0c0716);border:1px solid rgba(168,85,247,.35);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.share-profile .modal-head{padding:0 0 .8rem;margin:0}
.share-profile .modal-head h3{flex:1}

.sp-seg{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;padding:.25rem;margin-bottom:.9rem;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.sp-seg button{padding:.55rem .5rem;border:0;border-radius:999px;background:transparent;color:var(--ash);font:inherit;font-size:.82rem;cursor:pointer;transition:background .2s,color .2s}
.sp-seg button.active{color:#fff;background:linear-gradient(135deg,#a855f7,#6366f1);box-shadow:0 2px 14px rgba(124,58,237,.5)}

.sp-view[hidden]{display:none}
.sp-view img{display:block;width:100%;max-width:19rem;margin:0 auto;aspect-ratio:1080/1350;object-fit:contain;border-radius:18px;
  box-shadow:0 10px 34px rgba(124,58,237,.35);background:#140b24}
.sp-view img.loading{background:linear-gradient(110deg,#1a0f2e 30%,#2a1647 50%,#1a0f2e 70%);background-size:200% 100%;animation:spShimmer 1.2s linear infinite}
@keyframes spShimmer{to{background-position:-200% 0}}
.sp-note{margin:.7rem 0 0;text-align:center;font-size:.78rem;color:var(--ash)}

.sp-linkbox{display:flex;flex-direction:column;gap:.45rem;padding:1.1rem 1rem;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(168,85,247,.3)}
.sp-link-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ash)}
.sp-linkbox input{width:100%;padding:.75rem .8rem;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.35);color:#fff;font:inherit;font-size:.95rem;text-overflow:ellipsis}

.sp-actions{display:grid;grid-template-columns:1fr 1fr;gap:.55rem;margin-top:1rem}
.sp-actions .sp-primary{grid-column:1/-1;order:-1;background:linear-gradient(135deg,#a855f7,#6366f1);border-color:transparent;color:#fff;font-weight:700}
.sp-actions button:disabled{opacity:.5}
.sp-actions button[hidden]{display:none}
