.share-icon {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
	color: #858E99;
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
}

.share-icon svg {
	margin-right: 10px;
}

.share-icon:hover {
	color: var(--lm-accent, #0f0ef5);
}

.share-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
}

.share-popup-content {
	background: #1e1e1e;
	border: 1px solid #ffffff1a;
	width: 85%;
	max-width: 400px;
	margin: 25% auto;
	padding: 25px 20px;
	border-radius: 15px;
	text-align: center;
	position: relative;
	direction: rtl;
	font-family: inherit;
}

.light-mode .share-popup-content {
	background: white;
	border-color: rgba(0, 0, 0, 0.08);
}

.close-popup {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 28px;
	cursor: pointer;
	color: #999;
	transition: color 0.2s;
}

.close-popup:hover {
	color: #e8e8e8;
}

.light-mode .close-popup:hover {
	color: #333;
}

.share-popup-content h3 {
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
	margin: 0 0 10px 0;
	font-size: 20px;
	color: #e8e8e8;
}

.light-mode .share-popup-content h3 {
	color: #333;
}

.share-popup-content p {
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
	font-size: 14px;
	color: #a0a6ad;
	word-break: break-word;
}

.light-mode .share-popup-content p {
	color: #666;
}

.share-link-row {
	margin: 16px 0;
}

.share-link-row__field {
	display: flex;
	align-items: stretch;
	direction: ltr;
	border: 1px solid #393d40;
	border-radius: 8px;
	background: #2a2a2a;
	overflow: hidden;
	transition: border-color 0.2s;
}

.share-link-row__field:focus-within {
	border-color: var(--lm-accent, #0f0ef5);
}

.light-mode .share-link-row__field {
	background: #fff;
	border-color: #a1acb2;
}

.share-link-row__input {
	flex: 1;
	min-width: 0;
	padding: 10px 14px;
	border: none;
	background: transparent;
	color: #f5f5f5;
	font-family: "peyda", Sans-serif;
	font-size: 13px;
	line-height: 1.4;
	outline: none;
	cursor: default;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	direction: ltr;
	text-align: left;
	user-select: all;
	-webkit-user-select: all;
}

.light-mode .share-link-row__input {
	color: #191919;
}

.share-link-row__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	padding: 0;
	border: none;
	border-left: 1px solid #393d40;
	background: transparent;
	color: #a0a6ad;
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.light-mode .share-link-row__copy {
	border-left-color: #a1acb2;
	color: #666;
}

.share-link-row__copy:hover {
	color: var(--lm-accent, #0f0ef5);
	background: rgba(15, 14, 245, 0.08);
}

.share-link-row__copy.is-copied {
	color: #a5d6a7;
}

.light-mode .share-link-row__copy.is-copied {
	color: #2e7d32;
}

.share-link-row__icon {
	display: block;
	stroke: currentColor;
	fill: none;
}

.share-link-row__icon[hidden] {
	display: none;
}

.share-buttons {
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 14px;
	text-decoration: none;
	border-radius: 10px;
	border: 1px solid #ffffff1a;
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.share-btn:hover {
	opacity: 1;
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.28);
}

.share-btn span {
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
}

.share-btn svg {
	flex-shrink: 0;
}

.share-telegram {
	background: rgba(42, 171, 238, 0.18);
	color: #7ad4ff !important;
}

.share-telegram:hover {
	background: rgba(42, 171, 238, 0.3);
}

.share-telegram svg {
	fill: currentColor;
}

.share-whatsapp {
	background: rgba(37, 211, 102, 0.16);
	color: #6ee7a0 !important;
}

.share-whatsapp:hover {
	background: rgba(37, 211, 102, 0.28);
}

.share-whatsapp svg {
	fill: currentColor;
}

.share-x {
	background: rgba(231, 233, 234, 0.08);
	color: #e7e9ea !important;
}

.share-x:hover {
	background: rgba(231, 233, 234, 0.16);
}

.share-x svg {
	fill: currentColor;
}

.share-instagram {
	background: rgba(228, 64, 95, 0.16);
	color: #f48fb1 !important;
}

.share-instagram:hover {
	background: rgba(228, 64, 95, 0.28);
}

.share-instagram svg {
	stroke: currentColor;
	fill: none;
}

.light-mode .share-btn {
	border-color: rgba(0, 0, 0, 0.08);
}

.light-mode .share-telegram {
	background: rgba(42, 171, 238, 0.12);
	color: #0288d1 !important;
}

.light-mode .share-whatsapp {
	background: rgba(37, 211, 102, 0.12);
	color: #1b8f4a !important;
}

.light-mode .share-x {
	background: rgba(0, 0, 0, 0.06);
	color: #191919 !important;
}

.light-mode .share-instagram {
	background: rgba(228, 64, 95, 0.1);
	color: #c2185b !important;
}

.share-instagram-toast {
	margin-top: 12px;
	padding: 10px 12px;
	background: #272727;
	color: #a5d6a7;
	border: 1px solid #3d5c45;
	border-radius: 8px;
	font-size: 13px;
	font-family: var(--font-sans, "Vazirmatn", ui-sans-serif, system-ui, sans-serif);
	line-height: 1.4;
}

.light-mode .share-instagram-toast {
	background: #e8f5e9;
	color: #2e7d32;
	border-color: #c8e6c9;
}
