/* Shared Velchat component styles, in cascade order. */

/* style.black-safe.css */
/* VelChat safe black layer.
   Purpose: keep the site black without changing post markup, media players, grid logic, chat logic or upload logic. */
:root {
  --velchat-safe-bg: #000000;
  --velchat-safe-surface: #07080b;
  --velchat-safe-surface-2: #101116;
  --velchat-safe-surface-3: #17191f;
  --velchat-safe-border: rgba(255,255,255,.095);
  --velchat-safe-border-soft: rgba(255,255,255,.065);
  --velchat-safe-text: #f5f7fb;
  --velchat-safe-muted: #9aa1ad;
}

html,
body {
  background: var(--velchat-safe-bg) !important;
}

body,
body .page-margin,
body .content-container,
body .main-content,
body .tag_cont_fluid,
body .container-fluid {
  background-color: var(--velchat-safe-bg) !important;
  color: var(--velchat-safe-text) !important;
}

/* Header / mobile footer only: do not change sizes or positioning. */
body header,
body .tag_header,
body .tag_header_top,
body .tag_mobile_header,
body .navbar,
body .navbar-default,
body .main-header {
  background: rgba(0,0,0,.96) !important;
  border-color: var(--velchat-safe-border) !important;
  box-shadow: none !important;
}

body .tag_bottom_nav,
body .tag_mobile_footer,
body .wo_mobile_footer,
body .mobile_nav,
body .navbar-fixed-bottom,
body .footer-fixed {
  background: rgba(0,0,0,.96) !important;
  border-top-color: var(--velchat-safe-border) !important;
}

/* Surfaces: color only, no layout/display/media overrides. */
body .wow_content,
body .panel-white,
body .panel,
body .card,
body .post .panel,
body .post-container,
body .comment-section,
body .comments-list,
body .profile-container,
body .wo_user_profile .tag_cover_bg,
body .wo_user_profile .card.hovercard,
body .wo_user_profile .wow_content.cardheader,
body .wo_user_profile .wow_sett_content,
body .tag_profile_box,
body .tag_pub_box,
body .publisher-box,
body .messages-container,
body .messages-wrapper,
body .messages-recipients-list,
body .chat-messages-wrapper {
  background-color: var(--velchat-safe-surface) !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border-soft) !important;
}

body .post-heading,
body .post-description,
body .post-footer,
body .stats,
body .tag_post_hdr,
body .tag_post_body {
  background-color: transparent !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border-soft) !important;
}

body .dropdown-menu,
body .tag_create_menu,
body .modal-content,
body .search-dropdown-container,
body .bootstrap-select .dropdown-menu {
  background-color: var(--velchat-safe-surface-2) !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border) !important;
}

body .dropdown-menu > li > a,
body .tag_create_menu li a,
body .modal-title,
body .modal-body {
  color: var(--velchat-safe-text) !important;
}

body .dropdown-menu > li > a:hover,
body .tag_create_menu li a:hover,
body .dropdown-menu > li > a:focus,
body .tag_create_menu li a:focus {
  background-color: rgba(255,255,255,.075) !important;
  color: #fff !important;
}

body input,
body textarea,
body select,
body .form-control,
body .emojionearea,
body .emojionearea .emojionearea-editor,
body .bootstrap-select > .dropdown-toggle,
body .search-for-posts {
  background-color: var(--velchat-safe-surface-3) !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border) !important;
}

body input::placeholder,
body textarea::placeholder,
body .emojionearea-editor:empty:before {
  color: var(--velchat-safe-muted) !important;
}

body .text-muted,
body .ajax-time,
body .time,
body .small,
body small,
body .middot,
body .help-block,
body .tag_post_hdr_sub,
body .user-lastseen,
body .event_cdown,
body .wo_user_profile .event_cdown {
  color: var(--velchat-safe-muted) !important;
}

body a,
body .post-heading .user a,
body .wo_user_profile h3,
body .wo_user_profile .wo_page_hdng,
body .wo_user_profile .wo_page_hdng a {
  color: var(--velchat-safe-text);
}

body .btn-default,
body .btn-mat.btn-default {
  background-color: var(--velchat-safe-surface-3) !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border) !important;
}

body hr,
body .profile .nav-tabs,
body .nav-tabs,
body .list-group-item,
body .table > tbody > tr > td,
body .table > thead > tr > th {
  border-color: var(--velchat-safe-border-soft) !important;
}

/* Profile media tiles keep the original functional WoWonder grid/lightbox/player behavior. */
body .wo_user_profile #photos-list.user_media_list_section.insta.profile,
body .wo_user_profile .user_media_list_section,
body .wo_user_profile #videos-list.user_media_list_section,
body .wo_user_profile #reels-videos-list.user_media_list_section {
  background: var(--velchat-safe-bg) !important;
}

body .wo_user_profile .user_media_list_section .photo-data,
body .wo_user_profile .user_media_list_section .video-data {
  background: #050505 !important;
}

body .load-more .btn,
body .tag_profile_auto_load .btn {
  background: var(--velchat-safe-surface-3) !important;
  color: var(--velchat-safe-text) !important;
  border-color: var(--velchat-safe-border) !important;
}

/* style.preview-upload.css */
/* 

Add here your custom css styles Example: p { text-align: center; color: red; } 

*/

/* Profile timeline fixes */
.wo_user_profile .posts_load,
.wo_user_profile .posts_load > #posts,
.wo_user_profile .posts_load .pinned-post-container {
	width: 100%;
}

.wo_user_profile .posts_load > #posts {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.wo_user_profile .posts_load > #posts > .post-container,
.wo_user_profile .posts_load > #posts > .user-ad-container,
.wo_user_profile .posts_load .pinned-post-container > .post-container,
.wo_user_profile .posts_load .pinned-post-container > .user-ad-container {
	display: block;
	width: 100%;
	max-width: 100%;
	clear: both;
	float: none;
	margin-bottom: 10px;
}

.wo_user_profile .posts_load > #posts > .post-container > .post > .panel,
.wo_user_profile .posts_load .pinned-post-container > .post-container > .post > .panel {
	margin-bottom: 0;
}

.wo_user_profile .posts_load .loading-status {
	clear: both;
	width: 100%;
}

.wo_user_profile .tag_profile_auto_load {
	display: none !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px !important;
	clear: both;
	margin: 0 !important;
	overflow: visible !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section.insta .photo-data:nth-child(2),
.wo_user_profile .wow_sett_content > .user_media_list_section.insta .photo-data:nth-child(10) {
	float: none !important;
	width: auto !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	overflow: visible !important;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data > a,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data > a {
	aspect-ratio: 1 / 1;
	display: block;
	padding-bottom: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #24242a, #111116);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
	overflow: hidden;
}

.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) img,
.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
	background: #000;
}

.wo_user_profile .tag_profile_video_tile > a:after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 45%;
	background: linear-gradient(transparent, rgba(0,0,0,0.46));
	pointer-events: none;
}

.wo_user_profile .tag_profile_video_play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(0,0,0,0.48);
	box-shadow: 0 4px 18px rgba(0,0,0,0.35);
	z-index: 2;
}

.wo_user_profile .tag_profile_video_play svg {
	width: 24px;
	height: 24px;
	margin-left: 2px;
}

.messages-container .message-media video.tag_chat_video_preview,
.chat-messages-wrapper .message-media video.tag_chat_video_preview,
.tag_msg_wrapper .message-media video.tag_chat_video_preview {
	width: min(100%, 360px);
	max-height: 420px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 16px;
	background: #000;
	display: block;
}

.tag_pub_upload_toast {
	position: fixed;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	z-index: 1065;
	width: min(92vw, 360px);
	padding: 12px 14px;
	border-radius: 14px;
	color: #fff;
	background: rgba(20,20,24,0.94);
	box-shadow: 0 14px 35px rgba(0,0,0,0.28);
	backdrop-filter: blur(14px);
}

.tag_pub_upload_toast strong {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
}

.tag_pub_upload_toast .tag_pub_upload_track {
	height: 5px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255,255,255,0.18);
}

.tag_pub_upload_toast .tag_pub_upload_bar {
	width: 0%;
	height: 100%;
	border-radius: inherit;
	background: var(--main);
	transition: width 160ms ease;
}

@media (max-width: 600px) {
	.tag_messages input,
	.tag_messages textarea,
	.tag_messages select,
	.chat-textarea textarea,
	.tag_write_msg > textarea {
		font-size: 16px !important;
	}

	.tag_header > .search-container.show .search-input,
	.tag_header .search-input:focus,
	.tag_expand_search.tag_header > .search-container.show .search-input,
	.search-dropdown-container input,
	.search-for-posts,
	#search_for_text,
	#search_for_certifications,
	#search-movies,
	#product-text,
	#nearby-username {
		font-size: 16px !important;
	}

	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 7px;
	}

	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .photo-data > a,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) .video-data > a,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) img,
	.wo_user_profile .wow_sett_content > .user_media_list_section:not(.user_media_list_section_side) video {
		border-radius: 8px;
	}

	.wo_user_profile .tag_profile_video_play {
		width: 34px;
		height: 34px;
	}
}

/* VelChat branding */
.header-brand img.tag_logo_pc,
.header-brand img.tag_logo_mobi,
.welcome-header .logo img,
.header-brand img {
	object-fit: contain;
}
.header-brand img.tag_logo_pc,
.header-brand img.tag_logo_mobi {
	width: auto !important;
	max-width: 170px !important;
	max-height: 42px !important;
}
@media (min-width: 1351px) {
	.header-brand img.tag_logo_pc,
	.header-brand img.tag_logo_mobi {
		max-width: 190px !important;
		max-height: 46px !important;
	}
}
@media (max-width: 520px) {
	.tag_expand_search .header-brand img,
	.header-brand img.tag_logo_mobi {
		max-width: 128px !important;
		max-height: 34px !important;
	}
}

.tag_vel_toast {
	position: fixed;
	left: 50%;
	bottom: 22px;
	z-index: 20000;
	max-width: min(92vw, 420px);
	padding: 12px 15px;
	border-radius: 14px;
	color: #fff;
	background: rgba(20,20,24,0.94);
	box-shadow: 0 14px 35px rgba(0,0,0,.28);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .2s ease, transform .2s ease;
}
.tag_vel_toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* VelChat automatic old-message loader */
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper:before {
	content: "Loading older messages…";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(0,0,0,0.42);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper > * {
	display: none !important;
}

/* VelChat chat info/media drawer */
.tag_chat_info_button {
	color: inherit;
}
.tag_chat_info_panel {
	position: fixed;
	inset: 0;
	z-index: 12000;
	pointer-events: none;
	visibility: hidden;
}
.tag_chat_info_panel.open {
	pointer-events: auto;
	visibility: visible;
}
.tag_chat_info_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	transition: opacity .18s ease;
}
.tag_chat_info_panel.open .tag_chat_info_backdrop {
	opacity: 1;
}
.tag_chat_info_drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 100vw);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1f1f1f;
	box-shadow: -18px 0 48px rgba(0,0,0,.25);
	transform: translateX(103%);
	transition: transform .22s ease;
}
.tag_chat_info_panel.open .tag_chat_info_drawer {
	transform: translateX(0);
}
.tag_chat_info_head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 18px 16px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.tag_chat_info_head img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	background: #111;
}
.tag_chat_info_head h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}
.tag_chat_info_head p {
	margin: 3px 0 0;
	font-size: 13px;
	opacity: .65;
}
.tag_chat_info_close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	font-size: 28px;
	line-height: 30px;
	background: rgba(0,0,0,.07);
	color: inherit;
}
.tag_chat_info_tabs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	padding: 14px 14px 8px;
}
.tag_chat_info_tabs button {
	border: 0;
	border-radius: 999px;
	padding: 10px 8px;
	font-size: 13px;
	font-weight: 800;
	background: rgba(0,0,0,.07);
	color: inherit;
}
.tag_chat_info_tabs button.active {
	color: #fff;
	background: var(--main);
}
.tag_chat_info_counts {
	display: flex;
	gap: 8px;
	padding: 0 14px 12px;
	overflow-x: auto;
}
.tag_chat_info_counts span {
	white-space: nowrap;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: rgba(0,0,0,.06);
	opacity: .78;
}
.tag_chat_info_body {
	flex: 1;
	overflow-y: auto;
	padding: 0 14px 14px;
}
.tag_chat_info_grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.tag_chat_info_tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 13px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
}
.tag_chat_info_tile img,
.tag_chat_info_tile video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tag_chat_info_play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	transform: translate(-50%, -50%);
	color: #fff;
	background: rgba(0,0,0,.46);
	pointer-events: none;
}
.tag_chat_info_files {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tag_chat_info_file {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(0,0,0,.055);
}
.tag_chat_info_file_icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(0,0,0,.08);
}
.tag_chat_info_file_name {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-weight: 700;
}
.tag_chat_info_file_open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	color: #fff !important;
	background: var(--main);
}
.tag_chat_info_file_open:hover,
.tag_chat_info_file_open:focus {
	color: #fff !important;
	text-decoration: none;
}
.tag_chat_info_empty {
	display: grid;
	place-items: center;
	min-height: 220px;
	padding: 20px;
	text-align: center;
	font-weight: 700;
	opacity: .62;
}
.tag_chat_info_foot {
	padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(0,0,0,.08);
}
.tag_chat_info_load_more {
	width: 100%;
}
.tag_chat_info_load_more.hidden {
	display: none !important;
}

body.night-mode .tag_chat_info_drawer,
body[data-theme="dark"] .tag_chat_info_drawer,
body.tag_dark .tag_chat_info_drawer {
	background: #202020;
	color: #fff;
}
body.night-mode .tag_chat_info_head,
body[data-theme="dark"] .tag_chat_info_head,
body.tag_dark .tag_chat_info_head,
body.night-mode .tag_chat_info_foot,
body[data-theme="dark"] .tag_chat_info_foot,
body.tag_dark .tag_chat_info_foot {
	border-color: rgba(255,255,255,.1);
}
body.night-mode .tag_chat_info_tabs button,
body[data-theme="dark"] .tag_chat_info_tabs button,
body.tag_dark .tag_chat_info_tabs button,
body.night-mode .tag_chat_info_counts span,
body[data-theme="dark"] .tag_chat_info_counts span,
body.tag_dark .tag_chat_info_counts span,
body.night-mode .tag_chat_info_file,
body[data-theme="dark"] .tag_chat_info_file,
body.tag_dark .tag_chat_info_file,
body.night-mode .tag_chat_info_close,
body[data-theme="dark"] .tag_chat_info_close,
body.tag_dark .tag_chat_info_close {
	background: rgba(255,255,255,.08);
}
body.night-mode .tag_chat_info_tabs button.active,
body[data-theme="dark"] .tag_chat_info_tabs button.active,
body.tag_dark .tag_chat_info_tabs button.active {
	background: var(--main);
}

@media (max-width: 520px) {
	.tag_chat_info_drawer {
		width: 100vw;
	}
	.tag_chat_info_grid {
		gap: 6px;
	}
	.tag_chat_info_tile {
		border-radius: 10px;
	}
}


/* VelChat dark-safe chat info overrides */
.tag_chat_info_drawer {
	background: var(--header-background, #202020) !important;
	color: var(--header-color, #fff) !important;
}
.tag_chat_info_head,
.tag_chat_info_foot {
	border-color: rgba(128,128,128,.22) !important;
}
.tag_chat_info_tabs button,
.tag_chat_info_counts span,
.tag_chat_info_file,
.tag_chat_info_file_icon,
.tag_chat_info_close {
	background: rgba(128,128,128,.14) !important;
}
.tag_chat_info_tabs button.active {
	background: var(--main) !important;
	color: #fff !important;
}
.tag_chat_info_body {
	overscroll-behavior: contain;
}
.messages-load-more-messages.view-more-wrapper {
	transition: opacity .18s ease;
}
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper {
	opacity: .92;
}
.msg_usr_info_top_list .tag_msg_participant {
	cursor: pointer;
}
.tag_chat_info_tile img,
.tag_chat_info_tile video,
.tag_chat_info_play {
	cursor: pointer;
}


/* VelChat legacy download cleanup: hide buttons generated by older builds */
.tag_media_save_btn,
.tag_media_save_video,
.tag_media_save_image {
	display: none !important;
}


/* VelChat chat video preview restoration */
.message-media video.tag_chat_video_preview,
.tag_chat_info_tile video {
	background-color: #000;
	object-position: center center;
}
.message-media video.tag_chat_video_preview[poster],
.tag_chat_info_tile video[poster],
.message-media video.tag_chat_video_preview.tag_video_frame_ready,
.tag_chat_info_tile video.tag_video_frame_ready {
	background-color: #000;
}


/* VelChat upload/title and stronger chat video preview */
.tag_pub_video_title {
	display: none !important;
}
.tag_video_queue_note {
	margin-top: 10px;
	padding: 9px 12px;
	border-radius: 14px;
	background: rgba(128,128,128,.14);
	font-size: 13px;
	font-weight: 600;
}
.message-media video.tag_chat_video_preview,
.tag_chat_info_tile video.tag_chat_video_preview,
.tag_chat_info_tile video {
	background-color: #050505 !important;
	object-fit: cover;
	object-position: center center;
}
.message-media video.tag_chat_video_preview.tag_video_preview_pending,
.tag_chat_info_tile video.tag_video_preview_pending {
	background-image: radial-gradient(circle at center, rgba(255,255,255,.08), rgba(0,0,0,0) 46%);
}
.message-media video.tag_chat_video_preview.tag_video_has_preview,
.tag_chat_info_tile video.tag_video_has_preview,
.message-media video.tag_chat_video_preview.tag_video_frame_ready,
.tag_chat_info_tile video.tag_video_frame_ready {
	background-image: none !important;
}

/* style.profile-grid.css */
/* VelChat profile media grid polish - performance first */

/* The Instagram profile used an explore-style mosaic (large 2nd/10th tile). On profiles this created
   visible holes and duplicate-looking side columns. Keep all profile media tiles uniform. */
.wo_user_profile .user_media_list_section,
.wo_user_profile .user_media_list_section.insta,
.wo_user_profile #photos-list.user_media_list_section.insta.profile,
.wo_user_profile #videos-list.user_media_list_section,
.wo_user_profile #reels-videos-list.user_media_list_section {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clear: both !important;
}

.wo_user_profile .user_media_list_section .photo-data,
.wo_user_profile .user_media_list_section .video-data,
.wo_user_profile .user_media_list_section.insta .photo-data,
.wo_user_profile .user_media_list_section.insta .video-data,
.wo_user_profile .user_media_list_section.insta .photo-data:nth-child(2),
.wo_user_profile .user_media_list_section.insta .photo-data:nth-child(10),
.wo_user_profile .user_media_list_section_side .photo-data,
.wo_user_profile .user_media_list_section_side .photo-data:first-child {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 1 / 1 !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #111116 !important;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 130px 130px;
}

.wo_user_profile .user_media_list_section .photo-data > a,
.wo_user_profile .user_media_list_section .video-data > a,
.wo_user_profile .user_media_list_section.insta .photo-data > a,
.wo_user_profile .user_media_list_section.insta .video-data > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: #111116 !important;
    box-shadow: none !important;
    position: relative !important;
    transform: translateZ(0);
}

.wo_user_profile .user_media_list_section .photo-data img,
.wo_user_profile .user_media_list_section .video-data img,
.wo_user_profile .user_media_list_section .video-data video,
.wo_user_profile .user_media_list_section.insta .photo-data img,
.wo_user_profile .user_media_list_section.insta .video-data img,
.wo_user_profile .user_media_list_section.insta .video-data video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    background: #000 !important;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.wo_user_profile .user_media_list_section .photo-data .ico,
.wo_user_profile .user_media_list_section .video-data .ico,
.wo_user_profile .user_media_list_section.insta .photo-data .ico,
.wo_user_profile .user_media_list_section.insta .video-data .ico {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3 !important;
    padding: 8px !important;
    color: #fff !important;
    pointer-events: none !important;
}

.wo_user_profile .tag_profile_video_play {
    width: 34px !important;
    height: 34px !important;
}

/* Desktop can breathe a little more without changing the mobile Instagram feel. */
@media (min-width: 768px) {
    .wo_user_profile .user_media_list_section,
    .wo_user_profile .user_media_list_section.insta,
    .wo_user_profile #photos-list.user_media_list_section.insta.profile {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 4px !important;
    }
}

/* On phones the sidebar preview gallery duplicates the real profile grid and wastes loading time.
   PHP also skips it for mobile; this keeps cached/older markup clean too. */
@media (max-width: 767px) {
    .wo_user_profile .user_media_list_section_side {
        display: none !important;
    }
    /* Do not force overflow:hidden on profile containers here.
       The profile avatar intentionally overlaps the cover with a negative margin on mobile. */
    .wo_user_profile .user_media_list_section,
    .wo_user_profile .user_media_list_section.insta {
        max-width: 100% !important;
    }
}

/* Keep the load-more area compact after grid items auto-load. */
.wo_user_profile .posts_load,
.wo_user_profile .posts_load #photos-list {
    min-height: 0 !important;
}
.wo_user_profile .load-more,
.wo_user_profile .tag_profile_auto_load {
    clear: both !important;
}

/* style.profile-grid-order.css */
/* VelChat profile grid manual ordering. Loaded only on profile pages. */
.velchat-profile-order-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
}
.velchat-profile-order-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
}
.velchat-profile-order-copy strong {
    font-size: 14px;
    font-weight: 700;
}
.velchat-profile-order-copy span {
    font-size: 12px;
    opacity: .68;
}
.velchat-profile-order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}
.velchat-profile-order-actions .btn {
    min-width: 0 !important;
    padding: 8px 14px !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
}
.velchat-profile-order-toolbar.is-saving,
.velchat-grid-mobile-order-bar.is-saving {
    opacity: .72;
    pointer-events: none;
}
#photos-list.user_media_list_section.profile.velchat-grid-order-active {
    outline: 2px dashed rgba(255, 71, 87, .48);
    outline-offset: 6px;
    border-radius: 12px;
    user-select: none;
    -webkit-user-select: none;
}
#photos-list.user_media_list_section.profile.velchat-grid-order-active .photo-data {
    cursor: pointer !important;
    touch-action: manipulation !important;
    content-visibility: visible !important;
    contain: none !important;
    overflow: hidden !important;
}
#photos-list.user_media_list_section.profile.velchat-grid-order-active .photo-data > a {
    pointer-events: none !important;
}
#photos-list.user_media_list_section.profile .photo-data.velchat-grid-order-selected {
    outline: 3px solid #ff4757 !important;
    outline-offset: -3px !important;
    z-index: 4 !important;
}
#photos-list.user_media_list_section.profile .photo-data.velchat-grid-order-source {
    opacity: .38 !important;
    filter: saturate(.75) brightness(.82);
}
.velchat-grid-order-ghost {
    position: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483000 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #111116 !important;
    box-shadow: 0 18px 46px rgba(0,0,0,.42) !important;
    opacity: .97 !important;
    transform: scale(1.035) translateZ(0) !important;
    contain: none !important;
    content-visibility: visible !important;
}
.velchat-grid-order-ghost > a,
.velchat-grid-order-ghost .photo-data > a,
.velchat-grid-order-ghost a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}
.velchat-grid-order-ghost img,
.velchat-grid-order-ghost video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.velchat-grid-drag-handle {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 8;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.68);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: grab;
    touch-action: none;
}
.velchat-grid-drag-handle:active {
    cursor: grabbing;
    transform: scale(.96);
}
.velchat-grid-drag-handle svg {
    width: 20px;
    height: 20px;
    display: block;
}
#photos-list.user_media_list_section.profile.velchat-grid-order-active .velchat-grid-drag-handle {
    display: flex;
}
.velchat-grid-order-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 18px);
    z-index: 2147483001;
    max-width: min(92vw, 390px);
    padding: 11px 14px;
    border-radius: 999px;
    background: rgba(22,22,26,.94);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    box-shadow: 0 14px 38px rgba(0,0,0,.32);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}
.velchat-grid-order-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.velchat-grid-mobile-order-bar {
    display: none;
}
@media (max-width: 767px) {
    .velchat-profile-order-toolbar {
        margin: 0 12px 12px;
        padding: 10px;
        border-radius: 15px;
        gap: 8px;
    }
    .velchat-profile-order-copy span {
        display: none;
    }
    .velchat-profile-order-copy strong {
        font-size: 13px;
    }
    .velchat-profile-order-actions .btn {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
    #photos-list.user_media_list_section.profile.velchat-grid-order-active {
        outline-offset: 2px;
        padding-bottom: 82px !important;
    }
    .velchat-grid-drag-handle {
        width: 34px;
        height: 34px;
        right: 6px;
        top: 6px;
    }
    .velchat-grid-mobile-order-bar {
        position: fixed;
        left: max(10px, env(safe-area-inset-left));
        right: max(10px, env(safe-area-inset-right));
        bottom: calc(70px + env(safe-area-inset-bottom));
        z-index: 2147482500;
        display: none;
        align-items: center;
        gap: 8px;
        padding: 9px;
        border-radius: 22px;
        background: rgba(20,20,24,.94);
        border: 1px solid rgba(255,255,255,.12);
        box-shadow: 0 18px 50px rgba(0,0,0,.35);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .velchat-grid-mobile-order-bar.is-visible {
        display: flex;
    }
    .velchat-grid-mobile-order-bar button {
        border: 0;
        border-radius: 999px;
        min-height: 42px;
        padding: 0 14px;
        font-weight: 700;
        color: #fff;
        background: rgba(255,255,255,.11);
    }
    .velchat-grid-mobile-order-bar button:disabled {
        opacity: .42;
    }
    .velchat-grid-mobile-order-bar .velchat-grid-mobile-prev,
    .velchat-grid-mobile-order-bar .velchat-grid-mobile-next {
        width: 46px;
        padding: 0;
        font-size: 30px;
        line-height: 1;
    }
    .velchat-grid-mobile-order-bar .velchat-grid-mobile-save {
        flex: 1 1 auto;
        background: linear-gradient(135deg, #ff4757, #8e44ff);
    }
    .velchat-grid-mobile-order-bar .velchat-grid-mobile-cancel {
        flex: 0 0 auto;
    }
    .velchat-grid-order-toast {
        bottom: calc(128px + env(safe-area-inset-bottom));
    }
}

/* Delete entire post while arranging the profile grid. */
.velchat-grid-delete-post {
    position: absolute;
    left: 7px;
    top: 7px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(220, 38, 38, .92);
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
    cursor: pointer;
    touch-action: manipulation;
}
.velchat-grid-delete-post svg { width: 19px; height: 19px; display: block; }
#photos-list.user_media_list_section.profile.velchat-grid-order-active .velchat-grid-delete-post { display: flex; }
#photos-list.user_media_list_section.profile .photo-data.velchat-grid-order-deleting { opacity: .45 !important; pointer-events: none !important; }
@media (max-width: 767px) {
    .velchat-grid-delete-post { width: 34px; height: 34px; left: 6px; top: 6px; }
}

/* style.cover-mobile-restore.css */
/* VelChat mobile profile cover restore
   Keep the original Wondertag cover controls, but prevent the profile avatar from being clipped on phones. */
@media (max-width: 767px) {
  body .wo_user_profile .tag_cover_bg,
  body .wo_user_profile .profile-container,
  body .wo_user_profile > .container,
  body .wo_user_profile .container-fluid,
  body .wo_user_profile .tag_page_name_hdr,
  body .wo_user_profile .tag_page_name_hdr .event-info-cont-small {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  body .wo_user_profile .profile-container.tag_cover_bg {
    position: relative !important;
    z-index: 1 !important;
  }

  body .wo_user_profile .cardheader.user-cover,
  body .page-margin.profile.wo_user_profile .profile-container.tag_cover_bg .card.hovercard .cardheader.user-cover {
    position: relative !important;
    padding-bottom: 32.7% !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 1 !important;
  }

  body .wo_user_profile .cardheader.user-cover .tag_usr_prof_covr,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-container,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-w {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  body .wo_user_profile .cardheader.user-cover #cover-image,
  body .wo_user_profile .cardheader.user-cover .tag_usr_prof_covr img,
  body .wo_user_profile .cardheader.user-cover .user-cover-reposition-w img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  body .wo_user_profile .tag_page_name_hdr {
    position: relative !important;
    z-index: 5 !important;
  }

  body .wo_user_profile .tag_page_name_hdr .user-avatar {
    position: relative !important;
    z-index: 6 !important;
    overflow: visible !important;
    margin-top: -50px !important;
  }

  body .wo_user_profile .tag_page_name_hdr .user-avatar img {
    position: relative !important;
    z-index: 7 !important;
  }

  body .wo_user_profile .cardheader.user-cover form.profile-cover-changer,
  body .wo_user_profile .profile-cover-changer {
    position: absolute !important;
    top: auto !important;
    right: 15px !important;
    bottom: 15px !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 20 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .wo_user_profile .profile-cover-changer .profile_cover,
  body .wo_user_profile .profile-cover-changer .when-notedit {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 30px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body .wo_user_profile .profile-cover-changer .when-edit[style*="display: none"] {
    display: none !important;
  }

  body .wo_user_profile .profile-cover-changer .when-edit:not([style*="display: none"]) {
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file,
  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm,
  body .wo_user_profile .profile-cover-changer .tag_cover_upload_btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: none !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 36px !important;
    text-indent: 0 !important;
    white-space: nowrap !important;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm {
    padding: 0 5px !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file svg,
  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm svg,
  body .wo_user_profile .profile-cover-changer .tag_cover_upload_btn svg {
    position: static !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: -2px 5px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 20px !important;
    text-indent: 0 !important;
    color: inherit !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file.btn-sm svg {
    margin: -2px 0 0 !important;
  }

  body .wo_user_profile .profile-cover-changer .btn-file input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 3 !important;
  }

  body .wo_user_profile .cardheader.user-cover .tag_user_prof_opts {
    top: 15px !important;
    right: 15px !important;
    z-index: 21 !important;
  }
}

/* Keep video title compatibility fields invisible without touching the real caption textarea. */
.tag_pub_video_title,
.tag_pub_video_title input.videoTitle,
.video-form.tag_pub_video_title,
input.videoTitle[data-velchat-auto-title="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

.tag_video_queue_note {
  margin-top: 10px;
  opacity: .78;
  font-size: 13px;
}

/* style.cover-mobile-drag.css */
/* VelChat mobile cover reposition fix
   Only affects the cover edit/reposition mode on phones. Desktop, upload, chat and grid stay untouched. */
@media (max-width: 767px) {
  body .wo_user_profile .cardheader.user-cover .user-reposition-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding-bottom: 32.7% !important;
    overflow: hidden !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
  }

  body .wo_user_profile .cardheader.user-cover .user-reposition-container > img,
  body .wo_user_profile .cardheader.user-cover .user-reposition-container img#full-image {
    position: absolute !important;
    top: var(--vel-cover-mobile-top, 0px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: initial !important;
    object-position: initial !important;
    cursor: grab !important;
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
  }

  body .wo_user_profile .cardheader.user-cover .user-reposition-container > img.vel-cover-mobile-dragging,
  body .wo_user_profile .cardheader.user-cover .user-reposition-container img#full-image.vel-cover-mobile-dragging {
    cursor: grabbing !important;
  }

  body .wo_user_profile .cardheader.user-cover .user-reposition-container .user-reposition-dragable-container {
    z-index: 3 !important;
    pointer-events: none !important;
  }

  body .wo_user_profile .cardheader.user-cover .user-repositioning-icons-container {
    z-index: 4 !important;
    pointer-events: none !important;
  }
}

/* style.profile-report-mobile.css */
/* VelChat mobile profile report menu fix
   Keeps desktop untouched. The profile cover itself stays clipped inside its image wrapper,
   but the three-dot dropdown can now render above the profile header on phones. */
@media (max-width: 767px) {
  body.velchat-profile-menu-open .page-margin.profile.wo_user_profile,
  body.velchat-profile-menu-open .wo_user_profile .tag_cover_bg,
  body.velchat-profile-menu-open .wo_user_profile .profile-container,
  body.velchat-profile-menu-open .wo_user_profile .profile-container.tag_cover_bg,
  body.velchat-profile-menu-open .wo_user_profile .profile-container.tag_cover_bg > .container,
  body.velchat-profile-menu-open .wo_user_profile .tag_cover_bg .card.hovercard,
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover,
  body.velchat-profile-menu-open .page-margin.profile.wo_user_profile .profile-container.tag_cover_bg .card.hovercard .cardheader.user-cover {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  body.velchat-profile-menu-open .wo_user_profile .profile-container.tag_cover_bg,
  body.velchat-profile-menu-open .wo_user_profile .tag_cover_bg .card.hovercard,
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover {
    position: relative !important;
    z-index: 25000 !important;
  }

  /* The cover image must still stay inside the cover area. Only the dropdown is allowed to overflow. */
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover .tag_usr_prof_covr,
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover .user-cover-reposition-container,
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover .user-cover-reposition-w,
  body.velchat-profile-menu-open .wo_user_profile .cardheader.user-cover .user-reposition-container {
    overflow: hidden !important;
  }

  body .wo_user_profile .cardheader.user-cover .tag_user_prof_opts,
  body .wo_user_profile .tag_user_prof_opts.open,
  body .wo_user_profile .tag_user_prof_opts.show {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 25020 !important;
  }

  body .wo_user_profile .tag_user_prof_opts.open > .dropdown-menu,
  body .wo_user_profile .tag_user_prof_opts.show > .dropdown-menu,
  body .wo_user_profile .tag_user_prof_opts > .dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    min-width: min(320px, calc(100vw - 36px)) !important;
    max-width: calc(100vw - 36px) !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    z-index: 25030 !important;
    pointer-events: auto !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }

  body.velchat-profile-menu-open .wo_user_profile .tag_page_name_hdr,
  body.velchat-profile-menu-open .wo_user_profile .tag_profile_nav,
  body.velchat-profile-menu-open .wo_user_profile .wow_content:not(.cardheader) {
    position: relative !important;
    z-index: 1 !important;
  }

  body.velchat-profile-menu-open .dropdown-backdrop {
    z-index: 24990 !important;
  }

  #report-user-modal,
  #report_profile {
    z-index: 26060 !important;
  }

  #report-user-modal .modal-dialog,
  #report_profile .modal-dialog {
    margin: max(14px, env(safe-area-inset-top)) 12px 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  body.modal-open .modal-backdrop {
    z-index: 26050 !important;
  }
}

/* style.anti-link-guard.css */
.velchat-link-guard-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(18px);
  max-width: min(92vw, 520px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 24, 0.94);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.velchat-link-guard-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* style.mobile-upload-ux.css */
.tag_pub_box_bg {
  position: relative;
}
#velchat-quick-media {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  inset-inline-start: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.velchat_quick_upload_text {
  display: none;
}

@media (max-width: 768px) {
  .tag_pub_box_bg .tag_pub_box_bg_text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload {
    width: auto;
    min-width: 86px;
    height: 42px;
    line-height: 42px;
    border-radius: 999px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    color: #4CAF50;
    flex: 0 0 auto;
  }

  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload:before {
    border-radius: 999px;
    opacity: 0.16;
  }

  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload .velchat_quick_upload_text {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.1px;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
    white-space: normal !important;
    text-align: initial !important;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper:before {
    content: 'Add media';
    display: block;
    flex: 0 0 100%;
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(255,255,255,0.68);
  }

  body.light .publisher-box .publisher-box-footer .pub-footer-upper:before,
  body.white .publisher-box .publisher-box-footer .pub-footer-upper:before {
    color: rgba(0,0,0,0.58);
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns.tag_pub_upload_primary,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_smal .tag_pub_box_btns.tag_pub_upload_primary,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_col_smal .tag_pub_box_btns.tag_pub_upload_primary {
    flex: 1 1 calc(33.333% - 8px) !important;
    width: auto !important;
    min-width: 92px !important;
    max-width: none !important;
    height: 64px !important;
    min-height: 64px !important;
    line-height: 1.1 !important;
    padding: 9px 8px !important;
    margin: 0 !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-align: center !important;
    font-weight: 700 !important;
    background: rgba(255,255,255,0.08) !important;
  }

  body.light .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns.tag_pub_upload_primary,
  body.white .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns.tag_pub_upload_primary {
    background: rgba(0,0,0,0.055) !important;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns.tag_pub_upload_primary svg,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_smal .tag_pub_box_btns.tag_pub_upload_primary svg,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_col_smal .tag_pub_box_btns.tag_pub_upload_primary svg {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    color: var(--main) !important;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns.tag_pub_upload_primary > span,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_smal .tag_pub_box_btns.tag_pub_upload_primary > span,
  .publisher-box .publisher-box-footer .pub-footer-upper.tag_pub_btns_col_smal .tag_pub_box_btns.tag_pub_upload_primary > span {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns:not(.tag_pub_upload_primary) {
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 13px !important;
    text-align: center !important;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns:not(.tag_pub_upload_primary) > span {
    display: none !important;
  }

  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns:not(.tag_pub_upload_primary) svg {
    margin: 0 !important;
  }
}

@media (max-width: 380px) {
  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload {
    min-width: 42px;
    width: 42px;
    padding: 0;
  }
  .tag_pub_box_bg .tag_pub_box_bg_camlve.camera.velchat_quick_upload .velchat_quick_upload_text {
    display: none;
  }
}

@media (max-width: 768px) {
  .publisher-box .publisher-box-footer .pub-footer-upper:before { order: 0; }
  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_upload_photo { order: 1; }
  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_upload_video { order: 2; }
  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_upload_reels { order: 3; }
  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_upload_file { order: 4; }
  .publisher-box .publisher-box-footer .pub-footer-upper .tag_pub_box_btns:not(.tag_pub_upload_primary) { order: 10; }
}

/* style.multi-photo-delete.css */
/* VelChat: owner-only controls for individual images in multi-photo posts. */
.velchat-multi-photo-item,
.velchat-single-multi-wrap {
  position: relative;
}
.velchat-multi-photo-item .velchat-multi-photo-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 8;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15,18,24,.78);
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.velchat-multi-photo-item .velchat-multi-photo-delete:hover,
.velchat-multi-photo-item .velchat-multi-photo-delete:focus {
  background: rgba(220,45,60,.94);
  outline: none;
}
@media (max-width: 767px) {
  .velchat-multi-photo-item .velchat-multi-photo-delete {
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
  }
}

/* style.desktop-image-zoom.css */
/* Only the displayed photo owns touch gestures. Video players, text inputs and the page keep native handling. */
.lightbox-container .tag_lbox_img_innr.vc-photo-frame,
.lightbox-content.multi .vc-photo-frame {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 0;
  overscroll-behavior: contain;
}
.lightbox-content.multi .vc-photo-frame { background: #111217; }
.lightbox-container .story_lightbox .vc-photo-frame { overflow: visible; }
.lightbox-container .vc-photo-frame .vc-photo-stage,
.image-modal.vc-photo-frame .vc-photo-stage {
  position: relative;
  display: grid;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.lightbox-container .vc-photo-frame .vc-photo-stage > .vc-photo-image,
.image-modal.vc-photo-frame .vc-photo-stage > .vc-photo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  transform-origin: center;
  transition: none !important;
  will-change: auto;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: inherit !important;
  -webkit-user-drag: none;
}
.image-modal.vc-photo-frame .modal-dialog {
  margin: 0;
  height: 100%;
  width: 100%;
  max-width: none;
}
.image-modal.vc-photo-frame .vc-photo-stage {
  background: #111217 !important;
  pointer-events: auto;
}
.vc-photo-frame .changer,
.story_lightbox:has(.vc-photo-frame) .tag_close_story_altr,
.lightbox-content:has(.vc-photo-frame) .close-lightbox,
.image-modal.vc-photo-frame .close-lightbox,
.vc-photo-tools button { touch-action: none; }
.vc-photo-magnified .vc-photo-stage { cursor: grab !important; }
.vc-photo-dragging .vc-photo-stage { cursor: grabbing !important; }
.lightbox-container .vc-photo-frame.vc-photo-magnified .vc-photo-stage > .vc-photo-image,
.image-modal.vc-photo-frame.vc-photo-magnified .vc-photo-stage > .vc-photo-image { will-change: transform; }
.vc-photo-tools {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 1px;
  padding: 1px;
  margin-inline: 4px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: #1b1c24;
  color: #fff;
}
.vc-photo-tools button {
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font: 600 20px/1 var(--vc-font, system-ui, sans-serif);
}
.vc-photo-tools button[data-vc-zoom="reset"] {
  min-width: 48px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vc-photo-tools button[disabled] { color: #a9a9b4; }
.vc-photo-tools button:enabled:hover,
.vc-photo-tools button:enabled:focus-visible { background: #37313f; color: #e3d4ff; }
.vc-photo-tools button:focus-visible { outline: 2px solid #c5afff !important; outline-offset: -3px; }
.story_lightbox .vc-photo-frame > .vc-photo-tools {
  position: absolute;
  z-index: 3;
  inset-inline-end: 6px;
  bottom: 8px;
}
@media (max-width: 800px) {
  .lightbox-container .tag_lbox_toolbar:has(.vc-photo-tools),
  .image-modal.vc-photo-frame .tag_lbox_toolbar {
    gap: 4px;
    padding-inline: 6px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(60px + env(safe-area-inset-top, 0px));
  }
  .lightbox-container .tag_lbox_toolbar:has(.vc-photo-tools) > .valign:last-child {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
  }
  .lightbox-container .tag_lbox_toolbar:has(.vc-photo-tools) .btn,
  .image-modal.vc-photo-frame .tag_lbox_toolbar .btn {
    flex-shrink: 0;
    margin-inline: 1px;
    width: 44px;
    height: 44px;
    line-height: 42px;
  }
}

/* style.chat-reset.css */
/* VelChat chat reset/stability patch. Keeps original chat design, only removes broken overlay symptoms. */
.messages-load-more-messages.view-more-wrapper {
  opacity: 0 !important;
  pointer-events: none !important;
}
body.tag_loading_old_messages .messages-load-more-messages.view-more-wrapper:before {
  display: none !important;
  content: none !important;
}
.messages-container audio {
  max-width: 100%;
}

/* style.chat-no-voice-compact.css */
/* VelChat chat compact input + voice memo removal.
   Keeps the stable chat behaviour; only removes broken voice-record UI and tightens the mobile composer. */

/* Remove voice memo recording UI everywhere, including cached/ajax-loaded nodes. */
.tag_msg_record,
#messages-record,
.record-chat-audio,
.record_timei,
.tag_cht_rec_time,
.messages-rtime,
.tag_pubbox_record,
#recordPostAudio,
#postRecordingTime,
.record-comment-audio,
[class*="record-comment-audio"],
span[data-comment-rtime] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .tag_messages .tag_msg_write {
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .tag_messages .tag_msg_write form.sendMessages > .valign:not(.message_reply_text):not(.message_reply_story_text) {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .tag_messages .tag_write_msg {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .tag_messages .tag_write_msg > textarea#sendMessage {
    min-height: 38px !important;
    height: 38px !important;
    max-height: 74px !important;
    padding: 7px 38px 7px 38px !important;
    border-radius: 19px !important;
    font-size: 16px !important;
    line-height: 22px !important;
  }

  .tag_messages .tag_msg_write .message-option-btn,
  .tag_messages .tag_msg_write .send-button {
    margin-left: 8px !important;
    flex: 0 0 auto !important;
  }

  .tag_messages .tag_msg_write .tag_msg_select_clr {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 !important;
  }

  .tag_messages .tag_msg_write .tag_msg_select_clr svg {
    width: 21px !important;
    height: 21px !important;
    vertical-align: middle !important;
  }

  .tag_messages .tag_msg_write .send-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tag_messages .tag_msg_write .send-button svg {
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
  }

  .tag_messages .tag_msg_emostick .dropdown-toggle {
    left: 12px !important;
    bottom: 8px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .tag_messages .tag_msg_emostick .dropdown-toggle svg {
    width: 20px !important;
    height: 20px !important;
  }

  .tag_messages .message_reply_text,
  .tag_messages .message_reply_story_text {
    margin-bottom: 7px !important;
  }
}

@media (max-width: 380px) {
  .tag_messages .tag_msg_write {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .tag_messages .tag_msg_write .message-option-btn,
  .tag_messages .tag_msg_write .send-button {
    margin-left: 6px !important;
  }
  .tag_messages .tag_msg_write .tag_msg_select_clr {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }
  .tag_messages .tag_msg_write .send-button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
  }
}

/* VelChat first-message reliability: keep a real fallback color beneath the
   gradient so the socket sender never receives a transparent color. */
.tag_messages .tag_msg_write .send-button {
  background-color: var(--main, #E63946);
}

/* style.chat-gray-final.css */
/* VelChat chat-only gray restoration.
   Color override only: no sizing, positioning, scrolling or message logic changes. */
body .tag_msg_user_chat,
body .tag_msg_user_chat .text-sender-container,
body .tag_msg_header,
body .tag_msg_container,
body .tag_msg_body,
body .tag_msg_main_body,
body .messagejoint,
body .messages-container,
body .messages-load-more-messages,
body .tag_msg_write,
body .tag_msg_user_list,
body .messages-recipients-list {
  background: #212121 !important;
  background-color: #212121 !important;
}

body .tag_msg_header,
body .tag_msg_write,
body .tag_msg_user_list {
  border-color: rgba(255,255,255,.08) !important;
}

body .messages-container .no-messages,
body .messages-container .empty_state {
  background: transparent !important;
}

body .tag_msg_write_tarea,
body .tag_write_msg,
body .tag_msg_write .emojionearea,
body .tag_msg_write .emojionearea-editor {
  background-color: #2b2b2b !important;
  color: #f1f1f1 !important;
}

/* style.chat-bubble-wrapper-fix.css */
/* VelChat: remove rectangular backgrounds behind chat bubbles only. */
body .tag_msg_user_chat .messages-wrapper,
body .tag_msg_user_chat .messages-text,
body .tag_msg_user_chat .sended_message,
body .tag_msg_user_chat .message-contnaier,
body .tag_msg_user_chat .message,
body .tag_msg_user_chat .incoming,
body .tag_msg_user_chat .outgoing,
body .tag_msg_user_chat .message-media:empty,
body .messages-container .messages-wrapper,
body .messages-container .messages-text,
body .messages-container .sended_message,
body .messages-container .message-contnaier,
body .messages-container .message,
body .messages-container .incoming,
body .messages-container .outgoing,
body .chat-messages-wrapper .messages-wrapper,
body .chat-messages-wrapper .messages-text,
body .chat-messages-wrapper .sended_message,
body .chat-messages-wrapper .message {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Keep only the actual rounded bubble colored. */
body .messages-container .incoming > .message-text,
body .chat-messages-wrapper .incoming > .message-text,
body .tag_msg_wrapper.incoming > .message-text {
  background: #494949 !important;
  background-color: #494949 !important;
}

/* Outgoing color remains controlled by the selected chat accent. */
body .messages-container .outgoing > .message-text,
body .chat-messages-wrapper .outgoing > .message-text,
body .tag_msg_wrapper.outgoing > .message-text {
  background-image: none !important;
  box-shadow: none !important;
}

/* style.story-arrows.css */
/* VelChat: keep story navigation arrows visible and clickable. */
.story_lightbox .story-img.tag_view_story_only_main .tag_lbox_img_innr {
  position: relative;
}
.story_lightbox .story-img.tag_view_story_only_main .changer.previous-btn,
.story_lightbox .story-img.tag_view_story_only_main .changer.next-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px;
  min-width: 48px;
  height: 48px;
  line-height: 48px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  background: rgba(0,0,0,.48) !important;
  color: #fff !important;
  z-index: 1060 !important;
  pointer-events: auto !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story_lightbox .story-img.tag_view_story_only_main .changer.previous-btn { left: 14px !important; right: auto !important; }
.story_lightbox .story-img.tag_view_story_only_main .changer.next-btn { right: 14px !important; left: auto !important; }
.story_lightbox .story-img.tag_view_story_only_main .changer:hover,
.story_lightbox .story-img.tag_view_story_only_main .changer:focus {
  background: rgba(0,0,0,.72) !important;
}
.story_lightbox .story-img.tag_view_story_only_main .changer svg {
  width: 30px;
  height: 30px;
  pointer-events: none;
}
@media (max-width:700px) {
  .story_lightbox .story-img.tag_view_story_only_main .changer.previous-btn,
  .story_lightbox .story-img.tag_view_story_only_main .changer.next-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    line-height: 42px;
  }
  .story_lightbox .story-img.tag_view_story_only_main .changer.previous-btn { left: 8px !important; }
  .story_lightbox .story-img.tag_view_story_only_main .changer.next-btn { right: 8px !important; }
}

.vc-story-pending {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 13, 18, .86);
}
.vc-story-notice {
  width: min(100%, 340px);
  padding: 24px;
  text-align: center;
  background: #22232c;
  color: #f5f3fa;
  border: 1px solid #40414b;
  border-radius: 16px;
}
.vc-story-notice h2 { margin: 0 0 8px; font-size: 20px; }
.vc-story-notice p { margin: 0 0 18px; color: #c8c5cf; }
.vc-story-notice button { min-height: 44px; margin: 0 3px; }
.vc-story-notice [hidden] { display: none; }
.vc-story-viewer .story_lightbox .mfp-wrap .mfp_progress_line_ .load { transition: width 10s linear; }

/* velchat-profile-entry.css */
/* The media shortcuts are the first destinations after the timeline. */
.wo_user_profile .vc-profile-nav {
    margin-block-start: 16px;
    border-top: 1px solid var(--vc-border);
}
.wo_user_profile .vc-profile-nav ul {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    list-style: none;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--vc-border) transparent;
}
.wo_user_profile .vc-profile-nav li {flex: none;}
.wo_user_profile .vc-profile-nav li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 13px;
    border-radius: 10px;
    color: var(--vc-muted);
    font-weight: 550;
    white-space: nowrap;
}
.wo_user_profile .vc-profile-nav li a:hover {
    color: var(--vc-text);
    background: var(--vc-raised);
}
.wo_user_profile .vc-profile-nav li a[aria-current] {
    color: var(--vc-accent);
    background: var(--vc-accent-bg);
}
.wo_user_profile .vc-profile-nav li .menuactive::after {content: none;}
.wo_user_profile .vc-profile-nav li a:focus-visible {
    outline: 2px solid var(--vc-accent) !important;
    outline-offset: -2px;
}
.wo_user_profile .vc-profile-nav li a span {
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--vc-raised);
    color: var(--vc-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.wo_user_profile .vc-profile-backdrop {
    background: linear-gradient(160deg, var(--vc-accent-bg), var(--vc-bg) 72%);
    pointer-events: none;
}
/* Paint the actual cover area while the image downloads or if it is unavailable. */
body :is(.wo_user_profile, .wo_tiers_profile) .cardheader.user-cover {
    background-color: #343232 !important;
}
.wo_user_profile #cover-image {
    display: block;
    aspect-ratio: auto 1000 / 327;
}
:is(.wo_user_profile, .wo_tiers_profile) #cover-image:is(:not([src]), [data-vc-cover-failed]) {
    visibility: hidden;
}
/* Tiers sizes its header from the loaded image. Reserve space only until then. */
.wo_tiers_profile > .sun_profile_header_area:has(#cover-image:is(:not([src]), [data-vc-cover-pending], [data-vc-cover-failed])) {
    width: min(100%, 950px);
    --vc-tier-cover-ratio: 1000 / 327;
}
.wo_tiers_profile .user-cover-reposition-w {aspect-ratio: var(--vc-tier-cover-ratio, auto);}
@media (min-width: 769px) {
    body .wo_user_profile .profile-container.tag_cover_bg {background-color: transparent !important;}
    .wo_user_profile .tag_cover_bg > .tag_cover_sec_bg {display: none;}
    /* Use the same native container as the name card in both header layouts. */
    .wo_user_profile .tag_cover_bg > .container {position: relative;}
    .wo_user_profile .tag_cover_bg > .container > .btn_goback {
        top: 15px;
        /* The static inline position starts at the container's content edge. */
        inset-inline: auto;
        margin-inline-start: 15px;
    }
}
@media (max-width: 768px) {
    .wo_user_profile .vc-profile-nav ul {padding-inline: 7px;scrollbar-width: none;}
    .wo_user_profile .vc-profile-nav ul::-webkit-scrollbar {display: none;}
    .wo_user_profile .vc-profile-nav li a {padding-inline: 11px;}
}

/* velchat-profile-media.css */
/* Reserve each cell on first paint, including while its image is still decoding. */
.wo_user_profile #photos-list.user_media_list_section.insta.profile.vc-media-grid,
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid:is(#photos-list, #videos-list, #reels-videos-list) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 6px !important;
    margin: 0;
    background: transparent !important;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid > :is(.empty_state, .post-container, .vc-profile-feedback, .load-more, .no-posts) {
    grid-column: 1 / -1;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid > .clear { display: none; }
:is(.wo_user_profile, .profile-lists) .vc-media-grid > .empty_state {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 9px;
    width: 100%;
    padding: 26px 14px;
    color: var(--vc-muted, #b4b4c3);
    text-align: center;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid > .empty_state svg { width: 44px; height: 44px; margin: 0; }
.vc-media-grid {
    --vc-tile-wash: #403746;
    --vc-tile-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3'/%3E%3Ccircle cx='9' cy='9' r='1.3'/%3E%3Cpath d='m4 17 4-4 3 3 4-5 5 6'/%3E%3C/svg%3E");
}
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid .vc-media-tile:is(.photo-data, .video-data) {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1 !important;
    content-visibility: visible;
    contain: none;
    border-radius: 9px !important;
    background: var(--vc-panel, #191a21) !important;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile:nth-of-type(3n+2) { --vc-tile-wash: #353e4c; }
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile:nth-of-type(3n) { --vc-tile-wash: #423642; }
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile:is([data-kind="video"], [data-kind="reel"]) {
    --vc-tile-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 5.8a1 1 0 0 1 1.5-.85l10 6.2a1 1 0 0 1 0 1.7l-10 6.2A1 1 0 0 1 7 18.2z'/%3E%3C/svg%3E");
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile[data-kind="album"] {
    --vc-tile-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='3' width='14' height='14' rx='2.8'/%3E%3Cpath d='M17 20.5H6A3 3 0 0 1 3 17.5V7'/%3E%3C/svg%3E");
}
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid.reels .vc-media-tile.video-data { aspect-ratio: 4 / 5 !important; }
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid .vc-media-tile:is(.photo-data, .video-data) > a {
    display: block;
    width: 100% !important;
    height: 100% !important;
    padding: 0;
    aspect-ratio: auto !important;
    position: relative;
    overflow: hidden;
    transform: none;
    border-radius: inherit !important;
    background: linear-gradient(140deg, var(--vc-tile-wash), #272731 60%, #23232d) !important;
    box-shadow: inset 0 0 0 1px rgb(220 216 239 / 8%) !important;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile > a::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: clamp(36px, 9vw, 46px);
    height: clamp(36px, 9vw, 46px);
    transform: translate(-50%, -50%);
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 11px;
    background: var(--vc-tile-symbol) center / 52% no-repeat, rgb(255 255 255 / 5%);
    pointer-events: none;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile.vc-has-preview > a::before { content: none; }
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile.vc-has-preview:is([data-kind="video"], [data-kind="reel"], [data-kind="album"]) > a::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 6px auto auto;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--vc-tile-symbol) center / 17px no-repeat, rgb(19 19 26 / 78%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
    pointer-events: none;
}
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile.tag_profile_video_tile:not(.vc-has-preview) > a::after { content: none; }
/* The gallery link already identifies videos, including videos without posters. */
.vc-media-grid .vc-media-tile.video-data::after { content: none; }
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid .vc-media-tile:is(.photo-data, .video-data) img.vc-tile-image {
    z-index: 1;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    content-visibility: visible;
    transform: none;
    backface-visibility: visible;
    background: transparent !important;
}
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid .vc-media-tile:is(.photo-data, .video-data) img.vc-tile-image[hidden] { display: none !important; }
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid .vc-media-tile:is(.photo-data, .video-data) img.vc-tile-image.vc-tile-framed {
    inset: auto !important;
    left: var(--vc-frame-x) !important;
    top: var(--vc-frame-y) !important;
    width: var(--vc-frame-w) !important;
    height: var(--vc-frame-h) !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
}
/* Reels display a 4:5 crop of the same square cover, centered just like a saved JPEG. */
:is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid.reels .vc-media-tile.video-data img.vc-tile-image.vc-tile-framed {
    left: calc(var(--vc-frame-x) * 1.25 - 12.5%) !important;
    width: calc(var(--vc-frame-w) * 1.25) !important;
}
.vc-media-tile .vc-tile-caption {
    position: absolute;
    bottom: 9px;
    inset-inline: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.35;
    color: #e4dfed;
    text-align: start;
}
/* Keep a readable excerpt behind the thumbnail while loading and after a missing file. */
.vc-media-grid .vc-media-tile:is([data-kind="post"], [data-vc-protected]) > a::before { display: none; }
.vc-media-grid .vc-media-tile .vc-tile-excerpt {
    z-index: 0;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(4px, 1.5vw, 8px);
    padding: clamp(9px, 2.5vw, 18px);
    overflow: hidden;
    pointer-events: none;
    text-align: start;
    color: #f0ecf8;
    background: linear-gradient(145deg, var(--vc-tile-wash), #2c2c39 70%);
}
.vc-media-grid .vc-media-tile .vc-tile-excerpt svg { color: #d8c6ec; flex-shrink: 0; width: clamp(16px, 4vw, 22px); }
.vc-media-grid .vc-media-tile .vc-tile-excerpt span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: clamp(12px, 2.7vw, 15px);
    line-height: 1.35;
}
.vc-media-grid .vc-media-tile.vc-has-preview :is(.vc-tile-excerpt, .vc-tile-caption) { display: none; }
.vc-media-tile .vc-tile-caption:has(~ .profile_reel_views) { bottom: 34px; }
.vc-media-tile .profile_reel_views {
    z-index: 3;
    width: fit-content;
    inset: auto auto 6px;
    inset-inline-start: 6px;
    padding: 3px 6px;
    gap: 4px;
    border-radius: 6px;
    background: rgb(19 19 26 / 76%);
    color: #fff;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.vc-media-tile .profile_reel_views svg { width: 14px; height: 14px; }
:is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile > a:focus-visible {
    outline: 3px solid var(--vc-accent, #c5afff) !important;
    outline-offset: -4px;
}
@media (min-width: 768px) {
    .wo_user_profile .user_media_list_section_side.vc-media-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
    .wo_user_profile .user_media_list_section_side.vc-media-grid > .vc-media-tile {
        grid-column: auto !important;
    }
    .wo_user_profile #photos-list.user_media_list_section.insta.profile.vc-media-grid,
    :is(.wo_user_profile, .profile-lists) .user_media_list_section.vc-media-grid:is(#photos-list, #videos-list, #reels-videos-list) {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 154px), 1fr)) !important;
        gap: 8px !important;
    }
}
@media (hover: hover) {
    :is(.wo_user_profile, .profile-lists) .vc-media-grid .vc-media-tile > a:hover { box-shadow: inset 0 0 0 1px var(--vc-accent, #c5afff) !important; }
    .vc-media-tile > a:hover > img.vc-tile-image { opacity: .92; }
}
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-pager,
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-feedback:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 15px;
}
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-feedback { color: var(--vc-muted, #b4b4c3); text-align: center; }
:is(.wo_user_profile, .wo_tiers_profile) :is(.vc-profile-feedback, .vc-profile-stream, .vc-profile-pager, .vc-profile-pager button, #vc-profile-search-results)[hidden] { display: none !important; }
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-pager button,
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-feedback button {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--vc-border, #343640);
    background: var(--vc-raised, #22232c);
    color: var(--vc-text, #f4f3f9);
}
:is(.wo_user_profile, .wo_tiers_profile) .vc-profile-pager button:disabled { color: var(--vc-muted, #b4b4c3); cursor: progress; }
