/* ==========================================================================
   PremiumKey — theme indigo / cyan, dựng trên nền Bootstrap 5. Biến màu --pk-*
   có bản tối ở [data-theme="dark"] (nút đổi giao diện ở header, xem app.js).
   Component mới của PremiumKey (lưới nhà cung cấp, thẻ gói, trang key...) nằm
   ở premiumgo.css.
   ========================================================================== */

:root {
	--pk-primary: #4f46e5;
	--pk-primary-dark: #312e81;
	--pk-primary-light: #eef2ff;
	--pk-accent: #06b6d4;
	--pk-accent-light: #ecfeff;
	--pk-bg: #f6f7fb;
	--pk-ink: #0f172a;
	--pk-muted: #64748b;
	--pk-surface: #ffffff;
	--pk-surface-2: #f1f5f9;
	--pk-border: #e2e8f0;
	--radius-lg: 18px;
	--radius-md: 12px;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--pk-ink);
	background: var(--pk-bg);
}

a {
	text-decoration: none;
}

.text-pk-primary { color: var(--pk-primary) !important; }
.text-pk-accent { color: var(--pk-accent) !important; }
.text-footer-muted { color: rgba(255, 255, 255, 0.75); }

/* ===== Buttons ===== */
.btn-pk-primary {
	background: linear-gradient(135deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	border: none;
	color: #fff;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.65rem 1.6rem;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-pk-primary:hover,
.btn-pk-primary:focus {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

.btn-pk-outline {
	background: var(--pk-surface);
	border: 2px solid var(--pk-primary);
	color: var(--pk-primary);
	font-weight: 600;
	border-radius: 999px;
	padding: 0.6rem 1.5rem;
	transition: background 0.15s ease, color 0.15s ease;
}
.btn-pk-outline:hover {
	background: var(--pk-primary);
	color: #fff;
}

.btn-pk-accent {
	background: linear-gradient(135deg, var(--pk-accent) 0%, #0891b2 100%);
	border: none;
	color: #3a2a02;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.65rem 1.6rem;
	box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}
.btn-pk-accent:hover {
	color: #3a2a02;
	filter: brightness(1.05);
}

/* Nút Đăng nhập/Đăng ký/tên khách trên header — nhỏ gọn hơn nút CTA thường. */
.btn-pk-primary.header-auth-btn,
.btn-pk-outline.header-auth-btn,
.btn-pk-accent.header-auth-btn {
	padding: 0.35rem 1rem;
	font-size: 0.875rem;
	white-space: nowrap;
	box-shadow: none;
}
.btn-pk-primary.header-auth-btn:hover { transform: none; }
.btn-pk-outline.header-auth-btn { border-width: 1.5px; }
.header-account-name { max-width: 9rem; }

/* Số dư VNĐ/USD trên header (khách đã đăng nhập) — xem partials/header.php. */
.header-wallet {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-block: 0.2rem 0.2rem; padding-inline: 0.6rem 0.75rem;
	border-radius: 999px;
	background: var(--pk-accent-light);
	color: var(--pk-ink);
	text-decoration: none;
	white-space: nowrap;
}
.header-wallet:hover { color: var(--pk-primary); background: #ffecc0; }
.header-wallet .bi { font-size: 1.1rem; color: var(--pk-primary); }
.header-wallet-amounts {
	display: flex;
	flex-direction: column;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
}

/* ===== Topbar + Header ===== */
.topbar {
	background: var(--pk-primary-dark);
	color: #fff;
	font-size: 0.82rem;
}
.topbar-text i { color: var(--pk-accent); margin-inline-end: 0.25rem; }

.site-header .dropdown-menu {
	border: none;
	border-radius: var(--radius-md);
	box-shadow: 0 12px 30px rgba(43, 35, 32, 0.15);
	padding: 0.5rem;
}
.site-header .dropdown-item {
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-weight: 500;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item.active,
.site-header .dropdown-item:active { background: var(--pk-primary-light); color: var(--pk-primary); }

/* Mục menu cha có link thật: nhãn (link) + nút caret riêng để xổ submenu —
   xem partials/header.php. flex-wrap để .dropdown-menu xuống dòng khi navbar thu gọn. */
.site-header .nav-item-split {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}
.site-header .nav-item-split > .dropdown-toggle-split {
	padding-inline-start: 0.35rem !important;
	padding-inline-end: 0.5rem !important;
	margin-inline-start: -0.35rem;
}
.site-header .nav-item-split > .dropdown-menu { flex-basis: 100%; }

/* Desktop có chuột: rê vào mục cha là xổ menu con luôn (không cần click caret).
   Đặt top/left/margin tường minh vì khi mở bằng hover Bootstrap chưa gắn
   data-bs-popper="static" nên không tự định vị; margin-top 0 để không hở khe
   giữa mục cha và menu con (chuột đi qua khe sẽ làm mất :hover). Màn cảm ứng
   (hover: none) vẫn mở bằng click như cũ. */
@media (min-width: 992px) and (hover: hover) {
	.site-header .navbar-nav > .dropdown { position: relative; }
	.site-header .navbar-nav > .dropdown:hover > .dropdown-menu {
		display: block;
		top: 100%;
		inset-inline-start: 0;
		margin-top: 0;
	}
}

/* Submenu cấp 3 (Bootstrap không hỗ trợ dropdown lồng): desktop mở sang phải
   khi hover/focus, mobile mở bằng click (class .is-open, xem app.js). */
.site-header .dropdown-submenu { position: relative; }
.site-header .dropdown-submenu-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	cursor: pointer;
}
.site-header .dropdown-submenu-toggle::after {
	content: "\F285"; /* bi-chevron-right */
	font-family: "bootstrap-icons";
	font-size: 0.7rem;
}
.site-header .dropdown-submenu > .dropdown-menu {
	top: -0.5rem;
	inset-inline-start: 100%;
	margin-inline-start: 0.25rem;
}
@media (min-width: 992px) {
	.site-header .dropdown-submenu:hover > .dropdown-menu,
	.site-header .dropdown-submenu:focus-within > .dropdown-menu { display: block; }
}
@media (max-width: 991.98px) {
	.site-header .dropdown-submenu > .dropdown-menu {
		position: static;
		margin-block: 0 0; margin-inline: 0.75rem 0;
		box-shadow: none;
		padding: 0.25rem 0;
	}
	.site-header .dropdown-submenu.is-open > .dropdown-menu { display: block; }
	.site-header .dropdown-submenu-toggle::after { transition: transform 0.15s; }
	.site-header .dropdown-submenu.is-open > .dropdown-submenu-toggle::after { transform: rotate(90deg); }
}

/* ===== Language switcher ===== */
.lang-switcher-flag {
	display: inline-flex;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.lang-switcher-flag svg {
	width: 100%;
	height: 100%;
	display: block;
}
.lang-switcher-menu {
	min-width: 10rem;
	padding: 0.5rem;
	border-radius: 12px;
}
.lang-switcher-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 8px;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
}
.lang-switcher-item:hover { background: var(--pk-primary-light); color: var(--pk-primary); }
.lang-switcher-item.active {
	background: var(--pk-primary);
	color: #fff;
}
/* ===== Section headings ===== */
/* Tiêu đề kiểu thương mại điện tử: căn trái, link "Xem tất cả" bên phải cùng hàng */
.section-heading-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
}
.section-heading-row h2 { margin-bottom: 0; }
.section-more {
	color: var(--pk-primary);
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}
.section-more i { transition: transform 0.15s ease; display: inline-block; }
.section-more:hover { color: var(--pk-primary-dark); }
.section-more:hover i { transform: translateX(3px); }

.section-heading h2 {
	font-weight: 800;
	font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.25rem);
	color: var(--pk-ink);
	margin-bottom: 0.35rem;
}

/* ===== Product cards (render server-side qua resources/views/partials/product-card.php) ===== */
.product-card {
	background: var(--pk-surface);
	border: 1px solid rgba(43, 35, 32, 0.08);
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(43, 35, 32, 0.12);
}
.product-card-img-wrap {
	position: relative;
	background: var(--pk-accent-light);
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.product-card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.product-card-badge {
	position: absolute;
	top: 0.6rem;
	inset-inline-start: 0.6rem;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	color: #fff;
	text-transform: uppercase;
}
.badge-hot { background: var(--pk-primary); }
.badge-new { background: #2e8b57; }
.badge-sale { background: var(--pk-accent); color: #3a2a02; }

.product-card-body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.product-card-category {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--pk-primary);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.product-card-name {
	font-weight: 700;
	font-size: 0.98rem;
	margin: 0.25rem 0 0.4rem;
	color: var(--pk-ink);
}
.product-card-name a { color: inherit; }
.product-card-meta {
	font-size: 0.78rem;
	color: var(--pk-muted);
	margin-bottom: 0.6rem;
}
.product-card-price-row {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.product-card-price {
	font-weight: 800;
	color: var(--pk-primary);
	font-size: 1.05rem;
}
.product-card-price-original {
	font-size: 0.82rem;
	color: var(--pk-muted);
	text-decoration: line-through;
}
/* Biến thể nhỏ gọn (trang chủ — partials/product-card.php với $compact = true). */
.product-card-compact .product-card-img-wrap { aspect-ratio: 1 / 1; }
.product-card-compact .product-card-badge { top: 0.4rem; inset-inline-start: 0.4rem; font-size: 0.62rem; padding: 0.2rem 0.45rem; }
.product-card-compact .product-card-body { padding: 0.65rem 0.75rem 0.75rem; }
.product-card-compact .product-card-category { font-size: 0.65rem; }
.product-card-compact .product-card-name {
	font-size: 0.86rem;
	line-height: 1.3;
	margin: 0.2rem 0 0.3rem;
	/* Tối đa 2 dòng để các thẻ cùng hàng đều nhau */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card-compact .product-card-meta { font-size: 0.7rem; margin-bottom: 0.4rem; }
.product-card-compact .product-card-price-row { gap: 0.1rem 0.4rem; }
.product-card-compact .product-card-price { font-size: 0.92rem; }
.product-card-compact .product-card-price-original { font-size: 0.72rem; }
.product-card-compact:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(43, 35, 32, 0.1); }

.product-grid-loading,
.product-grid-empty,
.product-grid-error {
	color: var(--pk-muted);
}

/* ===== Footer ===== */
.site-footer {
	background: var(--pk-primary-dark);
	color: rgba(255, 255, 255, 0.9);
}
.site-footer .brand-text { color: #fff; font-weight: 800; font-size: 1.3rem; }
.footer-heading {
	color: #fff;
	font-weight: 700;
	margin-bottom: 1rem;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.03em;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}
.footer-links a:hover { color: var(--pk-accent); }
.social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transition: background 0.15s ease;
}
.social-btn:hover { background: var(--pk-accent); color: #3a2a02; }
.newsletter-form .form-control {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
}
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.6); }
.footer-bottom {
	background: rgba(0, 0, 0, 0.18);
	color: rgba(255, 255, 255, 0.75);
}

/* ===== Back to top ===== */
.btn-back-to-top {
	position: fixed;
	inset-inline-end: 1.25rem;
	bottom: 1.25rem;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pk-primary);
	color: #fff;
	border: none;
	box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1040;
}
.btn-back-to-top.show { display: flex; }

/* ===== Page banner (listing/about/contact) ===== */
.page-banner {
	background: linear-gradient(135deg, var(--pk-primary-light) 0%, #fff 100%);
	padding: 2.2rem 0 1.6rem;
	border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}
.page-banner .breadcrumb { --bs-breadcrumb-divider: '›'; font-size: 0.85rem; }
.page-banner-title { font-weight: 800; color: var(--pk-ink); }
.page-banner-subtitle { color: var(--pk-muted); margin-bottom: 0; }

/* ===== Sidebar filter (listing page) ===== */
.filter-box {
	background: var(--pk-surface);
	border: 1px solid rgba(43, 35, 32, 0.08);
	border-radius: var(--radius-md);
	padding: 1.25rem;
}
.filter-box-title { font-weight: 700; margin-bottom: 0.75rem; }
#categoryFilterList .list-group-item {
	border: none;
	border-radius: 8px !important;
	font-weight: 500;
	color: var(--pk-ink);
	cursor: pointer;
}
#categoryFilterList .list-group-item.active {
	background: var(--pk-primary);
	color: #fff;
}
#categoryFilterList .list-group-item:not(.active):hover { background: var(--pk-primary-light); }

/* ===== Product detail ===== */
.product-gallery {
	position: relative;
	background: var(--pk-accent-light);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	text-align: center;
}
.product-gallery img { max-width: 100%; max-height: 360px; }
.product-badge {
	position: absolute;
	top: 1rem;
	inset-inline-start: 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	color: #fff;
	text-transform: uppercase;
}
.product-title { font-weight: 800; margin: 0.4rem 0 0.6rem; }
.product-short-desc { color: var(--pk-muted); }
.product-price-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 1rem 0;
}
.product-price { font-size: 1.9rem; font-weight: 800; color: var(--pk-primary); }
.product-price-original { font-size: 1.1rem; color: var(--pk-muted); text-decoration: line-through; }
.denomination-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; }
.denomination-item {
	display: inline-block;
	border: 2px solid rgba(79, 70, 229, 0.25);
	background: var(--pk-surface);
	color: var(--pk-ink);
	font-weight: 700;
	padding: 0.5rem 1.1rem;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.denomination-item:hover { border-color: var(--pk-primary); color: var(--pk-ink); }
.denomination-item.active {
	border-color: var(--pk-primary);
	background: var(--pk-primary);
	color: #fff;
}
.denomination-item.is-out-of-stock {
	opacity: 0.6;
	border-color: rgba(0, 0, 0, 0.15);
}
.denomination-item.is-out-of-stock:hover { border-color: rgba(0, 0, 0, 0.15); }
.product-meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; color: var(--pk-muted); }
.product-description-box {
	background: var(--pk-surface);
	border: 1px solid rgba(43, 35, 32, 0.08);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	color: var(--pk-ink);
	line-height: 1.7;
}

/* ===== About page ===== */
.stat-card {
	background: var(--pk-surface);
	border: 1px solid rgba(79, 70, 229, 0.12);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	text-align: center;
}
.stat-number { font-weight: 800; font-size: 1.6rem; color: var(--pk-primary); }
.stat-label { color: var(--pk-muted); font-size: 0.85rem; }

/* ===== Contact page ===== */
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-info-list i { font-size: 1.4rem; color: var(--pk-primary); margin-top: 0.15rem; }
.contact-form-box {
	background: var(--pk-surface);
	border: 1px solid rgba(43, 35, 32, 0.08);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
}

/* ===== Error page ===== */
.error-page { min-height: 50vh; display: flex; align-items: center; }
.error-emoji { font-size: 3rem; }
.error-status { font-weight: 800; color: var(--pk-primary); font-size: 3rem; }
.error-message { color: var(--pk-muted); }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
	.site-header .nav-link.active,
	.site-header .nav-link:hover { background: transparent; }
}

/* ===== Trang tĩnh do admin soạn (pages/show.php, App\Models\Page) ===== */
.page-content { max-width: 860px; margin: 0 auto; line-height: 1.75; color: var(--pk-ink); overflow-wrap: anywhere; }
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 { font-weight: 700; margin: 1.75rem 0 0.75rem; }
.page-content h2 { font-size: 1.5rem; }
.page-content h3 { font-size: 1.25rem; }
.page-content > :first-child { margin-top: 0; }
.page-content p,
.page-content ul,
.page-content ol,
.page-content blockquote,
.page-content table { margin-bottom: 1rem; }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius-lg); }
.page-content a { color: var(--pk-primary); }
.page-content blockquote { border-inline-start: 4px solid var(--pk-accent, #f5b83d); padding: 0.25rem 1rem; color: var(--pk-muted); }
.page-content table { width: 100%; border-collapse: collapse; }
.page-content th,
.page-content td { border: 1px solid rgba(43, 35, 32, 0.15); padding: 0.5rem 0.75rem; }
.page-content pre { background: #faf6f2; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }

/* ===== Trang chủ: dải "Thương hiệu nổi bật" (resources/views/home.php) =====
   1 hàng không xuống dòng, căn trái theo tiêu đề; tràn thì cuộn ngang. */
.brand-strip {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.5rem 0.25rem 1rem;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: rgba(79, 70, 229, 0.35) transparent;
	-webkit-overflow-scrolling: touch;
}
.brand-strip::-webkit-scrollbar { height: 6px; }
.brand-strip::-webkit-scrollbar-thumb { background: rgba(79, 70, 229, 0.35); border-radius: 999px; }
.brand-strip::-webkit-scrollbar-track { background: transparent; }

.brand-tile {
	flex: 0 0 auto;
	width: 9rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	padding: 1rem 0.75rem;
	background: var(--pk-surface);
	border: 1px solid rgba(79, 70, 229, 0.08);
	border-radius: var(--radius-md);
	color: var(--pk-ink);
	scroll-snap-align: start;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brand-tile:hover,
.brand-tile:focus-visible {
	color: var(--pk-primary);
	border-color: rgba(79, 70, 229, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(49, 46, 129, 0.1);
}
/* Logo thương hiệu thường là ảnh ngang — contain để không bị cắt chữ. */
.brand-tile-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 4rem;
	padding: 0.4rem;
	border-radius: 10px;
	background: var(--pk-surface);
}
.brand-tile-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile-name {
	max-width: 100%;
	font-weight: 600;
	font-size: 0.9rem;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 575.98px) {
	.brand-tile { width: 7.5rem; padding: 0.85rem 0.5rem; }
	.brand-tile-logo { height: 3.25rem; }
}

/* Thông báo "Đã lưu" hiện cạnh nút Lưu ở trang /account (resources/views/account/profile.php). */
.account-saved-note {
	color: #198754;
	font-weight: 600;
	font-size: 0.92rem;
	animation: account-saved-in 0.3s ease-out;
}
@keyframes account-saved-in {
	from { opacity: 0; transform: translateX(-6px); }
	to { opacity: 1; transform: none; }
}

/* ===== Khu tài khoản khách đã đăng nhập (/account/...) =====
   Xem resources/views/account/{_nav,_avatar,profile}.php */
.account-page {
	padding: 1.5rem 0 3rem;
	background:
		radial-gradient(circle at 8% 0%, rgba(6, 182, 212, 0.14), transparent 34%),
		radial-gradient(circle at 95% 60%, rgba(79, 70, 229, 0.06), transparent 38%);
}

.account-avatar {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pk-accent) 0%, #0891b2 100%);
	color: #fff;
	font-weight: 800;
	line-height: 1;
}
img.account-avatar { object-fit: cover; background: #f6f1ec; }
.account-avatar-sm { width: 1.6rem; height: 1.6rem; font-size: 0.75rem; }
.account-avatar-md { width: 2.85rem; height: 2.85rem; font-size: 1.15rem; }
.account-avatar-xl {
	width: 6rem;
	height: 6rem;
	font-size: 2.4rem;
	box-shadow: 0 6px 16px rgba(58, 42, 2, 0.18);
}
.account-avatar-lg {
	width: 3.5rem;
	height: 3.5rem;
	font-size: 1.45rem;
	border: 2px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 6px 14px rgba(58, 42, 2, 0.22);
}

/* Menu trái */
.account-nav {
	padding: 0.75rem;
	border-radius: var(--radius-lg);
	background: var(--pk-surface);
	box-shadow: 0 1px 2px rgba(43, 35, 32, 0.04), 0 10px 26px rgba(49, 46, 129, 0.06);
}
.account-nav-user {
	align-items: center;
	gap: 0.65rem;
	padding: 0.2rem 0.3rem 0.75rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px dashed #eadfd4;
}
.account-nav-meta { min-width: 0; }
.account-nav-name { font-weight: 700; }
.account-nav-email { font-size: 0.82rem; color: var(--pk-muted); }
.account-nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.account-nav-logout { margin: 0.5rem 0 0; padding-top: 0.5rem; border-top: 1px dashed #eadfd4; }
.account-nav-link {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0.5rem 0.8rem;
	border: 0;
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--pk-ink);
	font-weight: 500;
	text-align: start;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.account-nav-link .bi { font-size: 1.1rem; color: var(--pk-muted); transition: color 0.15s ease; }
.account-nav-link:hover { background: var(--pk-bg); color: var(--pk-primary); }
.account-nav-link:hover .bi { color: var(--pk-primary); }
.account-nav-link.active {
	position: relative;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-weight: 700;
}
.account-nav-link.active .bi { color: var(--pk-primary); }
.account-nav-link.is-logout,
.account-nav-link.is-logout .bi { color: #b4232f; }
.account-nav-link.is-logout:hover { background: #fdf0f0; }
@media (min-width: 992px) {
	.account-nav { position: sticky; top: calc(var(--header-sticky-h) + 1rem); }
	.account-nav-link.active::before {
		content: '';
		position: absolute;
		inset-inline-start: 0;
		top: 22%;
		bottom: 22%;
		width: 3px;
		border-radius: 3px;
		background: var(--pk-primary);
	}
}
/* Dưới lg: hàng chip cuộn ngang thay cho thẻ dọc. */
@media (max-width: 991.98px) {
	.account-nav { padding: 0.4rem; }
	.account-nav-list {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.account-nav-list::-webkit-scrollbar { display: none; }
	.account-nav-link { width: auto; padding: 0.55rem 0.9rem; font-size: 0.92rem; }
	.account-nav-logout { margin-block: 0 0; margin-inline: auto 0; padding-block: 0 0; padding-inline: 0.4rem 0; border-top: 0; border-inline-start: 1px dashed #eadfd4; }
}

/* Thẻ đầu trang hồ sơ: avatar + tên/badge bên trái, dải số liệu (đơn hàng, số dư) bên phải
   — xuống dòng thành hàng riêng khi hẹp. */
.account-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.9rem 1rem;
	padding: 1rem 1.25rem;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.4) 0, transparent 40%),
		linear-gradient(140deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(49, 46, 129, 0.2);
}
.account-hero-body { flex: 1 1 14rem; min-width: 0; }
.account-hero-name { font-size: 1.15rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.account-hero-email { font-size: 0.85rem; opacity: 0.85; overflow-wrap: anywhere; }
.account-hero-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.account-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	font-size: 0.74rem;
	font-weight: 600;
}
.account-badge.is-ok { background: var(--pk-surface); color: #157347; }
.account-badge.is-warn { background: var(--pk-accent-light); color: #8a5a00; }
.account-hero-stats { display: flex; flex: 1 1 100%; gap: 0.5rem; }
.account-hero-stat {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	min-width: 0;
	padding: 0.45rem 0.75rem;
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	transition: background 0.15s ease;
}
.account-hero-stat:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.account-hero-stat-label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-hero-stat-label .bi { color: var(--pk-accent); }
.account-hero-stat-value { font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1200px) {
	.account-hero-stats { flex: 0 1 auto; }
	.account-hero-stat { flex: 0 1 auto; min-width: 7.5rem; }
}

/* Banner chưa xác thực email */
.account-verify {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 0.6rem 0.9rem;
	border: 1px solid #f1d9a0;
	border-radius: var(--radius-md);
	background: var(--pk-accent-light);
}
.account-verify-icon { font-size: 1.2rem; color: #a87410; }
.account-verify-text { flex: 1 1 16rem; font-size: 0.88rem; }
.account-verify .btn-pk-outline { padding: 0.25rem 0.9rem; border-width: 1.5px; font-size: 0.85rem; }

/* Thẻ form hồ sơ / mật khẩu — ô nhập thấp hơn trang đăng nhập cho gọn. */
.account-card {
	padding: 1.1rem 1.25rem 1.25rem;
	border-radius: var(--radius-lg);
	background: var(--pk-surface);
	box-shadow: 0 1px 2px rgba(43, 35, 32, 0.04), 0 8px 20px rgba(49, 46, 129, 0.05);
	scroll-margin-top: calc(var(--header-sticky-h) + 1rem);
}
.account-card-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.account-card-head .auth-icon-badge { flex-shrink: 0; width: 2.25rem; height: 2.25rem; margin-bottom: 0; font-size: 1rem; }
.account-card-title { margin: 0; font-size: 1rem; font-weight: 700; }
.account-card-intro { margin: 0; font-size: 0.8rem; color: var(--pk-muted); }
.account-card-note { font-size: 0.8rem; color: var(--pk-muted); }
.account-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.25rem; }
.account-card-actions .btn-pk-primary,
.account-card-actions .btn-pk-outline { padding: 0.45rem 1.35rem; }
/* Thẻ ảnh đại diện — preview tròn bên trái, nút + gợi ý bên phải (mobile xếp dọc, căn giữa). */
.account-avatar-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.account-avatar-form { flex: 1 1 16rem; min-width: 0; margin: 0; }
.account-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.account-avatar-actions .btn-pk-primary,
.account-avatar-actions .btn-pk-outline { padding: 0.45rem 1.2rem; }
.account-avatar-actions .btn-pk-outline { cursor: pointer; }
.account-avatar-remove { padding: 0.45rem 0.5rem; color: var(--pk-muted); font-size: 0.875rem; text-decoration: none; }
.account-avatar-remove:hover { color: var(--pk-primary); }
.account-avatar-filename { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 600; }
.account-avatar-filename:empty { display: none; }
.account-avatar-hint { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--pk-muted); }
.account-avatar-form .account-saved-note { display: inline-block; margin-top: 0.4rem; }
#avatarInput:focus-visible + .account-avatar-actions label { outline: 2px solid var(--pk-accent); outline-offset: 2px; }
@media (max-width: 575.98px) {
	.account-avatar-editor { flex-direction: column; text-align: center; }
	.account-avatar-form { flex-basis: auto; width: 100%; }
	.account-avatar-actions { justify-content: center; }
}

.account-card .auth-field { margin-bottom: 0.75rem !important; }
.account-card .auth-field .form-label { margin-bottom: 0.25rem; font-size: 0.85rem; }
.account-card .auth-field .form-text { margin-top: 0.2rem; font-size: 0.78rem; }
.account-card .auth-input { height: 2.5rem; font-size: 0.95rem; }
.account-card .auth-input:disabled { background-color: #f6f1ec; color: var(--pk-muted); cursor: not-allowed; }
@media (max-width: 575.98px) {
	.account-card { padding: 1rem; }
}

/* Thẻ "Xoá tài khoản" (account.profile) + danh sách hậu quả dùng chung với trang xác nhận (account._delete_warnings). */
.account-card--danger { border: 1px solid rgba(220, 38, 38, 0.25); }
.account-card--danger .auth-icon-badge { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.account-card--danger .btn-outline-danger { padding: 0.45rem 1.35rem; }
.account-delete-list { margin: 0 0 1rem; padding-inline-start: 1.1rem; font-size: 0.85rem; color: var(--pk-muted); }
.account-delete-list li + li { margin-top: 0.25rem; }
.account-delete-list .is-warn { color: #b91c1c; font-weight: 600; }

/* Thẻ "Thông tin cá nhân" bản gọn (account._input compact): ghi chú cạnh nhãn, ổ khoá cuối ô chỉ xem,
   nút Lưu dồn phải trên đường kẻ mảnh. */
.account-card--compact .account-card-head { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--pk-border); }
.account-card--compact .auth-field { margin-bottom: 0.65rem !important; }
.account-card--compact .account-card-actions { justify-content: flex-end; margin-top: 0.35rem; padding-top: 0.75rem; border-top: 1px solid var(--pk-border); }
.account-card--compact .account-saved-note { margin-inline-end: auto; font-size: 0.85rem; }
.form-label-note { font-weight: 400; font-size: 0.78rem; color: var(--pk-muted); }
.auth-input-lock {
	position: absolute;
	top: 50%;
	inset-inline-end: 0.9rem;
	z-index: 2;
	transform: translateY(-50%);
	color: #b8ada4;
	font-size: 0.85rem;
	cursor: help;
}
.auth-input.has-lock { padding-inline-end: 2.4rem; }

/* Ô chọn quốc gia nâng lên Tom Select (app.js, select[data-country-select]) — cờ flag-icons cạnh tên. */
.country-opt { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.country-opt > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-opt .fi { flex-shrink: 0; width: 1.3em; line-height: 0.975em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08); }
.ts-dropdown {
	margin-top: 0.3rem;
	border: 1px solid var(--pk-border);
	border-radius: var(--radius-md);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
	overflow: hidden;
}
.ts-dropdown .ts-dropdown-content { max-height: 260px; }
.ts-dropdown .option { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
.ts-dropdown .active { background: var(--pk-primary-light); color: var(--pk-ink); }
.ts-dropdown .selected { font-weight: 600; color: var(--pk-primary); }
.ts-dropdown .no-results { padding: 0.6rem 0.85rem; color: var(--pk-muted); font-size: 0.88rem; }
/* Theme bootstrap5 của Tom Select ép .ts-control không viền/nền (!important) — viền, nền, mũi tên nằm ở
   wrapper (chép class form-select / auth-input của select gốc), .ts-control chỉ lo padding. */
.ts-wrapper.form-select { height: auto; cursor: pointer; }
.ts-wrapper.form-select .ts-control { padding-block: 0.375rem 0.375rem; padding-inline: 0.75rem 2.25rem; cursor: pointer; }
.ts-wrapper.form-select.focus { border-color: var(--pk-primary); box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15); }
.ts-wrapper.form-select.focus .ts-control { box-shadow: none; }
/* Checkout (giỏ/thanh toán): cùng viền, bo góc, cỡ với .shop-page .form-control. */
.shop-page .ts-wrapper.form-select { min-height: calc(1.5em + 1.2rem + 2px); border-color: rgba(43, 35, 32, 0.14); border-radius: var(--radius-md); }
.shop-page .ts-wrapper.form-select .ts-control { padding-block: 0.6rem 0.6rem; padding-inline: 0.85rem 2.25rem; }
.shop-page .ts-wrapper.form-select.focus { border-color: rgba(79, 70, 229, 0.45); box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12); }
/* Trong khung ô nhập tài khoản (icon đầu ô) — wrapper mang sẵn kiểu .auth-input (viền 1.5px, nền kem). */
.auth-input-wrap .auth-input-icon { z-index: 2; }
.auth-input-wrap .ts-wrapper.auth-input { min-height: 3rem; height: auto; }
.account-card .auth-input-wrap .ts-wrapper.auth-input { min-height: 2.5rem; font-size: 0.95rem; }
.auth-input-wrap .ts-wrapper.auth-input .ts-control { padding-block: 0.375rem 0.375rem; padding-inline: 2.75rem 2.25rem; }
.auth-input-wrap .ts-wrapper.auth-input.focus {
	border-color: var(--pk-primary);
	background-color: var(--pk-surface);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.ts-wrapper.form-select.is-invalid,
.ts-wrapper.form-select.invalid { border-color: var(--bs-form-invalid-border-color, #dc3545); }

/* Ô SĐT = mã vùng + số (partials/phone-input.php): 2 ô dính liền thành 1 khối, ô mã vùng hẹp bên trái.
   Ô mã vùng nâng lên Tom Select (app.js, select[data-dial-select]) — danh sách đổ ra <body> nên rộng hơn ô. */
.phone-group { display: flex; align-items: stretch; }
.phone-group .phone-dial { flex: 0 0 7.5rem; width: 7.5rem; min-width: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.phone-group .phone-number { flex: 1 1 auto; min-width: 0; margin-inline-start: -1px; border-start-start-radius: 0; border-end-start-radius: 0; }
.phone-group .phone-dial.focus,
.phone-group .phone-dial:focus,
.phone-group .phone-number:focus { position: relative; z-index: 3; }
.phone-group .auth-input { padding-inline-start: 0.75rem; }
.phone-group .ts-wrapper.phone-dial .ts-control { padding-inline-start: 0.75rem; padding-inline-end: 1.9rem; flex-wrap: nowrap; }
.phone-group .ts-wrapper.phone-dial { background-position: right 0.55rem center; }
.phone-group .ts-wrapper.auth-input.phone-dial { min-height: 3rem; }
.account-card .phone-group .ts-wrapper.auth-input.phone-dial { min-height: 2.5rem; font-size: 0.95rem; }
.phone-group .ts-wrapper.auth-input.focus {
	border-color: var(--pk-primary);
	background-color: var(--pk-surface);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.phone-group .ts-wrapper.form-select.is-invalid { border-color: var(--bs-form-invalid-border-color, #dc3545); }
.phone-dial-dropdown { min-width: min(20rem, calc(100vw - 2rem)); }
.phone-dial-dropdown .dropdown-input-wrap { padding: 0.5rem; border-bottom: 1px solid rgba(127, 127, 127, 0.2); }
.phone-dial-dropdown .dropdown-input { width: 100%; padding: 0.4rem 0.65rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: var(--radius-md); background: transparent; color: inherit; font-size: 0.9rem; outline: none; }
.phone-dial-dropdown .dropdown-input:focus { border-color: var(--pk-primary); }
/* Checkout: .shop-page .form-control / .ts-wrapper.form-select bo cả 4 góc — giữ 2 ô dính liền. */
.shop-page .phone-group select.phone-dial,
.shop-page .phone-group .ts-wrapper.phone-dial { border-start-end-radius: 0; border-end-end-radius: 0; }
.shop-page .phone-group .phone-number { border-start-start-radius: 0; border-end-start-radius: 0; }

/* Danh sách đơn hàng / lịch sử giao dịch — xem account/{orders,wallet,_pagination}.php */
.account-list { margin: 0 -0.5rem; padding: 0; list-style: none; }
.account-list > li + li { border-top: 1px dashed #eee4da; }
.account-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 0.5rem;
	border-radius: var(--radius-md);
	color: var(--pk-ink);
}
a.account-row { transition: background 0.15s ease; }
a.account-row:hover { background: var(--pk-bg); color: var(--pk-ink); }
.account-row-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	font-size: 1.05rem;
	background: #f3eee9;
	color: var(--pk-muted);
}
.account-row-icon.is-success { background: #e6f4ec; color: #157347; }
.account-row-icon.is-warning { background: var(--pk-accent-light); color: #a87410; }
.account-row-icon.is-danger { background: var(--pk-primary-light); color: var(--pk-primary); }
.account-row-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.account-row-title { font-weight: 600; font-size: 0.93rem; line-height: 1.35; overflow-wrap: anywhere; }
.account-row-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; margin-top: 0.15rem; font-size: 0.78rem; color: var(--pk-muted); }
.account-row-meta > span + span::before { content: '·'; margin-inline-end: 0.6rem; }
.account-row-code { font-weight: 600; color: var(--pk-ink); }
.account-row-end { display: flex; flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 0.2rem; text-align: end; }
.account-row-amount { font-weight: 800; font-size: 0.98rem; white-space: nowrap; }
.account-row-amount.is-plus { color: #157347; }
.account-row-amount.is-minus { color: var(--pk-primary); }
.account-row-sub { font-size: 0.75rem; color: var(--pk-muted); white-space: nowrap; }
.account-row-arrow { flex-shrink: 0; color: #cbbfb4; transition: color 0.15s ease, transform 0.15s ease; }
a.account-row:hover .account-row-arrow { color: var(--pk-primary); transform: translateX(2px); }
.account-status {
	display: inline-block;
	padding: 0.12rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
	background: #f1ece7;
	color: var(--pk-muted);
}
.account-status.is-success { background: #e6f4ec; color: #157347; }
.account-status.is-warning { background: var(--pk-accent-light); color: #8a5a00; }
.account-status.is-danger { background: #fde8e8; color: #b42318; }
/* Đơn shop chưa thấy tiền: lời nhắn + nút trả lại / liên hệ dưới dòng đơn (account/orders.php). */
.account-row-alert { margin: 0 0.5rem 0.85rem; padding: 0.75rem 0.9rem; border: 1px solid #f5c2c0; border-radius: var(--radius-md); background: #fef5f5; font-size: 0.88rem; }
.account-row-alert p { margin: 0 0 0.6rem; color: #7a271a; }
.account-row-alert .btn { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
[data-theme="dark"] .account-status { background: var(--pk-surface-2); }
[data-theme="dark"] .account-status.is-success { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
[data-theme="dark"] .account-status.is-warning { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
[data-theme="dark"] .account-status.is-danger { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
[data-theme="dark"] .account-row-alert { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
[data-theme="dark"] .account-row-alert p { color: #fecaca; }
@media (max-width: 575.98px) {
	.account-row { flex-wrap: wrap; gap: 0.6rem 0.75rem; }
	.account-row-icon { width: 2.1rem; height: 2.1rem; font-size: 0.95rem; }
	.account-row-main { flex-basis: calc(100% - 3.5rem); }
	/* Số tiền + trạng thái xuống hàng dưới, thẳng mép chữ. */
	.account-row-end { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-inline-start: 2.85rem; text-align: start; }
	.account-row-arrow { display: none; }
}

.account-empty { padding: 1.5rem 1rem 1rem; text-align: center; color: var(--pk-muted); }
.account-empty-icon { margin-bottom: 0.5rem; font-size: 2.5rem; line-height: 1; }

.account-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--line);
}
.account-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.9rem;
	border: 1.5px solid #e9e1d8;
	border-radius: 999px;
	color: var(--pk-ink);
	font-size: 0.85rem;
	font-weight: 600;
	transition: border-color 0.15s ease, color 0.15s ease;
}
a.account-page-btn:hover { border-color: var(--pk-primary); color: var(--pk-primary); }
.account-page-btn.is-disabled { opacity: 0.4; }
.account-page-info { font-size: 0.82rem; color: var(--pk-muted); }
@media (prefers-reduced-motion: reduce) {
	a.account-row,
	.account-row-arrow { transition: none; }
}

/* ===== Trang tài khoản khách: Đăng nhập (gửi link email) / Xác nhận link =====
   Xem resources/views/account/{login,confirm_login,_input,_auth_aside}.php */
.auth-page {
	position: relative;
	padding: 3rem 0 4rem;
	background:
		radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.18), transparent 38%),
		radial-gradient(circle at 88% 82%, rgba(79, 70, 229, 0.10), transparent 40%);
}

.auth-card {
	max-width: 980px;
	background: var(--pk-surface);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(49, 46, 129, 0.12), 0 2px 6px rgba(43, 35, 32, 0.05);
}
.auth-card-narrow { max-width: 480px; }

/* Panel trái (desktop) */
.auth-aside {
	position: relative;
	background: linear-gradient(155deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	color: #fff;
	overflow: hidden;
}
.auth-aside::before {
	/* Hoạ tiết chấm vàng mờ */
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 214, 120, 0.22) 1.5px, transparent 1.5px);
	background-size: 22px 22px;
	mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
	-webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
}
.auth-aside-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 2.5rem;
}
.auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 800;
}
.auth-brand:hover { color: #fff; }
.auth-brand-text span { color: var(--pk-accent); }
.auth-aside-title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 0.75rem;
}
.auth-aside-subtitle {
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: 1.75rem;
}
.auth-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.9rem;
}
.auth-benefits li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 500;
}
.auth-benefit-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--pk-accent);
	font-size: 1.05rem;
}

/* Cột form */
.auth-body { padding: 2.5rem 2rem; }
@media (min-width: 992px) {
	.auth-body { padding: 3rem 3.25rem; }
}
@media (max-width: 575.98px) {
	.auth-page { padding: 1.5rem 0 2.5rem; }
	.auth-body { padding: 1.75rem 1.25rem; }
}

.auth-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 0.35rem;
}
.auth-intro {
	color: var(--pk-muted);
	margin-bottom: 1.75rem;
}
.auth-icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 1.4rem;
}
/* Icon badge + tiêu đề cùng 1 dòng (quên/đặt lại mật khẩu). */
.auth-heading-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.5rem;
}
.auth-heading-row .auth-icon-badge {
	flex-shrink: 0;
	margin-bottom: 0;
}
.auth-heading-row .auth-title { margin-bottom: 0; }
/* Thông báo ngay dưới hàng tiêu đề: bỏ lề âm của .auth-alert (dành cho chỗ sau .auth-intro), không thì đè lên icon. */
.auth-heading-row + .auth-alert { margin-top: 0.75rem; }

.auth-field .form-label {
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 0.4rem;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
	position: absolute;
	top: 50%;
	inset-inline-start: 1rem;
	transform: translateY(-50%);
	color: var(--pk-muted);
	pointer-events: none;
	transition: color 0.15s ease;
}
.auth-input {
	height: 3rem;
	padding-inline-start: 2.75rem;
	border: 1.5px solid #e9e1d8;
	border-radius: var(--radius-md);
	background-color: #fffdfa;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.auth-input::placeholder { color: #b8ada4; }
.auth-input:focus {
	border-color: var(--pk-primary);
	background-color: var(--pk-surface);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.auth-input-wrap:focus-within .auth-input-icon { color: var(--pk-primary); }
.auth-input.is-invalid { background-image: none; padding-inline-end: 0.75rem; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15); }

.auth-submit {
	height: 3.1rem;
	font-size: 1rem;
}
/* Flash lỗi/thành công trong thẻ form — xem account/_auth_alert.php. */
.auth-alert {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: -0.75rem 0 1.25rem;
	padding: 0.8rem 1rem;
	border: 1px solid transparent;
	border-inline-start-width: 4px;
	border-radius: var(--radius-md);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.45;
	animation: auth-alert-in 0.25s ease-out;
}
.auth-alert .bi {
	flex-shrink: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}
.auth-alert-error {
	background: var(--pk-primary-light);
	border-color: rgba(79, 70, 229, 0.18);
	border-inline-start-color: var(--pk-primary);
	color: var(--pk-primary-dark);
}
.auth-alert-error .bi { color: var(--pk-primary); }
.auth-alert-success {
	background: #ecf8f0;
	border-color: rgba(25, 135, 84, 0.2);
	border-inline-start-color: #198754;
	color: #0f5132;
}
.auth-alert-success .bi { color: #198754; }
/* Lời nhắc "đăng nhập để hoàn tất đơn" khi đến từ checkout — xem account/_checkout_note.php. */
.auth-checkout-note {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: -0.5rem 0 1.25rem;
	padding: 0.8rem 1rem;
	border-inline-start: 4px solid var(--pk-accent);
	border-radius: var(--radius-md);
	background: var(--pk-accent-light);
	color: var(--pk-ink);
	font-size: 0.9rem;
	line-height: 1.45;
}
.auth-checkout-note .bi { flex-shrink: 0; font-size: 1.2rem; line-height: 1.2; color: var(--pk-accent); }
.auth-checkout-note strong { display: block; margin-bottom: 0.15rem; }
.auth-checkout-note span { color: var(--pk-muted); }
@keyframes auth-alert-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.auth-alert { animation: none; }
}
/* Widget reCAPTCHA rộng cố định 304px (iframe) — màn hẹp thì thu nhỏ cho khỏi tràn ngang. */
.auth-captcha {
	min-height: 78px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.auth-captcha-notice {
	color: var(--pk-muted);
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}
@media (max-width: 380px) {
	.auth-captcha .g-recaptcha,
	.auth-captcha [data-pk-captcha-widget] {
		transform: scale(0.88);
		transform-origin: 50% 0;
	}
}
/* Nút "Tiếp tục với Google" + vạch "hoặc" — xem account/_google_button.php. */
.auth-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	height: 3.1rem;
	border: 1px solid #dadce0;
	border-radius: var(--radius-md);
	background: var(--pk-surface);
	color: var(--pk-ink);
	font-weight: 600;
}
.auth-google-btn:hover,
.auth-google-btn:focus-visible {
	border-color: #c4c7cc;
	background: #f8f9fa;
	color: var(--pk-ink);
	box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}
.auth-google-logo { flex-shrink: 0; }
.auth-divider {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 1.25rem 0;
	color: var(--pk-muted);
	font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(43, 35, 32, 0.12);
}
.auth-link {
	color: var(--pk-primary);
	font-weight: 600;
}
.auth-link:hover { color: var(--pk-primary-dark); text-decoration: underline; }
.auth-switch {
	margin: 1.5rem 0 0;
	text-align: center;
	color: var(--pk-muted);
	font-size: 0.92rem;
}

/* Bước nhập mã OTP 6 số (account/_code_form.php). */
.auth-code-sent { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 0 1rem; color: var(--pk-muted); font-size: 0.92rem; }
.auth-code-sent strong { color: var(--pk-ink); overflow-wrap: anywhere; }
.auth-code-sent .bi { color: var(--pk-primary); font-size: 1.1rem; line-height: 1.3; }
.auth-input.auth-code-input {
	padding: 0.5rem 0.75rem;
	text-align: center;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.5em;
}
.auth-code-alt { margin: 1rem 0 0; text-align: center; color: var(--pk-muted); font-size: 0.88rem; }
.auth-code-alt a { display: inline-block; margin-top: 0.25rem; font-weight: 600; }

/* ===== Trang chủ — lớp hoàn thiện (hero thẻ quà, hoa mai, danh mục màu, hiện dần khi cuộn...) ===== */

/* Danh mục: tông pastel riêng cho từng ô */
.category-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--cat-bg, var(--pk-primary-light));
	transition: transform 0.2s ease;
}
.category-icon i { font-size: 1.1rem; color: var(--cat-fg, var(--pk-primary)); }
.category-tone-0 { --cat-bg: #eef2ff; --cat-fg: #4f46e5; }
.category-tone-1 { --cat-bg: #ecfeff; --cat-fg: #b7791f; }
.category-tone-2 { --cat-bg: #e6f6ef; --cat-fg: #1f8a5b; }
.category-tone-3 { --cat-bg: #e9f1fd; --cat-fg: #2f6fd1; }
.category-tone-4 { --cat-bg: #f3ebfd; --cat-fg: #7b4bc9; }
.category-tone-5 { --cat-bg: #ffeee3; --cat-fg: #d9621c; }

/* Thương hiệu: logo giữ màu gốc, rê chuột thì phóng nhẹ */
.brand-tile-logo img { transition: transform 0.2s ease; }
.brand-tile:hover .brand-tile-logo img,
.brand-tile:focus-visible .brand-tile-logo img { transform: scale(1.08); }

/* Hiện dần khi cuộn tới (JS gắn html.reveal-ready + .is-visible — public/themes/default/js/app.js).
   Không có JS thì .reveal-ready không có nên nội dung vẫn hiện bình thường. */
.reveal-ready .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
	.category-icon,
	.brand-tile-logo img { transition: none; }
}

/* Khung "đã nạp thẻ thành công" ở trang số dư — xem account/wallet.php ($topupSuccess). */
.topup-success .card-body { padding: 2.5rem 1.5rem; }
.topup-success-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--pk-primary-light);
	color: var(--pk-primary-dark);
	font-size: 1.75rem;
}
.topup-success-check {
	position: absolute;
	inset-inline-end: -4px;
	bottom: -4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #198754;
	color: #fff;
	font-size: 0.9rem;
}
.topup-success-heading {
	max-width: 440px;
	margin: 0 auto 0.5rem;
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--pk-primary-dark);
}
.topup-success-amount { color: #198754; white-space: nowrap; }
.topup-success-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 400px;
	margin: 0 auto;
}
@media (max-width: 575.98px) {
	.topup-success-heading { font-size: 1.4rem; }
}

/* Khung nạp thẻ ở trang số dư — xem account/wallet.php. Lỗi nạp hiện ngay dưới ô mã. */
.topup-card { scroll-margin-top: 110px; }
.topup-card .card-body { padding: 1.5rem; }
.topup-card-head { display: flex; align-items: flex-start; gap: 0.9rem; margin-bottom: 1.25rem; }
.topup-card-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 1.3rem;
}
.topup-card-title { margin: 0 0 0.2rem; font-size: 1.05rem; font-weight: 700; }
.topup-card-hint { margin: 0; font-size: 0.85rem; color: var(--pk-muted); }
.topup-form-row { display: flex; gap: 0.75rem; }
.topup-code-field { position: relative; flex: 1; min-width: 0; }
.topup-code-field .bi {
	position: absolute;
	top: 50%;
	inset-inline-start: 1rem;
	transform: translateY(-50%);
	color: var(--pk-muted);
	pointer-events: none;
}
.topup-code-input {
	height: 3rem;
	padding-inline-start: 2.6rem;
	border-radius: 999px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.topup-code-input::placeholder { letter-spacing: 0.06em; color: #b8aea7; }
.topup-code-input:focus { border-color: var(--pk-primary); box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12); }
.topup-code-input.is-invalid { background-image: none; padding-inline-end: 0.75rem; }
.topup-code-input.is-invalid:focus { box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18); }
.topup-submit { height: 3rem; flex-shrink: 0; white-space: nowrap; }
.topup-error {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
	padding: 0.65rem 0.9rem;
	border-radius: var(--radius-md);
	background: var(--pk-primary-light);
	color: var(--pk-primary-dark);
	font-size: 0.9rem;
	font-weight: 500;
	animation: auth-alert-in 0.25s ease-out;
}
.topup-error .bi { color: var(--pk-primary); line-height: 1.4; }
@media (max-width: 575.98px) {
	.topup-form-row { flex-direction: column; }
	.topup-submit { width: 100%; }
}

/* ==========================================================================
   Bố cục mới (header 2 tầng, trang chủ dạng lưới thẻ, dải cam kết) — vẫn giữ
   bảng màu đỏ - vàng Tết ở :root, chỉ đổi bố cục/khoảng trắng/bóng đổ.
   ========================================================================== */
:root {
	--page-bg: #faf6f2;
	--line: rgba(43, 35, 32, 0.08);
	--shadow-soft: 0 1px 2px rgba(43, 35, 32, 0.04), 0 6px 18px rgba(43, 35, 32, 0.04);
	--header-sticky-h: 7.5rem; /* chiều cao header dính (2 tầng) — dùng cho position: sticky bên dưới */
}
body { background: var(--page-bg); }

/* ----- Header tầng trên: logo + tìm kiếm + nút hành động (partials/header.php) ----- */
.site-header {
	background: var(--pk-surface);
	z-index: 1030;
	box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(43, 35, 32, 0.04);
}
.header-main-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 70px;
}
.header-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	flex-shrink: 0;
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	line-height: 1;
}
.brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	color: var(--pk-accent);
	font-size: 1.1rem;
	box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}
.site-footer .brand-logo { width: 2rem; height: 2rem; font-size: 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.brand-mark { font-size: 1.6rem; line-height: 1; }
.brand-text { color: var(--pk-primary); }
.brand-text-accent { color: var(--pk-accent); }

.header-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 560px;
	margin: 0;
}
.header-search .bi-search {
	position: absolute;
	inset-inline-start: 1.05rem;
	color: var(--pk-muted);
	pointer-events: none;
}
.header-search-input {
	width: 100%;
	height: 2.75rem;
	padding-block: 0 0; padding-inline: 2.7rem 1.1rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #f5f0eb;
	color: var(--pk-ink);
	font-size: 0.9rem;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.header-search-input::placeholder { color: #9c918a; }
.header-search-input:focus {
	outline: none;
	background: var(--pk-surface);
	border-color: rgba(79, 70, 229, 0.35);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin-inline-start: auto;
}
.header-action {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0.7rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--pk-ink);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.header-action > .bi,
.header-action-icon > .bi { font-size: 1.2rem; }
.header-action > .header-action-caret { font-size: 0.7rem; }
.header-action:hover,
.header-action[aria-expanded="true"] { background: var(--pk-primary-light); color: var(--pk-primary); }
.header-action-icon { position: relative; display: inline-flex; }
.header-cart-count {
	position: absolute;
	top: -0.45rem;
	inset-inline-end: -0.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.3rem;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--pk-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	box-sizing: content-box;
}
.header-divider { width: 1px; height: 1.75rem; margin: 0 0.5rem; background: rgba(43, 35, 32, 0.12); }
.header-login { padding: 0.45rem 0.8rem; color: var(--pk-ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.header-login:hover { color: var(--pk-primary); }
.header-account.dropdown-toggle::after { margin-inline-start: 0.1rem; }
.header-toggler {
	display: inline-flex;
	padding: 0.3rem 0.45rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--pk-ink);
	font-size: 1.6rem;
	line-height: 1;
}
.header-toggler:hover,
.header-toggler[aria-expanded="true"] { background: var(--pk-primary-light); color: var(--pk-primary); }
.lang-switcher-toggle .lang-switcher-flag { width: 1.2rem; height: 1.2rem; }
.header-wallet { margin-inline-end: 0.35rem; }
.btn-pk-primary.header-auth-btn { padding: 0.5rem 1.35rem; }

/* ----- Header tầng dưới: "Tất cả danh mục" + menu chính ----- */
.header-nav { padding: 0; border-top: 1px solid var(--line); }
.header-cats-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.25rem;
	border: 0;
	background: transparent;
	color: var(--pk-ink);
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}
.header-cats-toggle .bi { font-size: 1.25rem; line-height: 1; }
.header-cats-toggle:hover,
.header-cats-toggle[aria-expanded="true"] { color: var(--pk-primary); }
.site-header .header-cats-menu { min-width: 16rem; }
.header-cats-item { display: flex !important; align-items: center; gap: 0.65rem; }
.header-cats-item .category-icon { width: 2rem; height: 2rem; border-radius: 10px; }
.header-cats-item .category-icon i { font-size: 0.95rem; }
.site-header .header-cats-all { color: var(--pk-primary); font-weight: 600; }

.site-header .header-nav .nav-link {
	position: relative;
	padding: 0.75rem 0.85rem !important;
	border-radius: 0;
	background: transparent;
	color: var(--pk-ink);
	font-weight: 500;
	font-size: 0.9rem;
}
.site-header .header-nav .nav-link:hover,
.site-header .header-nav .nav-link.active { color: var(--pk-primary); background: transparent; }
@media (min-width: 992px) {
	.header-nav .navbar-collapse { gap: 1.75rem; min-height: 48px; }
	/* Gạch chân mục đang xem (dùng ::before vì ::after là caret của .dropdown-toggle) */
	.site-header .header-nav .nav-link.active::before {
		content: '';
		position: absolute;
		inset-inline-start: 0.85rem;
		inset-inline-end: 0.85rem;
		bottom: 0;
		height: 2px;
		border-radius: 2px;
		background: var(--pk-primary);
	}
}
@media (min-width: 992px) and (hover: hover) {
	.header-cats { position: relative; }
	.header-cats:hover > .dropdown-menu { display: block; top: 100%; inset-inline-start: 0; margin-top: 0; }
}
@media (max-width: 991.98px) {
	.header-main-inner { gap: 0.75rem; min-height: 60px; }
	.header-brand { font-size: 1.3rem; }
	.brand-logo { width: 2rem; height: 2rem; font-size: 1rem; }
	.header-nav { border-top: 0; }
	.header-nav .navbar-collapse { padding: 0.25rem 0 1rem; }
	.header-nav .header-search { max-width: none; margin-bottom: 0.5rem; }
	.header-cats-toggle { padding: 0.6rem 0; }
	.site-header .header-nav .nav-link { padding: 0.6rem 0 !important; }
	.header-nav-auth { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
	.header-nav-auth .btn { flex: 1; }
}

/* ----- Thẻ sản phẩm: ảnh lọt lòng có bo góc, nhãn giảm giá ----- */
.product-card { border-color: var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(43, 35, 32, 0.04); }
.product-card-img-wrap { margin: 0.5rem 0.5rem 0; border-radius: 10px; }
.product-card-compact .product-card-img-wrap { aspect-ratio: 3 / 2; }
.product-card-compact .product-card-body { padding: 0.6rem 0.75rem 0.8rem; }
.product-card-discount {
	position: absolute;
	top: 0.45rem;
	inset-inline-end: 0.45rem;
	z-index: 1;
	padding: 0.15rem 0.45rem;
	border-radius: 6px;
	background: var(--pk-primary);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
}

/* ----- Dải cam kết phía trên footer (partials/trust-strip.php) ----- */
.trust-strip { padding: 1.5rem 0; border-top: 1px solid var(--line); background: var(--pk-surface); }
.trust-strip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.trust-icon { flex-shrink: 0; color: var(--pk-primary); font-size: 1.6rem; }
.trust-item-title { font-weight: 700; font-size: 0.88rem; }
.trust-item-desc { color: var(--pk-muted); font-size: 0.78rem; }
@media (min-width: 992px) {
	.trust-strip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.trust-item + .trust-item { padding-inline-start: 1.5rem; border-inline-start: 1px solid var(--line); }
}

/* ==========================================================================
   Giỏ hàng + thanh toán (cart/index.php, checkout/form.php, partials/shop-steps.php)
   ========================================================================== */
.shop-page { padding-top: 1.25rem; padding-bottom: 3rem; }

/* Hàng đầu trang: tiêu đề trái + thanh tiến trình phải (mobile: tiến trình lên trên, tiêu đề xuống dưới) */
.shop-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	margin-bottom: 1.25rem;
}
@media (max-width: 767.98px) {
	.shop-top .shop-steps { order: -1; flex-basis: 100%; }
}

/* Thanh tiến trình 3 bước */
.shop-steps {
	display: flex;
	align-items: center;
	flex: 0 1 460px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.shop-step { display: flex; align-items: center; flex: 1; min-width: 0; }
.shop-step:last-child { flex: 0 0 auto; }
.shop-step:not(:last-child)::after {
	content: "";
	flex: 1;
	height: 2px;
	margin: 0 0.6rem;
	border-radius: 2px;
	background: var(--line);
}
.shop-step.is-done:not(:last-child)::after { background: var(--pk-primary); }
.shop-step-inner { display: flex; align-items: center; gap: 0.5rem; color: var(--pk-muted); white-space: nowrap; }
a.shop-step-inner:hover { color: var(--pk-primary); }
.shop-step-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: var(--pk-surface);
	border: 1.5px solid var(--line);
	color: var(--pk-muted);
	font-size: 0.95rem;
}
.shop-step-label { font-size: 0.88rem; font-weight: 600; }
.shop-step.is-current .shop-step-dot {
	background: linear-gradient(135deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}
.shop-step.is-current .shop-step-label,
.shop-step.is-done .shop-step-label { color: var(--pk-ink); }
.shop-step.is-done .shop-step-dot { background: var(--pk-primary-light); border-color: transparent; color: var(--pk-primary); }
@media (max-width: 575.98px) {
	/* Mobile: chỉ giữ nhãn bước hiện tại cho đỡ chật */
	.shop-step-label { display: none; }
	.shop-step.is-current .shop-step-label { display: inline; }
}

.shop-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.shop-title { margin: 0; font-weight: 800; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); letter-spacing: -0.01em; }
.shop-count { color: var(--pk-muted); font-size: 0.95rem; }

.shop-note {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-md);
	background: var(--pk-accent-light);
	color: #6b4a06;
	font-size: 0.9rem;
}
.shop-note .bi { font-size: 1.25rem; color: var(--pk-accent); }
.shop-note a { color: var(--pk-primary); font-weight: 600; }
.shop-alert { border-radius: var(--radius-md); }

.shop-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.shop-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (min-width: 992px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; }
	/* Cột tóm tắt bám theo khi cuộn qua form dài */
	.shop-aside { position: sticky; top: calc(var(--header-sticky-h) + 1rem); }
}
@media (min-width: 1200px) {
	.shop-layout { grid-template-columns: minmax(0, 1fr) 390px; }
}

.shop-panel {
	background: var(--pk-surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
	padding: 1.4rem 1.5rem;
}
@media (max-width: 575.98px) {
	.shop-panel { padding: 1.1rem 1rem; }
}
.shop-panel-title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.1rem; font-size: 1.05rem; font-weight: 800; }
.shop-panel-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 0.85rem;
	font-weight: 800;
}
.shop-link { color: var(--pk-primary); font-weight: 600; font-size: 0.92rem; }
.shop-link:hover { color: var(--pk-primary-dark); }
.shop-btn-quiet { border-radius: 999px; color: var(--pk-muted); font-weight: 600; }

/* Ô nhập trong 2 trang: viền đỏ nhạt khi focus thay cho xanh mặc định của Bootstrap */
.shop-page .form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.shop-page .form-control,
.shop-page select.form-select {
	border-radius: var(--radius-md);
	border-color: rgba(43, 35, 32, 0.14);
	padding: 0.6rem 0.85rem;
}
.shop-page select.form-select { padding-inline-end: 2.25rem; }
/* Email checkout = email tài khoản, chỉ xem — nền xám nhạt + ổ khoá cuối ô. */
.shop-input-locked { position: relative; }
.shop-input-locked .form-control { padding-inline-end: 2.4rem; background-color: var(--pk-surface-2); color: var(--pk-muted); cursor: not-allowed; }
.shop-input-locked .form-control:focus { border-color: rgba(43, 35, 32, 0.14); box-shadow: none; }
.shop-input-locked > .bi { position: absolute; top: 50%; inset-inline-end: 0.9rem; transform: translateY(-50%); color: #b8ada4; font-size: 0.85rem; pointer-events: none; }
.shop-page .form-text { margin-top: 0.3rem; font-size: 0.78rem; color: var(--pk-muted); }
.shop-page .form-control:focus,
.shop-page select.form-select:focus,
.shop-page .form-check-input:focus {
	border-color: rgba(79, 70, 229, 0.45);
	box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}
.shop-page .form-check-input:checked { background-color: var(--pk-primary); border-color: var(--pk-primary); }

/* ----- Giỏ hàng: từng dòng sản phẩm ----- */
.cart-panel { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.cart-line {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto 120px 2.5rem;
	grid-template-areas: "thumb info qty total remove";
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--line);
}
.cart-line-thumb { grid-area: thumb; }
.cart-line-info { grid-area: info; min-width: 0; }
.cart-line .qty-stepper { grid-area: qty; }
.cart-line-total { grid-area: total; text-align: end; font-weight: 800; font-size: 1.02rem; }
.cart-line-remove { grid-area: remove; }
.cart-line-thumb img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: var(--radius-md);
	border: 1px solid var(--line);
	background: var(--pk-bg);
}
.cart-line-name { display: block; color: var(--pk-ink); font-weight: 700; line-height: 1.35; }
.cart-line-name:hover { color: var(--pk-primary); }
.cart-line-price { margin-top: 0.2rem; color: var(--pk-muted); font-size: 0.85rem; }
.cart-line-warning { margin-top: 0.35rem; color: var(--pk-primary); font-size: 0.82rem; font-weight: 600; }
.cart-line-badge {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 0.75rem;
	font-weight: 700;
}
.cart-line.is-unavailable .cart-line-thumb img { filter: grayscale(0.7); opacity: 0.7; }
.cart-line-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--pk-muted);
	transition: background 0.15s ease, color 0.15s ease;
}
.cart-line-remove:hover { background: var(--pk-primary-light); color: var(--pk-primary); }
@media (max-width: 767.98px) {
	/* Mobile: ảnh | tên + nút xoá, hàng dưới số lượng + thành tiền */
	.cart-line {
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb info remove"
			"thumb qty total";
		gap: 0.6rem 0.85rem;
		align-items: start;
	}
	.cart-line-thumb img { width: 72px; height: 72px; }
	.cart-line-total { align-self: center; }
	.cart-line .qty-stepper { justify-self: start; }
}

.qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(43, 35, 32, 0.14);
	border-radius: 999px;
	background: var(--pk-surface);
	overflow: hidden;
}
.qty-stepper-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: none;
	background: transparent;
	color: var(--pk-ink);
	font-size: 1.05rem;
	transition: background 0.15s ease, color 0.15s ease;
}
.qty-stepper-btn:hover { background: var(--pk-primary-light); color: var(--pk-primary); }
.qty-stepper-input {
	width: 2.75rem;
	height: 2.1rem;
	border: none;
	text-align: center;
	font-weight: 700;
	background: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}
.qty-stepper-input:focus { outline: none; }
.qty-stepper:focus-within { border-color: rgba(79, 70, 229, 0.45); box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12); }
.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-panel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 0 0.6rem; }

.cart-empty { max-width: 560px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.cart-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pk-primary-light) 0%, var(--pk-accent-light) 100%);
	color: var(--pk-primary);
	font-size: 2.4rem;
}
.cart-empty-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.35rem; }
.cart-empty-text { color: var(--pk-muted); margin-bottom: 1.4rem; }

/* ----- Cột tóm tắt (cả 2 trang) ----- */
.shop-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.shop-summary-head .shop-panel-title { margin: 0; }
.shop-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.shop-summary-row strong { color: var(--pk-primary); font-size: 1.25rem; font-weight: 800; }

.shop-secure { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.85rem; color: var(--pk-muted); font-size: 0.78rem; text-align: center; }
.shop-secure .bi { color: #2f9e5b; }
.shop-login-hint { display: flex; align-items: flex-start; justify-content: center; gap: 0.4rem; margin: 0.6rem 0 0; color: var(--pk-muted); font-size: 0.8rem; line-height: 1.4; text-align: center; }

/* Danh sách món ở trang thanh toán */
.summary-items { margin: 0 0 1rem; padding: 0 0 1rem; list-style: none; border-bottom: 1px dashed var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.summary-item { display: flex; align-items: center; gap: 0.75rem; }
.summary-item-thumb { position: relative; flex-shrink: 0; }
.summary-item-thumb img { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--pk-bg); }
.summary-item-qty {
	position: absolute;
	top: -6px;
	inset-inline-end: -6px;
	min-width: 1.3rem;
	height: 1.3rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	/* Tím primary + viền màu nền thẻ (tách khỏi logo) — đọc rõ cả 2 giao diện (--pk-ink ở tối là màu sáng). */
	background: var(--pk-primary);
	box-shadow: 0 0 0 2px var(--pk-surface);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.3rem;
	text-align: center;
}
.summary-item-name { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.summary-item-total { flex-shrink: 0; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.summary-coupon { margin-bottom: 1rem; }
.coupon-field .form-control { border-start-start-radius: 999px; border-end-start-radius: 999px; }
.coupon-field .btn {
	border-start-end-radius: 999px;
	border-end-end-radius: 999px;
	padding-inline: 1.1rem;
	border: 0;
	/* Gradient tím của theme (theme.css) — đọc rõ ở cả giao diện sáng lẫn tối (--pk-ink ở tối là màu sáng). */
	background: var(--pk-btn-gradient);
	color: #fff;
	font-weight: 600;
}
.coupon-field .btn:hover,
.coupon-field .btn:focus-visible { background: var(--pk-btn-gradient); color: #fff; filter: brightness(1.12); }
.coupon-field .btn:disabled { background: var(--pk-btn-gradient); color: #fff; opacity: .6; }
.coupon-applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.6rem 0.85rem;
	border: 1px dashed rgba(79, 70, 229, 0.4);
	border-radius: var(--radius-md);
	background: var(--pk-primary-light);
	font-size: 0.85rem;
	font-weight: 600;
}
.coupon-applied .bi { color: var(--pk-primary); margin-inline-end: 0.35rem; }
.coupon-remove { border: none; background: none; padding: 0; color: var(--pk-muted); font-size: 0.82rem; text-decoration: underline; }
.coupon-remove:hover { color: var(--pk-primary); }

.summary-quote { padding: 1rem; border-radius: var(--radius-md); background: var(--pk-bg); }
.quote-summary > div { gap: 1rem; padding: 0.2rem 0; font-size: 0.9rem; }
.quote-summary dd { text-align: end; white-space: nowrap; }
.quote-summary > div:last-child { align-items: baseline; }

/* ----- Thanh toán: chọn phương thức (thẻ chọn, viền đỏ khi đang chọn) ----- */
.pay-options { display: flex; flex-direction: column; gap: 0.65rem; }
/* Các cổng thanh toán (không gồm thẻ Số dư) chia 2 cột; ô hẹp nên số tiền xuống dòng dưới tên. */
@media (min-width: 768px) {
	.pay-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pay-options .pay-option { flex-wrap: wrap; row-gap: 0.2rem; }
	.pay-options .pay-option-amount { flex-basis: 100%; padding-inline-start: calc(1.1rem + 2.5rem + 0.85rem * 2); }
}
.pay-option {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin: 0;
	padding: 0.9rem 1rem;
	border: 1.5px solid var(--pk-border);
	border-radius: var(--radius-md);
	background: var(--pk-surface);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pay-option:hover { border-color: rgba(79, 70, 229, 0.35); }
/* Chọn đơn vị trả của cổng đang chọn (token Binance, loại gift card) — full hàng dưới lưới cổng. */
.pay-suboptions { grid-column: 1 / -1; margin: 0; padding: 0.75rem 1rem; border: 1px dashed var(--pk-border); border-radius: var(--radius-md); background: var(--pk-surface); }
.pay-suboptions-label { float: none; width: auto; margin: 0 0 0.45rem; font-size: 0.85rem; font-weight: 700; }
.pay-suboptions-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.pay-method-note { grid-column: 1 / -1; margin: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-md); background: rgba(245, 159, 0, 0.1); font-size: 0.85rem; line-height: 1.45; }
.pay-method-note .bi { color: #e8590c; margin-inline-end: 0.2rem; }
.pay-suboption { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.pay-suboption .form-check-input { margin: 0; }
.pay-suboption-logo { display: block; height: 22px; width: auto; max-width: 64px; object-fit: contain; border-radius: 4px; }
.pay-option:has(.pay-option-input:checked) {
	border-color: var(--pk-primary);
	/* Phủ tím nhạt theo theme lên nền thẻ — không dùng màu sáng cố định (chữ sáng ở giao diện tối sẽ mất). */
	background: linear-gradient(var(--pk-primary-light), var(--pk-primary-light)), var(--pk-surface);
	box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
}
.pay-option:has(.pay-option-input:focus-visible) { box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18); }
.pay-option.is-disabled { cursor: not-allowed; opacity: 0.6; }
.pay-option.is-disabled:hover { border-color: var(--pk-border); }
.pay-option-input { flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--pk-primary); }
.pay-option-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 10px;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 1.2rem;
}
.pay-option-icon.is-paypal { background: #e8f1fb; color: #003087; }
.pay-option-icon.is-wallet { background: var(--pk-accent-light); color: #a87410; }
.pay-option-icon-text { font-size: .85rem; font-weight: 800; letter-spacing: -.3px; }
.pay-option-body { flex: 1; min-width: 0; }
.pay-option-name { display: block; font-weight: 700; font-size: 0.93rem; line-height: 1.3; }
.pay-option-sub { display: block; margin-top: 0.1rem; color: var(--pk-muted); font-size: 0.8rem; }
.pay-option-amount { flex-shrink: 0; font-weight: 800; white-space: nowrap; }
/* Thanh toán: đổi cổng/đơn vị trả/số dư → shimmer ngắn trên các số tiền + phí (app.js flashRecalculating). */
#checkoutForm.is-recalculating .summary-quote dd,
#checkoutForm.is-recalculating .summary-item-total,
#checkoutForm.is-recalculating .pay-option:has(.pay-option-input:checked) .pay-option-amount {
	color: transparent !important;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(127, 127, 127, .14) 25%, rgba(127, 127, 127, .34) 50%, rgba(127, 127, 127, .14) 75%) content-box;
	background-size: 200% 100%;
	animation: pk-recalc-shimmer .45s ease-in-out;
	-webkit-user-select: none;
	user-select: none;
}
#checkoutForm.is-recalculating .summary-quote dd * { color: transparent !important; }
@keyframes pk-recalc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
	#checkoutForm.is-recalculating .summary-quote dd,
	#checkoutForm.is-recalculating .summary-item-total,
	#checkoutForm.is-recalculating .pay-option:has(.pay-option-input:checked) .pay-option-amount { animation: none; }
}
.pay-option:has(.pay-option-input:checked) .pay-option-amount { color: var(--pk-primary); }
/* Form nạp ví (account/topup.php): nút mức nạp nhanh, ô tự nhập, bảng phí dưới danh sách cổng. */
.topup-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.6rem; }
.topup-preset {
	padding: 0.75rem 0.5rem;
	border: 1.5px solid var(--pk-border);
	border-radius: var(--radius-md);
	background: var(--pk-surface);
	color: inherit;
	font-size: 1.05rem;
	font-weight: 800;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.topup-preset:hover { border-color: rgba(79, 70, 229, 0.35); }
.topup-preset:focus-visible { outline: none; box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18); }
.topup-preset.is-active {
	border-color: var(--pk-primary);
	background: linear-gradient(var(--pk-primary-light), var(--pk-primary-light)), var(--pk-surface);
	color: var(--pk-primary);
}
.topup-custom { max-width: 14rem; }
.topup-summary { margin-top: 1rem; padding: 0.9rem 1rem; border: 1px solid var(--pk-border); border-radius: var(--radius-md); background: var(--pk-surface); }
.topup-receive { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--pk-border); color: var(--pk-success, #2b8a3e); }
#topupForm.is-recalculating .quote-summary dd,
#topupForm.is-recalculating .pay-option:has(.pay-option-input:checked) .pay-option-amount {
	color: transparent !important;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(127, 127, 127, .14) 25%, rgba(127, 127, 127, .34) 50%, rgba(127, 127, 127, .14) 75%) content-box;
	background-size: 200% 100%;
	animation: pk-recalc-shimmer .45s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
	#topupForm.is-recalculating .quote-summary dd,
	#topupForm.is-recalculating .pay-option:has(.pay-option-input:checked) .pay-option-amount { animation: none; }
}
/* Gateway mờ đi khi số dư đã trả cả đơn — bấm vào thì JS tắt công tắc số dư */
.pay-options.is-covered .pay-option { opacity: 0.5; }
.pay-options.is-covered .pay-option:has(.pay-option-input:checked) { border-color: var(--pk-border); background: var(--pk-surface); box-shadow: none; }

/* Thẻ "Số dư tài khoản" (checkout/_balance.php) — công tắc bật thì hiện khối "Đã áp dụng số dư" */
.pay-balance {
	margin-bottom: 0.9rem;
	padding: 0.9rem 1rem;
	border: 1.5px solid var(--pk-border);
	border-radius: var(--radius-md);
	background: var(--pk-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-balance.is-on { border-color: #16a34a; box-shadow: 0 6px 16px rgba(22, 163, 74, 0.08); }
.pay-balance-head { display: flex; align-items: center; gap: 0.85rem; }
.pay-balance-head .pay-option-name { cursor: pointer; }
.pay-balance.is-disabled .pay-balance-head .pay-option-name { cursor: default; }
.pay-balance-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.pay-balance-side .form-switch { padding-inline-start: 0; min-height: 0; }
.pay-balance-side .form-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0; cursor: pointer; }
.pay-balance-side .form-check-input:checked { background-color: #16a34a; border-color: #16a34a; }
.pay-balance-side .form-check-input:disabled { cursor: not-allowed; }
.pay-balance-topup {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.7rem;
	border: 1px solid rgba(79, 70, 229, 0.25);
	border-radius: 999px;
	background: var(--pk-primary-light);
	color: var(--pk-primary);
	font-size: 0.76rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pay-balance-topup i { font-size: 0.85rem; }
.pay-balance-topup:hover,
.pay-balance-topup:focus-visible {
	border-color: var(--pk-primary);
	background: var(--pk-primary);
	color: #fff;
	box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}
.pay-balance-applied {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-top: 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius-md);
	background: #f0fdf4;
}
.pay-balance-applied-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	font-size: 1.2rem;
}
.pay-balance-applied-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.8rem; color: var(--pk-muted); }
.pay-balance-applied-body strong { color: var(--pk-ink); font-size: 0.9rem; }
.pay-balance-applied-note { color: #b45309; }
.pay-balance-applied-amount { flex-shrink: 0; font-size: 1.15rem; font-weight: 800; color: #15803d; white-space: nowrap; }
@media (max-width: 575.98px) {
	/* Mobile: số tiền xuống dòng dưới tên phương thức */
	.pay-option { flex-wrap: wrap; row-gap: 0.2rem; }
	/* thẳng cột với tên: radio 1.1rem + icon 2.5rem + 2 khoảng gap 0.85rem */
	.pay-option-amount { flex-basis: 100%; padding-inline-start: calc(1.1rem + 2.5rem + 0.85rem * 2); }
	.pay-balance-applied { flex-wrap: wrap; row-gap: 0.3rem; }
	.pay-balance-applied-amount { flex-basis: 100%; padding-inline-start: calc(2.5rem + 0.85rem); }
}

/* ----- Trang kết quả đơn (checkout/result.php) ----- */
.result-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
	padding: 1.75rem 1.75rem;
}
.result-hero::after {
	/* Vòng trang trí mờ góc phải, đổi màu theo trạng thái */
	content: "";
	position: absolute;
	inset-inline-end: -50px;
	top: -70px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	border: 28px solid currentColor;
	opacity: 0.06;
	pointer-events: none;
}
.result-hero.is-success { color: #2f9e5b; background: linear-gradient(120deg, #fff 0%, #f1faf4 100%); border-color: rgba(47, 158, 91, 0.18); }
.result-hero.is-pending { color: #0891b2; background: linear-gradient(120deg, #fff 0%, #fff8e8 100%); border-color: rgba(6, 182, 212, 0.25); }
.result-hero.is-cancelled,
.result-hero.is-refunded { color: var(--pk-muted); }
[data-theme="dark"] .result-hero.is-success { background: linear-gradient(120deg, var(--pk-surface) 0%, rgba(47, 158, 91, 0.16) 100%), var(--pk-surface); border-color: rgba(74, 222, 128, 0.3); }
[data-theme="dark"] .result-hero.is-pending { background: linear-gradient(120deg, var(--pk-surface) 0%, rgba(8, 145, 178, 0.18) 100%), var(--pk-surface); border-color: rgba(34, 211, 238, 0.3); }
.result-hero-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: currentColor;
	font-size: 2rem;
	box-shadow: 0 10px 24px rgba(43, 35, 32, 0.12);
}
.result-hero-icon .bi { color: #fff; }
.result-hero-body { flex: 1 1 320px; min-width: 0; color: var(--pk-ink); }
.result-hero-title { margin: 0 0 0.3rem; font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem); font-weight: 800; }
.result-hero-text { margin: 0 0 0.75rem; color: var(--pk-muted); }
.result-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-size: 0.88rem; }
.result-hero-note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--pk-muted); }
.result-hero-note .bi { color: #e8590c; }
.result-topup p { font-size: 0.92rem; }
.result-topup-label { margin: 0.75rem 0 0.3rem; font-size: 0.82rem; font-weight: 700; color: var(--pk-muted); }
.result-topup .pk-key-value code { word-break: break-all; }
.result-topup-coin { font-weight: 700; white-space: nowrap; }
.result-topup-deadline { margin: 0.85rem 0 0; font-weight: 600; }
.result-topup-qr { margin: 0.85rem 0 0; display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.result-topup-qr-code { padding: 6px; border-radius: var(--radius-md); background: #fff; line-height: 0; }
.result-topup-qr-code svg { width: 168px; height: 168px; display: block; }
.result-topup-qr figcaption { font-size: 0.8rem; color: var(--pk-muted); }
.result-code {
	padding: 0.3rem 0.75rem;
	border: 1px dashed rgba(43, 35, 32, 0.25);
	border-radius: 999px;
	background: var(--pk-surface);
	color: var(--pk-muted);
}
.result-code strong { color: var(--pk-ink); letter-spacing: 0.02em; white-space: nowrap; }
.result-date { color: var(--pk-muted); }
.result-hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 575.98px) {
	.result-hero { padding: 1.4rem 1.1rem; }
	.result-hero-icon { width: 3.5rem; height: 3.5rem; font-size: 1.6rem; }
	.result-hero-actions { flex-basis: 100%; }
	.result-hero-actions .btn { flex: 1 1 auto; }
}

.result-items { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.result-items .summary-item-name small { display: block; margin-top: 0.1rem; color: var(--pk-muted); font-weight: 400; font-size: 0.78rem; }
.result-item-link { color: var(--pk-ink); }
.result-item-link:hover { color: var(--pk-primary); }

.result-delivery { display: flex; align-items: flex-start; gap: 0.9rem; }
.result-delivery-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--pk-primary) 0%, var(--pk-primary-dark) 100%);
	color: var(--pk-accent-light);
	font-size: 1.15rem;
}
.result-delivery-body { min-width: 0; }
.result-delivery-title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; }
.result-delivery-line { color: var(--pk-muted); font-size: 0.9rem; }
.result-delivery-line strong { color: var(--pk-ink); }

/* Tiến độ đơn (checkout/_order_progress.php): bước, nút mở PayPal ở tab mới, ô key với vệt sáng chạy vòng quanh
   viền (conic-gradient xoay theo --pp-angle, mask chỉ giữ phần viền), liên hệ. Trình duyệt chưa có @property thì viền
   gradient đứng yên. */
@property --pp-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pp-spin { to { --pp-angle: 360deg; } }
@keyframes pp-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pp-fade-out { to { opacity: 0; } }
@keyframes pp-card-done {
	0%, 70% { border-color: var(--pk-border); box-shadow: none; }
	100% { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
}
@keyframes pp-code-in {
	from { clip-path: inset(0 100% 0 0); filter: blur(4px); }
	to { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes pp-pulse { 50% { opacity: 0.45; } }

.pp-progress .shop-panel-title { margin-bottom: 1rem; }
.pp-steps { display: flex; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.pp-step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; min-width: 0; text-align: center; }
/* Đường nối giữa 2 chấm: từ giữa chấm trước tới giữa chấm sau. */
.pp-step + .pp-step::before {
	content: "";
	position: absolute;
	top: 1rem;
	inset-inline-end: 50%;
	width: 100%;
	height: 2px;
	background: var(--pk-border);
	z-index: 0;
}
.pp-step.is-done + .pp-step::before { background: var(--pk-primary); }
.pp-step + .pp-step.is-active::before { background: linear-gradient(90deg, var(--pk-primary), var(--pk-accent)); }
[dir="rtl"] .pp-step + .pp-step.is-active::before { background: linear-gradient(270deg, var(--pk-primary), var(--pk-accent)); }
.pp-step-dot {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 2px solid var(--pk-border);
	border-radius: 50%;
	background: var(--pk-surface);
	color: var(--pk-muted);
	font-size: 0.95rem;
}
.pp-step.is-done .pp-step-dot { border-color: var(--pk-primary); background: var(--pk-primary); color: #fff; }
.pp-step.is-active .pp-step-dot { border-color: var(--pk-primary); color: var(--pk-primary); box-shadow: 0 0 0 4px var(--pk-primary-light); animation: pp-pulse 1.6s ease-in-out infinite; }
.pp-step-label { font-size: 0.8rem; font-weight: 600; color: var(--pk-muted); line-height: 1.25; }
.pp-step.is-done .pp-step-label, .pp-step.is-active .pp-step-label { color: var(--pk-ink); }

.pp-pay { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-bottom: 1rem; text-align: center; }
.pp-pay-btn { min-width: min(100%, 18rem); padding-block: 0.75rem; font-size: 1.05rem; font-weight: 700; }
.pp-note { margin: 0; color: var(--pk-muted); font-size: 0.88rem; }
.pp-opened { display: flex; align-items: flex-start; gap: 0.5rem; text-align: start; color: var(--pk-ink); }
.pp-opened .bi { color: var(--pk-primary); }
.pp-opened a { font-weight: 600; }

.pp-slots { display: grid; gap: 0.85rem; margin-bottom: 1rem; }
.pp-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	padding: 1.4rem 1.1rem 1.1rem;
	border: 2px solid var(--pk-border);
	border-radius: 20px;
	background: var(--pk-surface);
	box-shadow: 0 8px 28px var(--pk-primary-light);
}
.pp-slot::before {
	content: "";
	position: absolute;
	inset: -2px;
	padding: 2px;
	border-radius: inherit;
	background: conic-gradient(from var(--pp-angle), transparent 0 55%, var(--pk-accent) 75%, var(--pk-primary) 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: pp-spin 3.2s linear infinite;
	pointer-events: none;
}
.pp-progress.is-preparing .pp-slot::before { animation-duration: 1.8s; }
.pp-slot-code {
	padding: 0;
	background: linear-gradient(90deg, var(--pk-muted) 0 40%, var(--pk-ink) 50%, var(--pk-muted) 60% 100%);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	white-space: nowrap;
	animation: pp-shimmer 2s linear infinite;
}
.pp-slot-count { margin-top: -0.5rem; color: var(--pk-muted); font-size: 0.85rem; font-weight: 600; }
.pp-slot-copy {
	width: 100%;
	padding-block: 0.7rem;
	border-radius: 999px;
	background: var(--pk-ink);
	color: var(--pk-surface);
	font-weight: 700;
}
.pp-slot-copy:disabled { opacity: 0.35; background: var(--pk-ink); color: var(--pk-surface); }
.pp-slot-label { margin: 0; color: var(--pk-muted); font-size: 0.85rem; text-align: center; }

.pp-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; color: var(--pk-ink); font-size: 0.92rem; font-weight: 600; text-align: center; }
.pp-status .spinner-border { color: var(--pk-primary); }
.pp-connection { flex-basis: 100%; color: #e8590c; font-size: 0.82rem; font-weight: 500; }

.pp-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; padding-top: 1rem; border-top: 1px solid var(--pk-border); }
.pp-help-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; font-size: 0.88rem; color: var(--pk-muted); }
.pp-help-text strong { color: var(--pk-ink); font-size: 0.95rem; }
.pp-online { display: inline-flex; align-items: center; gap: 0.4rem; color: #16a34a; font-weight: 600; }
.pp-online-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.pp-help-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Key vừa giao (từ khối tiến độ): vệt sáng chạy nốt 1 vòng rồi viền đứng lại màu xanh, mã hiện dần. */
.pk-keys.is-revealing .pk-key-card { position: relative; animation: pp-card-done 1.6s ease forwards; }
.pk-keys.is-revealing .pk-key-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 2px;
	border-radius: inherit;
	background: conic-gradient(from var(--pp-angle), transparent 0 55%, var(--pk-accent) 75%, #22c55e 90%, transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: pp-spin 1.1s linear 1, pp-fade-out 0.4s 1.1s ease forwards;
	pointer-events: none;
}
.pk-keys.is-revealing .pk-key-value code { animation: pp-code-in 0.9s 0.35s ease-out both; }

@media (max-width: 575.98px) {
	.pp-step-label { font-size: 0.72rem; }
	.pp-help-actions, .pp-help-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.pp-slot::before, .pp-slot-code, .pp-step.is-active .pp-step-dot,
	.pk-keys.is-revealing .pk-key-card, .pk-keys.is-revealing .pk-key-card::before, .pk-keys.is-revealing .pk-key-value code { animation: none; }
	.pk-keys.is-revealing .pk-key-card { border-color: #22c55e; }
	.pk-keys.is-revealing .pk-key-card::before { opacity: 0; }
}

/* Cổng thủ công: hướng dẫn trả tiền admin soạn + form gửi mã (checkout/result.php). */
.result-payment-instructions {
	margin-bottom: 1.1rem;
	padding: 0.9rem 1rem;
	border: 1px dashed var(--pk-primary);
	border-radius: 12px;
	background: var(--pk-primary-light);
	color: var(--pk-ink);
	font-size: 0.92rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

/* Thưởng đơn hàng vào số dư (checkout/result.php, dòng nhỏ ở checkout/form.php) — App\Core\Wallet\OrderReward. */
.result-reward { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 1.25rem; padding: 0.8rem 1rem; border: 1px solid rgba(217, 119, 6, .28); border-radius: var(--radius-md); background: rgba(245, 158, 11, .08); color: var(--pk-ink); font-size: 0.92rem; line-height: 1.5; }
.result-reward-icon { flex: 0 0 auto; color: #d97706; font-size: 1.15rem; }
.result-reward-text { flex: 1 1 auto; }
.result-reward-link { flex: 0 0 auto; color: #2f9e5b; font-weight: 600; text-decoration: none; white-space: nowrap; }
.result-reward.is-credited { border-color: rgba(47, 158, 91, .28); background: rgba(47, 158, 91, .08); }
.result-reward.is-credited .result-reward-icon { color: #2f9e5b; }
[data-theme="dark"] .result-reward-icon { color: #fbbf24; }
[data-theme="dark"] .result-reward.is-credited .result-reward-icon, [data-theme="dark"] .result-reward-link { color: #4ade80; }
.checkout-reward-note { display: flex; align-items: flex-start; gap: 0.4rem; margin: 0.75rem 0 0; color: var(--pk-muted); font-size: 0.8rem; line-height: 1.45; }
.checkout-reward-note .bi { color: #d97706; }
[data-theme="dark"] .checkout-reward-note .bi { color: #fbbf24; }
.order-reward-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(245, 158, 11, .12); color: #b45309; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.order-reward-badge.is-credited { background: rgba(47, 158, 91, .12); color: #2f9e5b; }
[data-theme="dark"] .order-reward-badge { color: #fbbf24; }
[data-theme="dark"] .order-reward-badge.is-credited { color: #4ade80; }

/* Khách tự huỷ đơn chờ thanh toán (checkout/result.php) — nút ở hero + modal xác nhận. */
.result-cancel-btn { border: 1px solid rgba(220, 38, 38, .35); border-radius: 999px; background: transparent; color: #dc2626; font-weight: 600; }
.result-cancel-btn:hover, .result-cancel-btn:focus { border-color: #dc2626; background: rgba(220, 38, 38, .08); color: #dc2626; }
[data-theme="dark"] .result-cancel-btn, [data-theme="dark"] .result-cancel-btn:hover { color: #f87171; border-color: rgba(248, 113, 113, .45); }
.result-cancel-modal { border: 1px solid var(--pk-border); border-radius: var(--radius-lg); background: var(--pk-surface); color: var(--pk-ink); }
.result-cancel-modal .modal-body { padding: 1.75rem 1.5rem 1.25rem; }
.result-cancel-modal .modal-footer { padding-bottom: 1.5rem; gap: 0.5rem; }
.result-cancel-modal .btn { border-radius: 999px; padding: 0.55rem 1.3rem; font-weight: 600; }
.result-cancel-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(220, 38, 38, .1); color: #dc2626; font-size: 1.5rem; }

/* Cổng thủ công có ảnh QR (Binance Pay, Alipay): thẻ "Quét QR để thanh toán" — checkout/_qr_payment.php. */
.qr-pay {
	--qr-teal: #0f766e;
	--qr-teal-soft: #ecfdf8;
	--qr-teal-border: #99e6d4;
	--qr-warn-bg: #fffbea;
	--qr-warn-ink: #c2570c;
	margin-bottom: 1.5rem;
	border: 1px solid var(--pk-border);
	border-radius: var(--radius-lg);
	background: var(--pk-surface);
	box-shadow: var(--pk-shadow-sm, none);
	overflow: hidden;
}
[data-theme="dark"] .qr-pay {
	--qr-teal: #5eead4;
	--qr-teal-soft: rgba(94, 234, 212, .08);
	--qr-teal-border: rgba(94, 234, 212, .3);
	--qr-warn-bg: rgba(251, 191, 36, .1);
	--qr-warn-ink: #fbbf24;
}
.qr-pay-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.5rem;
	background: var(--pk-surface-2);
	border-bottom: 1px solid var(--pk-border);
}
.qr-pay-brand { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.qr-pay-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.qr-pay-sub { color: var(--pk-muted); font-size: 0.88rem; }
.qr-pay-total { text-align: end; flex-shrink: 0; }
.qr-pay-total small { display: block; color: var(--pk-muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.qr-pay-total strong { display: block; color: var(--qr-teal); font-size: 1.5rem; font-weight: 800; line-height: 1.2; }

.qr-pay-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.qr-pay-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem;
	border-inline-end: 1px solid var(--pk-border);
}
.qr-pay-qr { padding: 0.75rem; border: 1px solid var(--pk-border); border-radius: 16px; background: #fff; }
.qr-pay-qr img { display: block; width: 100%; max-width: 200px; height: auto; }
/* Vạch quét xanh chạy từ trên xuống trong khung QR (chỉ trang trí). */
.qr-pay-qr { position: relative; overflow: hidden; }
.qr-pay-scanline {
	position: absolute;
	inset-inline-start: 6%;
	inset-inline-end: 6%;
	top: 0;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, #10b981 20%, #34d399 50%, #10b981 80%, rgba(16, 185, 129, 0) 100%);
	box-shadow: 0 0 10px 2px rgba(16, 185, 129, .55);
	pointer-events: none;
	z-index: 1;
	animation: qr-pay-scan 2.4s ease-in-out infinite;
}
/* Vệt sáng mờ kéo theo phía trên vạch. */
.qr-pay-scanline::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	inset-inline-end: 0;
	bottom: 100%;
	height: 36px;
	background: linear-gradient(180deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, .16) 100%);
}
@keyframes qr-pay-scan {
	0% { top: 4%; opacity: 0; }
	8% { opacity: 1; }
	92% { opacity: 1; }
	100% { top: 96%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.qr-pay-scanline { display: none; }
}
.qr-pay-scan { color: var(--pk-muted); font-size: 0.88rem; }
.qr-pay-secure {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--qr-teal-border);
	border-radius: 999px;
	background: var(--qr-teal-soft);
	color: var(--qr-teal);
	font-size: 0.8rem;
	font-weight: 600;
}

.qr-pay-steps { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem; min-width: 0; }
.qr-pay-step-title { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.6rem; font-size: 0.95rem; font-weight: 700; }
.qr-pay-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--qr-teal-soft);
	border: 1px solid var(--qr-teal-border);
	color: var(--qr-teal);
	font-size: 0.8rem;
	font-weight: 700;
}
.qr-pay-box { padding: 0.85rem 1rem; border: 1px solid var(--pk-border); border-radius: 12px; background: var(--pk-surface-2); font-size: 0.9rem; }
.qr-pay-list { margin: 0; padding: 0; list-style: none; }
.qr-pay-list li { position: relative; padding-block: 0.2rem 0.2rem; padding-inline: 1rem 0; }
.qr-pay-list li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--qr-teal); }
.qr-pay-instructions { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--pk-border); color: var(--pk-muted); font-size: 0.85rem; line-height: 1.55; overflow-wrap: anywhere; }
.qr-pay-note { border-color: var(--qr-teal-border); background: var(--qr-teal-soft); color: var(--qr-teal); }
.qr-pay-code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.6rem;
	padding-block: 0.55rem 0.55rem; padding-inline: 0.9rem 0.6rem;
	border: 1px solid var(--qr-teal-border);
	border-radius: 10px;
	background: var(--pk-surface);
}
.qr-pay-code code { color: var(--pk-ink); font-size: 0.95rem; font-weight: 700; overflow-wrap: anywhere; }
.qr-pay-copy {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	flex-shrink: 0;
	padding: 0.25rem 0.6rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--qr-teal);
	font-size: 0.85rem;
	font-weight: 600;
}
.qr-pay-copy:hover { background: var(--qr-teal-soft); }

.qr-pay-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.25rem;
	border-top: 1px solid var(--pk-border);
	background: var(--qr-warn-bg);
	color: var(--qr-warn-ink);
	font-size: 0.88rem;
	text-align: center;
}

@media (max-width: 767.98px) {
	.qr-pay-head { padding: 1rem; }
	.qr-pay-total strong { font-size: 1.2rem; }
	.qr-pay-body { grid-template-columns: minmax(0, 1fr); }
	.qr-pay-left { border-inline-end: 0; border-bottom: 1px solid var(--pk-border); padding: 1.25rem 1rem; }
	.qr-pay-steps { padding: 1.25rem 1rem; }
}
@media (max-width: 400px) {
	.qr-pay-head { flex-wrap: wrap; }
	.qr-pay-total { text-align: start; }
}

/* Cổng thủ công: nút "I have paid" / "Submit all cards", thông báo chưa thấy tiền, xem lại hướng dẫn đã thu gọn. */
.pay-claim { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.1rem 1.25rem; border-top: 1px solid var(--pk-border); text-align: center; }
.pay-claim-btn { min-width: min(100%, 14rem); padding-block: 0.75rem; font-size: 1.05rem; font-weight: 700; }
.result-payment .pay-claim { margin-top: 1rem; padding-inline: 0; padding-bottom: 0; }
.pay-alert { margin-bottom: 1.25rem; padding: 1rem 1.25rem; border: 1px solid #f5c2c0; border-radius: 14px; background: #fef5f5; }
.pay-alert p { margin: 0 0 0.75rem; color: #7a271a; font-weight: 600; }
[data-theme="dark"] .pay-alert { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
[data-theme="dark"] .pay-alert p { color: #fecaca; }
.pay-review { margin-bottom: 1.25rem; }
.pay-review > summary { margin-bottom: 0.75rem; color: var(--pk-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.gc-pay-cards.is-review { padding-top: 1.25rem; }
.gc-pay-missing { margin-inline-start: 0.4rem; color: #f04438; }

/* Cổng Gift card: thẻ gửi gift card (dùng chung khung .qr-pay) — checkout/_giftcard_payment.php. */
.gc-pay-types { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--pk-border); }
.gc-pay-types-label { color: var(--pk-muted); font-size: 0.85rem; font-weight: 600; }
.gc-pay-types-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.gc-pay-type {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--pk-border);
	border-radius: 10px;
	background: var(--pk-surface);
	color: var(--pk-ink);
	font-size: 0.95rem;
	font-weight: 600;
	transition: border-color .15s, color .15s;
}
.gc-pay-type:hover:not(.is-active) { border-color: var(--qr-teal); color: var(--qr-teal); }
.gc-pay-type.is-active { border-color: var(--qr-teal); background: var(--qr-teal-soft); color: var(--qr-teal); cursor: default; opacity: 1; }
.gc-pay-type-logo { width: 22px; height: 22px; object-fit: contain; }
.gc-pay-types-hint { color: var(--pk-muted); font-size: 0.8rem; }

.gc-pay-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.5rem; }
.gc-pay-card { display: flex; align-items: center; justify-content: center; }
.gc-pay-card img { display: block; width: 100%; max-width: 220px; max-height: 160px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(15, 23, 42, .18)); }
.gc-pay-card-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 160px; height: 110px; border-radius: 14px; background: var(--qr-teal-soft); color: var(--qr-teal); font-size: 3rem; }
.gc-pay-notes { margin-bottom: 0.75rem; font-size: 0.9rem; }
.gc-pay-format { color: var(--qr-teal); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.gc-pay-instructions { margin: 0 0 0.9rem; padding-top: 0; border-top: 0; }
.gc-pay-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0.5rem; }
.gc-pay-fields .input-group-text { background: var(--pk-surface-2); color: var(--pk-muted); }
.gc-pay-submit { white-space: nowrap; }
.gc-pay-form-title { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.5rem; color: var(--qr-teal); font-size: 0.9rem; font-weight: 700; }

.gc-pay-cards { padding: 0 1.5rem 1.25rem; }
.gc-pay-empty { padding: 0.7rem 1rem; border: 1px solid var(--pk-border); border-radius: 10px; background: var(--pk-surface-2); color: var(--pk-muted); font-size: 0.88rem; text-align: center; }
.gc-pay-cards-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.gc-pay-cards-total { color: var(--qr-teal); font-size: 0.88rem; font-weight: 700; }
.gc-pay-subtitle { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.95rem; font-weight: 700; }
.gc-pay-table { font-size: 0.88rem; }
.gc-pay-table code { color: var(--pk-ink); }
.gc-pay-status { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.gc-pay-status.is-pending { background: rgba(245, 158, 11, .14); color: #b45309; }
.gc-pay-status.is-accepted { background: rgba(16, 185, 129, .14); color: #047857; }
.gc-pay-status.is-rejected { background: rgba(220, 38, 38, .12); color: #b91c1c; }
[data-theme="dark"] .gc-pay-status.is-pending { color: #fbbf24; }
[data-theme="dark"] .gc-pay-status.is-accepted { color: #34d399; }
[data-theme="dark"] .gc-pay-status.is-rejected { color: #f87171; }

.gc-pay-shops { padding: 1.1rem 1.5rem 1.5rem; border-top: 1px solid var(--pk-border); background: var(--pk-surface-2); }
.gc-pay-shops .gc-pay-subtitle { margin-bottom: 0.8rem; }
.gc-pay-shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.gc-pay-shop {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 2 / 1;
	padding: 4px;
	border: 1px solid var(--pk-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.gc-pay-shop:hover { transform: translateY(-2px); border-color: var(--qr-teal); box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.gc-pay-shop img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.gc-pay-shop-name { color: #0f172a; font-weight: 700; }

@media (max-width: 991.98px) {
	.gc-pay-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.gc-pay-field-code { grid-column: 1 / -1; }
	.gc-pay-submit { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
	.gc-pay-types { padding: 0.9rem 1rem; }
	.gc-pay-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.25rem 1rem; }
	.gc-pay-card img { max-width: 160px; max-height: 110px; }
	.gc-pay-cards { padding: 0 1rem 1rem; }
	.gc-pay-shops { padding: 1rem; }
	.gc-pay-shops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
	.gc-pay-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Hướng dẫn mua thẻ Eneba (5 bước, mỗi bước 1 màu --gs) — checkout/_giftcard_guide_eneba.php. */
.gc-guide { border-top: 1px solid var(--pk-border); }
.gc-guide-summary { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; }
.gc-guide-summary::-webkit-details-marker { display: none; }
.gc-guide-chevron { color: var(--pk-muted); transition: transform .2s; }
.gc-guide[open] .gc-guide-chevron { transform: rotate(180deg); }
.gc-guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0 1.5rem 1.25rem; list-style: none; }
.gc-guide-step {
	--gs: #7c3aed;
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	background: color-mix(in srgb, var(--gs) 7%, var(--pk-surface));
	font-size: 0.85rem;
}
.gc-guide-step.is-s2 { --gs: #2563eb; }
.gc-guide-step.is-s3 { --gs: #059669; }
.gc-guide-step.is-s4 { --gs: #ea580c; }
.gc-guide-step.is-s5 { --gs: #db2777; }
/* Mũi tên nối sang bước kế (chỉ khi 5 bước nằm 1 hàng). */
.gc-guide-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.75rem;
	inset-inline-end: -0.85rem;
	z-index: 1;
	width: 0.6rem;
	height: 0.6rem;
	border-top: 3px solid var(--gs);
	border-inline-end: 3px solid var(--gs);
	transform: rotate(45deg);
}
.gc-guide-step-head { display: flex; align-items: center; gap: 0.6rem; min-height: 4.2rem; padding: 0.65rem 0.8rem; border-radius: 14px 14px 0 0; background: linear-gradient(135deg, var(--gs), color-mix(in srgb, var(--gs) 70%, #000)); color: #fff; }
.gc-guide-step-head h4 { margin: 0; font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.gc-guide-num { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 1rem; font-weight: 800; }

.gc-guide-mock {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-height: 11.5rem;
	margin: 0.8rem 0.8rem 0;
	padding: 0.7rem;
	border: 3px solid color-mix(in srgb, var(--pk-ink) 82%, transparent);
	border-radius: 10px;
	background: var(--pk-surface);
	font-size: 0.72rem;
	line-height: 1.3;
}
.gc-guide-mock.is-center { align-items: center; justify-content: center; text-align: center; }
.gc-guide-mock-title { font-size: 0.8rem; }
.gc-guide-mock-label { font-weight: 700; }
.gc-guide-mock small { color: var(--pk-muted); font-size: 0.7rem; }
.gc-guide-brand { display: inline-flex; align-items: center; gap: 0.3rem; color: #6d28d9; font-weight: 800; font-size: 0.85rem; }
.gc-guide-brand.is-light { color: #fff; }
.gc-guide-brand-mark { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: conic-gradient(#f97316, #ec4899, #8b5cf6, #22d3ee, #facc15, #f97316); }
.gc-guide-shopbar { display: flex; align-items: center; justify-content: space-between; margin: -0.7rem -0.7rem 0; padding: 0.45rem 0.6rem; border-radius: 6px 6px 0 0; background: #5b21b6; color: #fff; }
.gc-guide-search { padding: 0.25rem 0.5rem; border: 1px solid var(--pk-border); border-radius: 6px; color: var(--pk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-guide-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; }
.gc-guide-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 3.6rem; padding: 0.35rem 0.15rem; border-radius: 6px; color: #fff; font-size: 0.82rem; font-weight: 800; }
.gc-guide-tile .gc-guide-brand { gap: 0.15rem; max-width: 100%; font-size: 0.6rem; }
.gc-guide-tile .gc-guide-brand-mark { flex-shrink: 0; width: 0.55rem; height: 0.55rem; }
.gc-guide-tile.is-purple { background: #7c3aed; }
.gc-guide-tile.is-blue { background: #2563eb; }
.gc-guide-tile.is-pink { background: #e11d48; }
.gc-guide-tile.is-picked { outline: 2px solid #93c5fd; outline-offset: 1px; }
.gc-guide-tile .bi { position: absolute; inset-inline-end: -0.2rem; bottom: -0.5rem; color: var(--pk-ink); font-size: 1rem; text-shadow: 0 0 2px var(--pk-surface); }
.gc-guide-radio { display: flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.45rem; border-radius: 6px; }
.gc-guide-radio::after { content: ""; width: 0.7rem; height: 0.7rem; margin-inline-start: auto; border: 1.5px solid var(--pk-muted); border-radius: 50%; }
.gc-guide-radio.is-checked { background: var(--pk-surface-2); }
.gc-guide-radio.is-checked::after { border-color: #2563eb; background: radial-gradient(#2563eb 45%, transparent 50%); }
.gc-guide-btn { margin-top: auto; padding: 0.35rem 0.6rem; border-radius: 6px; color: #fff; font-weight: 700; text-align: center; align-self: stretch; }
.gc-guide-btn.is-purple { background: #6d28d9; }
.gc-guide-btn.is-blue { background: #2563eb; }
.gc-guide-check { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #16a34a; color: #fff; font-size: 1.1rem; }
.gc-guide-giftcard { align-self: stretch; padding: 0.45rem; border-radius: 8px; background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff; }
.gc-guide-giftcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.gc-guide-code { display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; padding: 0.25rem 0.4rem; border: 1px solid var(--pk-border); border-radius: 5px; background: var(--pk-surface); color: var(--pk-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.gc-guide-code span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-guide-code .bi { color: #2563eb; }
.gc-guide-input { align-self: stretch; padding: 0.4rem; border: 1px solid var(--pk-border); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-guide-mock.is-center .gc-guide-btn { margin-top: 0; }
.gc-guide-keybox { align-self: stretch; padding: 0.4rem; border-radius: 8px; background: var(--pk-surface-2); }
.gc-guide-keybox-label { margin-bottom: 0.3rem; font-weight: 700; }

.gc-guide-points { margin: 0.8rem 0 0; padding-block: 0 0; padding-inline: 2rem 0.8rem; }
.gc-guide-points li + li { margin-top: 0.3rem; }
.gc-guide-link { margin: 0.6rem 0.8rem 0; color: var(--gs); font-weight: 600; text-decoration: none; }
.gc-guide-link:hover { text-decoration: underline; }
.gc-guide-step > :last-child { margin-bottom: 0.9rem; }
[data-theme="dark"] .gc-guide-brand:not(.is-light) { color: #c4b5fd; }
[data-theme="dark"] .gc-guide-link { color: color-mix(in srgb, var(--gs) 60%, #fff); }

.gc-guide-methods { display: flex; gap: 1rem; margin: 0 1.5rem 1.5rem; padding: 1rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, #2563eb 7%, var(--pk-surface)); }
.gc-guide-methods-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: #2563eb; color: #fff; font-size: 1.4rem; }
.gc-guide-methods-body { min-width: 0; }
.gc-guide-methods-body > strong { display: block; font-size: 0.98rem; }
.gc-guide-methods-body > small { color: var(--pk-muted); }
.gc-guide-methods-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.65rem 0 0; padding: 0; list-style: none; }
.gc-guide-methods-list li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border: 1px solid var(--pk-border); border-radius: 10px; background: var(--pk-surface); font-size: 0.85rem; font-weight: 600; }
.gc-guide-methods-list .bi { color: #2563eb; font-size: 1.05rem; }

@media (max-width: 1199.98px) {
	.gc-guide-steps { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.gc-guide-step::after { display: none; }
}
@media (max-width: 767.98px) {
	.gc-guide-summary { padding: 1rem; }
	.gc-guide-steps { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 0 1rem 1rem; }
	.gc-guide-mock { min-height: 0; }
	.gc-guide-methods { margin: 0 1rem 1rem; padding: 0.9rem; }
	.gc-guide-methods-icon { display: none; }
}

.result-method { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.result-method small { display: block; color: var(--pk-muted); font-size: 0.78rem; }
.result-method strong { display: block; font-size: 0.9rem; line-height: 1.3; }

.result-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
}
.result-status-badge.is-success { background: #e6f6ec; color: #23824a; }
.result-status-badge.is-pending { background: var(--pk-accent-light); color: #a87410; }
.result-status-badge.is-cancelled,
.result-status-badge.is-refunded { background: #f1eeec; color: var(--pk-muted); }
[data-theme="dark"] .result-status-badge.is-success { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
[data-theme="dark"] .result-status-badge.is-pending { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
[data-theme="dark"] .result-status-badge.is-cancelled,
[data-theme="dark"] .result-status-badge.is-refunded { background: var(--pk-surface-2); }

/* ----- Xác minh SĐT bằng SMS (account/phone_verify*.php) ----- */
.pv-card { max-width: 760px; }
.pv-card .auth-title { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.pv-phone-line { margin: 0 0 0.35rem; font-weight: 600; word-break: break-all; }
.pv-attempts { margin: 0 0 0.75rem; font-weight: 600; color: var(--pk-primary); }
.pv-steps { display: flex; flex-direction: column; gap: 1.1rem; margin: 0.5rem 0 1.25rem; padding: 0; list-style: none; }
.pv-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.pv-step-num {
	flex: 0 0 1.9rem; height: 1.9rem; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--pk-primary); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.pv-step-body { flex: 1 1 auto; min-width: 0; }
.pv-step-label { margin: 0.2rem 0 0.45rem; font-weight: 600; }
.pv-copy-box {
	display: flex; align-items: center; gap: 0.5rem; padding-block: 0.4rem 0.4rem; padding-inline: 1rem 0.4rem;
	border: 1.5px dashed rgba(127, 127, 127, 0.35); border-radius: var(--radius-md); background: rgba(127, 127, 127, 0.06);
}
.pv-copy-box code { flex: 1 1 auto; min-width: 0; color: inherit; background: none; word-break: break-all; }
.pv-code { font-size: 1.75rem; font-weight: 800; letter-spacing: 0.18em; }
.pv-copy-box .pv-number { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; word-break: normal; }
.pv-copy-btn {
	flex: 0 0 auto; padding: 0.4rem 0.8rem; border: 1px solid rgba(127, 127, 127, 0.35); border-radius: var(--radius-md);
	background: transparent; color: inherit; font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.pv-copy-btn:hover, .pv-copy-btn:focus-visible { border-color: var(--pk-primary); color: var(--pk-primary); }
.pv-copy-btn:disabled { opacity: 0.6; }
.pv-qr { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 0; }
.pv-qr-code { padding: 10px; border-radius: var(--radius-md); background: #fff; line-height: 0; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }
.pv-qr-code svg { width: 200px; height: 200px; display: block; }
.pv-qr figcaption { max-width: 220px; font-size: 0.85rem; color: var(--pk-muted); text-align: center; }
.pv-status-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
	margin-top: 1.25rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); background: rgba(127, 127, 127, 0.08);
}
.pv-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--pk-muted); }
.pv-waiting .spinner-border { color: var(--pk-primary); }
.pv-connection { color: var(--pk-primary); font-size: 0.9rem; }
.pv-notes { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--pk-muted); }
.pv-notes li + li { margin-top: 0.35rem; }
.pv-note { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--pk-muted); }
@media (max-width: 575.98px) {
	.pv-code { font-size: 1.45rem; letter-spacing: 0.12em; }
	.pv-copy-box .pv-number { font-size: 1rem; }
	.pv-status-bar { flex-direction: column; align-items: stretch; text-align: center; }
	.pv-waiting { justify-content: center; }
}
.pv-form { max-width: 520px; }
.pv-form .auth-title { font-size: clamp(1.35rem, 2.6vw, 1.6rem); }
.pv-hint {
	display: flex; gap: 0.5rem; margin: 0 0 1rem; padding: 0.65rem 0.85rem; border-radius: var(--radius-md);
	background: rgba(127, 127, 127, 0.08); font-size: 0.85rem; color: var(--pk-muted);
}
.pv-hint .bi { color: var(--pk-primary); }
