/* MXH Nova R3 - responsive profile navigation, video cards, Reels controls,
   comment/chat surfaces, community cards, finance and settings. Based on the
   supplied Nova 5.0 profile/nav, reels, video card, wallet and chat layouts.
   No reset, new library, media source, paid-content/visibility or JS changes. */
body .mxh-r3-profile-header { background:var(--mxh-r2-surface); border:1px solid var(--mxh-r2-line); border-radius:20px; box-shadow:none; }
body .mxh-r3-profile-header .profile-cover-wrapper { border-radius:19px 19px 16px 16px; }
body .mxh-r3-profile-header .profile-avatar-wrapper { box-shadow:0 0 0 3px var(--mxh-r2-surface); background:var(--mxh-r2-surface); }
body .mxh-r3-profile-header .profile-buttons-wrapper .btn { border-radius:12px; }
/* Nova-style identity and actions BELOW the cover. Keep cover image editing,
   avatar crop controls and legacy mobile positioning. Event header is different. */
@media(min-width:992px) {
 body .mxh-r3-profile-header:not(.no-avatar) { display:grid; grid-template-columns: max-content minmax(0,1fr); grid-template-areas:'cover cover' 'avatar name' 'actions actions'; column-gap:20px; align-items:center; }
 body .mxh-r3-profile-header:not(.no-avatar)>.profile-cover-wrapper { grid-area:cover; }
 body .mxh-r3-profile-header:not(.no-avatar)>.profile-avatar-wrapper { grid-area:avatar; position:relative; top:auto; right:auto; bottom:auto; left:auto; transform:none; margin:-36px 0 0 24px; align-self:start; }
 body .mxh-r3-profile-header:not(.no-avatar)>.profile-name-wrapper { grid-area:name; position:relative; top:auto; right:auto; bottom:auto; left:auto; margin:0; padding:12px 24px 12px 0; color:var(--mxh-r2-text); text-shadow:none; overflow-wrap:anywhere; text-align:start; }
 body .mxh-r3-profile-header:not(.no-avatar)>.profile-name-wrapper a:not(.badge) { color:var(--mxh-r2-text); }
 body .mxh-r3-profile-header:not(.no-avatar)>.profile-buttons-wrapper { grid-area:actions; position:relative; top:auto; right:auto; bottom:auto; left:auto; margin:0; padding:12px 24px 18px; text-align:end; }
}
/* Readable, scrollable tabs at all breakpoints; only existing links/conditions. */
body .profile-tabs-wrapper.mxh-r3-profile-tabs { gap:5px; padding:7px; border:1px solid var(--mxh-r2-line); border-radius:16px; justify-content:flex-start!important; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; background:var(--mxh-r2-surface); }
body .mxh-r3-profile-tabs>a { flex:0 0 auto; display:flex; align-items:center; gap:5px; white-space:nowrap; padding:10px 13px; border:0; border-radius:10px; color:var(--mxh-r2-muted); }
body .mxh-r3-profile-tabs>a>.d-none.d-xxl-inline-block { display:inline-block!important; }
body .mxh-r3-profile-tabs>a.active { background:var(--mxh-r2-selected); color:var(--mxh-r2-primary); border-bottom:0; }
body .mxh-r3-profile-tabs>a:hover { background:var(--mxh-r2-bg); color:var(--mxh-r2-text); }
body .mxh-r3-profile-tabs>a:focus-visible { outline:2px solid var(--mxh-r2-primary); outline-offset:-2px; }
/* Nova video gallery: landscape thumbnails and portrait Reels, retaining actual source. */
body .mxh-r3-video-card { margin-bottom:14px; }
body .mxh-r3-video-preview { border-radius:16px; padding-bottom:56.25%; background:#171717; }
body .mxh-r3-video-preview.mxh-r3-video-portrait { padding-bottom:150%; }
body .mxh-r3-video-preview .play-button { background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.30); }
body .mxh-r3-video-preview:hover .play-button { background:rgba(0,0,0,.8); box-shadow:none; }
body .mxh-r3-video-preview:focus-visible { outline:2px solid var(--mxh-r2-primary); outline-offset:3px; }
/* Reels: keep the working legacy player geometry, next/prev JS and comment state. */
body .mxh-r3-reels { background:#101012; }
body .mxh-r3-reel-player .video-caption { text-shadow:0 1px 3px #000; }
body .mxh-r3-reel-player .video-caption-overlay { background:linear-gradient(transparent,rgba(0,0,0,.85)); }
body .mxh-r3-reel-actions .action-btn { border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.13); }
body .mxh-r3-reel-actions .action-btn:hover { background:rgba(255,255,255,.24); }
body .mxh-r3-reel-nav { color:#fff; filter:drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
body .mxh-r3-reel-comments { background:var(--mxh-r2-surface); border-inline-start:1px solid var(--mxh-r2-line); }
/* Comment bubbles and composer; preserve permissions, x-hidden, edit, attachment and voice hooks. */
body .mxh-r3-comments { padding-block:12px; border-top:1px solid var(--mxh-r2-line); }
body .mxh-r3-comment-bubble { background:var(--mxh-r2-bg); border-radius:16px; box-shadow:none; }
body .mxh-r3-comment-bubble:before { border-right-color:var(--mxh-r2-bg); }
body .mxh-r3-comment-composer textarea { border:1px solid var(--mxh-r2-line); border-radius:16px; background:var(--mxh-r2-bg); color:var(--mxh-r2-text); }
body .mxh-r3-comment-composer textarea:focus { border-color:var(--mxh-r2-primary); }
/* Nova chat card surfaces without changing scroll heights or socket/voice behavior. */
body .mxh-r3-chat-panel { border:1px solid var(--mxh-r2-line); border-radius:18px; box-shadow:none; background:var(--mxh-r2-surface); }
body .mxh-r3-chat-panel>.card-header { padding:14px 16px; border-bottom:1px solid var(--mxh-r2-line); background:var(--mxh-r2-surface); border-radius:17px 17px 0 0; }
body .mxh-r3-chat-panel .chat-conversations { background:var(--mxh-r2-surface); }
body .mxh-r3-chat-composer { background:var(--mxh-r2-surface); border-top:1px solid var(--mxh-r2-line); padding:12px; }
body .mxh-r3-chat-composer .chat-form-message { background:var(--mxh-r2-bg); border:1px solid var(--mxh-r2-line); border-radius:14px; }
body .mxh-r3-chat-composer .chat-form-message:focus-within { border-color:var(--mxh-r2-primary); }
/* Discovery and community cards, like Nova's listing surfaces. No hidden item changes. */
body .mxh-r3-listing .card, body .mxh-r3-finance .card, body .mxh-r3-settings .card, body .mxh-r3-admin .card { border-radius:16px; box-shadow:none; border:1px solid var(--mxh-r2-line); }
body .mxh-r3-listing .card-header, body .mxh-r3-finance .card-header, body .mxh-r3-settings .card-header, body .mxh-r3-admin .card-header { border-bottom:1px solid var(--mxh-r2-line); border-radius:15px 15px 0 0; }
body .mxh-r3-community-card { background:var(--mxh-r2-surface); border:1px solid var(--mxh-r2-line); border-radius:18px; }
body .mxh-r3-community-card .img { background:var(--mxh-r2-surface); box-shadow:0 0 0 1px var(--mxh-r2-line); }
body .mxh-r3-community-card .btn { border-radius:12px; }
body .mxh-r3-community-item .data-container { border-radius:12px; }
body .mxh-r3-community-item .data-container:hover { background:var(--mxh-r2-bg); }
/* Finance screens: all actions, numbers, states and transaction tables come from the existing backend. */
body .mxh-r3-finance .section-title, body .mxh-r3-settings .heading-small, body .mxh-r3-admin .heading-small { color:var(--mxh-r2-text); font-weight:650; }
body .mxh-r3-metric { border-radius:18px; }
body .mxh-r3-metric .stat-cell { border-radius:18px; }
body .mxh-r3-finance .table-responsive, body .mxh-r3-settings .table-responsive, body .mxh-r3-admin .table-responsive { border:1px solid var(--mxh-r2-line); border-radius:12px; }
body .mxh-r3-finance .table thead th, body .mxh-r3-settings .table thead th, body .mxh-r3-admin .table thead th { background:var(--mxh-r2-bg); color:var(--mxh-r2-muted); }
body .mxh-r3-finance .d-grid>.btn { border-radius:12px; text-align:start; padding:12px 14px; }
body .mxh-r3-settings .form-table-row, body .mxh-r3-admin .form-table-row { border-radius:12px; }
body .mxh-r3-finance .card-footer, body .mxh-r3-settings .card-footer, body .mxh-r3-admin .card-footer { border-top:1px solid var(--mxh-r2-line); border-radius:0 0 15px 15px; }
/* Keep sponsored containers and tracking intact. Do not change display/visibility. */
body .mxh-r3-ad-card { border:1px solid var(--mxh-r2-line); border-radius:16px; box-shadow:none; }
body .mxh-r3-ad-card>.card-header { color:var(--mxh-r2-muted); font-weight:600; border-bottom:1px solid var(--mxh-r2-line); }
/* Existing composer dialog controls, including paid content, stay unchanged. */
body .mxh-r3-dialog-header { padding:16px 20px; border-bottom:1px solid var(--mxh-r2-line); }
body .mxh-r3-dialog-header .modal-title { font-weight:650; }
body .mxh-r3-dialog-footer { border-top:1px solid var(--mxh-r2-line); padding:12px 20px; }
body .mxh-r3-dialog-footer .btn { border-radius:12px; }
@media(max-width:767.98px) {
 body .mxh-r3-profile-tabs>a { padding:9px 11px; font-size:13px; }
 body .mxh-r3-profile-header { border-radius:16px; }
 body .mxh-r3-video-card { margin-bottom:10px; }
 body .mxh-r3-video-preview { border-radius:12px; }
 body .mxh-r3-dialog-header { padding:13px 15px; }
 body .mxh-r3-dialog-footer { padding:10px 15px; }
 body .mxh-r3-finance .d-grid>.btn { min-height:44px; }
}
