/* Profile additions follow Wealth's existing dark panel, gold and green palette. */
.profile .cpMenu-bottom { max-height: min(560px, calc(100dvh - 250px)); overflow-y: auto; }
.top-panel .partial-login { flex-shrink: 0; }
.profile > .menu-a { flex-wrap: nowrap; }
.profile img.wealth-profile-avatar { object-fit: cover; border-radius: 50%; }
.profile .wealth-profile-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 19px; height: 19px; margin-left: 8px; padding: 0 4px;
    border-radius: 50%; background: #fbc430; color: #061019; font: 700 11px Arial, sans-serif; flex-shrink: 0;
}
.wealth-profile-badge[hidden], .wealth-support-count[hidden], .wealth-support-message[hidden] { display: none !important; }
.cpMenu .wealth-change-avatar {
    display: block; padding: 10px 30px; color: #fbc430;
    font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.cpMenu .wealth-change-avatar:hover { background: #131c25; }
.wealth-profile-details { border-top: 1px solid rgba(255,255,255,.08); }
.wealth-profile-stat {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; min-height: 55px; padding: 12px 30px; color: #fff; font-size: 15px;
}
.wealth-ruud-value { color: #bffb30; font-size: 20px; overflow-wrap: anywhere; }
.wealth-ruud-value::after { content: 'R'; display: inline-block; margin-left: 7px; color: #fbc430; font-size: 14px; }
.wealth-vip-value { color: #95a9b9; text-align: right; font-size: 15px; }
.wealth-vip-value.is-active { color: #fbc430; }
.wealth-profile-vip { flex-wrap: wrap; }
.wealth-profile-vip small { flex-basis: 100%; text-align: right; color: #91a8bb; font-size: 12px; line-height: 1.5; }
.wealth-profile-vip small:empty { display: none; }
.wealth-support-card { padding: 16px 24px 18px; border-block: 1px solid rgba(255,255,255,.08); }
.wealth-support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bad0e7; font-size: 15px; }
.wealth-support-heading:hover { color: #fbc430; }
.wealth-support-count { padding: 3px 7px; border-radius: 4px; background: #fbc430; color: #061019; font-size: 12px; font-weight: 700; }
.wealth-support-state { margin: 9px 0 0; color: #91a8bb; font-size: 12px; line-height: 1.5; }
.wealth-support-message { display: block; margin-top: 10px; padding: 12px; border-radius: 3px; background: rgba(80,106,132,.14); text-decoration: none; }
.wealth-support-message:hover { background: rgba(80,106,132,.25); }
.wealth-support-message strong, .wealth-support-message > span, .wealth-support-message small { display: block; overflow-wrap: anywhere; }
.wealth-support-message strong { color: #e5edf4; font-size: 13px; line-height: 1.5; }
.wealth-support-message > span { margin-top: 7px; color: #b0c5d5; font-size: 12px; line-height: 1.6; }
.wealth-support-message small { margin-top: 9px; color: #7f99ae; font-size: 11px; line-height: 1.5; }
.wealth-support-message .wealth-support-open { color: #fbc430; font-size: 12px; }
.wealth-avatar-settings { margin-bottom: 28px; }
.wealth-avatar-editor { display: flex; align-items: center; gap: 24px; margin: 20px 0; }
.wealth-avatar-preview { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 2px solid #506a84; flex-shrink: 0; }
.wealth-avatar-controls { min-width: 0; }
.wealth-avatar-controls label { display: block; margin-bottom: 12px; }
.wealth-avatar-controls input[type=file] { width: 100%; max-width: 370px; height: auto; padding: 9px; line-height: 1.5; background: #0b1a25; border: 1px solid #385267; color: #bad0e7; }
.wealth-avatar-hint { margin-top: 10px; color: #91a8bb; font-size: 12px; line-height: 1.6; }
.wealth-avatar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.wealth-avatar-reset { width: auto; min-width: 0; height: auto; padding: 8px; border: 0; background: none; color: #bad0e7; font-size: 13px; box-shadow: none; }
.wealth-avatar-reset:hover { color: #fbc430; background: none; box-shadow: none; }
.wealth-avatar-status { margin-top: 14px; color: #bffb30; font-size: 14px; line-height: 1.6; }
.wealth-avatar-status.is-error { color: #ff9b9b; }
.wealth-avatar-actions button:disabled { opacity: .55; cursor: wait; }
.wealth-avatar-editor + .wealth-avatar-actions .btn { width: auto; min-width: 160px; }
@media (min-width: 1121px) {
    .top-panel { position: relative; z-index: 99; }
    body:not(.wealth-compact) .top-panel > .container { flex-wrap: nowrap; gap: 10px; }
    body:not(.wealth-compact) .top-panel-left { min-width: 0; flex: 1; }
    body:not(.wealth-compact) .small-logo { max-width: 125px; flex-shrink: 0; }
    body:not(.wealth-compact) .small-logo img { max-width: 100%; }
    body:not(.wealth-compact) .top-panel-left > .menu { flex: 1; min-width: 0; margin-left: 10px; }
    body:not(.wealth-compact) .menu.menu-scroll > .menu { flex: 1; margin-left: 0; justify-content: space-evenly; }
    body:not(.wealth-compact) .menu .menu-item { padding-left: 36px; padding-right: 6px; }
    body:not(.wealth-compact) .menu .menu-item::before { width: 26px; height: 28px; left: 3px; background-size: contain; }
    body:not(.wealth-compact) .menu .menu-item-title { font-size: 14px; }
    body:not(.wealth-compact) .menu .menu-item-info { font-size: 10px; }
    body:not(.wealth-compact) .lang-block { flex-shrink: 0; margin-inline: 8px; }
    body:not(.wealth-compact) .partial-login { flex-shrink: 0; margin-left: auto; }
    body:not(.wealth-compact) .profile .nickname { max-width: 110px; }
    body:not(.wealth-compact) .profile img { width: 50px; height: 50px; margin-left: 12px; }
}
@media (max-width: 520px) {
    .profile .cpMenu { width: min(350px, calc(100vw - 24px)); right: 0; }
    .wealth-profile-stat { padding-inline: 22px; }
    .wealth-support-card { padding-inline: 18px; }
    .wealth-avatar-editor { flex-direction: column; align-items: flex-start; gap: 16px; }
    .wealth-avatar-controls { width: 100%; }
}
