/* Member profiles share ECILA's Chakra font, charcoal surfaces and emerald accents. */
.member-profile { --profile-border: rgba(255,255,255,.085); --profile-muted: #92929a; width: min(1280px,100%); margin: 0 auto; padding: 8px 24px 44px; color: #e4e7e7; }
.member-profile *, .member-profile *::before, .member-profile *::after { box-sizing: border-box; }
.member-profile a, .member-profile button { -webkit-tap-highlight-color: transparent; }
.member-profile button, .member-profile a { transition: color .18s, background-color .18s, border-color .18s; }
.member-profile a:focus-visible, .member-profile button:focus-visible { outline: 2px solid #6ee7b7; outline-offset: 4px; }
.member-profile .material-icons { font-size: 19px; }
.member-profile__header { border: 1px solid var(--profile-border); border-radius: 16px; overflow: hidden; background: rgba(9,9,11,.72); margin-bottom: 24px; }
.member-profile__cover { height: 256px; position: relative; isolation: isolate; background-color: #111113; background-image: repeating-linear-gradient(120deg,transparent,transparent 18px,rgba(255,255,255,.018) 19px,transparent 20px); background-size: cover; background-position: center; }
.member-profile__cover::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(4,4,5,.05) 15%,rgba(4,4,5,.3) 50%,rgba(4,4,5,.95) 100%); }
.member-profile__cover-expand { position: absolute; top: 16px; right: 16px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.4); color: white; border-radius: 8px; padding: 8px; display: flex; }
.member-profile__cover-expand:hover { background: rgba(0,0,0,.7); }
.member-profile__identity { display: flex; align-items: flex-end; gap: 24px; position: absolute; bottom: 26px; left: 30px; right: 30px; }
.member-profile__avatar { position: relative; flex-shrink: 0; border-radius: 18px; box-shadow: 0 0 0 5px rgba(8,8,9,.6),0 8px 25px rgba(0,0,0,.3); }
.profile-avatar-expand__overlay { position: absolute; inset: 0; border-radius: inherit; opacity: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.4); transition: opacity .18s; color: white; }
.profile-avatar-expand:hover .profile-avatar-expand__overlay, .profile-avatar-expand:focus-visible .profile-avatar-expand__overlay { opacity: 1; }
.member-profile__name { min-width: 0; padding-bottom: 3px; }
.member-profile__name h1 { font-size: clamp(25px,3vw,34px); font-weight: 700; line-height: 1.2; color: #e4e4e7; overflow-wrap: anywhere; text-shadow: 0 2px 15px rgba(0,0,0,.7); }
.member-profile__group { display: flex; flex-wrap: wrap; gap: 8px; color: #c2c9c7; font-size: 13px; margin-top: 7px; }
.member-profile__group > span { color: #6b7873; }
.member-profile__badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.member-profile__banned { position: absolute; top: 16px; left: 16px; padding: 6px 10px; background: #7f1d1d; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.member-profile__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--profile-border); }
.member-profile__presence { color: #8c9692; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.member-profile__presence > span { width: 7px; height: 7px; background: #63706a; border-radius: 50%; }
.member-profile__presence.is-online { color: #6ee7b7; }
.member-profile__presence.is-online > span { background: #6ee7b7; box-shadow: 0 0 10px rgba(52,211,153,.25); }
.member-profile__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.member-profile__button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid #303036; background: #18181b; border-radius: 7px; padding: 8px 14px; font-size: 12px; font-weight: 600; color: #d9e0dc; }
.member-profile__button:hover { border-color: #52525b; background: #27272a; color: #a7f3d0; }
.member-profile__button--primary { background: #348665; border-color: #429c78; color: white; }
.member-profile__button--primary:hover { background: #409e79; color: white; }
.member-profile__stats { display: grid; grid-template-columns: .8fr .8fr 1.2fr 1.2fr; padding: 19px 28px; gap: 20px; }
.member-profile__stats > div { border-right: 1px solid var(--profile-border); }
.member-profile__stats > div:last-child { border: 0; }
.member-profile__stats dt { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--profile-muted); margin-bottom: 5px; }
.member-profile__stats dd { font-size: 15px; font-weight: 600; color: #edf2ef; }
.member-profile__stats a:hover { color: #6ee7b7; }
.member-profile__layout { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 24px; align-items: start; }
.member-profile__sidebar { display: flex; flex-direction: column; gap: 18px; }
.member-profile__card, .member-profile__highlights, .member-profile__activity { border: 1px solid var(--profile-border); background: rgba(9,9,11,.72); border-radius: 12px; overflow: hidden; }
.member-profile__card { padding: 20px; }
.member-profile__card h2 { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: #edf2ef; margin-bottom: 18px; overflow-wrap: anywhere; gap: 10px; }
.member-profile__bio { font-size: 13px; color: #a1a1aa; line-height: 1.8; overflow-wrap: anywhere; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--profile-border); max-width: 100%; }
.member-profile__bio p { margin: 0 0 1.8em; }
.member-profile__bio > :last-child { margin-bottom: 0; }
.member-profile__bio img { max-width: 100%; height: auto; }
.member-profile__facts { display: flex; flex-direction: column; gap: 13px; font-size: 12px; }
.member-profile__facts > div { display: flex; justify-content: space-between; gap: 16px; }
.member-profile__facts dt { color: var(--profile-muted); flex-shrink: 0; }
.member-profile__facts dd { text-align: right; color: #d4d4d8; overflow-wrap: anywhere; min-width: 0; }
.member-profile__account, .member-profile__server { display: flex; width: 100%; align-items: center; gap: 12px; text-align: left; margin-top: 15px; }
.member-profile__account > i:first-child, .member-profile__server > i { display: flex; align-items: center; justify-content: center; background: #202024; color: #82bda1; width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; font-size: 20px; }
.member-profile__account > span, .member-profile__server > span { min-width: 0; flex: 1; }
.member-profile__account strong, .member-profile__server strong { display: block; font-size: 12px; color: #e4e4e7; font-weight: 500; overflow-wrap: anywhere; }
.member-profile__account small, .member-profile__server small { display: block; margin-top: 3px; color: var(--profile-muted); font-size: 11px; }
.member-profile__account > i:last-child { color: #92929a; font-size: 15px; }
.member-profile__account:hover strong, .member-profile__server:hover strong, .member-profile__server.is-playing small { color: #6ee7b7; }
.member-profile__count { color: #c4c4cc; background: #27272a; padding: 2px 7px; border-radius: 5px; font-size: 11px; }
.member-profile__followers { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.member-profile__followers img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 1px solid #3f3f46; }
.member-profile__followers a:hover img { border-color: #6ee7b7; }
.member-profile__muted { font-size: 12px; color: var(--profile-muted); margin-top: 12px; }
.member-profile__main { min-width: 0; }
.member-profile__highlights { display: grid; grid-template-columns: 1.25fr 1fr .75fr; padding: 22px 18px; align-items: center; margin-bottom: 20px; }
.member-profile__highlights > * { min-width: 0; padding: 0 12px; border-right: 1px solid var(--profile-border); }
.member-profile__highlights > *:last-child { border: 0; }
.member-profile__rank { display: flex; align-items: center; gap: 12px; text-align: left; }
.member-profile__rank-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 46px; background: #254335; color: #91dbaf; border: 1px solid #3d6a51; border-radius: 11px 11px 17px 17px; flex-shrink: 0; }
.member-profile__rank-icon .material-icons { font-size: 26px; }
.member-profile__rank strong { font-size: 15px; font-weight: 600; display: block; }
.member-profile__highlights small { font-size: 11px; color: var(--profile-muted); display: block; margin-top: 5px; }
.member-profile__recent-badges { text-align: center; }
.member-profile__badge-images { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; }
.member-profile__badge-images img { max-width: 64px; min-width: 0; height: 32px; object-fit: contain; }
.member-profile__badge-images > i { color: #a7b99a; font-size: 30px; }
.member-profile__reputation { text-align: center; }
.member-profile__reputation > strong { display: inline-flex; min-width: 44px; height: 34px; align-items: center; justify-content: center; background: #234c38; color: #9be3b9; border-radius: 7px; font-size: 17px; font-weight: 600; padding: 0 10px; }
.member-profile__tabs { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 0; padding: 0; border: 1px solid var(--profile-border); border-radius: 10px 10px 0 0; background: rgba(24,24,27,.6); }
.member-profile__tabs > button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; padding: 17px 13px; border-bottom: 2px solid transparent; font-size: 12px; font-weight: 600; color: #a1a1aa; white-space: nowrap; }
.member-profile__tabs > button:first-child { border-top-left-radius: 9px; }
.member-profile__tabs > button:hover { color: #d6e7dc; background: #202023; }
.member-profile__tabs > button.is-active { color: #7cdbad; border-bottom-color: #59b98b; background: rgba(255,255,255,.025); }
.member-profile__tabs .material-icons { font-size: 17px; }
.member-profile__activity { border-top: 0; border-radius: 0 0 12px 12px; }
.member-profile__section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--profile-border); }
.member-profile__section-heading h2 { font-size: 14px; font-weight: 600; }
.member-profile__section-heading > a { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #8aa798; }
.member-profile__section-heading > a:hover { color: #6ee7b7; }
.member-profile__activity-item { display: flex; gap: 18px; padding: 25px 24px; border-bottom: 1px solid var(--profile-border); }
.member-profile__activity-avatar { position: relative; width: 42px; height: 42px; flex-shrink: 0; }
.member-profile__activity-avatar > img { width: 42px; height: 42px; border: 1px solid #34443a; border-radius: 12px; object-fit: cover; }
.member-profile__activity-avatar > span { position: absolute; bottom: -7px; right: -5px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #09090b; color: #b8c1bd; background: #27272a; display: flex; align-items: center; justify-content: center; }
.member-profile__activity-avatar .material-icons { font-size: 11px; }
.member-profile__activity-content { min-width: 0; flex: 1; }
.member-profile__activity-content h3, .member-profile__topic h3 { font-size: 15px; font-weight: 600; color: #e4e4e7; line-height: 1.45; overflow-wrap: anywhere; }
.member-profile__activity-content h3 a:hover, .member-profile__topic h3 a:hover { color: #7cdbad; }
.member-profile__activity-context { color: #a1a1aa; font-size: 12px; margin-top: 4px; line-height: 1.6; overflow-wrap: anywhere; }
.member-profile__activity-context .member-profile__activity-user { font-weight: 500; }
.member-profile__activity-context a:hover { text-decoration: underline; color: #a4d1b8; }
.member-profile__excerpt { font-size: 13px; line-height: 1.85; color: #a1a1aa; margin-top: 16px; overflow-wrap: anywhere; white-space: pre-line; }
.member-profile__activity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; font-size: 11px; color: #92929a; }
.member-profile__activity-meta a { display: inline-flex; align-items: center; gap: 6px; }
.member-profile__activity-meta a:hover { color: #8ee2b5; }
.member-profile__activity-meta .material-icons { font-size: 14px; }
.member-profile__view-post { margin-left: auto; }
.member-profile__activity-footer { padding: 0 24px 20px; }
.member-profile__activity-footer > div { margin-top: 20px; }
.member-profile__empty { padding: 50px 24px; text-align: center; }
.member-profile__empty > .material-icons { font-size: 34px; color: #526f5e; margin-bottom: 12px; }
.member-profile__empty h3 { font-size: 15px; color: #b3c3b9; }
.member-profile__empty p { font-size: 12px; margin-top: 7px; color: #819287; }
.member-profile__topic { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--profile-border); }
.member-profile__topic > i { color: #79a58b; margin-top: 2px; }
.member-profile__topic > div { flex: 1; min-width: 0; }
.member-profile__topic p { font-size: 11px; color: #92929a; margin-top: 7px; }
.member-profile__topic p > span { padding: 0 5px; }
.member-profile__topic-replies { font-size: 11px; color: #a1a1aa; white-space: nowrap; padding-top: 4px; }
.member-profile [role=tabpanel] > .bg-zinc-900\/50 { margin-top: 0; border-top: 0; border-radius: 0 0 12px 12px; background: rgba(9,9,11,.72); }
.member-profile [role=tabpanel] { min-width: 0; }
@media (max-width: 1023px) {
    .member-profile { padding-left: 16px; padding-right: 16px; }
    .member-profile__layout { grid-template-columns: 230px minmax(0,1fr); gap: 18px; }
    .member-profile__card { padding: 17px; }
    .member-profile__highlights { padding: 20px 8px; grid-template-columns: 1.2fr 1fr .8fr; }
    .member-profile__highlights > * { padding: 0 8px; }
    .member-profile__rank { gap: 8px; }
    .member-profile__rank-icon { width: 34px; height: 40px; }
    .member-profile__highlights small { font-size: 10px; }
    .member-profile__activity-item { padding: 22px 18px; gap: 14px; }
}
@media (max-width: 767px) {
    .member-profile { padding: 0 12px 28px; }
    .member-profile__cover { height: 225px; }
    .member-profile__identity { left: 20px; right: 20px; bottom: 22px; gap: 17px; }
    .member-profile__avatar > span > span { width: 82px !important; height: 82px !important; max-width: 82px !important; max-height: 82px !important; }
    .member-profile__name h1 { font-size: 25px; }
    .member-profile__group { font-size: 11px; gap: 5px; }
    .member-profile__toolbar { padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
    .member-profile__actions { justify-content: flex-start; gap: 7px; }
    .member-profile__button { font-size: 11px; padding: 8px 10px; gap: 6px; }
    .member-profile__stats { grid-template-columns: 1fr 1fr; padding: 18px 20px; gap: 18px; }
    .member-profile__stats > div:nth-child(2) { border: 0; }
    .member-profile__stats dd { font-size: 13px; }
    .member-profile__layout { display: flex; flex-direction: column; gap: 20px; }
    .member-profile__main { order: 0; width: 100%; }
    .member-profile__sidebar { order: 1; width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .member-profile__card:first-child { grid-column: 1 / -1; }
    .member-profile__highlights { margin-bottom: 16px; }
    .member-profile__rank { flex-direction: column; text-align: center; gap: 7px; }
    .member-profile__rank strong { font-size: 13px; }
    .member-profile__highlights { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 18px 5px; }
    .member-profile__badge-images img { max-width: 40px; height: 26px; }
    .member-profile__tabs > button { padding: 16px 11px; }
    .member-profile__section-heading { padding: 18px; }
    .member-profile__activity-avatar, .member-profile__activity-avatar > img { width: 32px; height: 32px; }
    .member-profile__activity-item { gap: 12px; padding: 22px 16px; }
    .member-profile__activity-content h3 { font-size: 14px; }
    .member-profile__activity-context { font-size: 11px; }
    .member-profile__excerpt { font-size: 12px; margin-top: 12px; }
    .member-profile__activity-meta { gap: 12px; font-size: 10px; }
    .member-profile__view-post { margin-left: 0; }
    .member-profile__activity-footer { padding-left: 16px; padding-right: 16px; }
    .member-profile__topic { padding: 18px 16px; gap: 12px; flex-wrap: wrap; }
    .member-profile__topic-replies { margin-left: 31px; }
    .member-profile [role=tabpanel] > .bg-zinc-900\/50 { padding: 20px 16px; }
}
@media (max-width: 420px) {
    .member-profile__sidebar { grid-template-columns: minmax(0,1fr); }
    .member-profile__highlights > * { padding: 0 5px; }
    .member-profile__recent-badges img:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .member-profile *, .member-profile *::before, .member-profile *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.member-profile__group strong, .member-profile__group-label { font-weight: 500; }
.member-profile__card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.member-profile__card-heading h2 { margin-bottom: 0; flex: 1; gap: 6px; }
.member-profile__visibility-form { flex-shrink: 0; }
.member-profile__visibility-toggle { display: inline-flex; align-items: center; gap: 4px; color: #a1a1aa; font-size: 11px; line-height: 1.4; border: 1px solid #3f3f46; border-radius: 5px; padding: 3px 5px; background: rgba(24,24,27,.5); }
.member-profile__visibility-toggle .material-icons { font-size: 13px; }
.member-profile__visibility-toggle:hover { color: #e4e4e7; border-color: #71717a; background: #27272a; }
.member-profile__card[id] { scroll-margin-top: 100px; }
