.pfe-share-theme {
	--pfe-text: #0f172a;
	--pfe-text-muted: #475569;
	--pfe-surface: #ffffff;
	--pfe-border: rgba(226, 232, 240, 0.9);
	--pfe-overlay: rgba(15, 23, 42, 0.36);
	--pfe-shadow: 0 26px 56px rgba(15, 23, 42, 0.18);
	--pfe-icon-shadow: 0 18px 28px rgba(15, 23, 42, 0.14);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pfe-text);
}

.pfe-share-theme *,
.pfe-share-theme *::before,
.pfe-share-theme *::after {
	box-sizing: border-box;
}

.pfe-share-theme button,
.pfe-share-theme a {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.pfe-share-theme ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfe-share-theme button:focus-visible,
.pfe-share-theme a:focus-visible {
	outline: 3px solid rgba(59, 130, 246, 0.9);
	outline-offset: 3px;
}

.pfe-share__launcher {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}

.pfe-share__halo {
	position: absolute;
	inset: -4px;
	border-radius: 999px;
	pointer-events: none;
	background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(59, 130, 246, 0) 70%);
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.25s ease, transform 0.25s ease;
	animation: none;
}

.pfe-share__launcher:hover .pfe-share__halo {
	animation: pfeShareHaloHover 1600ms ease-in-out infinite;
}

.pfe-share__launcher-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.pfe-share__launcher.is-pressed .pfe-share__halo,
.pfe-share__launcher.is-pressed:hover .pfe-share__halo {
	animation: pfeShareHaloPulse 420ms ease-out forwards;
}

.pfe-share__portal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.pfe-share__overlay {
	position: fixed;
	inset: 0;
	background: var(--pfe-overlay);
	backdrop-filter: blur(12px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms ease;
}

.pfe-share__overlay[hidden],
.pfe-share__dialog[hidden] {
	display: none !important;
}

.pfe-share__portal[data-pfe-share-active="1"] .pfe-share__overlay {
	opacity: 1;
	pointer-events: auto;
}

.pfe-share__dialog {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	pointer-events: none;
}

.pfe-share__portal[data-pfe-share-active="1"] .pfe-share__dialog {
	pointer-events: auto;
}

.pfe-share__surface {
	width: min(100%, 360px);
	max-height: calc(100dvh - 64px);
	background: var(--pfe-surface);
	border: 1px solid var(--pfe-border);
	border-radius: 22px;
	box-shadow: var(--pfe-shadow);
	padding: 24px 24px 22px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	overflow-y: auto;
	transform: translateY(10px) scale(0.96);
	opacity: 0;
	transition: transform 480ms cubic-bezier(0.22, 0.74, 0.2, 1), opacity 420ms ease;
}

.pfe-share__portal[data-pfe-share-active="1"] .pfe-share__surface {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.pfe-share__dialog.is-animating-in .pfe-share__surface {
	animation: pfeShareFadeIn 480ms cubic-bezier(0.22, 0.74, 0.2, 1) forwards;
}

.pfe-share__dialog.is-animating-out .pfe-share__surface {
	animation: pfeShareFadeOut 340ms cubic-bezier(0.3, 0, 0.3, 1) forwards;
}

.pfe-share__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pfe-share__title {
	flex: 1;
	margin: 0;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--pfe-text);
}

.pfe-share__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 18px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(248, 250, 252, 0.9);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
	transition: background 0.18s ease, transform 0.18s ease;
}

.pfe-share__close:hover {
	transform: translateY(-1px);
	background: #ffffff;
}

.pfe-share__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pfe-share__providers {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pfe-share__provider-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pfe-share-provider__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 94px;
	padding: 10px;
	border-radius: 18px;
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pfe-share-provider__button:hover,
.pfe-share-provider__button:focus-visible {
	background: rgba(226, 232, 240, 0.32);
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
	transform: translateY(-2px);
}

.pfe-share-provider__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: #ffffff;
	box-shadow: var(--pfe-icon-shadow);
}

.pfe-share-provider__icon svg {
	width: 26px;
	height: 26px;
}

.pfe-share-provider__icon--x { background: linear-gradient(135deg, #111827, #1f2937); }
.pfe-share-provider__icon--telegram { background: linear-gradient(135deg, #2294d6, #1d84ce); }
.pfe-share-provider__icon--whatsapp { background: linear-gradient(135deg, #25d366, #18be64); }
.pfe-share-provider__icon--bluesky { background: linear-gradient(135deg, #1eb2ff, #3b82f6); }
.pfe-share-provider__icon--email { background: linear-gradient(135deg, #eef2ff, #f8fafc); color: var(--pfe-text); }
.pfe-share-provider__icon--copy { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #0f172a; }
.pfe-share-provider__icon--reddit { background: linear-gradient(135deg, #f97316, #fb923c); color: #ffffff; }
.pfe-share-provider__label {
	margin: 8px 0 0 0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: var(--pfe-text);
	line-height: 1.3;
}

.pfe-share__copy-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pfe-share__copy-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 12px 12px 16px;
	border-radius: 16px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	background: rgba(248, 250, 252, 0.92);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.pfe-share__copy-url {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--pfe-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pfe-share__copy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: #ffffff;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pfe-share__copy-button:hover,
.pfe-share__copy-button:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.pfe-share__copy-feedback {
	min-height: 16px;
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: 0.01em;
}

.pfe-share__copy-feedback[data-state="visible"] {
	color: #2563eb;
}

	@media (prefers-color-scheme: dark) {
		.pfe-share-theme {
			--pfe-text: #f8fafc;
			--pfe-text-muted: rgba(203, 213, 225, 0.7);
			--pfe-surface: rgba(15, 23, 42, 0.96);
		--pfe-border: rgba(71, 85, 105, 0.6);
		--pfe-overlay: rgba(3, 7, 18, 0.7);
		--pfe-shadow: 0 30px 68px rgba(0, 0, 0, 0.55);
		--pfe-icon-shadow: 0 22px 34px rgba(0, 0, 0, 0.35);
	}

	.pfe-share__close {
		background: rgba(30, 41, 59, 0.92);
		border-color: rgba(71, 85, 105, 0.55);
		color: rgba(226, 232, 240, 0.92);
	}

	.pfe-share-provider__button:hover,
	.pfe-share-provider__button:focus-visible {
		background: rgba(51, 65, 85, 0.38);
	}

	.pfe-share-provider__icon--email {
		color: #0f172a;
	}

		.pfe-share-provider__icon--copy {
			color: #0f172a;
		}

		.pfe-share-provider__icon--reddit {
			background: linear-gradient(135deg, #fb923c, #f97316);
		}

		.pfe-share__copy-preview {
			background: rgba(30, 41, 59, 0.85);
			border-color: rgba(71, 85, 105, 0.5);
			box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
		}

		.pfe-share__copy-button {
			background: rgba(15, 23, 42, 0.92);
			color: rgba(226, 232, 240, 0.92);
			border-color: rgba(94, 106, 131, 0.6);
		}

	}

@media (prefers-reduced-motion: reduce) {
	.pfe-share-theme *,
	.pfe-share-theme *::before,
	.pfe-share-theme *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.pfe-share__halo,
	.pfe-share__launcher.is-pressed .pfe-share__halo {
		animation: none !important;
	}
}

html.pfe-share-modal-open,
body.pfe-share-modal-open {
	overflow: hidden;
}

@keyframes pfeShareHaloPulse {
	0% {
		opacity: 0.35;
		transform: scale(0.92);
	}
	55% {
		opacity: 0.2;
		transform: scale(1.25);
	}
	100% {
		opacity: 0;
		transform: scale(1.4);
	}
}

@keyframes pfeShareHaloHover {
	0%, 100% {
		opacity: 0.18;
		transform: scale(1);
	}
	50% {
		opacity: 0.28;
		transform: scale(1.05);
	}
}

@keyframes pfeShareFadeIn {
	0% {
		transform: translateY(24px) scale(0.9);
		opacity: 0;
	}
	40% {
		transform: translateY(-6px) scale(1.04);
		opacity: 1;
	}
	70% {
		transform: translateY(2px) scale(0.98);
	}
	100% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@keyframes pfeShareFadeOut {
	0% {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
	30% {
		transform: translateY(-4px) scale(1.02);
	}
	100% {
		transform: translateY(14px) scale(0.95);
		opacity: 0;
	}
}
