/* ==========================================================================
   TakipçiBurada - Şans Çarkı (Lucky Spin Wheel) Premium Styling
   ========================================================================== */

/* Floating Launcher Trigger (Sağ Alt Konum) */
.tb-wheel-trigger {
	position: fixed;
	bottom: 28px;
	right: 28px;
	z-index: 998;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #18181d 0%, #0d0d10 100%);
	border: 1px solid rgba(255, 77, 77, 0.45);
	box-shadow: 0 10px 30px -5px rgba(255, 65, 108, 0.45), 0 0 15px rgba(255, 77, 77, 0.25);
	cursor: pointer;
	color: #ffffff;
	font-family: inherit;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	animation: tb-pulse-glow 3s infinite ease-in-out;
}
.tb-wheel-trigger:hover {
	transform: translateY(-3px) scale(1.03);
	border-color: #ff4d4d;
	box-shadow: 0 14px 38px -4px rgba(255, 65, 108, 0.65), 0 0 22px rgba(255, 77, 77, 0.45);
}
.tb-wheel-trigger-icon-box {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff416c, #ff4b2b);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(255, 65, 108, 0.5);
	animation: tb-spin-icon 8s linear infinite;
}
.tb-wheel-trigger-icon-box svg {
	width: 20px;
	height: 20px;
}
.tb-wheel-trigger-copy {
	display: flex;
	flex-direction: column;
	text-align: left;
	line-height: 1.2;
}
.tb-wheel-trigger-title {
	font-size: 13px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 5px;
}
.tb-wheel-trigger-badge {
	font-size: 9px;
	font-weight: 800;
	background: #10b981;
	color: #ffffff;
	padding: 1px 6px;
	border-radius: 6px;
	text-transform: uppercase;
}
.tb-wheel-trigger-desc {
	font-size: 11px;
	font-weight: 600;
	color: #ff7676;
}

@keyframes tb-pulse-glow {
	0%, 100% {
		box-shadow: 0 10px 30px -5px rgba(255, 65, 108, 0.35), 0 0 12px rgba(255, 77, 77, 0.2);
	}
	50% {
		box-shadow: 0 14px 40px -3px rgba(255, 65, 108, 0.65), 0 0 24px rgba(255, 77, 77, 0.45);
	}
}
@keyframes tb-spin-icon {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* Modal Backdrop */
.tb-wheel-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(8, 8, 12, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}
.tb-wheel-modal-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* Modal Card */
.tb-wheel-card {
	position: relative;
	width: 100%;
	max-width: 480px;
	background: #121216;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 28px;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 65, 108, 0.15);
	padding: 32px 24px 28px;
	text-align: center;
	color: #ffffff;
	transform: scale(0.92) translateY(20px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}
.tb-wheel-modal-overlay.is-open .tb-wheel-card {
	transform: scale(1) translateY(0);
}

/* Ambient Radial Glow */
.tb-wheel-card::before {
	content: '';
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 65, 108, 0.25) 0%, rgba(255, 75, 43, 0) 70%);
	pointer-events: none;
}

/* Close Button */
.tb-wheel-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	z-index: 10;
}
.tb-wheel-close:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	transform: rotate(90deg);
}

/* Header */
.tb-wheel-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(255, 65, 108, 0.12);
	border: 1px solid rgba(255, 65, 108, 0.3);
	color: #ff5268;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}
.tb-wheel-title {
	font-size: 24px;
	font-weight: 900;
	color: #ffffff;
	margin: 0 0 6px;
	letter-spacing: -0.02em;
	line-height: 1.25;
}
.tb-wheel-title span {
	background: linear-gradient(135deg, #ff416c, #ff4b2b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}
.tb-wheel-desc {
	font-size: 13px;
	color: #94a3b8;
	margin: 0 0 24px;
	line-height: 1.45;
}
.tb-wheel-require-auth-text {
	color: #f1f5f9;
	font-size: 13.5px;
}
.tb-wheel-require-auth-text strong {
	color: #ff4d4d;
}

/* Wheel Container */
.tb-wheel-stage {
	position: relative;
	width: 320px;
	height: 320px;
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Outer Ring */
.tb-wheel-outer-ring {
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2a2a32 0%, #151518 100%);
	border: 3px solid #ff4b2b;
	box-shadow: 0 0 30px rgba(255, 75, 43, 0.35), inset 0 0 15px rgba(0, 0, 0, 0.8);
	pointer-events: none;
}

/* Lights on Ring */
.tb-wheel-lights {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
}
.tb-wheel-light-dot {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffd700;
	box-shadow: 0 0 8px #ffd700;
	transform: translate(-50%, -50%);
	animation: tb-light-blink 1.2s infinite alternate;
}
@keyframes tb-light-blink {
	0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
	100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* SVG Wheel */
.tb-wheel-svg {
	width: 320px;
	height: 320px;
	border-radius: 50%;
	display: block;
	cursor: pointer;
	transform-origin: 160px 160px;
	transform: rotate(0deg);
	transition: transform 5s cubic-bezier(0.12, 0.95, 0.22, 1);
	will-change: transform;
}

/* Top Pointer Needle */
.tb-wheel-pointer {
	position: absolute;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	width: 32px;
	height: 38px;
	z-index: 20;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
	transform-origin: 50% 15%;
	transition: transform 0.15s ease;
}
.tb-wheel-pointer.is-ticking {
	transform: translateX(-50%) rotate(-18deg);
}

/* Center Spin Button */
.tb-wheel-center-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
	border: 4px solid #ffffff;
	box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 15;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	user-select: none;
}
.tb-wheel-center-btn:hover {
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 8px 28px rgba(255, 65, 108, 0.8), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}
.tb-wheel-center-btn:active {
	transform: translate(-50%, -50%) scale(0.95);
}
.tb-wheel-center-btn.is-disabled {
	opacity: 0.7;
	pointer-events: none;
	cursor: default;
}

/* Action Button Below Wheel */
.tb-wheel-action-btn {
	width: 100%;
	padding: 14px 20px;
	border-radius: 16px;
	background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
	border: none;
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 25px -4px rgba(255, 65, 108, 0.5);
	transition: all 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	outline: none;
}
.tb-wheel-action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -2px rgba(255, 65, 108, 0.7);
}
.tb-wheel-action-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Result / Victory View */
.tb-wheel-result-view {
	display: none;
	animation: tb-fade-in 0.4s ease forwards;
}
.tb-wheel-result-view.is-visible {
	display: block;
}
.tb-wheel-trophy-box {
	width: 76px;
	height: 76px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(255, 65, 108, 0.2), rgba(255, 75, 43, 0.1));
	border: 1px solid rgba(255, 75, 43, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	color: #ff4b2b;
	box-shadow: 0 10px 30px rgba(255, 75, 43, 0.3);
	animation: tb-bounce 1s ease infinite alternate;
}
.tb-wheel-trophy-box svg {
	width: 42px;
	height: 42px;
}
@keyframes tb-bounce {
	0% { transform: translateY(0); }
	100% { transform: translateY(-8px); }
}
@keyframes tb-fade-in {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

/* Coupon Box */
.tb-wheel-coupon-box {
	background: rgba(255, 255, 255, 0.04);
	border: 2px dashed rgba(255, 77, 77, 0.5);
	border-radius: 18px;
	padding: 16px 20px;
	margin: 20px 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tb-wheel-coupon-code {
	font-family: monospace;
	font-size: 20px;
	font-weight: 900;
	color: #ffffff;
	letter-spacing: 0.1em;
}
.tb-wheel-copy-btn {
	padding: 8px 16px;
	border-radius: 10px;
	background: #ff4b2b;
	color: #fff;
	border: none;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 6px;
}
.tb-wheel-copy-btn:hover {
	background: #ff3210;
	transform: scale(1.05);
}

/* Register & Login Subtext */
.tb-wheel-auth-subtext {
	margin-top: 14px;
	font-size: 13px;
	color: #94a3b8;
}
.tb-wheel-auth-subtext a {
	color: #ff5268;
	font-weight: 700;
	text-decoration: underline;
	margin-left: 4px;
	cursor: pointer;
}
.tb-wheel-auth-subtext a:hover {
	color: #ff7676;
}

/* Confetti Canvas */
.tb-wheel-confetti {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 100000;
}

/* Responsive adjustments */
/* Mobile: Compact Collapsible 3D Circle Badge */
.tb-wheel-trigger-badge-floating {
	display: none;
}

/* Mobile: Compact Collapsible 3D Circle Badge */
.tb-wheel-trigger-badge-floating {
	display: none;
}

@media (max-width: 768px) {
	.tb-wheel-trigger {
		top: auto !important;
		bottom: 85px !important;
		left: 20px !important;
		right: auto !important;
		transform: none !important;
		width: 48px !important;
		height: 48px !important;
		padding: 0 !important;
		border-radius: 50% !important;
		background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
		border: 2.5px solid #ffffff !important;
		box-shadow: 0 8px 22px rgba(255, 65, 108, 0.65), 0 0 16px rgba(255, 75, 43, 0.4) !important;
		justify-content: center !important;
		align-items: center !important;
		animation: tb-pulse-glow-mobile 2.5s infinite ease-in-out !important;
		z-index: 9999 !important;
	}
	.tb-wheel-trigger-copy {
		display: none !important;
	}
	.tb-wheel-trigger-icon-box {
		width: 100% !important;
		height: 100% !important;
		background: transparent !important;
		box-shadow: none !important;
	}
	.tb-wheel-trigger-icon-box svg {
		width: 24px !important;
		height: 24px !important;
	}
	.tb-wheel-trigger-badge-floating {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		position: absolute !important;
		top: -12px !important;
		left: 0 !important;
		right: auto !important;
		transform: none !important;
		background: #10b981 !important;
		color: #ffffff !important;
		font-size: 9.5px !important;
		font-weight: 900 !important;
		padding: 3px 8px !important;
		border-radius: 999px !important;
		border: 2px solid #13141a !important;
		box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
		letter-spacing: 0.02em !important;
		white-space: nowrap !important;
		pointer-events: none !important;
	}
	.tb-wheel-trigger:active {
		transform: scale(0.92) !important;
	}
	.tb-wheel-card {
		padding: 24px 16px 20px;
		border-radius: 22px;
	}
	.tb-wheel-stage {
		width: 270px;
		height: 270px;
	}
	.tb-wheel-svg {
		width: 270px;
		height: 270px;
		transform-origin: 135px 135px;
	}
	.tb-wheel-center-btn {
		width: 60px;
		height: 60px;
		font-size: 11px;
	}
	.tb-wheel-title {
		font-size: 20px;
	}
}