/**
 * Diiho Link Redirect Page Styles
 * Color: Dynamic theme accent (--diiho-accent)
 */

.diiho-redirect {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 36px 30px;
	box-sizing: border-box;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	background: var(--diiho-card-bg, rgba(255, 255, 255, 0.04));
	border: 1px solid rgba(125, 125, 125, 0.15);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

/* Light mode card */
html[data-theme='light'] .diiho-redirect,
body.diiho-light-mode .diiho-redirect {
	background: #ffffff;
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.08);
}

/* Dark mode card */
html[data-theme='dark'] .diiho-redirect,
body.diiho-dark-mode .diiho-redirect {
	background: #1e1e24;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 0.08);
}

/* Title */
.diiho-redirect-title {
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 700;
	margin-bottom: 8px;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

/* Wait text */
.diiho-redirect-wait {
	font-size: 15px;
	margin: 6px 0 16px !important;
	opacity: 0.8;
	font-weight: 500;
}

/* Status badge */
.diiho-redirect-check {
	font-size: 14px;
	font-weight: 600;
	color: var(--diiho-accent, #ff2d55);
	background: color-mix(in srgb, var(--diiho-accent, #ff2d55) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--diiho-accent, #ff2d55) 25%, transparent);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border-radius: 50px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px color-mix(in srgb, var(--diiho-accent, #ff2d55) 15%, transparent);
}

/* Progress bar container */
#myProgress {
	max-width: 520px;
	width: 100%;
	height: 32px;
	background: rgba(125, 125, 125, 0.12);
	border-radius: 50px;
	margin: 0 auto 24px;
	padding: 3px;
	box-sizing: border-box;
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(125, 125, 125, 0.18);
	overflow: hidden;
	position: relative;
}

/* Progress bar - Sử dụng màu chủ đạo */
#myBar {
	width: 0;
	min-width: 38px;
	height: 100%;
	background: linear-gradient(90deg, var(--diiho-accent, #ff2d55), var(--diiho-accent-dark, var(--diiho-accent, #ff2d55)));
	border-radius: 50px;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--diiho-accent, #ff2d55) 45%, transparent),
		inset 0 1px 1px rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: width 120ms linear;
	position: relative;
	overflow: hidden;
}

/* Hiệu ứng sọc chuyển động trên thanh tiến trình */
#myBar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-image: linear-gradient(-45deg,
			rgba(255, 255, 255, 0.2) 25%,
			transparent 25%,
			transparent 50%,
			rgba(255, 255, 255, 0.2) 50%,
			rgba(255, 255, 255, 0.2) 75%,
			transparent 75%,
			transparent);
	background-size: 28px 28px;
	animation: diiho-redirect-stripes 1s linear infinite;
	border-radius: 50px;
}

@keyframes diiho-redirect-stripes {
	0% {
		background-position: 0 0;
	}

	100% {
		background-position: 28px 0;
	}
}

/* Terms box */
.dieukhoanlk {
	background: rgba(125, 125, 125, 0.06);
	border: 1px solid rgba(125, 125, 125, 0.12);
	border-radius: 12px;
	margin-top: 24px;
	text-align: left;
	padding: 18px 20px;
	max-height: 220px;
	overflow-y: auto;
	font-size: 13.5px;
	line-height: 1.65;
	color: inherit;
	opacity: 0.82;
	scrollbar-width: thin;
}

.dieukhoanlk::-webkit-scrollbar {
	width: 6px;
}

.dieukhoanlk::-webkit-scrollbar-thumb {
	background: rgba(125, 125, 125, 0.25);
	border-radius: 10px;
}

.dieukhoanlk b u {
	text-decoration: none;
	color: var(--diiho-accent, #ff2d55);
	font-weight: 700;
	font-size: 14px;
	display: inline-block;
	margin-bottom: 4px;
}

.diiho-redirect-help-link {
	color: var(--diiho-accent, #ff2d55);
	text-decoration: underline;
	font-weight: 600;
}

.diiho-redirect-help-link:hover {
	opacity: 0.8;
}

/* Action buttons */
.diiho-redirect-actions {
	margin-top: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

#chuyenngay,
#dongchuyen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border: none;
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#chuyenngay {
	background: var(--diiho-accent, #ff2d55);
	color: #ffffff;
	box-shadow: 0 4px 16px color-mix(in srgb, var(--diiho-accent, #ff2d55) 40%, transparent);
}

#chuyenngay:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--diiho-accent, #ff2d55) 55%, transparent);
	color: #ffffff;
}

#chuyenngay[hidden] {
	display: none !important;
}

#dongchuyen {
	background: rgba(125, 125, 125, 0.12);
	color: inherit;
	border: 1px solid rgba(125, 125, 125, 0.2);
}

#dongchuyen:hover {
	background: #ef4444;
	color: #ffffff;
	border-color: #ef4444;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

/* Error state */
.diiho-redirect-error {
	padding: 20px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #ef4444;
	border-radius: 14px;
	font-weight: 600;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}