.tnq-unlock-overlay {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100dvh;
	background: rgba(20, 20, 20, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	padding: 20px;
	padding-top: max(20px, env(safe-area-inset-top));
	padding-bottom: max(20px, env(safe-area-inset-bottom));
	box-sizing: border-box;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.tnq-unlock-overlay.tnq-unlock-show { display: flex; }

.tnq-unlock-box {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 460px;
	padding: 26px 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	position: relative;
	height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
	overflow-y: auto;
	margin: auto;
	box-sizing: border-box;
}
.tnq-unlock-box *, .tnq-unlock-box *::before, .tnq-unlock-box *::after { box-sizing: border-box; }

.tnq-unlock-close {
	position: absolute;
	top: 14px;
	right: 18px;
	cursor: pointer;
	color: #999;
	font-size: 22px;
	line-height: 1;
}
.tnq-unlock-close:hover { color: #333; }

.tnq-unlock-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 26px 6px 0;
}
.tnq-unlock-icon { font-size: 20px; }
.tnq-unlock-header h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: #222;
}
.tnq-unlock-sub {
	color: #666;
	font-size: 14px;
	margin: 0 0 16px;
	line-height: 1.5;
}
.tnq-unlock-content {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 6px;
	background: #fafafa;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}
.tnq-unlock-content img { max-width: 100%; border-radius: 8px; }
.tnq-unlock-loading { color: #999; text-align: center; padding: 10px 0; }

.tnq-unlock-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
	color: #333;
}
.tnq-unlock-input {
	width: 100%;
	padding: 13px 14px;
	border-radius: 10px;
	border: 2px solid #e2e2e2;
	font-size: 15px;
	margin-bottom: 14px;
	outline: none;
	color: #333;
	background: #fff;
}
.tnq-unlock-input:focus { border-color: #22c55e; }

.tnq-unlock-btn {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 10px;
	background: #22c55e;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .3px;
	cursor: pointer;
	transition: .2s;
}
.tnq-unlock-btn:hover { filter: brightness(1.08); }

.tnq-unlock-msg { min-height: 18px; margin-top: 12px; font-size: 14px; font-weight: 700; text-align: center; }
.tnq-unlock-msg.tnq-unlock-error { color: #ef4444; }
.tnq-unlock-msg.tnq-unlock-expired { color: #f97316; }
.tnq-unlock-msg.tnq-unlock-success { color: #22c55e; }

/* Nút hiện trong khung kết quả (đang chờ nhập Pass) để mở lại popup nếu người dùng lỡ đóng */
.tnq-unlock-reopen-btn {
	display: block;
	margin: 10px auto 0;
	padding: 10px 22px;
	border: none;
	border-radius: 30px;
	background: #e0a23e;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.tnq-unlock-reopen-btn:hover { background: #c98a2a; }
