.rcp-popup {
	--rcp-bg: #0b1220;
	--rcp-panel: #121a2b;
	--rcp-accent: #d4af37;
	--rcp-text: #f7f4ea;
	--rcp-muted: #b7c0d0;
	--rcp-btn-text: #0b1220;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

.rcp-popup[hidden] {
	display: none;
}

.rcp-popup.is-open .rcp-popup__overlay {
	animation: rcp-fade-in 0.45s ease forwards;
}

.rcp-popup.is-open .rcp-popup__dialog {
	animation: rcp-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rcp-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 22, 0.78);
	opacity: 0;
}

.rcp-popup.is-open .rcp-popup__overlay {
	opacity: 1;
}

.rcp-popup__dialog {
	position: relative;
	width: min(520px, 100%);
	max-height: min(92vh, 860px);
	overflow: auto;
	padding: 40px 32px 28px;
	color: var(--rcp-text);
	background:
		radial-gradient(900px 180px at 12% 0%, rgba(212, 175, 55, 0.22), transparent 58%),
		linear-gradient(180deg, #182238 0%, var(--rcp-panel) 48%, #0e1626 100%);
	border: 1px solid rgba(212, 175, 55, 0.42);
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
	opacity: 0;
	transform: translateY(28px) scale(0.96);
}

.rcp-popup.is-open .rcp-popup__dialog {
	opacity: 1;
	transform: none;
}

.rcp-popup__shine {
	pointer-events: none;
	position: absolute;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
}

.rcp-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--rcp-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.rcp-popup__eyebrow {
	margin: 0 0 10px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 11px;
	font-family: system-ui, sans-serif;
	color: var(--rcp-accent);
}

.rcp-popup__percent {
	margin: 0;
	padding-top: 4px;
	font-size: clamp(44px, 10vw, 64px);
	line-height: 1.05;
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--rcp-accent);
}

.rcp-popup__title {
	margin: 14px 0 10px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
}

.rcp-popup__lead,
.rcp-popup__points,
.rcp-popup__skip,
.rcp-popup__success {
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rcp-popup__lead {
	margin: 0 0 16px;
	color: var(--rcp-muted);
	font-size: 15px;
	line-height: 1.55;
}

.rcp-popup__points {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.rcp-popup__points li {
	position: relative;
	padding-left: 22px;
	color: var(--rcp-text);
	font-size: 14px;
	line-height: 1.5;
}

.rcp-popup__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rcp-accent);
}

.rcp-popup__form {
	display: grid;
	gap: 8px;
}

.rcp-popup__label {
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rcp-muted);
}

.rcp-popup__input {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 8px;
	padding: 13px 14px;
	border-radius: 12px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: #0b1220;
	color: var(--rcp-text);
	font-size: 15px;
}

.rcp-popup__input:focus {
	outline: 2px solid var(--rcp-accent);
	outline-offset: 1px;
}

.rcp-popup__submit,
.rcp-popup__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 6px;
	padding: 14px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--rcp-accent);
	color: var(--rcp-btn-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(212, 175, 55, 0.28);
}

.rcp-popup__submit:hover,
.rcp-popup__copy:hover {
	filter: brightness(1.08);
}

.rcp-popup__error {
	margin: 4px 0 0;
	color: #ffb4b4;
	font-size: 13px;
}

.rcp-popup__success-title {
	margin: 0 0 8px;
	font-size: 18px;
	color: var(--rcp-accent);
}

.rcp-popup__code {
	margin: 14px 0;
	padding: 12px;
	text-align: center;
	letter-spacing: 0.18em;
	font-weight: 700;
	border-radius: 12px;
	border: 1px dashed var(--rcp-accent);
	background: #0b1220;
}

.rcp-popup__skip {
	display: block;
	width: 100%;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rcp-muted);
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

@keyframes rcp-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes rcp-rise {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcp-popup.is-open .rcp-popup__overlay,
	.rcp-popup.is-open .rcp-popup__dialog {
		animation: none;
	}
}


.rcp-launcher {
	position: fixed;
	left: 20px;
	bottom: 90px; /* WhatsApp button ke upar, overlap na ho */
	z-index: 999998;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(11, 18, 32, 0.25);
	border-radius: 50%;
	background: #d4af37;
	color: #0b1220;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
	animation: rcp-launcher-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both, rcp-launcher-pulse 2.6s ease-in-out 1s 3;
	transition: transform 0.2s ease;
}

.rcp-launcher[hidden] {
	display: none;
}

.rcp-launcher:hover {
	transform: scale(1.08);
}

.rcp-launcher:focus-visible {
	outline: 2px solid #f7f4ea;
	outline-offset: 3px;
}

.rcp-launcher__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #0b1220;
	color: #d4af37;
	font: 700 11px/1 system-ui, sans-serif;
	border: 1px solid #d4af37;
}

@keyframes rcp-launcher-in {
	from { opacity: 0; transform: translateX(-24px) scale(0.8); }
	to { opacity: 1; transform: none; }
}

@keyframes rcp-launcher-pulse {
	0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(212, 175, 55, 0.5); }
	50% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), 0 0 0 14px rgba(212, 175, 55, 0); }
}

@media (max-width: 600px) {
	.rcp-launcher {
		left: 14px;
		bottom: 84px;
		width: 50px;
		height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcp-launcher { animation: none; }
}