/* OSANIME Member Community — Stage 9 Deep Profile Integration v222 */

.profile-stage9-identity-community {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 9px 0 2px;
}

.profile-stage9-presence,
.profile-stage9-mini-badge,
.profile-stage9-more-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(10,12,20,.72);
    color: rgba(255,255,255,.86);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.profile-stage9-presence i { font-size: 7px; }
.profile-stage9-presence.is-online i { color: #43e59b; filter: drop-shadow(0 0 5px rgba(67,229,155,.55)); }
.profile-stage9-presence.is-recent i { color: #f5c451; }
.profile-stage9-presence.is-offline i,
.profile-stage9-presence.is-never i,
.profile-stage9-presence.is-hidden i { color: rgba(255,255,255,.35); }

.profile-stage9-mini-badge { color: #fff; }
.profile-stage9-mini-badge.tone-gold { border-color: rgba(255,203,84,.35); background: rgba(99,72,14,.55); }
.profile-stage9-mini-badge.tone-violet { border-color: rgba(170,119,255,.34); background: rgba(60,31,103,.55); }
.profile-stage9-mini-badge.tone-blue { border-color: rgba(96,181,255,.34); background: rgba(24,65,104,.55); }
.profile-stage9-mini-badge.tone-pink { border-color: rgba(255,82,157,.38); background: rgba(105,24,61,.55); }
.profile-stage9-mini-badge.tone-red { border-color: rgba(255,102,102,.36); background: rgba(101,29,36,.55); }
.profile-stage9-mini-badge.tone-green { border-color: rgba(82,226,157,.35); background: rgba(26,91,65,.55); }
.profile-stage9-more-badges:hover { border-color: rgba(255,72,151,.45); color: #ff5ca7; transform: translateY(-1px); }

.profile-stage9-community-panel { display: grid; gap: 18px; }
.profile-stage9-community-head { align-items: flex-start; }
.profile-stage9-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #ff5ca7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-stage9-score-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
}
.profile-stage9-score-grid article {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(25,28,42,.9), rgba(15,17,27,.94));
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.profile-stage9-score-grid article > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
}
.profile-stage9-score-grid article > span.is-pink { color: #ff5ca7; background: rgba(255,72,151,.12); }
.profile-stage9-score-grid article > span.is-fire { color: #ff9d62; background: rgba(255,139,76,.12); }
.profile-stage9-score-grid article > span.is-blue { color: #67bbff; background: rgba(74,165,255,.12); }
.profile-stage9-score-grid article > span.is-violet { color: #b58aff; background: rgba(155,106,255,.12); }
.profile-stage9-score-grid article div { min-width: 0; }
.profile-stage9-score-grid b { display: block; color: #fff; font-size: 20px; line-height: 1.1; }
.profile-stage9-score-grid small { display: block; margin-top: 4px; color: rgba(255,255,255,.57); font-size: 11px; }

.profile-stage9-snapshot-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 2px;
    color: rgba(255,255,255,.48);
    font-size: 11px;
}
.profile-stage9-snapshot-line span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.67); }
.profile-stage9-snapshot-line small { text-align: right; }

.profile-stage9-two-column {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 14px;
}
.profile-stage9-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 17px;
    background: linear-gradient(150deg, rgba(23,25,38,.93), rgba(13,15,24,.95));
    box-shadow: 0 14px 34px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.025);
}
.profile-stage9-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.profile-stage9-card-head > div > span {
    display: block;
    color: #ff5ca7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.profile-stage9-card-head h3 { margin: 3px 0 0; color: #fff; font-size: 16px; }
.profile-stage9-card-head > i { color: rgba(255,255,255,.22); font-size: 20px; }
.profile-stage9-card-head > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ff5ca7;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.profile-stage9-badge-list { display: grid; gap: 9px; }
.profile-stage9-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.06);
}
.profile-stage9-badge > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.07);
}
.profile-stage9-badge.tone-gold > span { color: #ffd367; background: rgba(255,198,61,.11); }
.profile-stage9-badge.tone-violet > span { color: #bc98ff; background: rgba(158,105,255,.11); }
.profile-stage9-badge.tone-blue > span { color: #75c4ff; background: rgba(74,165,255,.11); }
.profile-stage9-badge.tone-pink > span { color: #ff68ac; background: rgba(255,72,151,.11); }
.profile-stage9-badge.tone-red > span { color: #ff8585; background: rgba(255,91,91,.11); }
.profile-stage9-badge.tone-green > span { color: #69e5ad; background: rgba(70,217,148,.11); }
.profile-stage9-badge div { min-width: 0; }
.profile-stage9-badge b { display: block; color: #fff; font-size: 12px; }
.profile-stage9-badge small { display: block; margin-top: 2px; color: rgba(255,255,255,.49); font-size: 10px; line-height: 1.35; }

.profile-stage9-signal-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
}
.profile-stage9-signal-grid > span {
    display: grid;
    grid-template-columns: 25px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.055);
}
.profile-stage9-signal-grid > span i { grid-row: 1/3; color: #ff5ca7; }
.profile-stage9-signal-grid > span b { color: #fff; font-size: 14px; }
.profile-stage9-signal-grid > span small { color: rgba(255,255,255,.47); font-size: 10px; }

.profile-stage9-contribution-list { display: grid; }
.profile-stage9-contribution-row {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) auto 18px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 6px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,.055);
    transition: background .18s ease, transform .18s ease;
}
.profile-stage9-contribution-row:first-child { border-top: 0; }
.profile-stage9-contribution-row:hover { background: rgba(255,255,255,.025); transform: translateX(2px); }
.profile-stage9-contribution-row > img,
.profile-stage9-contribution-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
}
.profile-stage9-contribution-icon { display: grid; place-items: center; color: #ff5ca7; background: rgba(255,72,151,.11); }
.profile-stage9-contribution-copy { min-width: 0; }
.profile-stage9-contribution-copy small { display: block; color: #ff5ca7; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.profile-stage9-contribution-copy b { display: block; margin-top: 2px; overflow: hidden; color: #f7f8fc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-stage9-contribution-copy em { display: block; margin-top: 2px; overflow: hidden; color: rgba(255,255,255,.47); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.profile-stage9-contribution-row time { color: rgba(255,255,255,.4); font-size: 10px; white-space: nowrap; }
.profile-stage9-contribution-row > i { color: rgba(255,255,255,.27); font-size: 10px; }

.profile-stage9-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}
.profile-stage9-suggestion {
    min-width: 0;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.065);
    background: rgba(255,255,255,.028);
}
.profile-stage9-suggestion-person {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.profile-stage9-suggestion-person img { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.07); }
.profile-stage9-suggestion-person span { min-width: 0; }
.profile-stage9-suggestion-person b,
.profile-stage9-suggestion-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-stage9-suggestion-person b { color: #fff; font-size: 12px; }
.profile-stage9-suggestion-person small { margin-top: 2px; color: rgba(255,255,255,.43); font-size: 10px; }
.profile-stage9-suggestion p { margin: 9px 0 7px; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.35; }
.profile-stage9-suggestion p i { margin-right: 4px; color: #ff5ca7; }
.profile-stage9-suggestion-meta { display: flex; gap: 12px; color: rgba(255,255,255,.45); font-size: 9px; }
.profile-stage9-suggestion-meta i { margin-right: 3px; }
.profile-stage9-suggestion-actions { display: flex; gap: 7px; margin-top: 10px; }
.profile-stage9-suggestion-actions button,
.profile-stage9-suggestion-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.09);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.profile-stage9-suggestion-actions button { flex: 1; gap: 6px; padding: 0 10px; background: linear-gradient(135deg,#ff4d97,#df4bff); }
.profile-stage9-suggestion-actions button.is-following { color: #ff72b3; border-color: rgba(255,80,156,.25); background: rgba(255,72,151,.08); }
.profile-stage9-suggestion-actions button.is-busy { opacity: .66; cursor: wait; }
.profile-stage9-suggestion-actions a { width: 34px; background: rgba(255,255,255,.035); }
.profile-stage9-suggestion.is-followed { opacity: .7; }

.profile-stage9-discovery-guest,
.profile-stage9-setup-note,
.profile-stage9-empty {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border-radius: 13px;
    border: 1px dashed rgba(255,255,255,.1);
    background: rgba(255,255,255,.025);
    color: rgba(255,255,255,.58);
}
.profile-stage9-discovery-guest > i,
.profile-stage9-setup-note > i { color: #ff5ca7; font-size: 18px; }
.profile-stage9-discovery-guest div,
.profile-stage9-setup-note div { flex: 1; min-width: 0; }
.profile-stage9-discovery-guest b,
.profile-stage9-setup-note b { display: block; color: #fff; font-size: 12px; }
.profile-stage9-discovery-guest small,
.profile-stage9-setup-note small { display: block; margin-top: 2px; font-size: 10px; line-height: 1.4; }
.profile-stage9-discovery-guest > a,
.profile-stage9-empty > a { color: #ff5ca7; font-size: 10px; font-weight: 800; text-decoration: none; }
.profile-stage9-empty { justify-content: center; min-height: 74px; text-align: center; flex-wrap: wrap; }

.profile-stage9-sidebar-community { text-decoration: none !important; }
.profile-stage9-sidebar-community:hover { background: rgba(255,72,151,.06) !important; }
.profile-stage9-sidebar-presence b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 880px) {
    .profile-stage9-score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .profile-stage9-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .profile-stage9-community-panel { gap: 13px; }
    .profile-stage9-score-grid { gap: 8px; }
    .profile-stage9-score-grid article { padding: 11px; gap: 9px; }
    .profile-stage9-score-grid article > span { width: 34px; height: 34px; flex-basis: 34px; }
    .profile-stage9-score-grid b { font-size: 17px; }
    .profile-stage9-card { padding: 13px; border-radius: 14px; }
    .profile-stage9-suggestion-grid { grid-template-columns: 1fr; }
    .profile-stage9-contribution-row { grid-template-columns: 40px minmax(0,1fr) 14px; }
    .profile-stage9-contribution-row > img,
    .profile-stage9-contribution-icon { width: 38px; height: 38px; }
    .profile-stage9-contribution-row time { display: none; }
    .profile-stage9-snapshot-line { align-items: flex-start; flex-direction: column; gap: 4px; }
    .profile-stage9-snapshot-line small { text-align: left; }
}

@media (max-width: 420px) {
    .profile-stage9-score-grid { grid-template-columns: 1fr 1fr; }
    .profile-stage9-score-grid article { align-items: flex-start; flex-direction: column; }
    .profile-stage9-signal-grid { grid-template-columns: 1fr; }
    .profile-stage9-identity-community { gap: 5px; }
    .profile-stage9-mini-badge { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-stage9-more-badges,
    .profile-stage9-contribution-row,
    .profile-stage9-suggestion-actions button { transition: none !important; }
}

.profile-stage9-discovery-feedback {
    min-height: 0;
    margin: -6px 0 8px;
    color: #6fe2ad;
    font-size: 10px;
}
.profile-stage9-discovery-feedback:empty { display: none; }
.profile-stage9-discovery-feedback.is-error { color: #ff848f; }
