/* XSSM profile  */
#user-profile-modal.up-overlay {
    --up-profile-color: #7c3aed;
    --up-profile-rgb: 124, 58, 237;
    padding: 28px !important;
    background:
        radial-gradient(circle at 16% 12%, rgba(var(--up-profile-rgb), .2), transparent 34%),
        radial-gradient(circle at 86% 88%, rgba(var(--up-profile-rgb), .13), transparent 34%),
        rgba(2, 4, 12, .74) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
}

#user-profile-modal .up-modal {
    width: min(1080px, calc(100vw - 56px)) !important;
    max-width: 1080px !important;
    height: min(780px, calc(100dvh - 56px)) !important;
    max-height: 780px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 36px !important;
    background: rgba(8, 11, 23, .78) !important;
    backdrop-filter: blur(60px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(60px) saturate(190%) !important;
    box-shadow:
        0 44px 140px rgba(0, 0, 0, .72),
        0 0 80px rgba(var(--up-profile-rgb), .17),
        inset 0 1.5px 1px rgba(255, 255, 255, .28),
        inset 0 -1px 1px rgba(0, 0, 0, .28) !important;
}

#user-profile-modal .up-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 24%),
        radial-gradient(circle at 72% 0%, rgba(var(--up-profile-rgb), .14), transparent 34%);
}

#user-profile-modal .up-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 20 !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 50% !important;
    color: rgba(255, 255, 255, .94) !important;
    background: rgba(10, 13, 26, .48) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28), inset 0 1px 1px rgba(255, 255, 255, .22) !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease !important;
}

#user-profile-modal .up-close:hover {
    transform: scale(1.07);
    background: rgba(255, 255, 255, .14) !important;
}

#user-profile-modal .up-scroll {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    overflow: hidden !important;
}

#user-profile-modal .up-layout {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    display: grid !important;
    grid-template-columns: minmax(330px, 38%) minmax(0, 1fr) !important;
}

#user-profile-modal .up-identity-panel {
    min-width: 0;
    min-height: 0;
    position: relative !important;
    overflow: hidden !important;
    border-right: 1px solid rgba(255, 255, 255, .09);
    background:
        radial-gradient(circle at 50% 4%, rgba(var(--up-profile-rgb), .18), transparent 38%),
        rgba(6, 9, 20, .5);
}

#user-profile-modal .up-cover {
    position: absolute !important;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
    background: var(--up-profile-color) !important;
}

#user-profile-modal .up-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(180deg, transparent 24%, rgba(6, 9, 20, .2) 60%, rgba(6, 9, 20, .98) 100%),
        radial-gradient(circle at 50% -20%, rgba(255, 255, 255, .34), transparent 54%);
}

#user-profile-modal .up-cover-aurora {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(46px);
    opacity: .58;
    animation: profileAurora 9s ease-in-out infinite alternate;
}

#user-profile-modal .up-cover-aurora.aurora-1 {
    top: -130px;
    left: -40px;
    background: rgba(255, 255, 255, .44);
}

#user-profile-modal .up-cover-aurora.aurora-2 {
    right: -100px;
    bottom: -150px;
    background: rgba(var(--up-profile-rgb), .62);
    animation-delay: -4s;
}

#user-profile-modal .up-cover-particles {
    position: absolute;
    inset: 0;
    opacity: .34;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.85) 0 1px, transparent 1.5px),
        radial-gradient(circle at 72% 22%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
        radial-gradient(circle at 56% 68%, rgba(255,255,255,.55) 0 1px, transparent 1.5px);
    background-size: 78px 78px, 112px 112px, 94px 94px;
}

@keyframes profileAurora {
    to { transform: translate3d(24px, 18px, 0) scale(1.1); }
}

#user-profile-modal .up-identity-content {
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 134px 22px 24px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

#user-profile-modal .up-avatar-wrap {
    position: relative !important;
    width: 126px !important;
    height: 126px !important;
    margin: 0 auto 16px !important;
}

#user-profile-modal .up-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 38px;
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(165,180,252,.46) 38%, rgba(168,85,247,.72));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .4), 0 0 34px rgba(99, 102, 241, .28);
}

#user-profile-modal .up-avatar {
    position: absolute !important;
    inset: 1px !important;
    display: grid !important;
    place-items: center;
    border: 5px solid rgba(8, 11, 23, .92) !important;
    border-radius: 34px !important;
    color: #fff !important;
    background: linear-gradient(145deg, #818cf8, #7c3aed 56%, #4f46e5);
    background-size: cover !important;
    background-position: center !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.3);
    font-size: 2.7rem !important;
    font-weight: 800 !important;
}

#user-profile-modal .up-online {
    position: absolute !important;
    right: -1px !important;
    bottom: 7px !important;
    z-index: 4;
    width: 25px !important;
    height: 25px !important;
    border: 5px solid #090c19 !important;
    border-radius: 50% !important;
    background: #64748b;
    box-shadow: 0 5px 16px rgba(0,0,0,.35);
}

#user-profile-modal .up-online.online {
    background: #34d399 !important;
    box-shadow: 0 0 0 5px rgba(52,211,153,.12), 0 5px 16px rgba(0,0,0,.35);
}

#user-profile-modal .up-info {
    width: 100% !important;
    margin: 0 0 20px !important;
    text-align: center !important;
}

#user-profile-modal .up-profile-kicker {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(165,180,252,.18);
    border-radius: 999px;
    color: #c7d2fe;
    background: rgba(99,102,241,.12);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

#user-profile-modal .up-name {
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-primary) !important;
    font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
    font-weight: 780 !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: anywhere;
}

#user-profile-modal .up-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 999px;
    color: #c7d2fe;
    background: rgba(99,102,241,.15);
    font-size: .68rem;
    font-weight: 700;
}

#user-profile-modal .up-status-text {
    min-height: 20px;
    margin: 7px 0 0 !important;
    color: var(--text-muted) !important;
    font-size: .84rem !important;
    font-weight: 550;
}

#user-profile-modal .up-status-text.online { color: #5ee0a4 !important; }

#user-profile-modal .up-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 0 0 14px !important;
}

#user-profile-modal .up-actions[hidden],
#user-profile-modal .up-tab[hidden] {
    display: none !important;
}

#user-profile-modal .up-action-btn {
    min-width: 0 !important;
    min-height: 72px !important;
    padding: 10px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
    background: rgba(255,255,255,.06) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.14) !important;
    font: inherit;
    font-size: .7rem !important;
    font-weight: 650 !important;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease !important;
}

#user-profile-modal .up-action-btn i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #c7d2fe;
    background: rgba(129,140,248,.14);
}

#user-profile-modal .up-action-btn.primary {
    color: #fff !important;
    border-color: rgba(165,180,252,.34) !important;
    background: linear-gradient(145deg, rgba(99,102,241,.9), rgba(124,58,237,.82)) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 12px 28px rgba(79,70,229,.27) !important;
}

#user-profile-modal .up-action-btn.primary i { color: #fff; background: rgba(255,255,255,.16); }
#user-profile-modal .up-action-btn.danger i { color: #fca5a5; background: rgba(239,68,68,.11); }
#user-profile-modal .up-action-btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24) !important; }

#user-profile-modal .up-card {
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 8px !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.05) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 12px 32px rgba(0,0,0,.12) !important;
}

#user-profile-modal .up-card-title {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 9px !important;
    color: var(--text-muted) !important;
    font-size: .67rem !important;
    font-weight: 750 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}

#user-profile-modal .up-card-title i { color: #a5b4fc; }

#user-profile-modal .up-detail-row {
    width: 100% !important;
    min-width: 0;
    align-items: center !important;
    gap: 11px !important;
    padding: 11px 10px !important;
    border-radius: 15px;
}

#user-profile-modal .up-detail-row + .up-detail-row { border-top: 1px solid rgba(255,255,255,.07); }

#user-profile-modal .up-detail-icon {
    flex: 0 0 34px;
    width: 34px !important;
    height: 34px !important;
    display: grid !important;
    place-items: center;
    border-radius: 12px;
    color: #c7d2fe;
    background: linear-gradient(145deg, rgba(129,140,248,.2), rgba(139,92,246,.1));
}

#user-profile-modal .up-detail-content { flex: 1; min-width: 0; }
#user-profile-modal .up-detail-label { margin-bottom: 2px; color: var(--text-muted); font-size: .66rem; font-weight: 620; }
#user-profile-modal .up-detail-value { color: var(--text-primary); font-size: .82rem; line-height: 1.38; overflow-wrap: anywhere; }

#user-profile-modal .up-copy-btn {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--text-muted);
    background: rgba(255,255,255,.07);
    cursor: pointer;
}

#user-profile-modal .up-social { display: none; }

#user-profile-modal .up-social a {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: .8rem;
}

#user-profile-modal .up-social a + a { border-top: 1px solid rgba(255,255,255,.07); }
#user-profile-modal .up-social a > i:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #c7d2fe; background: rgba(129,140,248,.14); }
#user-profile-modal .up-social-arrow { color: var(--text-muted); font-size: .68rem; }

#user-profile-modal .up-explorer {
    min-width: 0;
    min-height: 0;
    padding: 30px 30px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    background:
        radial-gradient(circle at 12% 0, rgba(var(--up-profile-rgb), .085), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.026), transparent 32%);
}

#user-profile-modal .up-explorer-header {
    min-height: 68px;
    padding-right: 52px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

#user-profile-modal .up-section-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #a5b4fc;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#user-profile-modal .up-explorer-header h3 {
    margin: 0 !important;
    color: var(--text-primary) !important;
    font-size: 1.3rem !important;
    font-weight: 750 !important;
    letter-spacing: -.035em;
}

#user-profile-modal .up-private-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(52,211,153,.17);
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(16,185,129,.09);
    font-size: .67rem;
    font-weight: 650;
    white-space: nowrap;
}

#user-profile-modal .up-tabs-wrap {
    flex: 1 !important;
    min-height: 0;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#user-profile-modal .up-tabs {
    width: 100% !important;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 5px !important;
    padding: 5px !important;
    margin: 10px 0 18px !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.05) !important;
}

#user-profile-modal .up-tab {
    min-width: 0;
    min-height: 42px;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 14px !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    font: inherit;
    font-size: .78rem;
    font-weight: 670;
    cursor: pointer;
}

#user-profile-modal .up-tab.active {
    color: #fff !important;
    background: linear-gradient(145deg, rgba(99,102,241,.92), rgba(124,58,237,.78)) !important;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.26), 0 7px 18px rgba(79,70,229,.22) !important;
}

#user-profile-modal .up-tab-count {
    min-width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255,255,255,.11);
    font-size: .64rem;
}

#user-profile-modal .up-tab-pane {
    display: none !important;
    flex: 1;
    min-height: 0;
    width: 100% !important;
    overflow-y: auto !important;
}

#user-profile-modal .up-tab-pane.active {
    display: block !important;
    animation: profilePane .25s ease;
}

#user-profile-modal .up-mutual-list {
    display: grid;
    gap: 8px;
}

#user-profile-modal .up-mutual-chat {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 14px;
    color: var(--text-primary);
    background: rgba(255,255,255,.028);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

#user-profile-modal .up-mutual-chat:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 27%, rgba(255,255,255,.08));
    background: color-mix(in srgb, var(--accent) 8%, rgba(255,255,255,.025));
}

#user-profile-modal .up-mutual-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    color: #f5f2ff;
    background: linear-gradient(145deg, #6558b8, #346c9c);
    font-size: .86rem;
    font-weight: 760;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

#user-profile-modal .up-mutual-copy { min-width: 0; }
#user-profile-modal .up-mutual-copy strong,
#user-profile-modal .up-mutual-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#user-profile-modal .up-mutual-copy strong { color: var(--text-primary); font-size: .77rem; }
#user-profile-modal .up-mutual-copy small { margin-top: 3px; color: var(--text-muted); font-size: .63rem; }
#user-profile-modal .up-mutual-chat > i { color: var(--text-muted); font-size: .68rem; }

[data-theme="light"] #user-profile-modal .up-mutual-chat {
    border-color: rgba(54,45,78,.085);
    background: rgba(255,255,255,.62);
}

@keyframes profilePane {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
}

#user-profile-modal .up-media-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
}

#user-profile-modal .up-media-grid > .media-thumb,
#user-profile-modal .up-media-grid > .media-thumb-video {
    width: 100% !important;
    aspect-ratio: 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.05);
    object-fit: cover;
    cursor: pointer;
}

#user-profile-modal .up-media-grid .media-thumb-video { position: relative; }
#user-profile-modal .up-media-grid .media-thumb-video .media-thumb { width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
#user-profile-modal .up-media-grid .media-thumb-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, rgba(255, 255, 255, 0.5));
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
}

#user-profile-modal .up-media-empty {
    grid-column: 1 / -1;
    width: 100% !important;
    min-height: 310px;
    padding: 32px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed rgba(165,180,252,.18);
    border-radius: 24px;
    color: var(--text-muted);
    background: radial-gradient(circle at 50% 35%, rgba(99,102,241,.11), transparent 45%), rgba(255,255,255,.026);
    text-align: center;
}

#user-profile-modal .up-media-empty i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; color: #a5b4fc; background: rgba(99,102,241,.13); font-size: 1.4rem; }
#user-profile-modal .up-media-empty span { color: var(--text-primary); font-size: .94rem; font-weight: 700; }
#user-profile-modal .up-media-empty small { max-width: 260px; font-size: .74rem; line-height: 1.45; }

#user-profile-modal .up-members-add {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 8px 8px 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.05);
}

#user-profile-modal .up-members-add > i { color: #a5b4fc; }
#user-profile-modal .up-members-add input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text-primary); background: transparent; font: inherit; }

#user-profile-modal .up-member-add-btn {
    min-height: 36px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(165,180,252,.25);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #6366f1, #7c3aed);
    font: inherit;
    font-size: .7rem;
    font-weight: 680;
    cursor: pointer;
}

#user-profile-modal .up-members-list { width: 100%; display: flex; flex-direction: column; gap: 7px; }

#user-profile-modal .up-member-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
}

#user-profile-modal .up-member-avatar { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg,#818cf8,#7c3aed); background-size: cover; background-position: center; font-weight: 750; }
#user-profile-modal .up-member-info { flex: 1; min-width: 0; }
#user-profile-modal .up-member-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-primary); font-size: .82rem; font-weight: 650; }
#user-profile-modal .up-member-role { padding: 3px 7px; border-radius: 999px; color: #c7d2fe; background: rgba(99,102,241,.13); font-size: .58rem; }
#user-profile-modal .up-member-role.creator { color: #fde68a; background: rgba(245,158,11,.11); }

[data-theme="light"] #user-profile-modal .up-modal { background: rgba(246,248,255,.82) !important; border-color: rgba(255,255,255,.9) !important; }
[data-theme="light"] #user-profile-modal .up-identity-panel { background: rgba(255,255,255,.24); border-right-color: rgba(15,23,42,.08); }
[data-theme="light"] #user-profile-modal .up-cover::after { background: linear-gradient(180deg, transparent 28%, rgba(246,248,255,.18) 62%, rgba(246,248,255,.98) 100%); }
[data-theme="light"] #user-profile-modal .up-avatar { border-color: rgba(246,248,255,.96) !important; }
[data-theme="light"] #user-profile-modal .up-online { border-color: #f6f8ff !important; }
[data-theme="light"] #user-profile-modal .up-card,
[data-theme="light"] #user-profile-modal .up-action-btn:not(.primary),
[data-theme="light"] #user-profile-modal .up-tabs,
[data-theme="light"] #user-profile-modal .up-member-row { background: rgba(255,255,255,.58) !important; border-color: rgba(15,23,42,.08) !important; }

@media (max-width: 768px) {
    #user-profile-modal.up-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    #user-profile-modal .up-modal {
        width: 100% !important;
        max-width: none !important;
        height: calc(100dvh - 8px) !important;
        max-height: calc(100dvh - 8px) !important;
        border-width: 1px 0 0 !important;
        border-radius: 30px 30px 0 0 !important;
        transform: translateY(42px) scale(.985) !important;
    }

    #user-profile-modal.active .up-modal { transform: translateY(0) scale(1) !important; }

    #user-profile-modal .up-close {
        position: fixed !important;
        top: calc(20px + env(safe-area-inset-top)) !important;
        right: 16px !important;
        width: 40px !important;
        height: 40px !important;
    }

    #user-profile-modal .up-scroll {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #user-profile-modal .up-layout {
        display: block !important;
        height: auto !important;
        min-height: 100%;
    }

    #user-profile-modal .up-identity-panel {
        width: 100%;
        overflow: visible !important;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    #user-profile-modal .up-cover { height: 224px !important; }

    #user-profile-modal .up-identity-content {
        height: auto !important;
        overflow: visible !important;
        padding: calc(119px + env(safe-area-inset-top)) 14px 18px !important;
    }

    #user-profile-modal .up-avatar-wrap { width: 116px !important; height: 116px !important; margin-bottom: 14px !important; }
    #user-profile-modal .up-avatar-ring { border-radius: 36px; }
    #user-profile-modal .up-avatar { border-radius: 32px !important; font-size: 2.45rem !important; }
    #user-profile-modal .up-name { font-size: 1.65rem !important; }
    #user-profile-modal .up-actions { gap: 8px !important; margin-bottom: 12px !important; }
    #user-profile-modal .up-action-btn { min-height: 68px !important; border-radius: 19px !important; }

    #user-profile-modal .up-explorer {
        width: 100%;
        min-height: 420px;
        padding: 22px 14px calc(28px + env(safe-area-inset-bottom)) !important;
        overflow: visible;
    }

    #user-profile-modal .up-explorer-header { min-height: 52px; padding: 0 2px; align-items: flex-start; }
    #user-profile-modal .up-explorer-header h3 { font-size: 1.16rem !important; }
    #user-profile-modal .up-private-pill { padding: 6px 8px; font-size: .6rem; }
    #user-profile-modal .up-tabs { position: sticky; top: 8px; z-index: 8; margin: 14px 0 !important; background: rgba(13,16,30,.76) !important; backdrop-filter: blur(30px); }
    #user-profile-modal .up-tab-pane { overflow: visible !important; }
    #user-profile-modal .up-media-grid { gap: 6px !important; }
    #user-profile-modal .up-media-grid > .media-thumb,
    #user-profile-modal .up-media-grid > .media-thumb-video { border-radius: 14px !important; }
    #user-profile-modal .up-media-empty { min-height: 250px; border-radius: 21px; }
    #user-profile-modal .up-member-add-btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #user-profile-modal .up-cover-aurora,
    #user-profile-modal .up-tab-pane.active { animation: none !important; }
}

#user-profile-modal .up-custom-status {
    display: inline-flex;
    max-width: min(100%, 310px);
    min-height: 35px;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    padding: 6px 10px 6px 7px;
    border: 1px solid rgba(179, 156, 255, 0.17);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(146, 116, 242, 0.14), rgba(75, 207, 171, 0.07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 9px 24px rgba(42, 29, 100, 0.12);
}

#user-profile-modal .up-custom-status[hidden] {
    display: none !important;
}

#user-profile-modal .up-custom-status-emoji {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
}

#user-profile-modal .up-custom-status-text {
    overflow: hidden;
    color: rgba(245, 242, 255, 0.86);
    font-size: 0.64rem;
    font-weight: 710;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#user-profile-modal .up-custom-status-expiry {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.48rem;
}

[data-theme="light"] #user-profile-modal .up-custom-status {
    border-color: rgba(98, 72, 186, 0.12);
    background: linear-gradient(135deg, rgba(137, 106, 235, 0.1), rgba(42, 183, 147, 0.06));
    box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(73, 64, 113, 0.08);
}

[data-theme="light"] #user-profile-modal .up-custom-status-text {
    color: #39415b;
}

#user-profile-modal .up-members-loading,
#user-profile-modal .up-members-empty {
    display:flex;
    min-height:130px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:9px;
    color:var(--text-muted);
    text-align:center;
}
#user-profile-modal .up-group-tools {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
    padding:10px 12px;
    border:1px solid color-mix(in srgb,var(--accent) 16%,var(--border-subtle));
    border-radius:14px;
    background:color-mix(in srgb,var(--accent) 6%,transparent);
}
#user-profile-modal .up-group-tools[hidden] { display:none; }
#user-profile-modal .up-group-tools > span { display:flex;align-items:center;gap:9px;min-width:0; }
#user-profile-modal .up-group-tools > span > i { color:var(--accent-light); }
#user-profile-modal .up-group-tools > span > span { display:flex;min-width:0;flex-direction:column; }
#user-profile-modal .up-group-tools strong { color:var(--text-primary);font-size:.75rem; }
#user-profile-modal .up-group-tools small { color:var(--text-muted);font-size:.62rem; }
#user-profile-modal .up-group-tools button {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 9px;
    border:1px solid var(--border-subtle);
    border-radius:9px;
    color:var(--text-primary);
    background:var(--bg-hover);
    cursor:pointer;
}
#user-profile-modal .up-members-empty button {
    padding:7px 12px;
    border:1px solid var(--border-subtle);
    border-radius:10px;
    color:var(--text-primary);
    background:var(--bg-hover);
    cursor:pointer;
}
#user-profile-modal .up-member-row.is-me {
    border-color:color-mix(in srgb,var(--accent) 18%,var(--border-subtle));
    background:color-mix(in srgb,var(--accent) 6%,transparent);
}
#user-profile-modal .up-member-info { min-width:0; }
#user-profile-modal .up-member-info small {
    display:block;
    overflow:hidden;
    margin-top:3px;
    color:var(--text-muted);
    font-size:.67rem;
    text-overflow:ellipsis;
    white-space:nowrap;
}
#user-profile-modal .up-member-you {
    padding:2px 5px;
    border-radius:6px;
    color:var(--accent-light);
    background:var(--accent-soft);
    font-size:.59rem;
    font-weight:700;
    text-transform:uppercase;
}
#user-profile-modal .up-member-actions { display:flex;gap:5px;margin-left:auto;opacity:.72; }
#user-profile-modal .up-member-row:hover .up-member-actions,
#user-profile-modal .up-member-actions:focus-within { opacity:1; }
#user-profile-modal .up-member-actions .danger { color:var(--danger); }

@media (max-width:620px) {
    #user-profile-modal .up-member-actions { opacity:1; }
    #user-profile-modal .up-member-role:not(.creator):not(.admin) { display:none; }
    #user-profile-modal .up-group-tools button span { display:none; }
}

/* Public Business storefront inside the user profile. */
#user-profile-modal .up-business-card {
    position: relative;
    display: grid;
    gap: 13px;
    margin: 0 0 14px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(255,255,255,.08));
    border-radius: 21px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent-light) 16%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--accent) 11%, rgba(15,18,32,.9)), rgba(11,14,26,.88));
    box-shadow: inset 0 1px rgba(255,255,255,.06), 0 16px 34px rgba(0,0,0,.14);
}
#user-profile-modal .up-business-card[hidden] { display: none !important; }
#user-profile-modal .up-business-card::after { content:""; position:absolute; right:-45px; bottom:-60px; width:140px; height:140px; border:1px solid color-mix(in srgb,var(--accent) 18%,transparent); border-radius:50%; box-shadow:0 0 0 19px color-mix(in srgb,var(--accent) 4%,transparent),0 0 0 39px color-mix(in srgb,var(--accent) 3%,transparent); pointer-events:none; }
#user-profile-modal .up-business-card>header { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
#user-profile-modal .up-business-card>header>span { color:var(--accent-light); font-size:.55rem; font-weight:850; letter-spacing:.08em; }
#user-profile-modal .up-business-card>header>span i { margin-right:5px; }
#user-profile-modal .up-business-card>header>em { display:flex; align-items:center; gap:5px; color:#79d8bd; font-size:.48rem; font-style:normal; }
#user-profile-modal .up-business-card>header>em i { width:6px; height:6px; border-radius:50%; background:#56d2ae; box-shadow:0 0 10px rgba(86,210,174,.42); }
#user-profile-modal .up-business-brand { position:relative; z-index:1; display:grid; grid-template-columns:48px minmax(0,1fr); align-items:center; gap:11px; text-align:left; }
#user-profile-modal .up-business-brand>span { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; color:#fff; background:linear-gradient(145deg,var(--accent-light),var(--accent-dark)); box-shadow:0 12px 26px color-mix(in srgb,var(--accent) 22%,transparent); font-size:.9rem; font-weight:900; }
#user-profile-modal .up-business-brand small,#user-profile-modal .up-business-brand strong,#user-profile-modal .up-business-brand p { display:block; margin:0; }
#user-profile-modal .up-business-brand small { color:var(--text-muted); font-size:.46rem; font-weight:850; letter-spacing:.08em; }
#user-profile-modal .up-business-brand strong { margin-top:3px; overflow:hidden; color:var(--text-primary); font-size:.82rem; text-overflow:ellipsis; white-space:nowrap; }
#user-profile-modal .up-business-brand p { display:-webkit-box; margin-top:4px; overflow:hidden; color:var(--text-secondary); font-size:.58rem; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
#user-profile-modal .up-business-card>footer { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:8px; padding-top:11px; border-top:1px solid rgba(255,255,255,.07); }
#user-profile-modal .up-business-card>footer>span { display:flex; align-items:center; gap:8px; min-width:0; color:var(--accent-light); }
#user-profile-modal .up-business-card>footer>span>span { min-width:0; text-align:left; }
#user-profile-modal .up-business-card>footer small,#user-profile-modal .up-business-card>footer b { display:block; }
#user-profile-modal .up-business-card>footer small { color:var(--text-muted); font-size:.43rem; }
#user-profile-modal .up-business-card>footer b { margin-top:2px; overflow:hidden; color:var(--text-secondary); font-size:.52rem; text-overflow:ellipsis; white-space:nowrap; }
#user-profile-modal .up-business-card>footer>em { flex:0 0 auto; color:var(--text-muted); font-size:.43rem; font-style:normal; }
#user-profile-modal .up-business-card>footer>em i { margin-right:4px; color:var(--accent-light); }
[data-theme="light"] #user-profile-modal .up-business-card { background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 8%,#fff),#fff); box-shadow:0 14px 28px rgba(70,58,120,.09); }
@media(max-width:430px){#user-profile-modal .up-business-card{padding:12px;border-radius:18px}#user-profile-modal .up-business-card>header>em,#user-profile-modal .up-business-card>footer>em{display:none}}
