#mychat-status-viewer:not(.is-mine) #mychat-status-delete-btn,
#mychat-status-viewer:not(.is-mine) #mychat-status-view-count {
    display: none !important;
}



/* ==================== ریست قوی ==================== */

#mychat-app button,
#mychat-header-menu button,
#mychat-msg-menu button,
#mychat-forward-modal button,
#mychat-forward-close,
#mychat-share-modal button,
#mychat-image-viewer button,
#mychat-back-btn,
.mychat-start-btn,
#mychat-status-compose button,
#mychat-status-viewer button,
#mychat-status-viewers-modal button {
	all: unset !important;
	box-sizing: border-box !important;
	cursor: pointer !important;
	font-family: inherit !important;
}

#mychat-app,
#mychat-app * {
	box-sizing: border-box;
}

/* ==================== ساختار کلی ==================== */
#mychat-app {
	display: flex;
    height: 100vh;
	max-width: 900px;
	margin: 0;
	border: none;
	border-radius: 0;
	overflow: hidden;
	font-family: inherit;
	direction: rtl;
	background: #ffffff;
}

#mychat-sidebar {
	width: 380px;
	border-left: none;
	overflow-y: auto;
	overflow-x: hidden;
	background: #ffffff;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding-left: 4px;
}
#mychat-sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }

#mychat-sidebar-title {
	padding: 16px 18px;
	font-weight: 700;
	font-size: 17px;
	border-bottom: 1px solid #f0f0f0;
}

/* ==================== ردیف‌های لیست مکالمات ==================== */
.mychat-conv-item {
	display: flex;
	align-items: center;
	padding: 12px 10px 12px 18px;
	cursor: pointer;
	gap: 10px;
	position: relative;
	border-bottom: 1px solid #f4f4f4;
}

.mychat-conv-item:hover,
.mychat-conv-item.active {
	background: #fafafa;
}

.mychat-avatar-wrap {
	position: relative;
	flex-shrink: 0;
}

.mychat-avatar,
.mychat-msg-avatar,
#mychat-header-avatar,
#mychat-status-viewer-avatar {
	border-radius: 50% !important;
	overflow: hidden !important;
	object-fit: cover !important;
	display: block !important;
	max-width: none !important;
	flex-shrink: 0 !important;
}

.mychat-avatar {
	width: 54px !important;
	height: 54px !important;
	background: #e2e2e2;
}

#mychat-header-avatar {
	width: 38px !important;
	height: 38px !important;
}

.mychat-status-dot {
	position: absolute;
	bottom: 1px;
	left: 1px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: #bdbdbd;
}

.mychat-status-dot.online {
	background: #31c76b;
}

.mychat-conv-info {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	flex: 1;
	gap: 2px;
	padding-left: 4px;
}

.mychat-conv-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
}

.mychat-conv-top strong {
	font-size: 14.5px;
	font-weight: 800 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mychat-conv-time {
	font-size: 11px;
	color: #999;
	flex-shrink: 0;
}

.mychat-last-msg {
	font-size: 12.5px;
	color: #8e8e8e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 2px;
}

.mychat-lastseen-text {
	font-size: 11px;
	color: #b3b3b3;
	padding-left: 2px;
}

.mychat-lastseen-text.is-online {
	color: #31c76b;
}

.mychat-badge {
	position: absolute;
	left: 16px;
	top: 50%;
	margin-top: -2px;
	background: #ff3040;
	color: #fff;
	font-size: 13px;
	font-weight: 800 !important;
	border-radius: 50%;
	min-width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
}

/* ==================== پنجره چت ==================== */
#mychat-window {
	flex: 1;
	min-height: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	overflow: hidden;
}

#mychat-chat-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	z-index: 30;
}

#mychat-back-btn {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4px !important;
}

#mychat-header-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#mychat-header-name {
	font-weight: 800 !important;
	font-size: 14.5px;
}

#mychat-header-lastseen {
	font-size: 11.5px;
	color: #999;
}

#mychat-header-lastseen.is-online {
	color: #31c76b;
}

#mychat-header-menu-btn {
	font-size: 24px !important;
	line-height: 1 !important;
	color: #444 !important;
	padding: 0 6px !important;
}

#mychat-header-menu {
	display: none;
	position: absolute;
	left: 10px;
	top: 46px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	z-index: 9999;
	min-width: 180px;
	overflow: hidden;
}

#mychat-header-menu button {
	display: block !important;
	width: 100% !important;
	text-align: right !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	color: #222 !important;
}

#mychat-header-menu button:hover {
	background: #fafafa !important;
}

/* ==================== پیام‌ها ==================== */
#mychat-messages {
	flex: 1;
	min-height: 0;
	min-width: 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #ffffff;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
#mychat-messages::-webkit-scrollbar { display: none; width: 0; height: 0; }

.mychat-empty-hint {
	text-align: center;
	color: #999;
	margin-top: 40px;
	font-size: 13px;
}

.mychat-msg-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	max-width: 78%;
	transition: transform 0.05s linear;
	margin-bottom: 4px;
}

/* پیام‌هایی که ری‌اکشن دارن، فاصله بیشتر می‌خوان تا reaction روش بشینه */
.mychat-msg-row:has(.mychat-reaction-bar) {
	margin-bottom: 14px;
}

.mychat-msg-row.mine {
	align-self: flex-end;
	flex-direction: row-reverse;
}

.mychat-msg-row.theirs {
	align-self: flex-start;
}

.mychat-msg-avatar {
	width: 28px !important;
	height: 28px !important;
	flex-shrink: 0;
	background: #e2e2e2;
}
/* ==================== تنظیم سایز متن چت ==================== */

.mychat-msg {
	padding: 11px 15px;
	border-radius: 18px;
	font-size: 13px;
	font-weight: 500 !important;
	line-height: 1.6;
	word-break: break-word;
}
/* ==================== تنظیم سایز متن چت ==================== */

.mychat-msg-row.mine .mychat-msg {
	background: #ECE6FB;
	color: #2d2140;
	border-bottom-left-radius: 4px;
}

.mychat-msg-row.theirs .mychat-msg {
	background: #f1f1f1;
	color: #1c1c1c;
	border-bottom-right-radius: 4px;
}

.mychat-msg.deleted {
	background: transparent !important;
	border: 1px dashed #ccc;
	color: #999 !important;
	font-style: italic;
	font-size: 12px;
}

.mychat-msg-media {
	padding: 0 !important;
	background: transparent !important;
	overflow: hidden;
}

.mychat-msg-image {
	max-width: 200px;
	border-radius: 14px;
	display: block;
	cursor: zoom-in;
}

.mychat-msg-media .mychat-msg-image {
	border-radius: 16px;
}

.mychat-msg-caption {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 700 !important;
	line-height: 1.6;
	white-space: pre-line;
}

.mychat-msg-voice {
	padding: 0 !important;
	background: transparent !important;
}

.mychat-reply-quote {
	border-right: 3px solid rgba(90, 60, 140, 0.35);
	padding-right: 8px;
	margin-bottom: 4px;
	font-size: 11.5px;
	opacity: 0.85;
}

.mychat-msg-row.theirs .mychat-reply-quote {
	border-right-color: #bbb;
}

.mychat-forwarded-label {
	font-size: 10.5px;
	opacity: 0.75;
	margin-bottom: 3px;
}

.mychat-msg-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
}

.mychat-msg-row.theirs .mychat-msg-col {
	align-items: flex-start;
}

.mychat-msg-meta {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 4px;
}

.mychat-msg-time {
	font-size: 10.5px;
	color: #b5b5b5;
}

.mychat-ticks {
	display: inline-flex;
	color: #b0b0b0;
}

.mychat-ticks.delivered {
	color: #9e9e9e;
}

.mychat-ticks.read {
	color: #6c4fd6;
}

.mychat-ticks-label {
	font-size: 10.5px;
	color: #999;
}

.mychat-edited-label {
	font-size: 10px;
	color: #999;
	font-style: italic;
	margin-left: 4px;
	opacity: 0.8;
}

/* ==================== پخش‌کننده صوتی ==================== */
.mychat-voice-player {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 13px;
	min-width: 210px;
	max-width: 240px;
	background: #ECE6FB;
	border-radius: 18px;
}

.mychat-msg-row.theirs .mychat-voice-player {
	background: #f1f1f1;
}

.mychat-voice-play-btn {
	flex-shrink: 0 !important;
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	background: #6c4fd6 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: transform 0.1s ease, background 0.15s ease;
}

.mychat-voice-play-btn:hover {
	background: #5c40c2 !important;
}

.mychat-voice-play-btn:active {
	transform: scale(0.93);
}

.mychat-voice-wave-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.mychat-voice-wave-canvas {
	width: 100%;
	height: 32px;
	display: block;
}

.mychat-voice-duration {
	font-size: 10.5px;
	color: #6b6b78;
	font-variant-numeric: tabular-nums;
	min-width: 30px;
	text-align: left;
	direction: ltr;
	flex-shrink: 0;
}

.mychat-voice-speed {
	font-size: 10.5px;
	font-weight: 700;
	color: #6c4fd6;
	background: rgba(108, 79, 214, 0.12);
	border-radius: 8px;
	padding: 2px 6px;
	cursor: pointer;
	flex-shrink: 0;
	user-select: none;
}

.mychat-msg-row.theirs .mychat-voice-speed {
	color: #555;
	background: rgba(0, 0, 0, 0.06);
}

/* ==================== بزرگ‌نمایی عکس ==================== */
#mychat-image-viewer {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999998;
}

#mychat-image-viewer-img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 8px;
}

#mychat-image-viewer-close {
	position: absolute !important;
	top: 18px !important;
	left: 18px !important;
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
	width: 38px !important;
	height: 38px !important;
	border-radius: 50% !important;
	font-size: 18px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* ==================== نوار ویرایش ==================== */
#mychat-edit-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: linear-gradient(90deg, #f3efff, #faf8ff);
	border-top: 1px solid #e5dff5;
	border-right: 3px solid #6c4fd6;
	font-size: 12.5px;
	color: #4a3d6e;
	direction: rtl;
}

#mychat-edit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	background: rgba(108, 79, 214, 0.12);
	border-radius: 50%;
}

#mychat-edit-preview-text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

#mychat-edit-preview-text::before {
	content: "ویرایش: ";
	color: #6c4fd6;
	font-weight: 800;
}

#mychat-edit-cancel {
	flex-shrink: 0 !important;
	font-size: 14px !important;
	color: #888 !important;
	padding: 4px 8px !important;
	border-radius: 50% !important;
}

#mychat-edit-cancel:hover {
	background: rgba(108, 79, 214, 0.1) !important;
}

/* ==================== ورودی ==================== */
#mychat-reply-preview {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	background: #f7f5fc;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
	color: #444;
}

#mychat-reply-cancel {
	font-size: 14px !important;
	color: #888 !important;
}

#mychat-typing-indicator {
    padding: 8px 16px;
    font-size: 12px;
    color: #8e8e8e;
    display: none;
    min-height: 24px;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

#mychat-typing-indicator.is-visible {
    display: flex;
}

#mychat-input-area {
	display: none;
	flex-direction: column;
	gap: 6px;
	padding: 8px 14px 12px;
	border-top: 1px solid #f0f0f0;
	background: #ffffff;
}

#mychat-input-area.active {
	display: flex;
}

#mychat-input-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

#mychat-input-toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 2px 4px 0;
}

#mychat-input-field-wrap {
	position: relative;
	flex: 1;
	min-width: 0;
}

#mychat-text-input {
	width: 100%;
	border: 1px solid #e2e2e2;
	border-radius: 22px;
	padding: 9px 16px;
	outline: none;
	font-size: 13.5px;
	font-weight: 600 !important;
	background: #fafafa;
	transition: border-color 0.15s ease;
}

#mychat-text-input:focus {
	border-color: #b0a0e0;
	background: #fff;
}

#mychat-recording-ui {
	display: none;
	align-items: center;
	gap: 10px;
	width: 100%;
	border: 1px solid #f0c9c9;
	border-radius: 22px;
	padding: 7px 14px;
	background: linear-gradient(0deg, #fff6f6, #fffafa);
}

#mychat-input-area.mychat-recording #mychat-text-input {
	display: none;
}

#mychat-input-area.mychat-recording #mychat-recording-ui {
	display: flex;
}

#mychat-record-cancel {
	flex-shrink: 0 !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#mychat-record-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #e0245e;
	animation: mychat-record-pulse 1.1s ease-in-out infinite;
}

@keyframes mychat-record-pulse {
	0%   { transform: scale(1);    opacity: 1; }
	50%  { transform: scale(1.35); opacity: 0.45; }
	100% { transform: scale(1);    opacity: 1; }
}

#mychat-record-timer {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	color: #444;
	font-variant-numeric: tabular-nums;
	min-width: 38px;
}

#mychat-record-wave {
	flex: 1;
	min-width: 0;
	height: 26px;
}

#mychat-send-btn,
#mychat-attach-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 4px !important;
}

.mychat-start-btn {
	display: inline-block !important;
	background: #6c4fd6 !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 10px 20px !important;
	font-size: 15px !important;
	text-align: center !important;
}

/* ==================== پنل شکلک ==================== */
#mychat-emoji-panel {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 4px;
	max-height: 190px;
	overflow-y: auto;
	padding: 10px 8px;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
	scrollbar-width: thin;
	scrollbar-color: #e2e2e2 transparent;
}
#mychat-emoji-panel::-webkit-scrollbar { width: 4px; }
#mychat-emoji-panel::-webkit-scrollbar-thumb { background: #e2e2e2; border-radius: 4px; }

.mychat-emoji-item {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 21px;
	line-height: 1;
	padding: 6px 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.12s ease, transform 0.08s ease;
	user-select: none;
}

.mychat-emoji-item:hover {
	background: #eee6fb;
	transform: scale(1.12);
}

.mychat-emoji-item img.emoji,
.mychat-msg img.emoji,
.mychat-last-msg img.emoji {
	width: 1.15em;
	height: 1.15em;
	vertical-align: -0.2em;
	margin: 0 1px;
}

/* ==================== منوی پیام ==================== */
#mychat-msg-menu {
	position: fixed;
	display: none;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	z-index: 999997;
	bottom: 90px;
	right: 30px;
	left: 30px;
	max-width: 320px;
	margin: 0 auto;
	overflow: hidden;
}

#mychat-msg-menu button {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 14px 18px !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #111 !important;
	border-bottom: 1px solid #f0f0f0 !important;
}

#mychat-msg-menu button:last-child {
	border-bottom: none !important;
}

#mychat-msg-menu-delete {
	color: #d02f2f !important;
}

#mychat-msg-menu-edit {
	color: #6c4fd6 !important;
}

/* ==================== پنجره فوروارد ==================== */
#mychat-forward-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999996;
}

#mychat-forward-box {
	background: #fff;
	border-radius: 14px;
	width: 300px;
	max-height: 400px;
	overflow-y: auto;
	padding: 14px;
	direction: rtl;
}

#mychat-forward-title {
	font-weight: 700;
	margin-bottom: 10px;
	font-size: 14px;
}

.mychat-forward-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	cursor: pointer;
	border-radius: 8px;
}

.mychat-forward-item:hover {
	background: #fafafa;
}

.mychat-forward-item .mychat-avatar {
	width: 36px !important;
	height: 36px !important;
}

#mychat-forward-close {
	display: block !important;
	width: 100% !important;
	margin-top: 10px !important;
	padding: 8px !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 8px !important;
	background: #fff !important;
	text-align: center !important;
	color: #333 !important;
}

/* ==================== موبایل ==================== */
@media (max-width: 640px) {
	#mychat-app {
		flex-direction: column;
		height: calc(100vh - 56px);
		margin: 0;
	}
	#mychat-sidebar { width: 100%; flex-shrink: 0; border-left: none; }
	#mychat-window { display: none; min-height: 0; flex: 1; }
	#mychat-app.mychat-conv-open #mychat-sidebar { display: none; }
	#mychat-app.mychat-conv-open #mychat-window { display: flex; }
	#mychat-back-btn { display: flex !important; }
}

/* ==================== نوار حالت انتخاب ==================== */
#mychat-select-bar {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #faf8ff;
	border-bottom: 1px solid #ececec;
}

#mychat-select-cancel { font-size: 16px !important; color: #555 !important; }
#mychat-select-count { font-size: 13px; color: #444; font-weight: 600; }
#mychat-select-delete { display: flex !important; align-items: center !important; justify-content: center !important; padding: 4px !important; }

.mychat-conv-item.selected { background: #f2ecff; }
.mychat-conv-item.selected .mychat-avatar-wrap::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid #6c4fd6;
}

/* ==================== Toast ==================== */
#mychat-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(20, 20, 20, 0.9);
	color: #fff;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 13px;
	z-index: 999999;
	max-width: 85vw;
	text-align: center;
}

/* ==================== پنجره اشتراک‌گذاری ==================== */
#mychat-share-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	align-items: flex-end;
	justify-content: center;
	z-index: 999999;
}

#mychat-share-box {
	background: #fff;
	border-radius: 20px 20px 0 0;
	width: 100%;
	max-width: 480px;
	min-height: 58vh;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	padding: 8px 16px 18px;
	direction: rtl;
	animation: mychat-sheet-up 0.25s ease;
	touch-action: none;
}

@keyframes mychat-sheet-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.mychat-sheet-handle {
	width: 40px;
	height: 4px;
	border-radius: 4px;
	background: #ddd;
	margin: 6px auto 10px;
	flex-shrink: 0;
}

#mychat-share-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#mychat-share-close { flex-shrink: 0 !important; width: 30px !important; height: 30px !important; border-radius: 50% !important; background: #f4f4f4 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
#mychat-share-title { font-weight: 800 !important; font-size: 15px; flex: 1; }

#mychat-share-preview {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #faf8ff;
	border-radius: 10px;
	padding: 8px;
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 600;
	flex-shrink: 0;
}

#mychat-share-preview img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

#mychat-share-list { flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#mychat-share-list::-webkit-scrollbar { display: none; }

.mychat-share-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; border-radius: 8px; }
.mychat-share-item:hover { background: #fafafa; }
.mychat-share-item .mychat-avatar { width: 40px !important; height: 40px !important; }
.mychat-share-item span:nth-child(2) { flex: 1; font-weight: 700; }

.mychat-share-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #ddd; flex-shrink: 0; }
.mychat-share-item.selected .mychat-share-check { background: #6c4fd6; border-color: #6c4fd6; position: relative; }
.mychat-share-item.selected .mychat-share-check::after {
	content: "✓";
	color: #fff;
	font-size: 13px;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#mychat-share-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 4px 4px;
	font-size: 12.5px;
	color: #777;
	font-weight: 700;
	flex-shrink: 0;
}

#mychat-share-modal #mychat-share-send {
	background: #6c4fd6 !important;
	width: 42px !important;
	height: 42px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
}

.mychat-msg-link { display: block; color: inherit !important; text-decoration: none !important; cursor: pointer; }

/* ==================== Badge فوتر ==================== */
.mychat-footer-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	background: #ff3040;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	min-width: 17px;
	height: 17px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
	z-index: 5;
}

/* ==================== تیک آبی ==================== */
#mychat-header-name-row { display: flex; align-items: center; gap: 4px; }
.mychat-verified-badge { display: inline-flex; align-items: center; vertical-align: middle; transform: translateY(1px); }

/* ==================== اسپینر ==================== */
.mychat-loading-wrap { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; }
.mychat-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #e5e5e5;
	border-top-color: #000;
	border-radius: 50%;
	animation: mychat-spin 0.7s linear infinite;
}
@keyframes mychat-spin { to { transform: rotate(360deg); } }

/* ==================== سنجاق ==================== */
.mychat-pin-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #6c4fd6;
	margin-left: 6px;
	vertical-align: middle;
}

/* ==================== سه‌نقطه تایپینگ ==================== */
.mychat-typing-dots { display: inline-flex; align-items: center; gap: 3px; padding: 4px 0; }
.mychat-typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #8e8e8e;
	animation: mychat-typing-bounce 1.1s infinite ease-in-out;
}
.mychat-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.mychat-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mychat-typing-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}

/* ==================== ردیف اشتراک‌گذاری سریع ==================== */
#mychat-quick-share-row { display: flex; justify-content: space-between; gap: 6px; padding: 14px 4px 10px; flex-shrink: 0; }
.mychat-quick-share-btn { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 5px !important; background: none !important; flex: 1; }
.mychat-quick-circle { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mychat-quick-share-btn small { font-size: 10px; color: #555; font-weight: 700; text-align: center; line-height: 1.3; }

/* ==================== دایره «وضعیت شما» ==================== */
#mychat-my-status-row {
	display: flex;
	justify-content: flex-end !important;
	padding: 12px 16px 10px;
	border-bottom: 1px solid #f4f4f4;
}

#mychat-my-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: fit-content;
	cursor: pointer;
	position: relative;
}

#mychat-my-status .mychat-avatar {
	width: 58px !important;
	height: 58px !important;
	border: 2px solid #fff !important;
}

#mychat-my-status .mychat-avatar-wrap { position: relative; padding: 3px; border-radius: 50%; }

#mychat-my-status .mychat-avatar-wrap::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	padding: 3px;
	background: repeating-conic-gradient(from 0deg, #4facfe 0deg 14deg, transparent 14deg 22deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	pointer-events: none;
}

#mychat-my-status.has-own-status .mychat-avatar-wrap { padding: 4px; }

#mychat-my-status.has-own-status .mychat-avatar-wrap::before {
	background: conic-gradient(from 0deg, #FEDA75 0deg, #FA7E1E 72deg, #D62976 144deg, #962FBF 216deg, #4F5BD5 288deg, #FEDA75 360deg);
	opacity: 1;
	animation: mychat-ring-spin 4s linear infinite;
}

@keyframes mychat-ring-spin { to { transform: rotate(360deg); } }

#mychat-my-status.has-own-status .mychat-avatar { border: 3px solid #fff !important; }

.mychat-my-status-plus {
	position: absolute;
	bottom: -2px;
	right: -2px;
	left: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #0095f6;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	z-index: 2;
}

#mychat-my-status.has-own-status .mychat-my-status-plus { background: #6c4fd6 !important; }

.mychat-my-status-label { font-size: 11px; font-weight: 700; color: #444; margin-top: 2px; }

/* ==================== حلقه استوری آواتار کاربران ==================== */
.mychat-avatar-wrap.has-status { position: relative; padding: 2px; border-radius: 50%; cursor: pointer; }
.mychat-avatar-wrap.has-status .mychat-avatar { border: 2px solid #fff !important; }
.mychat-avatar-wrap.has-status.status-new { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.mychat-avatar-wrap.has-status.status-seen { background: #d5d5d5; }

.mychat-avatar-wrap.has-story { position: relative; padding: 3px; border-radius: 50%; cursor: pointer; }
.mychat-avatar-wrap.has-story .mychat-avatar { border: 2px solid #fff !important; }
.mychat-avatar-wrap.has-story.story-new { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.mychat-avatar-wrap.has-story.story-seen { background: #d5d5d5; }

/* ==================== کامپوز وضعیت ==================== */
#mychat-status-compose {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 16px;
}

#mychat-status-compose-box {
	width: 100%;
	max-width: 480px;
	height: 100%;
	max-height: 100vh;
	border-radius: 18px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 10px 40px rgba(0,0,0,0.35);
	transition: background 0.2s ease;
}

#mychat-status-compose-text {
	flex: 1;
	width: 100%;
	background: transparent;
	border: none;
	outline: none;
	resize: none;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	text-align: center;
	line-height: 1.6;
	padding: 30px 10px;
	font-family: inherit;
}

#mychat-status-compose-text::placeholder { color: rgba(255,255,255,0.7); }

#mychat-status-compose-close {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,0.25) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#mychat-status-color-row { display: flex; justify-content: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; flex-shrink: 0; }

.mychat-color-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid rgba(255,255,255,0.6);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mychat-color-dot.active { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(255,255,255,0.9); border-color: #fff; }
.mychat-color-dot:hover { transform: scale(1.1); }

#mychat-status-compose-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; flex-shrink: 0; }

#mychat-status-pick-media,
#mychat-status-compose-send {
	width: 50px !important;
	height: 50px !important;
	border-radius: 50% !important;
	background: rgba(255,255,255,0.25) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#mychat-status-media-preview { position: relative; max-height: 40vh; margin-bottom: 10px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
#mychat-status-media-img { width: 100%; max-height: 40vh; object-fit: contain; display: block; }

#mychat-status-media-remove {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 640px) {
	#mychat-status-compose { padding: 0; }
	#mychat-status-compose-box { max-width: 100%; border-radius: 0; max-height: 100vh; }
}

/* ==================== نمایشگر استوری ==================== */
#mychat-status-viewer {
	position: fixed;
	inset: 0;
	display: none;
	flex-direction: column;
	z-index: 999999;
	user-select: none;
	background: #000;
}

#mychat-status-segments { display: flex; gap: 4px; padding: 12px 12px 0; flex-shrink: 0; position: relative; z-index: 10; }

.mychat-story-segment { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.35); overflow: hidden; }
.mychat-story-segment-fill { height: 100%; width: 0%; background: #fff; }
.mychat-story-segment.done .mychat-story-segment-fill { width: 100%; animation: none !important; }

@keyframes mychat-story-progress { from { width: 0%; } to { width: 100%; } }

#mychat-status-viewer-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; flex-shrink: 0; position: relative; z-index: 10; }
#mychat-status-viewer-avatar { width: 38px !important; height: 38px !important; border: 2px solid #fff; }
#mychat-status-viewer-name { color: #fff; font-weight: 700; font-size: 14px; flex: 1; }

#mychat-status-viewer-close {
	background: rgba(255, 255, 255, 0.2) !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mychat-status-viewer-media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 0; }
.mychat-status-viewer-media:empty { display: none; }

.mychat-status-viewer-text {
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	text-align: center;
	padding: 20px 30px;
	line-height: 1.7;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

#mychat-status-zone-prev,
#mychat-status-zone-next { position: absolute; top: 60px; bottom: 90px; width: 35%; z-index: 5; }
#mychat-status-zone-prev { right: 0; }
#mychat-status-zone-next { left: 0; }

#mychat-status-viewer-footer { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; z-index: 10; }

#mychat-status-view-count {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	background: rgba(255,255,255,0.2) !important;
	color: #fff !important;
	padding: 9px 18px !important;
	border-radius: 22px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
}

#mychat-status-delete-btn {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	background: rgba(255,255,255,0.2) !important;
	color: #fff !important;
	padding: 9px 16px !important;
	border-radius: 22px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
}

/* ==================== پاپ‌آپ viewers ==================== */
#mychat-status-viewers-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	display: none;
	align-items: flex-end;
	justify-content: center;
	z-index: 9999999;
}

#mychat-status-viewers-box {
	background: #fff;
	color: #111;
	width: 100%;
	max-width: 480px;
	height: 70vh;
	border-radius: 20px 20px 0 0;
	display: flex;
	flex-direction: column;
	padding: 10px 0 0;
	direction: rtl;
	animation: mychat-sheet-up 0.25s ease;
	font-family: inherit;
}

#mychat-status-viewers-title { text-align: center; font-weight: 800; font-size: 15px; color: #111; padding: 6px 20px 14px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; }

#mychat-status-viewers-list { flex: 1; overflow-y: auto; padding: 6px 10px 20px; scrollbar-width: thin; scrollbar-color: #e2e2e2 transparent; }
#mychat-status-viewers-list::-webkit-scrollbar { width: 4px; }
#mychat-status-viewers-list::-webkit-scrollbar-thumb { background: #e2e2e2; border-radius: 4px; }

.mychat-viewer-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background 0.15s ease; }
.mychat-viewer-item:hover { background: #f7f7f7; }
.mychat-viewer-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e2e2e2; }
.mychat-viewer-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mychat-viewer-name { font-weight: 700; font-size: 14px; color: #111; }
.mychat-viewer-time { font-size: 11.5px; color: #999; }
.mychat-viewer-empty { text-align: center; color: #999; font-size: 13px; padding: 40px 20px; }

/* ==================== دایره وضعیت کاربر در صفحه آگهی ==================== */
.mychat-seller-avatar-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.mychat-seller-avatar-ring { position: relative; border-radius: 50%; padding: 3px; transition: transform 0.15s ease; }
.mychat-seller-avatar-wrap:hover .mychat-seller-avatar-ring { transform: scale(1.05); }
.mychat-seller-avatar-ring:not(.has-status) { background: #e5e5e5; }

.mychat-seller-avatar-ring.has-status.status-new {
	background: conic-gradient(from 0deg, #FEDA75 0deg, #FA7E1E 72deg, #D62976 144deg, #962FBF 216deg, #4F5BD5 288deg, #FEDA75 360deg);
	animation: mychat-seller-ring-spin 4s linear infinite;
}

@keyframes mychat-seller-ring-spin { to { transform: rotate(360deg); } }

.mychat-seller-avatar-ring.has-status .mychat-seller-avatar { border: 2px solid #fff; }
.mychat-seller-avatar-label { font-size: 11px; font-weight: 700; color: #555; }

/* ==================== نسخه ۸.۰ — قابلیت‌های جدید ==================== */

/* نوار جستجو */
#mychat-search-wrap {
	padding: 10px 14px 6px;
	background: #ffffff;
	flex-shrink: 0;
}

#mychat-search-field {
	position: relative;
	width: 100%;
}

#mychat-search-input {
	width: 100% !important;
	padding: 10px 40px 10px 40px !important;
	border: none !important;
	border-radius: 22px !important;
	background: #f0f0f0 !important;
	font-size: 13.5px !important;
	font-family: inherit !important;
	outline: none !important;
	transition: background 0.15s ease !important;
	color: #111 !important;
	box-sizing: border-box !important;
}

#mychat-search-input:focus { background: #e8e8e8 !important; }
#mychat-search-input::placeholder { color: #999 !important; }

#mychat-search-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	pointer-events: none;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
}

#mychat-search-clear {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #d0d0d0;
	color: #fff;
	font-size: 14px;
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	font-weight: 700;
}

#mychat-search-clear:hover { background: #999; }

/* دکمه آرشیو */
#mychat-archive-row {
	padding: 4px 14px 10px;
	border-bottom: 1px solid #f4f4f4;
	display: none;
}

#mychat-archive-row.has-archives { display: block; }

#mychat-archive-btn {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 10px 4px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #333 !important;
	border-radius: 8px !important;
	box-sizing: border-box !important;
}

#mychat-archive-btn:hover { background: #fafafa !important; }
#mychat-archive-btn svg { flex-shrink: 0; }
#mychat-archive-count { margin-right: auto; color: #999; font-size: 12px; font-weight: 600; }

/* صفحه آرشیو */
#mychat-archive-view {
	position: fixed;
	inset: 0;
	background: #fff;
	display: none;
	flex-direction: column;
	z-index: 999998;
	direction: rtl;
}

#mychat-archive-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #f0f0f0;
	background: #fff;
	flex-shrink: 0;
}

#mychat-archive-header-title { font-weight: 800; font-size: 16px; flex: 1; }

#mychat-archive-close {
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #f4f4f4 !important;
}

#mychat-archive-list { flex: 1; overflow-y: auto; padding: 6px 0; }

/* Reaction به پیام */
.mychat-reaction-bar {
	display: flex;
	align-items: center;
	gap: 2px;
	position: absolute;
	bottom: -10px;
	flex-wrap: wrap;
	z-index: 5;
}

/* حباب پیام باید relative باشه تا reaction بتونه روش بشینه */
.mychat-msg-col {
	position: relative;
}

.mychat-msg-row.mine .mychat-reaction-bar {
	right: 10px;
}

.mychat-msg-row.theirs .mychat-reaction-bar {
	left: 10px;
}

.mychat-reaction-badge {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	background: #fff;
	border: 1.5px solid #e5e5e5;
	border-radius: 12px;
	padding: 1px 5px;
	font-size: 11px;
	font-weight: 700;
	color: #333;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.4;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	min-height: 20px;
	border-radius: 14px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
	padding: 1px 6px;
	min-height: 22px;
}

.mychat-reaction-badge .emoji {
	font-size: 13px;
	line-height: 1;
}

.mychat-reaction-badge:hover { background: #f5f5f5; border-color: #ccc; }
.mychat-reaction-badge.mine { background: #ede7ff; border-color: #c9b8f5; color: #6c4fd6; }
.mychat-reaction-badge .emoji { font-size: 14px; }

.mychat-reaction-picker {
	position: fixed;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.15);
	padding: 6px 10px;
	display: none;
	gap: 4px;
	z-index: 999999;
	animation: mychat-reaction-pop 0.15s ease;
}

@keyframes mychat-reaction-pop {
	from { transform: scale(0.8); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.mychat-reaction-picker .emoji-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.12s ease;
	line-height: 1;
	user-select: none;
}

.mychat-reaction-picker .emoji-btn:hover { transform: scale(1.25); background: #f0f0f0; }
.mychat-reaction-picker .emoji-btn.active { background: #ede7ff; }

/* نوار پیام‌های سنجاق‌شده */
#mychat-pinned-bar {
	background: #fffbe6;
	border-bottom: 1px solid #f5e8b0;
	padding: 8px 14px;
	font-size: 12.5px;
	color: #7a6a1e;
	display: none;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
}

#mychat-pinned-bar:hover { background: #fff6d0; }
#mychat-pinned-bar.show { display: flex; }

#mychat-pinned-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #d4a017;
}

#mychat-pinned-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#mychat-pinned-count {
	flex-shrink: 0;
	background: #f5e8b0;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	color: #5a4a0e;
}

.mychat-pinned-marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-left: 4px;
	color: #d4a017;
}

/* آیکن ساعت (پیام pending) */
.mychat-clock-icon {
	display: inline-flex;
	align-items: center;
	color: #999;
	margin-right: 2px;
}

.mychat-clock-icon svg { animation: mychat-clock-pulse 1.5s ease-in-out infinite; }

@keyframes mychat-clock-pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

.mychat-failed-icon {
	display: inline-flex;
	align-items: center;
	color: #e0245e;
	cursor: pointer;
	margin-right: 2px;
}

.mychat-failed-icon:hover { color: #c01a4d; }

.mychat-msg-row.mychat-pending .mychat-msg { opacity: 0.75; }
.mychat-msg-row.mychat-failed .mychat-msg { background: #ffe8e8 !important; border: 1px dashed #e0245e !important; }

.mychat-retry-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 3px !important;
	font-size: 11px !important;
	color: #e0245e !important;
	font-weight: 700 !important;
	padding: 2px 6px !important;
	border-radius: 8px !important;
	background: rgba(224, 36, 94, 0.1) !important;
}

/* نوتیفیکیشن درون‌صفحه */
#mychat-notification-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #111;
	padding: 12px 16px;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0,0,0,0.18);
	display: none;
	align-items: center;
	gap: 12px;
	z-index: 9999999;
	max-width: 90vw;
	min-width: 280px;
	direction: rtl;
	cursor: pointer;
}

#mychat-notification-toast.show {
	display: flex;
	animation: mychat-slide-down 0.25s ease;
}

@keyframes mychat-slide-down {
	from { transform: translate(-50%, -100%); opacity: 0; }
	to   { transform: translate(-50%, 0); opacity: 1; }
}

#mychat-notification-toast .notif-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: #e2e2e2;
}

#mychat-notification-toast .notif-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

#mychat-notification-toast .notif-name { font-weight: 800; font-size: 13.5px; color: #111; }
#mychat-notification-toast .notif-text { font-size: 12.5px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mychat-ticks.read { color: #6c4fd6; }

@media (max-width: 640px) {
	#mychat-search-wrap { padding: 10px 14px 8px; }
	#mychat-archive-view { direction: rtl; }
}



/* ==================== نوار افقی استوری‌ها ==================== */
#mychat-stories-strip-wrap {
	background: #fff;
	border-bottom: 1px solid #f4f4f4;
	padding: 8px 0;
	flex-shrink: 0;
	overflow: hidden;
}

#mychat-stories-strip {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 14px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	direction: ltr;
	justify-content: flex-start;
}

#mychat-stories-strip::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.mychat-story-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	flex-shrink: 0;
	width: 66px;
	user-select: none;
	transition: transform 0.15s ease;
	direction: rtl;
}

.mychat-story-item:hover {
	transform: scale(1.05);
}

.mychat-story-item .mychat-story-avatar-wrap {
	position: relative;
	width: 62px;
	height: 62px;
	padding: 2px;
	border-radius: 50%;
}

.mychat-story-item .mychat-story-avatar-wrap.has-story-new::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #FEDA75 0deg, #FA7E1E 72deg, #D62976 144deg, #962FBF 216deg, #4F5BD5 288deg, #FEDA75 360deg);
	animation: mychat-seller-ring-spin 4s linear infinite;
	z-index: 0;
	pointer-events: none;
}

.mychat-story-item .mychat-story-avatar-wrap.has-story-seen::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: #d5d5d5;
	z-index: 0;
	pointer-events: none;
}

.mychat-story-item .mychat-story-avatar-wrap .mychat-story-avatar {
	position: relative;
	z-index: 1;
}

.mychat-story-item .mychat-story-avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	display: block;
	background: #e2e2e2;
}

.mychat-story-item .mychat-story-name {
	font-size: 11px;
	font-weight: 600;
	color: #333;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 66px;
	line-height: 1.2;
}

/* وقتی کاربر استوری داره ولی عکسش توی دایره نشون داده می‌شه */
.mychat-story-item .mychat-story-avatar-wrap.is-status-media .mychat-story-avatar {
	object-fit: cover;
}

/* دکمه «وضعیت شما» توی این نوار */
.mychat-story-item.my-status-item .mychat-story-avatar-wrap {
	background: repeating-conic-gradient(from 0deg, #4facfe 0deg 14deg, transparent 14deg 22deg);
}

.mychat-story-item.my-status-item.has-own-status .mychat-story-avatar-wrap::before {
	content: "";
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, #FEDA75 0deg, #FA7E1E 72deg, #D62976 144deg, #962FBF 216deg, #4F5BD5 288deg, #FEDA75 360deg);
	animation: mychat-seller-ring-spin 4s linear infinite;
	z-index: 0;
	pointer-events: none;
}

.mychat-story-item.my-status-item.has-own-status .mychat-story-avatar-wrap .mychat-story-avatar {
	position: relative;
	z-index: 1;
}

.mychat-story-item.my-status-item .mychat-story-plus-icon {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #0095f6;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	z-index: 2;
}

.mychat-story-item.my-status-item.has-own-status .mychat-story-plus-icon {
	background: #6c4fd6;
}
/* ==================== پنهان کردن استایل‌های دایره قدیمی ==================== */
#mychat-my-status-row,
#mychat-my-status {
	display: none !important;
}



/* ==================== جستجو در مکالمه ==================== */
#mychat-conv-search-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 6px !important;
	color: #444 !important;
	flex-shrink: 0;
	border-radius: 50%;
	transition: background 0.15s ease;
}

#mychat-conv-search-btn:hover {
	background: #f4f4f4;
}

#mychat-conv-search {
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
	padding: 10px 14px;
	flex-shrink: 0;
}

#mychat-conv-search-field {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0f0f0;
	border-radius: 22px;
	padding: 6px 12px;
}

#mychat-conv-search-icon {
	color: #888;
	flex-shrink: 0;
}

#mychat-conv-search-input {
	flex: 1;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	font-size: 13px;
	font-family: inherit;
	color: #111;
	min-width: 0;
	padding: 4px 0 !important;
}

#mychat-conv-search-input::placeholder {
	color: #999;
}

#mychat-conv-search-count {
	font-size: 11.5px;
	color: #888;
	font-weight: 700;
	flex-shrink: 0;
	min-width: 30px;
	text-align: center;
}

#mychat-conv-search-prev,
#mychat-conv-search-next,
#mychat-conv-search-close {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 4px !important;
	color: #666 !important;
	border-radius: 50%;
	flex-shrink: 0;
	transition: background 0.12s ease, color 0.12s ease;
}

#mychat-conv-search-prev:hover,
#mychat-conv-search-next:hover,
#mychat-conv-search-close:hover {
	background: #e0e0e0;
	color: #111 !important;
}

#mychat-conv-search-prev:disabled,
#mychat-conv-search-next:disabled {
	opacity: 0.35;
	cursor: not-allowed !important;
}

.mychat-search-highlight {
	background: #fff3a0;
	color: #111;
	border-radius: 3px;
	padding: 1px 2px;
	box-shadow: 0 0 0 1px #e8d860;
}

.mychat-search-highlight.mychat-search-active {
	background: #ffd54a;
	box-shadow: 0 0 0 2px #f0a500;
}

#mychat-messages.mychat-searching .mychat-msg-row:not(.mychat-search-match) {
	display: none;
}

@media (max-width: 640px) {
	#mychat-conv-search {
		padding: 8px 10px;
	}
	#mychat-conv-search-field {
		gap: 6px;
		padding: 5px 10px;
	}
}



/* ==================== پاپ‌آپ انتخاب مدت موقعیت ==================== */
#mychat-location-duration-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: flex-end;
	justify-content: center;
	z-index: 9999999;
	direction: rtl;
}

#mychat-location-duration-box {
	background: #fff;
	width: 100%;
	max-width: 480px;
	border-radius: 20px 20px 0 0;
	padding: 8px 16px 20px;
	animation: mychat-sheet-up 0.25s ease;
	direction: rtl;
}

#mychat-location-duration-title {
	font-weight: 800;
	font-size: 15px;
	text-align: center;
	margin-top: 10px;
	color: #111;
}

#mychat-location-duration-subtitle {
	font-size: 12px;
	color: #888;
	text-align: center;
	margin-top: 4px;
	margin-bottom: 16px;
}

#mychat-location-duration-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.mychat-loc-dur {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 2px !important;
	background: #f9f7ff !important;
	border: 1px solid #ece6fb !important;
	border-radius: 12px !important;
	padding: 12px 16px !important;
	transition: background 0.15s ease !important;
	text-align: right !important;
	cursor: pointer !important;
}

.mychat-loc-dur:hover {
	background: #ece6fb !important;
}

.mychat-loc-dur .duration-label {
	font-size: 14px !important;
	font-weight: 800 !important;
	color: #2d2140 !important;
}

.mychat-loc-dur .duration-desc {
	font-size: 11.5px !important;
	color: #888 !important;
}

#mychat-location-duration-cancel {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	padding: 10px !important;
	color: #666 !important;
	font-size: 13px !important;
	background: #f4f4f4 !important;
	border-radius: 12px !important;
	cursor: pointer !important;
}

/* ==================== دکمه Location توی toolbar ==================== */
#mychat-location-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 4px !important;
	cursor: pointer !important;
}

#mychat-location-btn:hover {
	opacity: 0.7;
}

/* ==================== پیام Live Location ==================== */
.mychat-live-location {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	width: 260px;
	border: 1px solid #e5e5e5;
}

.mychat-live-loc-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: linear-gradient(90deg, #f0ebff, #f9f7ff);
	border-bottom: 1px solid #ece6fb;
}

.mychat-live-loc-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c81e1e;
	flex-shrink: 0;
	animation: mychat-pulse 1.5s ease-in-out infinite;
}

.mychat-live-loc-status-dot.is-active {
	background: #16a34a;
}

@keyframes mychat-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.3); opacity: 0.5; }
}

.mychat-live-loc-title {
	font-size: 12.5px;
	font-weight: 800;
	color: #2d2140;
	flex: 1;
}

.mychat-live-loc-timer {
	font-size: 11px;
	color: #6c4fd6;
	font-weight: 700;
	direction: ltr;
}

.mychat-live-loc-map {
	width: 100%;
	height: 160px;
	background: #f4f4f4;
}

.mychat-live-loc-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: #fff;
}

.mychat-live-loc-meta {
	font-size: 11px;
	color: #888;
}

.mychat-live-loc-stop-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 5px 10px !important;
	background: #ffe8e8 !important;
	color: #c81e1e !important;
	border-radius: 8px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
}

.mychat-live-loc-stop-btn:hover {
	background: #ffd5d5 !important;
}

.mychat-live-loc-expired {
	padding: 8px 12px;
	text-align: center;
	font-size: 11.5px;
	color: #999;
	background: #f9f9f9;
}

.mychat-live-loc-link {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	width: 100% !important;
	padding: 10px !important;
	background: #f9f7ff !important;
	color: #6c4fd6 !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}


/* ==================== مودال تمام‌صفحه نقشه ==================== */
#mychat-live-location-modal {
	position: fixed;
	inset: 0;
	background: #000;
	z-index: 99999999;
	display: none;
	flex-direction: column;
	direction: rtl;
}

#mychat-live-location-modal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(10px);
	flex-shrink: 0;
	position: relative;
	z-index: 10;
}

#mychat-live-location-modal-close {
	flex-shrink: 0 !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.15) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
}

#mychat-live-location-modal-close:hover {
	background: rgba(255, 255, 255, 0.25) !important;
}

#mychat-live-location-modal-info {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	overflow: hidden;
}

#mychat-live-location-modal-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

#mychat-live-location-modal-name {
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#mychat-live-location-modal-status {
	color: #b8b8b8;
	font-size: 11.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#mychat-live-location-modal-timer {
	color: #6c4fd6;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	padding: 6px 12px;
	background: rgba(108, 79, 214, 0.15);
	border-radius: 20px;
}

#mychat-live-location-modal-map {
	flex: 1;
	width: 100%;
	min-height: 0;
	background: #1a1a1a;
}

/* نشانگر روی نقشه بزرگ */
#mychat-live-location-modal-map .leaflet-marker-icon {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* وقتی نقشه کوچیک قابل کلیک باشه */
.mychat-live-loc-map {
	cursor: pointer;
	transition: transform 0.15s ease;
}

.mychat-live-loc-map:active {
	transform: scale(0.98);
}

.mychat-msg-row.mychat-has-reaction {
	margin-bottom: 20px;
}

/* ==================== Link Preview ==================== */
.mychat-link-preview {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	margin-top: 8px;
	text-decoration: none !important;
	color: inherit !important;
	background: rgba(0,0,0,0.05);
	transition: background 0.15s ease;
	max-width: 100%;
}

.mychat-link-preview:hover {
	background: #fafafa;
	border-color: #d0d0d0;
}

.mychat-link-preview-image {
	width: 100%;
	max-height: 180px;
	overflow: hidden;
	background: #f5f5f5;
}

.mychat-link-preview-image img {
	width: 100%;
	height: auto;
	max-height: 180px;
	object-fit: cover;
	display: block;
}

.mychat-link-preview-content {
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mychat-link-preview-site {
	font-size: 11px;
	color: #888;
	text-transform: lowercase;
	line-height: 1.3;
}

.mychat-link-preview-title {
	font-size: 13px;
	font-weight: 800;
	color: #111;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mychat-link-preview-desc {
	font-size: 11.5px;
	color: #666;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* موبایل */
@media (max-width: 640px) {
	.mychat-link-preview {
		max-width: 240px;
	}
	.mychat-link-preview-image {
		max-height: 150px;
	}
	.mychat-link-preview-image img {
		max-height: 150px;
	}
}


/* ==================== نوتیفیکیشن مهمان (کاربر لاگین نکرده) ==================== */
.mychat-guest-notice {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	background: #ffffff;
	border-radius: 20px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
	max-width: 420px;
	width: calc(100% - 32px);
	direction: rtl;
	z-index: 9999;
	animation: mychatGuestSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

@keyframes mychatGuestSlideUp {
	from {
		opacity: 0;
		transform: translate(-50%, 20px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.mychat-guest-notice-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f5f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mychat-guest-notice-icon svg {
	display: block;
}

.mychat-guest-notice-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
}

.mychat-guest-notice-text strong {
	font-size: 14px;
	font-weight: 800;
	color: #111;
	line-height: 1.4;
}

.mychat-guest-notice-text span {
	font-size: 12.5px;
	color: #666;
	line-height: 1.5;
}

.mychat-guest-notice-btn {
	flex-shrink: 0;
	background: #111;
	color: #fff !important;
	text-decoration: none !important;
	padding: 10px 18px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	transition: background 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.mychat-guest-notice-btn:hover {
	background: #333;
	transform: translateY(-1px);
}

.mychat-guest-notice-btn:active {
	transform: translateY(0);
}

/* موبایل */
@media (max-width: 640px) {
	.mychat-guest-notice {
		bottom: 90px;
		flex-wrap: wrap;
		padding: 14px 16px;
	}
	.mychat-guest-notice-text {
		flex: 1 1 auto;
		min-width: 0;
	}
	.mychat-guest-notice-btn {
		width: 100%;
		text-align: center;
	}
}

/* پس‌زمینه صفحه چت سفید */
body.page-id-17923,
body.page-id-17923 #page,
body.page-id-17923 #content,
body.page-id-17923 .site-main {
	background: #ffffff !important;
}




/* صفحه چت — یکدست خاکستری روشن */
body.page-id-17923,
body.page-id-17923 #page,
body.page-id-17923 #content,
body.page-id-17923 .site,
body.page-id-17923 .site-content,
body.page-id-17923 .site-main,
body.page-id-17923 .elementor,
body.page-id-17923 .elementor-page {
    background: rgb(245, 245, 247) !important;
    background-color: rgb(245, 245, 247) !important;
}

/* جلوگیری از فشرده‌شدن پیام‌ها تا ارتفاع صفر در مکالمه‌های طولانی */
#mychat-messages > * {
	flex-shrink: 0 !important;
}


/* ===== فوتر سایت داخل مکالمه همیشه مخفی بماند ===== */
body.mychat-hide-footer .site-footer,
body.mychat-hide-footer footer.site-footer,
body.mychat-hide-footer #colophon,
body.mychat-hide-footer .elementor-location-footer,
body.mychat-hide-footer .donyar-footer,
body.mychat-hide-footer .app-footer,
body.mychat-hide-footer nav.bottom-nav {
	display: none !important;
}

/* ===== ری‌اکشن مثل تلگرام/واتساپ: کامل و روی لبه‌ی پایین حباب ===== */
.mychat-reaction-bar {
	position: relative !important;
	bottom: auto !important;
	margin-top: -11px;
	margin-bottom: 1px;
	width: max-content;
	max-width: 100%;
	z-index: 5;
}
.mychat-msg-row.mine .mychat-reaction-bar {
	right: auto !important;
	margin-left: auto;
	margin-right: 10px;
}
.mychat-msg-row.theirs .mychat-reaction-bar {
	left: auto !important;
	margin-right: auto;
	margin-left: 10px;
}
.mychat-msg-row:has(.mychat-reaction-bar) {
	margin-bottom: 4px;
}
.mychat-reaction-badge {
	border: 2px solid #fff !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	padding: 2px 6px !important;
	line-height: 1.2;
}
.mychat-reaction-badge .emoji {
	font-size: 14px;
	line-height: 1;
}


/* ===== حلقه‌ی وضعیت‌ها: بنفش سایت + جرقه‌ی نارنجی (به‌جای گرادیان اینستاگرامی) ===== */
:root {
	--mychat-ring: conic-gradient(from 0deg, #4b22b0 0deg, #7c5cf0 80deg, #c4b5fd 150deg, #7c5cf0 220deg, #4b22b0 280deg, #ff8a3d 322deg, #ffb877 338deg, #4b22b0 360deg);
	--mychat-ring-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}

/* نوار استوری‌ها */
.mychat-story-item .mychat-story-avatar-wrap.has-story-new,
.mychat-story-item.my-status-item.has-own-status .mychat-story-avatar-wrap {
	filter: drop-shadow(0 1px 5px rgba(124, 92, 240, 0.5));
}
.mychat-story-item .mychat-story-avatar-wrap.has-story-new::before,
.mychat-story-item.my-status-item.has-own-status .mychat-story-avatar-wrap::before {
	inset: -3px;
	background: var(--mychat-ring);
	-webkit-mask: var(--mychat-ring-mask);
	mask: var(--mychat-ring-mask);
	animation: mychat-seller-ring-spin 6s linear infinite;
}

/* وضعیت خودم بالای لیست */
#mychat-my-status.has-own-status .mychat-avatar-wrap {
	filter: drop-shadow(0 1px 5px rgba(124, 92, 240, 0.5));
}
#mychat-my-status.has-own-status .mychat-avatar-wrap::before {
	background: var(--mychat-ring);
	animation: mychat-ring-spin 6s linear infinite;
}

/* آواتارهای لیست مکالمات و هدر */
.mychat-avatar-wrap.has-status.status-new,
.mychat-avatar-wrap.has-story.story-new {
	background: var(--mychat-ring);
	box-shadow: 0 2px 8px rgba(108, 79, 214, 0.35);
}

/* آواتار فروشنده در صفحه‌ی آگهی */
.mychat-seller-avatar-ring.has-status.status-new {
	background: none;
	animation: none;
	filter: drop-shadow(0 1px 5px rgba(124, 92, 240, 0.5));
}
.mychat-seller-avatar-ring.has-status.status-new::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--mychat-ring);
	-webkit-mask: var(--mychat-ring-mask);
	mask: var(--mychat-ring-mask);
	animation: mychat-seller-ring-spin 6s linear infinite;
	pointer-events: none;
}
.mychat-seller-avatar-ring.has-status .mychat-seller-avatar {
	position: relative;
	z-index: 1;
}

/* حلقه‌ی «وضعیت جدید بگذار» (خط‌چین) هم بنفش */
#mychat-my-status .mychat-avatar-wrap::before {
	background: repeating-conic-gradient(from 0deg, #8b6cf0 0deg 14deg, transparent 14deg 22deg);
}
.mychat-story-item.my-status-item .mychat-story-avatar-wrap {
	background: repeating-conic-gradient(from 0deg, #8b6cf0 0deg 14deg, transparent 14deg 22deg);
}

@media (prefers-reduced-motion: reduce) {
	.mychat-story-item .mychat-story-avatar-wrap::before,
	#mychat-my-status .mychat-avatar-wrap::before,
	.mychat-seller-avatar-ring.has-status.status-new::before { animation: none !important; }
}


/* ===== آپلود عکس مثل تلگرام: دایره‌ی پیشرفت روی پیش‌نمایش ===== */
.mychat-msg.mychat-msg-media { position: relative; }
.mychat-msg-row.mychat-pending .mychat-msg-image { filter: brightness(0.82); }
.mychat-upload-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	border-radius: inherit;
}
.mychat-upload-circle {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(20, 12, 40, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mychat-upload-ring {
	position: absolute;
	inset: 4px;
	width: 44px;
	height: 44px;
	animation: mychat-upload-spin 1.1s linear infinite;
}
.mychat-upload-ring circle { fill: none; stroke-width: 3; }
.mychat-upload-ring .trk { stroke: rgba(255, 255, 255, 0.2); }
.mychat-upload-ring .bar {
	stroke: #fff;
	stroke-linecap: round;
	transition: stroke-dashoffset 0.25s ease;
	transform-origin: 50% 50%;
	transform: rotate(-90deg);
}
.mychat-upload-retry { display: none; }
.mychat-upload-overlay[data-state="failed"] .mychat-upload-ring,
.mychat-upload-overlay[data-state="failed"] .mychat-upload-x { display: none; }
.mychat-upload-overlay[data-state="failed"] .mychat-upload-retry { display: block; }
.mychat-upload-overlay[data-state="failed"] .mychat-upload-circle { background: rgba(208, 47, 47, 0.8); }
@keyframes mychat-upload-spin { to { transform: rotate(360deg); } }

.mychat-msg-row.mychat-pending .mychat-msg.mychat-msg-media { opacity: 1; }
.mychat-msg-row.mychat-failed .mychat-msg.mychat-msg-media {
	background: transparent !important;
	border: 0 !important;
}


/* ===== «وضعیت شما»: حلقه‌ی مداری (۱۲ پره‌ی بنفش با یک پره‌ی نارنجی) + دکمه‌ی + کامل ===== */
.mychat-story-item.my-status-item .mychat-story-avatar-wrap {
	background: none !important;
	isolation: isolate;
	overflow: visible;
}
.mychat-story-item.my-status-item:not(.has-own-status) .mychat-story-avatar-wrap::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background:
		conic-gradient(from -4deg, #ff8a3d 0 8deg, transparent 8deg 360deg),
		repeating-conic-gradient(from -4deg, #8b6cf0 0 8deg, transparent 8deg 30deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
	animation: mychat-seller-ring-spin 18s linear infinite;
	z-index: 0;
	pointer-events: none;
}
.mychat-story-item.my-status-item .mychat-story-plus-icon {
	right: -1px;
	bottom: -1px;
	width: 22px;
	height: 22px;
	background: linear-gradient(135deg, #8b6cf0, #4b22b0);
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(75, 34, 176, 0.45);
	font-size: 0;
	line-height: 0;
	z-index: 5;
}
.mychat-story-item.my-status-item .mychat-story-plus-icon svg { display: block; }
.mychat-story-item.my-status-item.has-own-status .mychat-story-plus-icon {
	background: linear-gradient(135deg, #8b6cf0, #4b22b0);
}
#mychat-stories-strip { padding: 8px 18px 6px; }


/* علامت + با CSS خالص (بدون SVG/متن) تا هیچ استایل قالب آن را نبُرد */
.mychat-story-item.my-status-item .mychat-story-plus-icon {
	box-sizing: border-box;
	display: block;
	padding: 0;
	font-size: 0;
	line-height: 0;
	overflow: visible;
}
.mychat-story-item.my-status-item .mychat-story-plus-icon svg { display: none !important; }
.mychat-story-item.my-status-item .mychat-story-plus-icon::before,
.mychat-story-item.my-status-item .mychat-story-plus-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	border-radius: 2px;
	transform: translate(-50%, -50%);
}
.mychat-story-item.my-status-item .mychat-story-plus-icon::before { width: 10px; height: 2.6px; }
.mychat-story-item.my-status-item .mychat-story-plus-icon::after  { width: 2.6px; height: 10px; }


/* ===== دکمه‌ی + «وضعیت شما»: مستقل از حلقه، مستقیم روی خود آیتم ===== */
.mychat-story-item.my-status-item { position: relative; }
.mychat-story-item.my-status-item .mychat-story-plus-icon {
	position: absolute !important;
	top: 41px !important;
	right: 1px !important;
	bottom: auto !important;
	left: auto !important;
	width: 22px !important;
	height: 22px !important;
	z-index: 10 !important;
}

/* ===== ضربدر بستن صفحه‌ی ساخت وضعیت: کمی پایین‌تر ===== */
#mychat-status-compose-close {
	top: calc(env(safe-area-inset-top, 0px) + 38px) !important;
}


/* ضربدر صفحه‌ی ساخت وضعیت: قانون «#mychat-status-compose button { all: unset }» موقعیتش را پاک می‌کرد؛
   با ویژگی انتخابگر بالاتر دوباره اعمال می‌شود */
#mychat-status-compose #mychat-status-compose-close {
	position: absolute !important;
	top: calc(env(safe-area-inset-top, 0px) + 42px) !important;
	right: 16px !important;
	left: auto !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.25) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 5 !important;
}


/* ===== پنل شکلک جدید: دسته‌بندی + شکلک‌های بومی دستگاه ===== */
#mychat-emoji-panel {
	display: flex;
	flex-direction: column;
	grid-template-columns: none;
	max-height: 290px;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 16px;
	box-shadow: 0 -4px 18px rgba(75, 34, 176, 0.06);
}
.mychat-emoji-tabs {
	display: flex;
	flex-shrink: 0;
	gap: 2px;
	padding: 6px 8px 0;
	border-bottom: 1px solid #f0eef8;
	overflow-x: auto;
	scrollbar-width: none;
	direction: rtl;
}
.mychat-emoji-tabs::-webkit-scrollbar { display: none; }
#mychat-emoji-panel .mychat-emoji-tab {
	all: unset !important;
	box-sizing: border-box !important;
	flex: 0 0 auto;
	width: 38px;
	height: 34px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 19px !important;
	line-height: 1;
	cursor: pointer !important;
	opacity: 0.55;
	border-bottom: 3px solid transparent !important;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif !important;
	transition: opacity 0.15s ease;
}
#mychat-emoji-panel .mychat-emoji-tab.active {
	opacity: 1;
	border-bottom-color: #6c4fd6 !important;
}
.mychat-emoji-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 4px 8px 10px;
	scrollbar-width: thin;
	scrollbar-color: #ddd6f5 transparent;
	-webkit-overflow-scrolling: touch;
	position: relative;
}
.mychat-emoji-scroll::-webkit-scrollbar { width: 4px; }
.mychat-emoji-scroll::-webkit-scrollbar-thumb { background: #ddd6f5; border-radius: 4px; }
.mychat-emoji-cat-title {
	font-size: 11.5px;
	font-weight: 700;
	color: #8a84a6;
	padding: 10px 4px 4px;
}
.mychat-emoji-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 2px;
	direction: ltr;
}
#mychat-emoji-panel .mychat-emoji-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0;
	font-size: 27px;
	line-height: 1;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
	border-radius: 10px;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.1s ease, transform 0.08s ease;
}
#mychat-emoji-panel .mychat-emoji-item:hover,
#mychat-emoji-panel .mychat-emoji-item:active {
	background: #eee6fb;
	transform: scale(1.12);
}

/* ===== v9: بج خوانده‌نشده پایین‌تر از ساعت، آیکن‌های بزرگ‌تر، نوار ثابت پایین ===== */
.mychat-conv-item .mychat-badge { top: 50% !important; margin-top: 0 !important; transform: translateY(2px); }

/* آیکن‌های نوار ابزار و ارسال داخل چت */
#mychat-input-toolbar { gap: 20px; }
#mychat-input-toolbar button svg { width: 26px !important; height: 26px !important; }
#mychat-send-btn svg { width: 28px !important; height: 28px !important; }
#mychat-record-cancel svg { width: 22px !important; height: 22px !important; }

/* آیکن‌های حالت انتخاب و منوی پیام */
#mychat-select-delete svg { width: 26px !important; height: 26px !important; }
#mychat-select-cancel { font-size: 20px !important; }
#mychat-select-count { font-size: 14px; }
#mychat-msg-menu button svg { width: 24px !important; height: 24px !important; }

/* ===== نوار پیام ثابت پایین؛ فقط پیام‌ها اسکرول می‌شوند ===== */
#mychat-input-area { flex-shrink: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
#mychat-messages { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

html.mychat-locked,
body.mychat-locked {
	overflow: hidden !important;
	overscroll-behavior: none !important;
	height: 100% !important;
}
@media (max-width: 640px) {
	#mychat-app.mychat-conv-open {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		z-index: 99998;
	}
}

/* ===== v9.1 ===== */
/* آخرین بازدید جای ساعت قبلی (بالا-چپ ردیف) */
.mychat-conv-top .mychat-conv-time.mychat-lastseen-text { font-size: 11.5px; color: #9a9a9a; padding: 0; }
.mychat-conv-top .mychat-conv-time.mychat-lastseen-text.is-online { color: #31c76b; }

/* ایموجی‌ها: داخل چت و داخل انتخاب بزرگ‌تر */
.mychat-msg img.emoji { width: 1.55em !important; height: 1.55em !important; vertical-align: -0.35em !important; margin: 0 2px !important; }
.mychat-last-msg img.emoji { width: 1.3em !important; height: 1.3em !important; }
#mychat-emoji-panel .mychat-emoji-item { font-size: 30px !important; padding: 8px 0 !important; }
#mychat-emoji-panel .mychat-emoji-item img.emoji { width: 1.25em !important; height: 1.25em !important; }
.mychat-reaction-badge .emoji { font-size: 17px !important; }
.mychat-reaction-badge img.emoji { width: 18px !important; height: 18px !important; }

/* تب‌های دسته‌بندی ایموجی: بزرگ‌تر و فاصله‌دار */
.mychat-emoji-tabs { gap: 10px !important; padding: 10px 12px 0 !important; }
#mychat-emoji-panel .mychat-emoji-tab { width: 46px !important; height: 44px !important; font-size: 26px !important; }
#mychat-emoji-panel .mychat-emoji-tab img.emoji { width: 26px !important; height: 26px !important; }

/* پیام صوتی: بنفش، درشت‌تر، موج و دکمه پخش واضح */
#mychat-app .mychat-voice-player {
	min-width: 250px; max-width: 290px; gap: 12px; padding: 12px 14px;
	background: #ECE6FB !important; border-radius: 20px;
}
#mychat-app .mychat-msg-row.theirs .mychat-voice-player { background: #ECE6FB !important; }
#mychat-app .mychat-voice-play-btn {
	all: unset !important;
	box-sizing: border-box !important;
	flex-shrink: 0 !important;
	width: 44px !important; height: 44px !important;
	border-radius: 50% !important;
	background: #6c4fd6 !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(108, 79, 214, 0.35) !important;
}
#mychat-app .mychat-voice-play-btn svg { width: 22px !important; height: 22px !important; fill: #fff !important; }
#mychat-app .mychat-voice-wave-canvas { height: 44px; }
#mychat-app .mychat-voice-duration { font-size: 12.5px; font-weight: 700; color: #6c4fd6; min-width: 36px; }
#mychat-app .mychat-voice-speed,
#mychat-app .mychat-msg-row.theirs .mychat-voice-speed { font-size: 12.5px; color: #6c4fd6; background: rgba(108, 79, 214, 0.16); padding: 4px 8px; }

/* ===== v9.2: شکلک درشت در پیام‌های ارسالی ===== */
.mychat-msg .mychat-emo { font-size: 1.6em; line-height: 1.15; vertical-align: -0.12em; }
.mychat-msg.mychat-emoji-only { padding-top: 6px; padding-bottom: 6px; }
.mychat-msg.mychat-emoji-only .mychat-emo { line-height: 1.2; vertical-align: baseline; }
.mychat-msg.mychat-emoji-xl .mychat-emo { font-size: 52px; }
.mychat-msg.mychat-emoji-lg .mychat-emo { font-size: 40px; }
.mychat-msg.mychat-emoji-md .mychat-emo { font-size: 32px; }
.mychat-msg.mychat-emoji-only img.emoji { width: 1em !important; height: 1em !important; }