/* ── Bale messenger (شبیه اپ واقعی بله) ── */
.bale-messenger {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 380px;
	background: #eef1f4;
	border-radius: 28px;
	overflow: hidden;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.bale-msgr-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #fff;
	border-bottom: 1px solid #e0e4e8;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.bale-msgr-back {
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	color: #27ae60;
	font-size: 18px;
	line-height: 1;
	cursor: default;
	flex-shrink: 0;
}

.bale-msgr-av {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.bale-msgr-av.bot {
	border-radius: 10px;
	padding: 4px;
	background: #fff;
	box-shadow: 0 0 0 1px #e8ecef;
}

.bale-msgr-title {
	flex: 1;
	min-width: 0;
}

.bale-msgr-title strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a1a;
}

.bale-msgr-title small {
	font-size: 11px;
	color: #27ae60;
}

.bale-msgr-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bale-bot-card {
	background: #fff;
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,.08);
	border-right: 3px solid #27ae60;
	max-width: 92%;
}

.bale-bot-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.bale-bot-card-head img {
	width: 22px;
	height: 22px;
	border-radius: 6px;
}

.bale-bot-card-head strong {
	font-size: 11px;
	color: #27ae60;
}

.bale-bot-card p {
	margin: 0;
	font-size: 11px;
	line-height: 1.65;
	color: #333;
}

.bale-bot-card .bale-inline-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.bale-inline-btns span {
	font-size: 10px;
	padding: 6px 12px;
	border-radius: 20px;
	background: #e8f5e9;
	color: #27ae60;
	font-weight: 600;
	border: 1px solid #c8e6c9;
}

.bale-bubble-out {
	align-self: flex-start;
	max-width: 78%;
	background: #c8e6c9;
	color: #1b5e20;
	padding: 8px 12px;
	border-radius: 16px 16px 4px 16px;
	font-size: 11px;
	line-height: 1.55;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

.bale-bubble-meta {
	font-size: 9px;
	color: #558b2f;
	margin-top: 4px;
	text-align: left;
}

.bale-sync-note {
	align-self: center;
	font-size: 9px;
	color: #27ae60;
	background: rgba(39,174,96,.1);
	padding: 6px 12px;
	border-radius: 999px;
}

.bale-msgr-foot {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border-top: 1px solid #e0e4e8;
}

.bale-msgr-foot .ico {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #f0f2f5;
	color: #27ae60;
	font-size: 14px;
	cursor: default;
	flex-shrink: 0;
}

.bale-msgr-input {
	flex: 1;
	background: #f0f2f5;
	border-radius: 22px;
	padding: 8px 14px;
	font-size: 11px;
	color: #999;
}

.bale-msgr-send {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #27ae60;
	color: #fff;
	cursor: default;
	flex-shrink: 0;
}

/* ── Telegram messenger (شبیه تلگرام) ── */
.tg-messenger {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 380px;
	background: #0e1621;
	border-radius: 28px;
	overflow: hidden;
	font-family: 'Vazirmatn', -apple-system, sans-serif;
}

.tg-msgr-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #17212b;
	border-bottom: 1px solid rgba(255,255,255,.06);
}

.tg-msgr-back {
	width: 28px;
	border: none;
	background: transparent;
	color: #2aabee;
	font-size: 20px;
	cursor: default;
}

.tg-msgr-av {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2aabee, #229ed9);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tg-msgr-av svg { width: 22px; height: 22px; fill: #fff; }

.tg-msgr-title { flex: 1; min-width: 0; }

.tg-msgr-title strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.tg-msgr-title small {
	font-size: 11px;
	color: #2aabee;
}

.tg-msgr-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background:
		url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E"),
		#0e1621;
}

.tg-incoming {
	align-self: flex-end;
	max-width: 82%;
	background: #182533;
	color: #fff;
	padding: 8px 12px 6px;
	border-radius: 12px 12px 12px 4px;
	font-size: 11px;
	line-height: 1.55;
	position: relative;
	box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.tg-incoming .tg-sender {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: #2aabee;
	margin-bottom: 3px;
}

.tg-incoming .tg-time {
	display: block;
	font-size: 9px;
	color: rgba(255,255,255,.45);
	text-align: left;
	margin-top: 4px;
}

.tg-outgoing {
	align-self: flex-start;
	max-width: 78%;
	background: #2b5278;
	color: #fff;
	padding: 8px 12px 6px;
	border-radius: 12px 12px 4px 12px;
	font-size: 11px;
	line-height: 1.55;
	box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.tg-outgoing .tg-time {
	display: block;
	font-size: 9px;
	color: rgba(255,255,255,.5);
	text-align: left;
	margin-top: 4px;
}

.tg-outgoing .tg-time::after {
	content: ' ✓✓';
	color: #2aabee;
}

.tg-notif-card {
	align-self: center;
	width: 94%;
	background: rgba(23,33,43,.95);
	border: 1px solid rgba(42,171,238,.25);
	border-radius: 12px;
	padding: 10px 12px;
}

.tg-notif-card strong {
	display: block;
	font-size: 11px;
	color: #2aabee;
	margin-bottom: 6px;
}

.tg-notif-card p {
	margin: 0;
	font-size: 10px;
	line-height: 1.6;
	color: rgba(255,255,255,.85);
}

.tg-notif-card .tg-reply-btn {
	display: inline-block;
	margin-top: 8px;
	font-size: 10px;
	padding: 5px 14px;
	border-radius: 8px;
	background: rgba(42,171,238,.15);
	color: #2aabee;
	border: 1px solid rgba(42,171,238,.3);
}

.tg-msgr-foot {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	background: #17212b;
	border-top: 1px solid rgba(255,255,255,.06);
}

.tg-msgr-foot .ico {
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	color: #6d7f8f;
	font-size: 18px;
	cursor: default;
}

.tg-msgr-input {
	flex: 1;
	background: #242f3d;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 11px;
	color: #6d7f8f;
}

.tg-msgr-mic {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #2aabee;
	color: #fff;
	cursor: default;
}

/* ── ویجت گپستان داخل موبایل (هماهنگ با gcd) ── */
.gcd-phone-wrap {
	height: 100%;
	min-height: 360px;
	background: #0a0f14;
	border-radius: 24px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 8px;
}

.gcd-phone-wrap .gcd-float-mini {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--gcd-surface, #17212b);
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.06);
}

.gcd-phone-wrap .gcd-float-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
}

.gcd-phone-wrap .gcd-float-top span { color: rgba(255,255,255,.85); }

.gcd-phone-wrap .gcd-head { padding: 8px 10px; min-height: 42px; }
.gcd-phone-wrap .gcd-title h3 { font-size: 0.82rem; }
.gcd-phone-wrap .gcd-messages { padding: 8px 10px; flex: 1; }
.gcd-phone-wrap .gcd-bubble { font-size: 0.78rem; padding: 8px 10px; }
.gcd-phone-wrap .gcd-composer { padding: 6px 8px; }
.gcd-phone-wrap .gcd-composer-row { gap: 4px; }
.gcd-phone-wrap .gcd-input-wrap textarea { font-size: 0.75rem; min-height: 32px; }
.gcd-phone-wrap .gcd-send { width: 32px; height: 32px; }
.gcd-phone-wrap .gcd-tools .gcd-icon-btn { width: 28px; height: 28px; }
