/**
 * Stylesheet Trang Thanh Toán Trực Tiếp Khóa Học Tinh Gọn (Compact & Modern)
 * Đồng bộ màu sắc thương hiệu web (#a24186), thiết kế tối giản, chuyển đổi cao
 */

:root {
	--ktech-brand: #a24186;
	--ktech-brand-dark: #7c2d68;
	--ktech-brand-light: #b8487d;
	--ktech-brand-gradient: linear-gradient(145deg, #7c2d68 0%, #a24186 60%, #b8487d 100%);
	--ktech-bg: #f8fafc;
	--ktech-text-main: #0f172a;
	--ktech-text-muted: #64748b;
	--ktech-border: #e2e8f0;
	--ktech-radius: 14px;
}

.ktech-checkout-page-wrapper,
.ktech-checkout-page-container {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2rem 1rem 3rem 1rem;
	background-color: var(--ktech-bg);
	min-height: calc(100vh - 100px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
}

.checkout-wrapper {
	max-width: 1020px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ==========================================================
 * THANH TIẾN TRÌNH 2 BƯỚC TINH GỌN (STEP BAR)
 * ========================================================== */
.ktech-step-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	background: #ffffff;
	padding: 10px 20px;
	border-radius: 50px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

.ktech-step-bar .step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	transition: all 0.2s ease;
}

.ktech-step-bar .step-item.active {
	color: var(--ktech-brand);
	font-weight: 700;
}

.ktech-step-bar .step-item.done {
	color: #16a34a;
	font-weight: 600;
}

.ktech-step-bar .step-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

.ktech-step-bar .step-item.active .step-num {
	background: var(--ktech-brand);
	color: #ffffff;
	border-color: var(--ktech-brand);
	box-shadow: 0 2px 8px rgba(162, 65, 134, 0.3);
}

.ktech-step-bar .step-item.done .step-num {
	background: #16a34a;
	color: #ffffff;
	border-color: #16a34a;
}

.ktech-step-bar .step-line {
	width: 40px;
	height: 2px;
	background: #e2e8f0;
	margin: 0 12px;
	border-radius: 2px;
	transition: background 0.3s;
}

.ktech-step-bar .step-line.done {
	background: #16a34a;
}

/* ==========================================================
 * BỐ CỤC 2 CỘT GỌN GÀNG (CHECKOUT GRID)
 * ========================================================== */
.ktech-checkout-grid {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	width: 100%;
}

.ktech-main-col {
	flex: 1;
	min-width: 0;
}

.ktech-summary-col {
	width: 340px;
	flex: 0 0 340px;
	min-width: 0;
	position: sticky;
	top: 100px;
}

/* ==========================================================
 * THẺ NỀN TRẮNG CHUẨN HIỆN ĐẠI (CARD SYSTEM)
 * ========================================================== */
.ktech-card {
	background: #ffffff;
	border-radius: var(--ktech-radius);
	padding: 22px 24px;
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
}

.ktech-card .card-head {
	margin-bottom: 16px;
}

.ktech-card .card-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--ktech-text-main);
	margin: 0 0 4px 0;
	line-height: 1.3;
}

.ktech-card .card-subtitle {
	font-size: 13px;
	color: var(--ktech-text-muted);
	margin: 0;
	line-height: 1.5;
}

/* ==========================================================
 * BƯỚC 1: FORM THÔNG TIN ĐĂNG KÝ
 * ========================================================== */
.ktech-user-logged-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fdf2f8;
	border: 1px solid #fbcfe8;
	padding: 9px 13px;
	border-radius: 9px;
	font-size: 13px;
	margin-bottom: 15px;
}

.ktech-user-logged-badge .user-avatar {
	font-size: 16px;
}

.ktech-user-logged-badge .user-info {
	color: var(--ktech-brand-dark);
}

.ktech-user-logged-badge .user-txt {
	color: #64748b;
	margin-right: 4px;
}

/* Nút Google Sign-In */
.google-auth-box {
	margin-bottom: 12px;
	display: flex;
	justify-content: center;
}

.google-btn-target {
	width: 100%;
	display: flex;
	justify-content: center;
}

.btn-google-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 9px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 50px;
	background: #ffffff;
	color: #1e293b;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-google-fallback:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.form-divider {
	text-align: center;
	margin: 14px 0;
	position: relative;
}

.form-divider::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: #f1f5f9;
}

.form-divider span {
	position: relative;
	background: #ffffff;
	padding: 0 12px;
	font-size: 12px;
	color: #94a3b8;
}

/* Các trường input form */
.form-field {
	margin-bottom: 13px;
}

.form-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 4px;
}

.form-field .req {
	color: #e11d48;
}

.input-wrap input {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 9px;
	font-size: 13.5px;
	color: #0f172a;
	background: #f8fafc;
	transition: all 0.2s ease;
	box-sizing: border-box;
	outline: none;
}

.input-wrap input:focus {
	border-color: var(--ktech-brand);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(162, 65, 134, 0.12);
}

.input-wrap input[readonly] {
	background: #f1f5f9;
	color: #64748b;
	cursor: not-allowed;
}

/* Nút Submit Tiếp tục thanh toán */
.btn-checkout-submit {
	width: 100%;
	background: var(--ktech-brand-gradient);
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
	box-shadow: 0 4px 15px rgba(162, 65, 134, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.btn-checkout-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(162, 65, 134, 0.38);
}

.btn-checkout-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.trust-badge-row {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 12px;
	font-size: 11.5px;
	color: #64748b;
}

.ktech-alert-msg {
	padding: 9px 13px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 12px;
	text-align: left;
}

.ktech-alert-msg.error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.ktech-alert-msg.success {
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.ktech-spinner {
	display: inline-block;
	width: 15px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: ktechSpin 0.7s linear infinite;
}

@keyframes ktechSpin {
	to { transform: rotate(360deg); }
}

/* ==========================================================
 * BƯỚC 2: QUÉT MÃ QR THANH TOÁN TINH GỌN (COMPACT QR STEP)
 * ========================================================== */
.badge-pending-status {
	display: inline-block;
	background: #fef3c7;
	color: #b45309;
	padding: 4px 14px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	margin-bottom: 6px;
	border: 1px solid #fde68a;
}

.payment-layout-row {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-top: 14px;
}

.qr-col {
	flex: 0 0 175px;
	text-align: center;
}

.qr-frame-box {
	width: 170px;
	height: 170px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 12px;
	padding: 6px;
	border: 2px solid #fbcfe8;
	box-shadow: 0 4px 18px rgba(162, 65, 134, 0.14);
	box-sizing: border-box;
}

.qr-frame-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 6px;
}

.qr-frame-box.is-expired {
	border-color: #fecaca;
	background: #f8fafc;
	position: relative;
}

.qr-frame-box.is-expired::after {
	content: 'HẾT HẠN';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	background: rgba(220, 38, 38, 0.92);
	color: #ffffff;
	padding: 4px 14px;
	border-radius: 4px;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 1px;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
	pointer-events: none;
	z-index: 2;
}

.qr-frame-box img.qr-expired {
	filter: grayscale(1) opacity(0.3);
	pointer-events: none;
}

.countdown-tag {
	margin-top: 8px;
	font-size: 12px;
	color: #475569;
}

.countdown-tag .timer-display {
	color: var(--ktech-brand);
	font-size: 13.5px;
	font-weight: 800;
}

.expired-alert-box {
	margin-top: 10px;
	padding: 8px 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	font-size: 12.5px;
	color: #b91c1c;
	line-height: 1.4;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}

.expired-alert-box a {
	display: inline-block;
	margin-top: 4px;
	color: #ffffff;
	background: var(--ktech-brand-gradient);
	padding: 5px 14px;
	border-radius: 50px;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(162, 65, 134, 0.25);
	transition: all 0.2s;
}

.expired-alert-box a:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(162, 65, 134, 0.35);
}

/* Bảng thông tin chuyển khoản */
.bank-info-col {
	flex: 1;
	min-width: 0;
}

.bank-data-list {
	background: #f8fafc;
	border-radius: 12px;
	padding: 12px 16px;
	border: 1px solid #e2e8f0;
}

.data-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 13px;
}

.data-row:last-child {
	border-bottom: none;
}

.data-label {
	color: #64748b;
	font-weight: 500;
	flex-shrink: 0;
	font-size: 12.5px;
}

.data-val {
	color: #0f172a;
}

.data-val.fw-bold {
	font-weight: 700;
}

.val-copy-box {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.highlight-acc {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-weight: 700;
	font-size: 13px;
	color: #0f172a;
	letter-spacing: 0.3px;
}

.highlight-amount {
	font-weight: 800;
	color: var(--ktech-brand);
	font-size: 14.5px;
}

.memo-highlight-row {
	background: #fdf2f8;
	padding: 7px 10px;
	border-radius: 8px;
	margin-top: 5px;
	border: 1px dashed #fbcfe8;
}

.highlight-memo {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-weight: 800;
	color: #7c2d68;
	font-size: 14px;
	background: #ffffff;
	padding: 3px 8px;
	border-radius: 5px;
	border: 1px solid #fbcfe8;
	letter-spacing: 0.5px;
}

.btn-copy-chip {
	background: #e2e8f0;
	border: none;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

.btn-copy-chip:hover {
	background: var(--ktech-brand);
	color: #ffffff;
}

.btn-copy-chip.btn-memo-copy {
	background: var(--ktech-brand);
	color: #ffffff;
}

.btn-copy-chip.btn-memo-copy:hover {
	background: var(--ktech-brand-dark);
}

.memo-notice-tip {
	margin-top: 8px;
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.4;
}

.ktech-realtime-status {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: #15803d;
	background: #f0fdf4;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #bbf7d0;
}

.ktech-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	animation: ktechPulse 1.5s infinite;
	flex-shrink: 0;
}

@keyframes ktechPulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.back-link-box {
	text-align: center;
	margin-top: 12px;
}

.back-link-box a {
	color: #64748b;
	font-size: 12px;
	text-decoration: underline;
}

.back-link-box a:hover {
	color: var(--ktech-brand);
}

/* ==========================================================
 * CỘT PHẢI: TÓM TẮT ĐƠN HÀNG (STICKY SUMMARY CARD)
 * ========================================================== */
.summary-card {
	padding: 18px 20px;
}

.summary-head {
	margin-bottom: 12px;
}

.summary-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ktech-brand);
	background: #fdf2f8;
	padding: 3px 10px;
	border-radius: 50px;
	border: 1px solid #fbcfe8;
}

.summary-course-item {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 14px;
}

.course-thumb-box {
	width: 84px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #0f172a;
}

.course-thumb-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.course-meta-box {
	min-width: 0;
}

.course-heading {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	margin: 0 0 3px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.course-instructor {
	font-size: 12px;
	color: #64748b;
	margin: 0;
}

.summary-perks-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-bottom: 12px;
}

.summary-perks-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.summary-perks-list ul li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #475569;
	margin: 0;
	padding: 0;
	line-height: 1.45;
}

.summary-perks-list ul li::before {
	content: "✔";
	color: #16a34a;
	font-weight: bold;
	font-size: 12px;
	flex-shrink: 0;
	margin-top: 1px;
}

.summary-perks-list p {
	font-size: 12px;
	color: #475569;
	margin: 0 0 6px 0;
	line-height: 1.45;
}

.perk-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #475569;
	line-height: 1.45;
}

.perk-icon {
	color: #16a34a;
	font-weight: bold;
	font-size: 12px;
	flex-shrink: 0;
	margin-top: 1px;
}

.perk-txt {
	flex: 1;
	line-height: 1.45;
}

.summary-price-divider {
	height: 1px;
	background: #f1f5f9;
	margin: 12px 0;
}

.summary-total-box {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.total-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #475569;
}

.total-price-val .price-main {
	font-size: 20px;
	font-weight: 800;
	color: var(--ktech-brand);
}

.total-price-val .price-old {
	font-size: 13px;
	color: #94a3b8;
	text-decoration: line-through;
	margin-right: 6px;
}

.total-price-val .price-free {
	font-size: 18px;
	font-weight: 800;
	color: #16a34a;
}

/* ==========================================================
 * CỘT PHẢI: SLIDER ĐÁNH GIÁ TỪ KHÁCH HÀNG (REVIEWS CARD)
 * ========================================================== */
.ktech-summary-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.reviews-slider-card {
	padding: 16px 18px;
	background: #ffffff;
	border-radius: var(--ktech-radius);
	border: 1px solid rgba(226, 232, 240, 0.9);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.reviews-slider-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	gap: 10px;
}

.reviews-head-title-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.reviews-stars-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.reviews-stars {
	color: #f59e0b;
	font-size: 13px;
	letter-spacing: 1px;
	line-height: 1;
}

.reviews-rating-tag {
	font-size: 11px;
	font-weight: 700;
	color: #b45309;
	background: #fef3c7;
	padding: 1px 6px;
	border-radius: 4px;
	line-height: 1.2;
}

.reviews-heading {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.reviews-slider-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}

.swiper-nav-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	padding: 0;
}

.swiper-nav-btn:hover {
	background: var(--ktech-brand);
	border-color: var(--ktech-brand);
	color: #ffffff;
	transform: scale(1.08);
}

.ktech-reviews-swiper {
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	position: relative;
}

.review-slide-card {
	position: relative;
	width: 100%;
	height: 250px;
	background: #f8fafc;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #f1f5f9;
	cursor: zoom-in;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.review-slide-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.review-slide-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.25s ease;
}

.review-slide-card:hover .review-slide-img {
	transform: scale(1.02);
}

.review-zoom-hint {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 9px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 5px;
	opacity: 0.85;
	transition: all 0.2s ease;
	pointer-events: none;
}

.review-slide-card:hover .review-zoom-hint {
	opacity: 1;
	background: rgba(162, 65, 134, 0.9);
}

.ktech-reviews-pagination {
	position: static !important;
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.ktech-reviews-pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	background: #cbd5e1;
	opacity: 0.8;
	margin: 0 !important;
	transition: all 0.2s ease;
}

.ktech-reviews-pagination .swiper-pagination-bullet-active {
	background: var(--ktech-brand);
	width: 18px;
	border-radius: 4px;
	opacity: 1;
}

.reviews-footer-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #f1f5f9;
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.4;
}

.reviews-note-icon {
	font-size: 13px;
	flex-shrink: 0;
}

/* ==========================================================
 * LIGHTBOX PHÓNG TO ẢNH ĐÁNH GIÁ
 * ========================================================== */
body.ktech-lightbox-open {
	overflow: hidden !important;
}

.ktech-lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ktech-lightbox-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(6px);
}

.ktech-lightbox-dialog {
	position: relative;
	z-index: 2;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ktech-lightbox-close {
	position: absolute;
	top: -42px;
	right: 0;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #ffffff;
	font-size: 28px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: all 0.2s ease;
}

.ktech-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.4);
	transform: scale(1.1);
}

.ktech-lightbox-img-wrap {
	max-width: 90vw;
	max-height: 85vh;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	background: #000;
}

.ktech-lightbox-img-wrap img {
	max-width: 100%;
	max-height: 85vh;
	display: block;
	object-fit: contain;
}

/* ==========================================================
 * RESPONSIVE MOBILE & TABLET (TỐI ƯU NHẸ NHÀNG)
 * ========================================================== */
@media (max-width: 920px) {
	.ktech-checkout-grid {
		flex-direction: column-reverse;
		gap: 20px;
	}

	.ktech-summary-col {
		width: 100%;
		flex: none;
		position: static;
		top: auto;
	}
}

@media (max-width: 640px) {
	.payment-layout-row {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.qr-col {
		flex: none;
		width: 100%;
	}

	.bank-info-col {
		width: 100%;
	}

	.data-row {
		font-size: 12px;
	}
}

/* ==========================================================
 * GIAO DIỆN CẢM ƠN (THANK YOU PAGE) SANG TRỌNG & ĐỒNG BỘ
 * ========================================================== */
.ktech-thankyou-page-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 3rem 1rem;
	background-color: var(--ktech-bg);
	min-height: calc(100vh - 120px);
	box-sizing: border-box;
}

.ktech-thankyou-wrapper {
	max-width: 980px;
	width: 100%;
	background: #ffffff;
	border-radius: var(--ktech-radius);
	box-shadow: 0 20px 45px rgba(162, 65, 134, 0.14), 0 6px 18px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(226, 232, 240, 0.8);
	overflow: hidden;
	box-sizing: border-box;
	padding: 2.5rem;
}

/* 1. BANNER CHÚC MỪNG PHÍA TRÊN */
.thankyou-celebration-header {
	text-align: center;
	margin-bottom: 2.2rem;
	padding-bottom: 1.8rem;
	border-bottom: 1px solid #f1f5f9;
}

.thankyou-badge-wrap {
	margin-bottom: 1.2rem;
}

.thankyou-status-badge {
	display: inline-block;
	background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
	color: var(--ktech-brand);
	border: 1px solid #fbcfe8;
	padding: 6px 20px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(162, 65, 134, 0.08);
}

.thankyou-icon-pulse-box {
	position: relative;
	width: 72px;
	height: 72px;
	margin: 0 auto 1.2rem auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pulse-ring {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: rgba(162, 65, 134, 0.2);
	animation: ktechPulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes ktechPulseRing {
	0% {
		transform: scale(0.85);
		opacity: 0.8;
	}
	70% {
		transform: scale(1.35);
		opacity: 0;
	}
	100% {
		transform: scale(1.35);
		opacity: 0;
	}
}

.pulse-icon {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--ktech-brand-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(162, 65, 134, 0.35);
}

.thankyou-title {
	font-size: 2rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
	line-height: 1.3;
}

.thankyou-desc {
	font-size: 1.05rem;
	color: var(--ktech-text-muted);
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.6;
}

/* 2. GRID 2 CỘT: KHÓA HỌC & BIÊN NHẬN */
.thankyou-content-grid {
	display: flex;
	gap: 2rem;
	align-items: stretch;
}

/* CỘT TRÁI: THẺ KHÓA HỌC GRADIENT */
.thankyou-course-card {
	flex: 1;
	background: var(--ktech-brand-gradient);
	color: #ffffff;
	border-radius: 16px;
	padding: 2.2rem 2rem;
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 12px 30px rgba(124, 45, 104, 0.25);
	overflow: hidden;
}

.card-inner-glow {
	position: absolute;
	top: -60px;
	right: -60px;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}

.course-badge-tag {
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	padding: 5px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin-bottom: 1.2rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.thankyou-thumb-box {
	width: 100%;
	height: 170px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.2rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.thankyou-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.thankyou-course-name {
	font-size: 1.45rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 0.6rem 0;
	line-height: 1.4;
}

.thankyou-author {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 1.4rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.thankyou-pills {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 2rem;
}

.pill-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-icon {
	color: #ffd700;
	font-size: 1rem;
}

.thankyou-course-cta {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.btn-start-learning {
	width: 100%;
	background: #ffffff;
	color: var(--ktech-brand) !important;
	padding: 15px 20px;
	border-radius: 50px;
	font-size: 1.05rem;
	font-weight: 800;
	text-decoration: none;
	text-align: center;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	letter-spacing: 0.3px;
	display: block;
	box-sizing: border-box;
}

.btn-start-learning:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	background: #fdf2f8;
	color: var(--ktech-brand-dark) !important;
}

.link-my-courses {
	color: rgba(255, 255, 255, 0.85);
	font-size: 13.5px;
	text-decoration: none;
	transition: color 0.2s;
}

.link-my-courses:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* CỘT PHẢI: BIÊN NHẬN ĐƠN HÀNG */
.thankyou-receipt-card {
	flex: 1.15;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.receipt-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.4rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #f1f5f9;
}

.receipt-title-box {
	display: flex;
	align-items: center;
	gap: 8px;
}

.receipt-title-box h4 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.badge-completed {
	background: #ecfdf5;
	color: #059669;
	border: 1px solid #a7f3d0;
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
}

.receipt-table {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 1.5rem;
}

.receipt-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	padding: 6px 0;
}

.row-label {
	color: #64748b;
}

.row-val {
	color: #1e293b;
	text-align: right;
}

.code-val {
	display: flex;
	align-items: center;
	gap: 6px;
}

.code-val strong {
	color: var(--ktech-brand);
	font-family: monospace;
	font-size: 15px;
}

.amount-row {
	background: #fdf2f8;
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px dashed #fbcfe8;
}

.amount-row .row-label {
	color: var(--ktech-brand-dark);
	font-weight: 600;
}

.amount-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--ktech-brand);
}

.seapay-val code {
	background: #f1f5f9;
	padding: 3px 8px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 13px;
	color: #334155;
}

.thankyou-account-notice {
	display: flex;
	gap: 12px;
	background: #fdf2f8;
	border: 1px solid #fbcfe8;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 1.2rem;
}

.notice-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.notice-text strong {
	display: block;
	color: var(--ktech-brand-dark);
	font-size: 13.5px;
	margin-bottom: 4px;
}

.notice-text p {
	margin: 0;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

.thankyou-zalo-card {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.zalo-icon-badge {
	font-size: 24px;
	flex-shrink: 0;
}

.zalo-text {
	flex: 1;
}

.zalo-text h5 {
	margin: 0 0 3px 0;
	font-size: 13.5px;
	font-weight: 700;
	color: #1e40af;
}

.zalo-text p {
	margin: 0;
	font-size: 12px;
	color: #475569;
	line-height: 1.4;
}

.btn-zalo-join {
	background: #0284c7;
	color: #ffffff !important;
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s;
}

.btn-zalo-join:hover {
	background: #0369a1;
}

.thankyou-actions-bar {
	display: flex;
	gap: 10px;
	margin-top: auto;
	flex-wrap: wrap;
}

.btn-thankyou-action {
	flex: 1;
	min-width: 120px;
	padding: 10px 14px;
	border-radius: 50px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s;
	display: inline-block;
	box-sizing: border-box;
}

.btn-invoice {
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	color: #334155 !important;
}

.btn-invoice:hover {
	border-color: var(--ktech-brand);
	color: var(--ktech-brand) !important;
	background: #fdf2f8;
}

.btn-account {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	color: #475569 !important;
}

.btn-account:hover {
	background: #f1f5f9;
	color: #0f172a !important;
}

.btn-home {
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	color: #64748b !important;
}

.btn-home:hover {
	background: #f8fafc;
	color: #334155 !important;
}

/* RESPONSIVE CHO THANKYOU PAGE */
@media (max-width: 850px) {
	.ktech-thankyou-wrapper {
		padding: 1.6rem;
		border-radius: 14px;
	}

	.thankyou-content-grid {
		flex-direction: column;
		gap: 1.5rem;
	}

	.thankyou-title {
		font-size: 1.6rem;
	}

	.thankyou-course-card,
	.thankyou-receipt-card {
		padding: 1.5rem;
	}

	.thankyou-zalo-card {
		flex-direction: column;
		text-align: center;
	}

	.btn-zalo-join {
		width: 100%;
		text-align: center;
	}
}
