/**
 * Toolhub Rewards · Public (member-facing) styles
 *
 * Designed to drop into Elementor pages. Uses CSS custom properties so
 * Toolhub's brand styling can override from the parent theme.
 */

.th-rewards-signup,
.th-rewards-dashboard,
.th-rewards-specials {
	--th-ink: #2C2C2A;
	--th-paper: #FAEEDA;
	--th-paper-2: #F5F2EA;
	--th-amber: #BA7517;
	--th-amber-light: #D4892C;
	--th-amber-deep: #412402;
	--th-green: #3B6D11;
	--th-green-pale: #EAF3DE;
	--th-grey: #5F5E5A;
	--th-grey-2: #888780;
	--th-line: #E8E5DD;
	--th-line-2: #DDD9CD;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	color: var(--th-ink);
	line-height: 1.5;
}

/* ============ SIGNUP FORM ============ */
.th-rewards-signup {
	max-width: 380px;
	background: #fff;
	border: 0.5px solid var(--th-line);
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 16px rgba(44, 44, 42, 0.08);
}
.th-form .th-label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--th-grey);
	margin: 14px 0 6px;
	font-weight: 500;
}
.th-form .th-input {
	width: 100%;
	padding: 12px 14px;
	border: 0.5px solid var(--th-line-2);
	border-radius: 10px;
	font-size: 15px;
	background: #fff;
	color: var(--th-ink);
	box-sizing: border-box;
	font-family: inherit;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.th-form .th-input:focus {
	border-color: var(--th-amber);
	box-shadow: 0 0 0 3px rgba(186, 117, 23, 0.12);
}
.th-phone {
	display: flex;
	background: #fff;
	border: 0.5px solid var(--th-line-2);
	border-radius: 10px;
	overflow: hidden;
	align-items: center;
}
.th-phone:focus-within {
	border-color: var(--th-amber);
	box-shadow: 0 0 0 3px rgba(186, 117, 23, 0.12);
}
.th-phone .th-prefix {
	padding: 0 12px;
	font-family: "Geist Mono", "SF Mono", monospace;
	font-size: 13px;
	color: var(--th-grey);
}
.th-phone .th-input {
	border: none;
	box-shadow: none !important;
	flex: 1;
}
.th-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0;
	font-size: 12px;
	color: var(--th-grey);
	line-height: 1.5;
	cursor: pointer;
}
.th-checkbox input { margin-top: 2px; }

.th-btn {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	margin-top: 16px;
}
.th-btn:active { transform: scale(0.98); }
.th-btn-primary {
	background: var(--th-amber);
	color: #fff;
}
.th-btn-primary:hover { background: var(--th-amber-light); }
.th-disclaimer {
	font-size: 10px;
	color: var(--th-grey-2);
	text-align: center;
	margin-top: 14px;
	line-height: 1.5;
}

/* OTP */
.th-otp-input {
	text-align: center;
	font-family: "Geist Mono", monospace;
	font-size: 22px;
	letter-spacing: 0.4em;
}

/* ============ DASHBOARD ============ */
.th-rewards-dashboard {
	max-width: 480px;
	margin: 0 auto;
}
.th-balance-card {
	background: linear-gradient(135deg, var(--th-ink), #1f1f1d);
	color: var(--th-paper);
	border-radius: 20px;
	padding: 24px;
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
}
.th-balance-card::before {
	content: '';
	position: absolute;
	top: -40px; right: -40px;
	width: 160px; height: 160px;
	background: radial-gradient(circle, rgba(186, 117, 23, 0.4), transparent 70%);
}
.th-balance-label {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--th-amber);
}
.th-balance-num {
	font-family: Georgia, serif;
	font-size: 48px;
	line-height: 1;
	margin: 4px 0;
}
.th-balance-rand {
	font-size: 12px;
	color: rgba(250, 238, 218, 0.65);
}

/* ============ SPECIALS GRID ============ */
.th-rewards-specials {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.th-special-card {
	background: #fff;
	border: 0.5px solid var(--th-line);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.th-special-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(44, 44, 42, 0.1);
}
.th-special-banner {
	height: 140px;
	background: var(--th-paper-2);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.th-special-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.th-special-badge {
	position: absolute;
	top: 12px; left: 12px;
	background: var(--th-ink);
	color: var(--th-paper);
	font-size: 10px;
	padding: 3px 10px;
	border-radius: 99px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.th-special-demo-day .th-special-badge { background: var(--th-amber); }
.th-special-new-launch .th-special-badge { background: #185FA5; }
.th-special-in-store .th-special-badge { background: var(--th-green); }
.th-special-redeem .th-special-badge { background: var(--th-ink); color: var(--th-amber); }
.th-special-body { padding: 16px 18px; }
.th-special-body h3 {
	font-family: Georgia, serif;
	font-weight: 400;
	font-size: 19px;
	margin: 0 0 6px;
	line-height: 1.2;
}
.th-special-body p {
	font-size: 13px;
	color: var(--th-grey);
	margin: 0 0 12px;
	line-height: 1.5;
}
.th-special-cost {
	font-family: "Geist Mono", monospace;
	font-size: 13px;
	font-weight: 500;
	color: var(--th-amber-deep);
	padding-top: 10px;
	border-top: 0.5px solid var(--th-line);
}
