.profile-relationship-actions { display:flex; align-items:center; gap:6px; }
.profile-relationship-actions button { display:inline-flex; align-items:center; justify-content:center; min-height:35px; margin:0; padding:7px 11px; border:1px solid rgba(213,169,255,.72); background:rgba(8,7,20,.72); box-shadow:0 3px 0 rgba(0,0,0,.55); font-size:12px; line-height:1; white-space:nowrap; }
.profile-relationship-actions .follow-profile-button span { color:#d7c7e8; font-size:16px; }
.profile-relationship-actions .follow-profile-button.following { border-color:#e4bd52; color:#ffe28d; }
.profile-relationship-actions .follow-profile-button.following span { color:#ffd75c; }
.profile-relationship-actions .message-guide-button { border-color:rgba(0,209,24,.72); background:rgba(13,76,29,.88); }

.messages-page { display:grid; gap:18px; color:#fff; }
.messages-heading { padding:16px 22px 18px; border:1px solid rgba(164,114,215,.45); border-radius:16px; background:radial-gradient(circle at 90% 30%,rgba(0,209,24,.18),transparent 24%),linear-gradient(135deg,rgba(95,25,187,.65),rgba(8,7,20,.96)); }
.messages-heading .eyebrow { color:#9cffaa; text-shadow:0 1px 2px rgba(0,0,0,.8); }
.messages-heading h1 { margin:3px 0; font-size:36px; }
.messages-heading p { margin:0; color:#d7cedf; }
.message-community-notice { display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid rgba(0,209,24,.35); border-radius:10px; background:rgba(0,209,24,.08); color:#dcd3e5; font-size:12px; }
.message-community-notice strong { flex:0 0 auto; color:#9cffaa; }
.messages-layout { display:grid; grid-template-columns:290px minmax(0,1fr); min-height:590px; overflow:hidden; border:1px solid rgba(164,114,215,.42); border-radius:16px; background:rgba(19,12,34,.94); box-shadow:0 18px 40px rgba(0,0,0,.28); }
.conversation-list { padding:17px 12px; border-right:1px solid rgba(164,114,215,.3); background:rgba(8,7,20,.46); }
.conversation-list h2 { margin:0 8px 13px; font-size:17px; }
.conversation-view-tabs { display:flex; gap:0; margin:0 5px 12px; }
.conversation-view-tabs button { flex:1; padding:6px 8px; border:1px solid rgba(164,114,215,.4); border-radius:6px 0 0 6px; background:rgba(8,7,20,.48); color:#d9cfe4; box-shadow:none; font-size:11px; }
.conversation-view-tabs button+button { margin-left:-1px; border-radius:0 6px 6px 0; }
.conversation-view-tabs button.active { border-color:#00d118; background:rgba(0,209,24,.14); color:#baffc2; }
.conversation-list > .muted { display:block; padding:12px 8px; color:#bdb3c9; }
.conversation-link { display:flex; align-items:center; gap:10px; margin:4px 0; padding:10px; border:1px solid transparent; border-radius:10px; color:#fff; text-decoration:none; }
.conversation-link:hover,.conversation-link.active { border-color:rgba(164,114,215,.5); background:rgba(95,25,187,.22); }
.conversation-link.unread { border-color:rgba(0,209,24,.52); background:linear-gradient(90deg,rgba(0,209,24,.16),rgba(95,25,187,.18)); box-shadow:inset 3px 0 #00d118; }
.conversation-link.unread:not(.active):hover { background:linear-gradient(90deg,rgba(0,209,24,.22),rgba(95,25,187,.25)); }
.conversation-identity { display:grid; min-width:0; flex:1; }
.conversation-link strong,.conversation-link small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.conversation-link small { color:#bdb3c9; }
.conversation-unread-count { display:grid; place-items:center; min-width:21px; height:21px; padding:0 5px; border:1px solid rgba(8,7,20,.8); border-radius:999px; background:#00d118; color:#080714; box-shadow:0 0 10px rgba(0,209,24,.42); font-size:10px; font-weight:900; line-height:1; }
.conversation-avatar { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; overflow:hidden; border:2px solid #a472d7; border-radius:50%; background:#5f19bb; font-weight:900; }
.conversation-avatar img { width:100%; height:100%; object-fit:cover; }
.message-thread { display:grid; grid-template-rows:auto minmax(240px,1fr) auto; min-width:0; }
.message-thread > header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:15px 20px; border-bottom:1px solid rgba(164,114,215,.3); }
.message-thread-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.message-thread-actions button { min-height:auto; padding:6px 9px; box-shadow:none; font-size:11px; }
.message-thread-actions .danger { border:1px solid rgba(255,104,104,.55); background:rgba(126,25,34,.72); }
.message-thread h2 { margin:2px 0 0; font-size:20px; }
.message-thread .underlined-link { color:#d8b6ff; }
.message-history { display:flex; flex-direction:column; gap:9px; max-height:440px; overflow-y:auto; padding:20px; }
.message-bubble { width:fit-content; max-width:min(76%,560px); padding:9px 12px 7px; border:1px solid rgba(164,114,215,.35); border-radius:12px 12px 12px 3px; background:rgba(69,43,96,.75); }
.message-bubble.mine { align-self:flex-end; border-color:rgba(0,209,24,.38); border-radius:12px 12px 3px 12px; background:rgba(22,101,39,.72); }
.message-bubble p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-bubble time { display:block; margin-top:4px; color:#c9c0d2; font-size:10px; text-align:right; }
.message-empty { margin:auto; max-width:370px; color:#cfc5db; text-align:center; }
.message-composer { padding:14px 18px 16px; border-top:1px solid rgba(164,114,215,.3); background:rgba(8,7,20,.38); }
.message-composer label { display:block; margin-bottom:5px; font-size:12px; font-weight:800; }
.message-composer textarea { display:block; width:100%; resize:none; border-color:rgba(164,114,215,.48); background:rgba(255,255,255,.96); color:#171020; }
.message-composer > div { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:8px; }
.message-composer small { color:#bdb3c9; }
.message-composer button { padding:9px 22px; }
.message-composer .muted { margin:5px 0 0; color:#d5a9ff; }
.message-thread-placeholder { display:grid; place-content:center; padding:30px; color:#cfc5db; text-align:center; }
.message-thread-placeholder > span { font-size:44px; }
.message-thread-placeholder h2 { color:#fff; }
.messages-login { max-width:600px; margin:40px auto; text-align:center; }

@media(max-width:760px){.messages-layout{grid-template-columns:1fr}.conversation-list{border-right:0;border-bottom:1px solid rgba(164,114,215,.3)}.message-history{max-height:52vh}.profile-relationship-actions{flex-wrap:wrap}.message-composer>div{align-items:flex-start;flex-direction:column}.message-composer button{width:100%}}
