/* Personal assets use only existing user-uploaded imagery and actual account data. */
.profile-page { max-width: 1400px; padding: 30px 32px 60px; }
.profile-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px 28px; padding: 28px; border: 1px solid var(--border-subtle); border-radius: var(--radius-stage); background: var(--glass-card); backdrop-filter: blur(var(--glass-blur)); }
.profile-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-avatar-link { position: relative; flex: none; padding: 4px; border: 1px solid var(--border-glow); border-radius: 50%; background: var(--bg-panel); box-shadow: 0 0 24px rgba(168,85,247,.12); }
.profile-avatar-link .avatar { width: 88px; height: 88px; border-radius: 50%; }
.profile-avatar-link>span:not(.avatar) { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--border-glow); border-radius: 50%; background: #21132e; color: #dfc2f3; }
.profile-avatar-link>span:not(.avatar) .icon { width: 12px; height: 12px; }
.profile-avatar-link>.avatar { position: relative; inset: auto; }
.profile-heading { min-width: 0; }
.profile-heading .eyebrow { font-size: 10px; letter-spacing: 2px; color: var(--text-narrative); }
.profile-heading h1 { color: var(--text-main); font-size: 28px; line-height: 1.3; margin: 7px 0 11px; overflow-wrap: anywhere; }
.profile-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-badges>span,.profile-badges>a { display: inline-flex; align-items: center; gap: 5px; color: #cbb6dc; border: 1px solid rgba(168,85,247,.17); background: rgba(168,85,247,.06); border-radius: 8px; font-size: 10px; padding: 4px 7px; }
.profile-badges .icon { width: 12px; height: 12px; }
.profile-joined { color: var(--text-sub); font-size: 10px; margin-top: 11px; }
.profile-hero-actions { display: flex; align-items: start; justify-content: end; flex-wrap: wrap; gap: 8px; }
.profile-hero-actions .btn { min-height: 34px; font-size: 11px; padding: 7px 11px; }
.profile-hero-actions .btn .icon { width: 14px; height: 14px; }
.profile-wallet-link { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border-subtle); padding-top: 20px; }
.profile-wallet-link>span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-sub); }
.profile-wallet-link>span .icon { width: 16px; height: 16px; color: #c084fc; }
.profile-wallet-link strong { font-size: 23px; font-weight: 650; color: var(--text-main); }
.profile-wallet-link small { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #cbb3de; font-size: 11px; }
.profile-wallet-link small .icon { width: 14px; height: 14px; }
.profile-collection { margin-top: 28px; }
.profile-collection-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.profile-tabs { display: flex; gap: 7px; max-width: 100%; overflow-x: auto; padding: 4px 1px; }
.profile-tabs>button { display: flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-control); background: rgba(255,255,255,.025); color: var(--text-sub); font-size: 12px; transition: color var(--motion-fast),border-color var(--motion-fast),background var(--motion-fast); }
.profile-tabs>button.active { color: #ead7fa; background: rgba(168,85,247,.13); border-color: rgba(168,85,247,.4); box-shadow: 0 3px 18px rgba(168,85,247,.07); }
.profile-tabs>button:hover { color: var(--text-main); border-color: var(--border-glow); }
.profile-tabs .icon { width: 15px; height: 15px; flex: none; }
.profile-tabs b { color: inherit; font-size: 10px; font-weight: 500; background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 6px; }
.profile-create-actions { display: flex; align-items: center; gap: 7px; }
.profile-collection-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-sub); font-size: 11px; line-height: 1.8; margin: 15px 1px 20px; }
.profile-collection-note span { color: #bfa2d2; }
.profile-asset-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; align-items: start; }
.profile-asset { min-width: 0; }
.profile-asset .plaza-card { width: 100%; }
.profile-card-actions { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; padding: 0 2px; }
.profile-card-actions .btn { flex: 1; min-width: 0; min-height: 34px; padding: 5px 8px; font-size: 11px; background: rgba(255,255,255,.025); border: 1px solid var(--border-subtle); }
.profile-card-actions .icon { width: 13px; height: 13px; }
.profile-worldbooks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.profile-worldbook { min-width: 0; padding: 20px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--glass-card); backdrop-filter: blur(var(--glass-blur)); }
.profile-worldbook>header { display: flex; align-items: center; gap: 11px; }
.profile-book-emblem { display: flex; align-items: center; color: var(--text-narrative); flex: none; }
.profile-book-emblem .avatar { width: 40px; height: 40px; border-radius: 12px; }
.profile-worldbook h3 { font-size: 15px; color: var(--text-main); line-height: 1.5; overflow-wrap: anywhere; }
.profile-worldbook header p { color: var(--text-sub); font-size: 10px; margin-top: 4px; line-height: 1.6; }
.profile-worldbook header>.btn { flex: none; padding: 6px 9px; min-height: 32px; font-size: 10px; }
.profile-worldbook header>.btn .icon { width: 13px; height: 13px; }
.profile-book-summary { color: #bcb0c8; font-size: 11px; line-height: 1.9; margin-top: 14px; }
.profile-book-links { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border-subtle); padding-top: 14px; margin-top: 15px; }
.profile-book-source { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-source-kind { flex: none; border-radius: 6px; padding: 3px 5px; background: rgba(168,85,247,.08); color: #cdb1df; font-size: 9px; }
.profile-source-kind.stage { color: #d0c8fa; background: rgba(99,102,241,.12); }
.profile-source-kind.attached { color: #d7aec9; background: rgba(236,72,153,.07); }
.profile-source-link { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; flex: 1; text-align: left; color: #c1b2ce; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.profile-source-link .icon { width: 12px; height: 12px; flex: none; color: #9d88b1; }
.profile-source-link:hover { color: #f0dafa; }
.profile-book-source>small { font-size: 9px; color: #93839f; flex: none; }
.profile-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 55px 22px; border: 1px dashed rgba(168,85,247,.22); border-radius: var(--radius-card); background: rgba(20,18,30,.55); }
.profile-empty>span { display: grid; place-items: center; width: 58px; height: 58px; color: var(--text-narrative); background: rgba(168,85,247,.08); border: 1px solid var(--border-glow); border-radius: 16px; margin-bottom: 20px; }
.profile-empty>span .icon { width: 25px; height: 25px; }
.profile-empty h3 { color: var(--text-main); font-size: 18px; }
.profile-empty p { color: var(--text-sub); line-height: 1.8; font-size: 12px; margin: 11px 0 22px; }
.profile-empty>.row { justify-content: center; }
.profile-feedback-intro { color: var(--text-sub); font-size: 12px; line-height: 1.8; margin-bottom: 18px; }
@media (min-width:1500px) { .profile-asset-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width:1100px) { .profile-hero { grid-template-columns: minmax(0,1fr); } .profile-hero-actions { justify-content: start; } .profile-asset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; } }
@media (max-width:760px) {
  .profile-page { padding: 20px 16px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .profile-hero { padding: 20px; gap: 20px; border-radius: 24px; }
  .profile-identity { gap: 16px; }
  .profile-avatar-link .avatar { width: 70px; height: 70px; }
  .profile-heading h1 { font-size: 24px; }
  .profile-worldbooks { grid-template-columns: minmax(0,1fr); }
  .profile-collection-top { gap: 10px; }
  .profile-tabs { width: 100%; }
  .profile-tabs>button { flex: 1; justify-content: center; padding: 9px 8px; gap: 5px; font-size: 11px; }
  .profile-tabs .icon { width: 13px; height: 13px; }
  .profile-create-actions { margin-left: auto; }
  .profile-asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .profile-worldbook { padding: 17px; }
  .profile-wallet-link { padding-top: 17px; gap: 10px; }
}
@media (max-width:380px) {
  .profile-page { padding-inline: 12px; }
  .profile-hero { padding: 17px; }
  .profile-avatar-link .avatar { width: 56px; height: 56px; }
  .profile-heading h1 { font-size: 21px; }
  .profile-hero-actions { gap: 5px; }
  .profile-hero-actions .btn { padding-inline: 8px; font-size: 10px; }
  .profile-tabs>button { padding-inline: 6px; gap: 4px; font-size: 10px; }
  .profile-tabs .icon { display: none; }
  .profile-tabs b { padding-inline: 4px; }
  .profile-wallet-link strong { font-size: 20px; }
  .profile-worldbook { padding: 14px; }
}
