
/* Verdant native v17: profile editor, fixed profile avatar/cards, new PM center. */
body.forum-dark.vrp-native.action_profile #profileview.vrp-profile-page {
    width: min(1200px, calc(100vw - 36px)) !important;
    margin: 34px auto 52px !important;
    padding: 0 !important;
    background: transparent !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-hero {
    min-height: 220px !important;
    padding: 24px 28px !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar-wrap,
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar {
    width: 168px !important;
    height: 168px !important;
    flex: 0 0 168px !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar {
    display: block !important;
    padding: 5px !important;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(173,193,215,.96)) !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar > .vf-avatar,
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar > .vf-avatar.has-image,
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar > .vf-avatar.has-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border-radius: 999px !important;
    object-fit: cover !important;
    border: 0 !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-avatar > .vf-avatar:not(.has-image) {
    display: grid !important;
    place-items: center !important;
    font-size: 58px !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(0,214,165,.8), rgba(29,115,255,.75)) !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-hero-right { justify-content: flex-start !important; }
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-hero-like { display: none !important; }
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-dashboard {
    grid-template-columns: 250px minmax(0, 1fr) 300px !important;
    gap: 14px !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-account,
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-characters {
    grid-column: 2 !important;
    min-width: 0 !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-right {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    min-width: 0 !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-nav { grid-column: 1 !important; grid-row: 1 / span 2 !important; }
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-character-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-character-card {
    grid-template-columns: 88px minmax(0,1fr) !important;
    align-items: center !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-character-info header {
    flex-wrap: wrap !important;
    align-items: center !important;
}
body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-character-info header strong {
    flex: 1 1 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.15 !important;
}
@media (max-width: 1180px) {
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-dashboard { grid-template-columns: 230px minmax(0,1fr) !important; }
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-right { grid-column: 1 / -1 !important; grid-row: auto !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 900px) {
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-dashboard { grid-template-columns: 1fr !important; }
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-nav,
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-account,
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-characters,
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-right { grid-column: 1 !important; grid-row: auto !important; }
    body.forum-dark.vrp-native.action_profile #profileview .vrp-profile-right { grid-template-columns: 1fr !important; }
}

.vrp-profile-edit-page { color: var(--vrp-text); }
.vrp-profile-edit-hero,
.vrp-profile-edit-card,
.vrp-messages-v17 > aside,
.vrp-message-main > * {
    border: 1px solid rgba(65, 113, 156, .42);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(7,24,45,.92), rgba(3,14,29,.96));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 18px 44px rgba(0,0,0,.28);
}
.vrp-profile-edit-hero {
    min-height: 190px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background:
        linear-gradient(90deg, rgba(3,15,31,.55), rgba(3,11,25,.94)),
        var(--vrp-cover-image) center / cover no-repeat;
}
.vrp-profile-edit-hero h1 { margin: 8px 0 8px; font-size: 38px; color: #fff; }
.vrp-profile-edit-hero p { max-width: 680px; margin: 0; color: #bfd2e7; font-weight: 700; }
.vrp-profile-edit-cancel,
.vrp-profile-edit-actions a,
.vrp-profile-edit-actions button,
.vrp-message-actions button,
.vrp-message-reply button,
.vrp-message-card-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(0,245,200,.48);
    background: rgba(0,245,200,.08);
    color: #eafffb !important;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.vrp-profile-edit-form { display: grid; gap: 16px; margin-top: 16px; }
.vrp-profile-edit-card { padding: 22px; }
.vrp-profile-edit-card h2 { margin: 0 0 18px; color: #fff; font-size: 20px; }
.vrp-profile-edit-media-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 18px; }
.vrp-profile-edit-form label { display: grid; gap: 9px; min-width: 0; }
.vrp-profile-edit-form label span { color: #d7e7f7; font-weight: 900; }
.vrp-profile-edit-form label em { color: #8fa7bb; font-style: normal; font-size: 12px; font-weight: 700; }
.vrp-profile-edit-form input[type="text"],
.vrp-profile-edit-form input[type="email"],
.vrp-profile-edit-form input[type="file"],
.vrp-profile-edit-form textarea,
.vrp-message-compose input,
.vrp-message-compose textarea,
.vrp-message-reply textarea {
    width: 100%;
    border: 1px solid rgba(84,128,170,.36);
    border-radius: 12px;
    background: rgba(3,14,29,.84);
    color: #fff;
    padding: 13px 14px;
    box-sizing: border-box;
    font: inherit;
}
.vrp-profile-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.vrp-profile-edit-grid .wide { grid-column: 1 / -1; }
.vrp-profile-edit-preview { border: 1px solid rgba(84,128,170,.36); border-radius: 16px; background: rgba(255,255,255,.04); overflow: hidden; }
.vrp-profile-edit-preview.is-avatar { width: 150px; height: 150px; border-radius: 50%; padding: 5px; }
.vrp-profile-edit-preview.is-avatar .vf-avatar,
.vrp-profile-edit-preview.is-avatar .vf-avatar img { width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover !important; }
.vrp-profile-edit-preview.is-cover { height: 150px; background-size: cover; background-position: center; }
.vrp-profile-edit-actions { display: flex; justify-content: flex-end; gap: 12px; }
.vrp-profile-edit-actions button { background: linear-gradient(90deg, #18be7c, #1888dd); border: 0; }
@media (max-width: 800px) { .vrp-profile-edit-media-grid, .vrp-profile-edit-grid { grid-template-columns: 1fr; } }

.vf-message-head-v17 { width: min(1180px, calc(100vw - 36px)); margin: 28px auto 16px; }
.vrp-messages-v17 {
    width: min(1180px, calc(100vw - 36px));
    margin: 0 auto 56px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
}
.vrp-message-tabs { padding: 12px; align-self: start; }
.vrp-message-tabs a {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: #cfe0ef !important;
    text-decoration: none;
    font-weight: 850;
}
.vrp-message-tabs a.is-active,
.vrp-message-tabs a:hover { background: linear-gradient(90deg, rgba(0,245,200,.16), rgba(33,120,255,.12)); color: #fff !important; }
.vrp-message-tabs b { min-width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items:center; justify-content:center; background: rgba(255,255,255,.08); color:#9fffee; }
.vrp-message-list-card,
.vrp-message-thread-card,
.vrp-message-compose { padding: 20px; min-height: 540px; }
.vrp-message-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.vrp-message-card-head h2 { margin: 4px 0 0; color:#fff; font-size: 24px; }
.vrp-message-list { display:grid; gap:10px; }
.vrp-message-list-item {
    display:grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid rgba(84,128,170,.26);
    border-radius:14px;
    background:rgba(255,255,255,.035);
    color:#fff !important;
    text-decoration:none;
}
.vrp-message-list-item strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vrp-message-list-item em { display:block; color:#9fb5c9; font-style:normal; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vrp-message-list-item time { color:#9fb5c9; font-weight:800; font-size:12px; white-space:nowrap; }
.vrp-message-empty { padding: 34px 20px; border: 1px dashed rgba(130,160,190,.22); border-radius: 16px; color:#adc0d4; text-align:center; font-weight:800; }
.vrp-message-lines { display:grid; gap:14px; max-height: 520px; overflow:auto; padding-right: 4px; }
.vrp-message-line { display:grid; grid-template-columns: 44px minmax(0,1fr); gap:12px; align-items:start; }
.vrp-message-line.is-mine { grid-template-columns: minmax(0,1fr) 44px; }
.vrp-message-line.is-mine > .vf-avatar { grid-column:2; }
.vrp-message-line.is-mine .vrp-message-bubble { grid-column:1; grid-row:1; background:rgba(0,245,200,.07); border-color:rgba(0,245,200,.22); }
.vrp-message-bubble { padding:13px 14px; border:1px solid rgba(84,128,170,.24); border-radius:14px; background:rgba(255,255,255,.035); }
.vrp-message-bubble header { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; }
.vrp-message-bubble strong { color:#fff; }
.vrp-message-bubble em { color:#8fa7bb; font-style:normal; font-size:12px; font-weight:800; }
.vrp-message-bubble p { margin:0; color:#d8e6f2; line-height:1.55; overflow-wrap:anywhere; }
.vrp-message-reply { margin-top: 16px; display:grid; gap:10px; }
.vrp-message-reply button { justify-self:end; }
.vrp-message-compose { display:grid; gap:14px; }
.vrp-message-compose label { display:grid; gap:8px; color:#d8e8f8; font-weight:900; }
.vrp-message-compose label em { color:#8fa7bb; font-style:normal; font-size:12px; }
.vrp-message-actions { display:flex; justify-content:flex-end; }
.vrp-message-actions button { background: linear-gradient(90deg, #17bd7c, #1b8bdc); border: 0; }
@media (max-width: 900px) { .vrp-messages-v17 { grid-template-columns: 1fr; } }
