:root {
	--pulse-popup-bg: #0f0f10;
	--pulse-popup-card: #17181a;
	--pulse-popup-text: #ffffff;
	--pulse-popup-muted: rgba(255, 255, 255, 0.72);
	--pulse-popup-border: rgba(255, 255, 255, 0.1);
	--pulse-popup-accent: #f4c542;
	--pulse-popup-accent-hover: #ffd65c;
	--pulse-popup-input: #111214;
	--pulse-popup-danger: #ff6b6b;
	--pulse-popup-success: #66d17a;
}

body.pulse-popup-open {
	overflow: hidden;
	touch-action: none;
}

.pulse-popup,
.pulse-popup * {
	box-sizing: border-box;
}

.pulse-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	padding: 24px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

@supports (height: 100dvh) {
	.pulse-popup {
		height: 100dvh;
	}
}

.pulse-popup.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pulse-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

.pulse-popup__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%), var(--pulse-popup-card);
	border: 1px solid var(--pulse-popup-border);
	border-radius: 24px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
	transform: translateY(20px) scale(0.98);
	transition: transform 0.25s ease;
	overflow: hidden;
}

@supports (max-height: calc(100dvh - 48px)) {
	.pulse-popup__dialog {
		max-height: calc(100dvh - 48px);
	}
}

.pulse-popup.is-active .pulse-popup__dialog {
	transform: translateY(0) scale(1);
}

.pulse-popup__content {
	width: 100%;
	max-height: inherit;
	padding: 34px 32px 30px;
	color: var(--pulse-popup-text);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.pulse-popup__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(244, 197, 66, 0.12);
	border: 1px solid rgba(244, 197, 66, 0.24);
	color: var(--pulse-popup-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	margin-bottom: 18px;
}

.pulse-popup__title {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 700;
	color: #FFF !important;
}

.pulse-popup__text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--pulse-popup-muted);
	max-width: 430px;
}

.pulse-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.pulse-popup__close:hover {
	background: rgba(255, 255, 255, 0.12);
	transform: rotate(90deg);
}

.pulse-popup__close span {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

.pulse-popup__close span:first-child {
	transform: translate(-50%, -50%) rotate(45deg);
}

.pulse-popup__close span:last-child {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.pulse-popup__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.pulse-popup__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pulse-popup__field label {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.pulse-popup__field label span {
	color: var(--pulse-popup-accent);
}

.pulse-popup__field input,
.pulse-popup__field textarea {
	width: 100%;
	border: 1px solid var(--pulse-popup-border);
	background: var(--pulse-popup-input);
	color: #fff;
	border-radius: 14px;
	padding: 15px 16px;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.pulse-popup__field input::placeholder,
.pulse-popup__field textarea::placeholder {
	color: rgba(255, 255, 255, 0.42);
}

.pulse-popup__field input:focus,
.pulse-popup__field textarea:focus {
	border-color: rgba(244, 197, 66, 0.55);
	box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.12);
}

.pulse-popup__field textarea {
	min-height: 110px;
	resize: vertical;
}

.pulse-popup__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 16px;
	background: var(--pulse-popup-accent);
	color: #0f0f10;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.pulse-popup__submit:hover {
	background: var(--pulse-popup-accent-hover);
	transform: translateY(-1px);
}

.pulse-popup__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.pulse-popup__status {
	min-height: 22px;
	font-size: 14px;
	line-height: 1.4;
}

.pulse-popup__status.is-error {
	color: var(--pulse-popup-danger);
}

.pulse-popup__status.is-success {
	color: var(--pulse-popup-success);
}

.pulse-popup__hidden {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 767px) {
	.pulse-popup {
		align-items: center;
		padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
	}

	.pulse-popup__dialog {
		max-width: 100%;
		max-height: calc(100vh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		border-radius: 20px;
	}

	@supports (max-height: calc(100dvh - 20px)) {
		.pulse-popup__dialog {
			max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
		}
	}

	.pulse-popup__content {
		padding: 22px 18px 18px;
		padding-right: 18px;
	}

	.pulse-popup__close {
		top: 10px;
		right: 10px;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: var(--pulse-popup-accent);
	}

	.pulse-popup__close:hover {
		background: var(--pulse-popup-accent-hover);
		transform: none;
	}

	.pulse-popup__close span {
		background: #0f0f10;
	}

	.pulse-popup__badge {
		margin-bottom: 14px;
	}

	.pulse-popup__title {
		font-size: 28px;
		padding-right: 48px;
	}

	.pulse-popup__text {
		margin-bottom: 18px;
		font-size: 14px;
		line-height: 1.5;
	}

	.pulse-popup__form {
		gap: 12px;
	}

	.pulse-popup__field {
		gap: 6px;
	}

	.pulse-popup__field input,
	.pulse-popup__field textarea {
		padding: 13px 14px;
		border-radius: 13px;
		font-size: 16px;
	}

	.pulse-popup__field textarea {
		min-height: 86px;
	}

	.pulse-popup__submit {
		min-height: 52px;
		border-radius: 14px;
	}
}

@media (max-width: 767px) and (max-height: 700px) {
	.pulse-popup__content {
		padding: 18px 16px 16px;
	}

	.pulse-popup__badge {
		display: none;
	}

	.pulse-popup__title {
		margin-bottom: 8px;
		font-size: 24px;
	}

	.pulse-popup__text {
		margin-bottom: 14px;
		font-size: 13px;
	}

	.pulse-popup__form {
		gap: 10px;
	}

	.pulse-popup__field input,
	.pulse-popup__field textarea {
		padding: 11px 12px;
	}

	.pulse-popup__field textarea {
		min-height: 72px;
	}

	.pulse-popup__submit {
		min-height: 48px;
	}

	.pulse-popup__status {
		min-height: 18px;
		font-size: 13px;
	}
}
