/* Hostinger Referral — premium frontend */

:root {
	--hr-accent: #673de6;
	--hr-ink: #14111f;
	--hr-muted: #5c5670;
	--hr-line: rgba(47, 28, 106, 0.12);
	--hr-soft: #f3efff;
	--hr-deep: #1a1038;
	--hr-font: "Figtree", "Segoe UI", sans-serif;
	--hr-display: "Syne", "Figtree", sans-serif;
}

/* Floating launcher */
.hr-launcher {
	--hr-accent: #673de6;
	position: fixed !important;
	left: 18px !important;
	bottom: 22px !important;
	z-index: 2147482900 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #0c0c10 !important;
	color: #fff !important;
	padding: 12px 16px 12px 12px !important;
	font: 700 13px var(--hr-display) !important;
	letter-spacing: 0.01em !important;
	box-shadow: 0 12px 32px rgba(12, 8, 28, 0.35) !important;
	cursor: pointer;
	animation: hrFloat 2.8s ease-in-out infinite;
	transition: transform 0.2s ease, background 0.2s ease;
}

.hr-launcher img {
	width: 28px !important;
	height: 28px !important;
	border-radius: 8px !important;
	display: block !important;
}

.hr-launcher:hover {
	background: #1a1038 !important;
	transform: translateY(-2px);
}

.hr-launcher[hidden] { display: none !important; }

@keyframes hrFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

/* Popup shell */
.hr-root {
	--hr-accent: #673de6;
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	font-family: var(--hr-font);
}

.hr-root[hidden] { display: none !important; }

.hr-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 6, 18, 0.72);
	backdrop-filter: blur(8px);
	animation: hrFade 0.28s ease both;
}

@keyframes hrFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hr-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	padding: 0;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(8, 6, 20, 0.45);
	animation: hrIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hrIn {
	from { opacity: 0; transform: translateY(22px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.hr-dialog__hero {
	padding: 28px 24px 22px;
	text-align: center;
	background:
		radial-gradient(90% 120% at 50% -20%, rgba(124, 77, 255, 0.35), transparent 55%),
		linear-gradient(165deg, #0c0c10 0%, #17131f 100%);
	color: #fff;
}

.hr-dialog__badge {
	display: block;
	height: 44px;
	width: auto;
	margin: 0 auto 12px;
}

.hr-dialog__verified {
	margin: 0;
	font-family: var(--hr-display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.9;
}

.hr-dialog__body {
	padding: 22px 22px 18px;
	background:
		radial-gradient(100% 80% at 100% 0%, rgba(103, 61, 230, 0.08), transparent 50%),
		#fff;
}

.hr-dialog .hr-kicker {
	margin: 0 0 6px;
	text-align: center;
}

.hr-dialog .hr-title {
	margin: 0 0 8px;
	text-align: center;
	font-size: clamp(1.25rem, 4vw, 1.55rem);
}

.hr-dialog__blurb {
	margin: 0 0 14px;
	text-align: center;
	color: var(--hr-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.hr-dialog__perks {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.hr-dialog__perks li {
	position: relative;
	padding: 10px 12px 10px 34px;
	border-radius: 12px;
	background: var(--hr-soft);
	color: var(--hr-ink);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
}

.hr-dialog__perks li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 30%, transparent 32%),
		linear-gradient(135deg, #7c4dff, #2f1c6a);
}

.hr-dialog__code {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #0f0d16;
	color: #fff;
}

.hr-dialog__code-label {
	display: block;
	margin-bottom: 8px;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.65;
	font-weight: 700;
}

.hr-dialog__code-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hr-dialog__code-row code {
	font-family: var(--hr-display) !important;
	font-size: 1.15rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	color: #fff !important;
	background: transparent !important;
}

.hr-dialog .hr-copy-btn {
	border: 0 !important;
	background: #673de6 !important;
	color: #fff !important;
	border-radius: 10px !important;
	padding: 9px 14px !important;
	font-weight: 700 !important;
}

.hr-dialog .hr-copy-btn:hover {
	background: #7c4dff !important;
}

.hr-dialog .hr-cta {
	margin-bottom: 10px !important;
}

.hr-dialog .hr-actions {
	margin: 2px 0 8px;
}

.hr-disclosure--popup {
	margin: 0;
	text-align: center;
	font-size: 10px;
	line-height: 1.4;
	color: #9a94a8;
}

.hr-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
}

.hr-close::before,
.hr-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

.hr-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.hr-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.hr-kicker {
	margin: 0 0 8px;
	font-family: var(--hr-display);
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hr-accent);
	font-weight: 700;
}

.hr-title {
	margin: 0 0 12px;
	font-family: var(--hr-display);
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.18;
	color: var(--hr-ink);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hr-msg {
	color: var(--hr-muted);
	font-size: 0.98rem;
	line-height: 1.65;
	margin-bottom: 14px;
}
.hr-msg p { margin: 0 0 8px; }

.hr-benefits {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.hr-benefits li {
	position: relative;
	padding: 10px 12px 10px 36px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--hr-line);
	color: var(--hr-ink);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.4;
}

.hr-benefits li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
		linear-gradient(135deg, #7c4dff, #2f1c6a);
}

.hr-codebox {
	background: #fff;
	border: 1px solid var(--hr-line);
	border-radius: 16px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.hr-codebox__label {
	display: block;
	font-family: var(--hr-display);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hr-accent);
	font-weight: 700;
	margin-bottom: 10px;
}

.hr-codebox__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.hr-codebox code,
.hr-coupon-inline code,
.hr-claim-box__code code {
	font-family: var(--hr-display) !important;
	font-size: 1.2rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.05em;
	color: var(--hr-deep) !important;
	background: transparent !important;
}

.hr-copy-btn,
.hr-open {
	border: 1px solid rgba(103, 61, 230, 0.35) !important;
	border-radius: 11px !important;
	background: #fff !important;
	color: #4b2fd1 !important;
	padding: 10px 14px !important;
	font-family: var(--hr-font) !important;
	font-weight: 700 !important;
	cursor: pointer;
	font-size: 13px !important;
	line-height: 1.3 !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.hr-copy-btn:hover,
.hr-open:hover {
	background: var(--hr-soft) !important;
}

a.hr-cta,
.hr-cta,
.hr-seo-article a.hr-cta,
.hr-card a.hr-cta,
.hr-dialog a.hr-cta,
.hr-offer a.hr-cta {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	text-align: center !important;
	text-decoration: none !important;
	background: #673de6 !important;
	background-image: linear-gradient(135deg, #8260ff 0%, #673de6 48%, #3b1fa8 100%) !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 14px !important;
	padding: 16px 18px !important;
	font-family: var(--hr-display) !important;
	font-weight: 800 !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
	letter-spacing: 0.01em !important;
	box-shadow: 0 14px 30px rgba(103, 61, 230, 0.28) !important;
	margin: 0 0 12px !important;
	opacity: 1 !important;
	visibility: visible !important;
	min-height: 54px !important;
	transition: transform 0.2s ease, filter 0.2s ease;
}

a.hr-cta:hover,
a.hr-cta:focus,
.hr-cta:hover,
.hr-cta:focus {
	color: #ffffff !important;
	filter: brightness(1.05);
	transform: translateY(-1px);
	text-decoration: none !important;
}

.hr-claim-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 18px 0 26px;
	padding: 18px;
	border-radius: 18px;
	background:
		radial-gradient(90% 120% at 0% 0%, rgba(103, 61, 230, 0.1), transparent 50%),
		#fff;
	border: 1px solid var(--hr-line);
}

.hr-claim-box__code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--hr-soft);
}

.hr-disclosure {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.5;
	color: #7a748c;
}

.hr-actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 4px;
}

.hr-text {
	border: 0;
	background: transparent;
	color: #7a748c;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Page offer stage */
.hr-offer {
	--hr-accent: #673de6;
	position: relative;
	max-width: 820px;
	margin: 0 auto 36px;
	padding: 28px 24px 26px;
	border-radius: 28px;
	overflow: hidden;
	isolation: isolate;
	font-family: var(--hr-font);
	color: var(--hr-ink);
	background:
		radial-gradient(80% 70% at 100% -10%, rgba(103, 61, 230, 0.22), transparent 55%),
		radial-gradient(70% 60% at -10% 110%, rgba(47, 28, 106, 0.12), transparent 50%),
		linear-gradient(165deg, #ffffff 0%, #f7f4ff 55%, #efeaff 100%);
	border: 1px solid var(--hr-line);
	animation: hrRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hr-offer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(103, 61, 230, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(103, 61, 230, 0.04) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
	pointer-events: none;
}

@keyframes hrRise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.hr-offer__brand {
	margin-bottom: 18px;
}

.hr-offer__body {
	display: grid;
	gap: 4px;
}

.hr-offer .hr-title {
	font-size: clamp(1.6rem, 3.4vw, 2.15rem);
}

.hr-offer__actions {
	margin: 4px 0 0;
}

.hr-coupon-inline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--hr-line);
	font-family: var(--hr-font);
}

/* Partner strip */
.hr-partner {
	display: flex;
	align-items: center;
	gap: 14px 18px;
	flex-wrap: wrap;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #0c0c10 0%, #18151f 100%);
	color: #fff;
	border: 1px solid #2a2730;
}

.hr-partner__badges {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hr-partner__square {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: block;
}

.hr-partner__wide {
	height: 38px;
	width: auto;
	display: block;
}

.hr-partner__copy {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hr-partner__verified {
	font-family: var(--hr-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.hr-partner__sub {
	font-size: 12px;
	opacity: 0.72;
	font-weight: 500;
}

.hr-partner--hero {
	margin: 0 0 20px;
	padding: 16px 18px;
}

.hr-partner--hero .hr-partner__square {
	width: 56px;
	height: 56px;
}

.hr-partner--hero .hr-partner__wide {
	height: 44px;
}

.hr-partner--compact {
	padding: 10px 12px;
	margin-bottom: 12px;
}

.hr-partner--compact .hr-partner__wide {
	height: 30px;
}

.hr-partner--wide {
	justify-content: center;
	margin: 18px 0;
}

/* SEO article */
.hr-seo-article {
	max-width: 820px;
	margin: 8px auto 48px;
	padding: 8px 4px 0;
	color: var(--hr-ink);
	font-family: var(--hr-font);
	line-height: 1.7;
	animation: hrRise 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hr-seo-article h2 {
	margin: 1.8em 0 0.55em;
	font-family: var(--hr-display);
	font-size: clamp(1.25rem, 2.6vw, 1.55rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--hr-ink);
}

.hr-seo-article > h2:first-of-type {
	margin-top: 0.4em;
}

.hr-seo-article p,
.hr-seo-article li {
	font-size: 1.05rem;
	color: #3a3550;
}

.hr-seo-article strong {
	color: var(--hr-ink);
}

.hr-seo-article ul,
.hr-seo-article ol {
	padding-left: 0;
	margin: 0.8em 0 1.1em;
	list-style: none;
	display: grid;
	gap: 10px;
}

.hr-seo-article ul li,
.hr-seo-article ol li {
	position: relative;
	padding: 12px 14px 12px 42px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--hr-line);
}

.hr-seo-article ul li::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 28%, transparent 30%),
		linear-gradient(135deg, #7c4dff, #2f1c6a);
}

.hr-seo-article ol {
	counter-reset: hrstep;
}

.hr-seo-article ol li {
	counter-increment: hrstep;
}

.hr-seo-article ol li::before {
	content: counter(hrstep);
	position: absolute;
	left: 12px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 8px;
	background: var(--hr-deep);
	color: #fff;
	font-family: var(--hr-display);
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
	line-height: 1;
}

.hr-faq {
	margin-top: 28px;
}

.hr-faq details {
	border: 1px solid var(--hr-line);
	border-radius: 14px;
	padding: 0;
	margin: 0 0 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.hr-faq details[open] {
	border-color: rgba(103, 61, 230, 0.28);
}

.hr-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--hr-display);
	font-weight: 700;
	color: var(--hr-ink);
	padding: 14px 16px;
}

.hr-faq summary::-webkit-details-marker { display: none; }

.hr-faq details p {
	margin: 0;
	padding: 0 16px 16px;
	color: var(--hr-muted);
}

.hr-seo-article .hr-partner {
	margin: 0 0 24px;
}

/* Legacy alias */
.hr-card {
	/* kept for older markup references */
}

@media (max-width: 640px) {
	.hr-offer {
		padding: 22px 16px 20px;
		border-radius: 22px;
		margin-bottom: 28px;
	}

	.hr-partner {
		padding: 12px;
	}

	.hr-partner__wide {
		height: 32px;
	}

	.hr-root { align-items: flex-end; padding: 0; }

	.hr-dialog {
		width: 100%;
		border-radius: 22px 22px 0 0;
		max-height: 92vh;
		overflow: auto;
	}

	.hr-dialog__hero {
		padding: 24px 18px 18px;
	}

	.hr-dialog__body {
		padding: 18px 16px 16px;
	}

	.hr-launcher {
		left: 14px !important;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hr-launcher,
	.hr-offer,
	.hr-seo-article,
	.hr-dialog {
		animation: none !important;
	}
}
