/* DE Rewards frontend */

.der-guest-note {
	margin: 0.75rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid #cfe8e4;
	background: #f3fbf9;
	border-radius: 8px;
	color: #134e4a;
	font-size: 0.95rem;
}

.der-rewards-account {
	max-width: 720px;
}

.der-rewards-balance {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #0f766e, #115e59);
	color: #fff;
	border-radius: 12px;
}

.der-rewards-balance-label {
	font-size: 0.9rem;
	opacity: 0.9;
}

.der-rewards-balance-value {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.1;
}

.der-rewards-how ul {
	margin: 0 0 1.5rem;
	padding-left: 1.25rem;
}

.der-rewards-table {
	width: 100%;
}

.der-redeem-box {
	margin: 1.25rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
}

.der-redeem-box h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.der-redeem-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
}

.der-redeem-form input[type="number"] {
	width: 8rem;
	max-width: 100%;
	padding: 0.45rem 0.6rem;
}

.der-redeem-msg {
	margin: 0.75rem 0 0;
	font-weight: 600;
}

.der-redeem-msg.is-error {
	color: #b91c1c;
}

.der-redeem-msg.is-ok {
	color: #047857;
}

.der-spin-popup[hidden],
.der-spin-root[hidden],
.der-spin-result[hidden],
.der-spin-wheel-wrap[hidden],
.der-spin-email-form[hidden] {
	display: none !important;
}

.der-spin-popup,
.der-spin-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.der-spin-overlay,
.der-spin-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.der-spin-modal {
	position: relative;
	z-index: 1;
	width: min(92vw, 420px);
	margin: 6vh auto 0;
	padding: 1.25rem 1.25rem 1.5rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.der-spin-close {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.der-spin-modal h2 {
	margin: 0.25rem 0 0.35rem;
}

.der-spin-intro,
.der-spin-email-form {
	margin: 0 0 1rem;
}

.der-spin-email-form {
	display: grid;
	gap: 0.45rem;
	text-align: left;
}

.der-spin-email-form input[type="email"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
}

.der-spin-wheel-wrap {
	position: relative;
	padding-top: 0.5rem;
}

.der-spin-pointer {
	position: absolute;
	top: 0.15rem;
	left: 50%;
	z-index: 2;
	width: 0;
	height: 0;
	margin-left: -12px;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 22px solid #0f172a;
}

.der-spin-wheel,
.der-wheel {
	background: conic-gradient(#6366f1 0 16.6%, #22c55e 16.6% 33.2%, #f59e0b 33.2% 49.8%, #ef4444 49.8% 66.4%, #06b6d4 66.4% 83%, #a855f7 83% 100%);
	position: relative;
	width: min(72vw, 280px);
	height: min(72vw, 280px);
	margin: 0.75rem auto 1rem;
	border-radius: 50%;
	border: 8px solid #0f172a;
	box-shadow: inset 0 0 0 6px #fff, 0 8px 20px rgba(15, 23, 42, 0.2);
	transition: transform 4.2s cubic-bezier(0.12, 0.7, 0.15, 1);
}

.der-spin-label {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	margin-left: -21%;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	transform-origin: center center;
	pointer-events: none;
}

.der-spin-btn,
.der-spin-email-btn,
.der-redeem-btn {
	cursor: pointer;
}

.der-spin-btn:disabled,
.der-redeem-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.der-spin-result {
	margin-top: 1rem;
	padding: 0.85rem;
	border-radius: 10px;
	background: #ecfdf5;
	color: #065f46;
}

.der-spin-result.is-miss {
	background: #f8fafc;
	color: #334155;
}

.der-spin-code {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.65rem;
}

.der-spin-code code {
	padding: 0.35rem 0.55rem;
	background: #fff;
	border: 1px dashed #059669;
	border-radius: 6px;
	font-size: 1rem;
	letter-spacing: 0.04em;
}

.der-copy-btn {
	padding: 0.4rem 0.7rem;
	border: 0;
	border-radius: 6px;
	background: #0f766e;
	color: #fff;
	cursor: pointer;
}

@media (max-width: 600px) {
	.der-spin-modal {
		margin-top: 4vh;
		padding: 1rem;
	}

	.der-rewards-table {
		font-size: 0.85rem;
	}

	.der-redeem-form {
		flex-direction: column;
		align-items: stretch;
	}

	.der-redeem-form input[type="number"] {
		width: 100%;
	}
}
