.hdspin-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hdspin-modal {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	padding: 32px 24px 24px;
	max-width: 380px;
	width: 90%;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hdspin-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}

.hdspin-wheel-wrap {
	position: relative;
	width: 240px;
	height: 240px;
	margin: 0 auto 20px;
}

.hdspin-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 20px solid #014032;
	z-index: 2;
}

.hdspin-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 4px solid #ffffff;
	box-shadow: 0 0 0 4px #014032;
	position: relative;
	background: conic-gradient(
		#05A67D 0deg 45deg,
		#048C68 45deg 90deg,
		#06BF8F 90deg 135deg,
		#037A59 135deg 180deg,
		#05A67D 180deg 225deg,
		#048C68 225deg 270deg,
		#06BF8F 270deg 315deg,
		#037A59 315deg 360deg
	);
	transition: transform 4s cubic-bezier(0.15, 0.9, 0.2, 1);
}

.hdspin-wheel__label {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100px;
	margin-left: -50px;
	text-align: center;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.1;
	pointer-events: none;
}

.hdspin-wheel__label--0 { transform: rotate(22.5deg) translateY(-88px) rotate(-22.5deg); }
.hdspin-wheel__label--1 { transform: rotate(67.5deg) translateY(-88px) rotate(-67.5deg); }
.hdspin-wheel__label--2 { transform: rotate(112.5deg) translateY(-88px) rotate(-112.5deg); }
.hdspin-wheel__label--3 { transform: rotate(157.5deg) translateY(-88px) rotate(-157.5deg); }
.hdspin-wheel__label--4 { transform: rotate(202.5deg) translateY(-88px) rotate(-202.5deg); }
.hdspin-wheel__label--5 { transform: rotate(247.5deg) translateY(-88px) rotate(-247.5deg); }
.hdspin-wheel__label--6 { transform: rotate(292.5deg) translateY(-88px) rotate(-292.5deg); }
.hdspin-wheel__label--7 { transform: rotate(337.5deg) translateY(-88px) rotate(-337.5deg); }

.hdspin-form__intro {
	margin: 0 0 10px;
	font-weight: 600;
}

.hdspin-form__email {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.hdspin-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.hdspin-form__submit {
	width: 100%;
	background: #05A67D;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 12px;
	font-weight: 700;
	cursor: pointer;
}

.hdspin-form__submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.hdspin-form__message {
	margin: 8px 0 0;
	font-size: 0.85em;
	color: #b91c1c;
}

.hdspin-result__label {
	font-size: 1.2em;
	font-weight: 700;
	margin: 0 0 8px;
}

.hdspin-result__code-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0;
	margin: 0 0 6px;
}

.hdspin-result__code {
	display: inline-flex;
	align-items: center;
	border: 2px dashed #05A67D;
	border-right: none;
	border-radius: 4px 0 0 4px;
	color: #05A67D;
	padding: 10px 18px;
	font-weight: 700;
	letter-spacing: 1px;
}

.hdspin-result__copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	background: #05A67D;
	color: #ffffff;
	border: 2px solid #05A67D;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	padding: 0;
}

.hdspin-result__copy:hover {
	background: #048C68;
}

.hdspin-result__copied {
	font-size: 0.8em;
	color: #05A67D;
	font-weight: 600;
	min-height: 1.2em;
	margin: 0 0 8px;
}

.hdspin-result__expiry {
	font-size: 0.85em;
	color: #6b7280;
}
