/* =====================================================================
 * TÀI KHOẢN KHÁCH HÀNG
 * Nút đăng nhập trên header · Popup / khung đăng nhập · Trang Tài khoản
 *
 * Màu: chỉ dùng biến trong :root của theme
 *   --hg-primary  #006B5B   màu thương hiệu (tiêu đề, link, viền khi chọn)
 *   --hg-text     #163C36   chữ
 *   --hg-button   #00866F   nút
 *   --green-natural #4CAF50 nhấn nhẹ (trạng thái thành công)
 * Các sắc nhạt (chữ phụ, viền, nền nhạt) pha từ các biến trên bằng color-mix().
 *
 * Màn hình:
 *   ≥ 1100px      máy tính
 *   850 – 1099px  tablet ngang / laptop nhỏ
 *   550 – 849px   tablet dọc
 *   ≤ 549px       điện thoại
 * ===================================================================== */


/* =====================================================================
 * 1. NỀN TẢNG
 * ===================================================================== */
.hga-hbtn, .hga-acc, .hga-modal, .hga-login-page, .hga-account { color: var(--hg-text); }
.hga-modal *, .hga-login-page *, .hga-account *, .hga-acc * { box-sizing: border-box; }
.hga-ic { flex: none; width: 18px; height: 18px; }
html.hga-lock, html.hga-lock body { overflow: hidden; }

.hga-avatar {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--hg-primary);
}

/* Focus: chỉ hiện viền khi dùng bàn phím */
.hga-modal :focus, .hga-login-page :focus, .hga-account :focus, .hga-acc :focus { outline: none; }
.hga-modal :focus-visible, .hga-login-page :focus-visible, .hga-account :focus-visible, .hga-acc :focus-visible {
	outline: 2px solid var(--hg-primary);
	outline-offset: 2px;
}


/* =====================================================================
 * 2. NÚT ĐĂNG NHẬP & MENU TÀI KHOẢN TRÊN HEADER
 * ===================================================================== */
.hga-hbtn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px;
	padding: 10px 16px !important;
	border-radius: 999px;
	background: var(--hg-primary);
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--hg-button) 30%, transparent);
	transition: background .2s, transform .2s;
}
.hga-hbtn:hover { background: var(--hg-button); transform: translateY(-1px); }
.hga-hbtn .hga-ic { width: 18px; height: 18px; }

.hga-acc { position: relative; display: inline-block; }
.hga-acc .hga-acc-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	min-height: 0;
	padding: 4px 12px 4px 4px;
	border: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff) !important;
	border-radius: 999px;
	background: #fff !important;
	color: var(--hg-text) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.hga-acc .hga-acc-btn:hover,
.hga-acc.is-open .hga-acc-btn { border-color: var(--hg-primary) !important; }
.hga-acc-btn .hga-ic {
	width: 16px;
	height: 16px;
	color: color-mix(in srgb, var(--hg-text) 68%, #fff);
	transition: transform .2s;
}
.hga-acc.is-open .hga-acc-btn .hga-ic { transform: rotate(180deg); }

.hga-acc-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1001;
	width: 260px;
	padding: 8px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 40px color-mix(in srgb, var(--hg-text) 14%, transparent);
	text-align: left;
	animation: hga-drop .18s ease-out;
}
.hga-acc-menu[hidden] { display: none; }
@keyframes hga-drop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}
.hga-acc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	padding: 8px 10px 12px;
	border-bottom: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
}
.hga-acc-head .hga-avatar { width: 44px; height: 44px; }
.hga-acc-head > div { min-width: 0; }
.hga-acc-head b { display: block; color: var(--hg-text); font-size: 15px; line-height: 1.3; }
.hga-acc-head small {
	display: block;
	overflow: hidden;
	color: color-mix(in srgb, var(--hg-text) 68%, #fff);
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hga-acc-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border-radius: 10px;
	color: var(--hg-text) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
}
.hga-acc-menu a:hover {
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff);
	color: var(--hg-primary) !important;
}
.hga-acc-menu a .hga-ic { color: var(--hg-primary); }
.hga-acc-menu .hga-acc-out {
	margin-top: 4px;
	border-top: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
	border-radius: 0 0 10px 10px;
}


/* =====================================================================
 * 3. POPUP & KHUNG ĐĂNG NHẬP
 * ===================================================================== */
.hga-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: color-mix(in srgb, var(--hg-text) 55%, transparent);
	opacity: 0;
	transition: opacity .2s;
}
.hga-modal[hidden] { display: none; }
.hga-modal.is-open { opacity: 1; }

.hga-modal-box {
	position: relative;
	display: grid;
	grid-template-columns: 42% 58%;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden auto;
	overscroll-behavior: contain;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 40px color-mix(in srgb, var(--hg-text) 14%, transparent);
	transform: translateY(14px) scale(.98);
	transition: transform .25s ease;
}
.hga-modal.is-open .hga-modal-box { transform: none; }

.hga-modal .hga-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	min-height: 0;
	border: 0 !important;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff) !important;
	color: var(--hg-text) !important;
	box-shadow: none;
	cursor: pointer;
}
.hga-modal .hga-close svg { width: 18px; height: 18px; }

/* Khung đăng nhập nằm trong trang Tài khoản (khi chưa đăng nhập) */
.hga-login-page { display: flex; justify-content: center; padding: 20px 0 48px; }
.hga-login-page .hga-modal-box { max-height: none; transform: none; }

/* ---------- Cột giới thiệu (nền xanh) ---------- */
.hga-intro {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 44px 36px;
	overflow: hidden;
	background: linear-gradient(150deg, var(--hg-primary), var(--hg-button));
	color: #fff;
}
.hga-intro::before, .hga-intro::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: color-mix(in srgb, #fff 9%, transparent);
}
.hga-intro::before { top: -80px; right: -90px; width: 260px; height: 260px; }
.hga-intro::after { bottom: -70px; left: -60px; width: 180px; height: 180px; }
.hga-intro > * { position: relative; z-index: 1; }
.hga-intro-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: color-mix(in srgb, #fff 16%, transparent);
}
.hga-intro-badge .hga-ic { width: 28px; height: 28px; }
.hga-intro-title { margin: 0 0 8px; color: #fff; font-size: 26px; font-weight: 700; line-height: 1.25; }
.hga-intro-text { margin: 0 0 24px; color: color-mix(in srgb, #fff 85%, transparent); font-size: 15px; line-height: 1.6; }
.hga-intro-list { margin: 0; padding: 0; list-style: none; }
.hga-intro-list li { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #fff; font-size: 14px; line-height: 1.4; }
.hga-intro-list .hga-ic {
	width: 34px;
	height: 34px;
	padding: 8px;
	border-radius: 10px;
	background: color-mix(in srgb, #fff 14%, transparent);
}

/* ---------- Cột form ---------- */
.hga-forms { min-width: 0; padding: 44px 40px 36px; }
.hga-title { margin: 0 0 6px; color: var(--hg-primary); font-size: 26px; font-weight: 700; line-height: 1.3; }
.hga-sub { margin: 0 0 22px; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 14px; line-height: 1.5; }


/* =====================================================================
 * 4. Ô NHẬP, NÚT, THÔNG BÁO (dùng chung popup + trang Tài khoản)
 * ===================================================================== */
.hga-field { margin-bottom: 16px; }
.hga-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--hg-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.hga-modal .hga-field input,
.hga-login-page .hga-field input,
.hga-account .hga-field input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid color-mix(in srgb, var(--hg-text) 20%, #fff) !important;
	border-radius: 10px;
	background: #fff !important;
	box-shadow: none;
	color: var(--hg-text) !important;
	font-size: 15px;
	line-height: 1.3;
	transition: border-color .15s, box-shadow .15s;
}
.hga-field input:focus {
	border-color: var(--hg-primary) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hg-primary) 8%, #fff) !important;
	outline: none !important;
}
.hga-field input.is-invalid {
	border-color: var(--hg-primary) !important;
	background: color-mix(in srgb, var(--hg-primary) 4%, #fff) !important;
}
.hga-err { display: block; margin-top: 5px; color: var(--hg-primary); font-size: 13px; font-weight: 500; line-height: 1.4; }
.hga-err:empty { display: none; }

/* Mật khẩu + nút hiện / ẩn */
.hga-pass { position: relative; }
.hga-modal .hga-pass input,
.hga-login-page .hga-pass input,
.hga-account .hga-pass input { padding-right: 46px; }
.hga-pass .hga-eye {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	min-height: 0;
	border: 0 !important;
	border-radius: 8px;
	background: none !important;
	color: color-mix(in srgb, var(--hg-text) 68%, #fff) !important;
	box-shadow: none;
	cursor: pointer;
}
.hga-pass .hga-eye.is-on { color: var(--hg-primary) !important; }

/* Ghi nhớ đăng nhập + Quên mật khẩu */
.hga-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -2px 0 18px; }
.hga-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--hg-text); font-size: 14px; font-weight: 400; white-space: nowrap; cursor: pointer; }
.hga-check input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	flex: none;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	accent-color: var(--hg-button);
}
.hga-check input[type="checkbox"]::before,
.hga-check input[type="checkbox"]::after { content: none !important; display: none !important; }

.hga-link, .hga-modal .hga-link, .hga-account .hga-link {
	display: inline;
	margin: 0;
	padding: 0;
	min-height: 0;
	border: 0 !important;
	background: none !important;
	color: var(--hg-primary) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}
.hga-link:hover { text-decoration: underline; }

/* Nút chính */
.hga-btn, .hga-modal .hga-btn, .hga-login-page .hga-btn, .hga-account .hga-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 24px;
	min-height: 0;
	border: 0 !important;
	border-radius: 999px;
	background: var(--hg-button) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none !important;
	box-shadow: none;
	cursor: pointer;
	transition: background .2s;
}
.hga-btn:hover { background: var(--hg-primary) !important; }
.hga-btn:disabled { cursor: wait; opacity: .85; }
.hga-btn-inline, .hga-account .hga-btn-inline { display: inline-flex; width: auto; min-width: 180px; }
.is-busy .hga-btn span { visibility: hidden; }
.is-busy .hga-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid color-mix(in srgb, #fff 40%, transparent);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hga-spin .7s linear infinite;
}
@keyframes hga-spin { to { transform: rotate(360deg); } }

/* Nút viền */
.hga-btn-ghost, .hga-account .hga-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 9px 18px;
	min-height: 0;
	border: 1px solid color-mix(in srgb, var(--hg-text) 20%, #fff) !important;
	border-radius: 999px;
	background: #fff !important;
	color: var(--hg-primary) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none !important;
	box-shadow: none;
	cursor: pointer;
}
.hga-btn-ghost:hover { border-color: var(--hg-primary) !important; }

/* Thông báo */
.hga-msg {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff);
	color: var(--hg-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}
.hga-msg.is-ok { background: color-mix(in srgb, var(--green-natural) 12%, #fff); color: var(--hg-text); }
.hga-msg[hidden] { display: none; }
.hga-note { margin: 18px 0 0; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 13px; line-height: 1.55; text-align: center; }
.hga-note a { color: var(--hg-primary); font-weight: 600; }


/* =====================================================================
 * 5. TRANG TÀI KHOẢN
 * ===================================================================== */
.hga-account {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding: 24px 0 56px;
}
.hga-side, .hga-main { min-width: 0; }

/* ---------- Cột trái ---------- */
.hga-side {
	position: sticky;
	top: 110px;
	padding: 24px 16px 12px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 24px color-mix(in srgb, var(--hg-text) 7%, transparent);
}
.hga-side-user {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 10px;
	padding-bottom: 18px;
	border-bottom: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
	text-align: center;
}
.hga-side-user .hga-avatar {
	width: 72px;
	height: 72px;
	margin-bottom: 8px;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hg-primary) 8%, #fff);
}
.hga-side-user b { color: var(--hg-text); font-size: 17px; line-height: 1.3; }
.hga-side-user small { min-width: 0; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 13px; word-break: break-all; }

.hga-nav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 2px 0;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--hg-text) !important;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .15s;
}
.hga-nav a .hga-ic { color: color-mix(in srgb, var(--hg-text) 68%, #fff); }
.hga-nav a:hover { background: color-mix(in srgb, var(--hg-primary) 8%, #fff); }
.hga-nav a.is-active {
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff);
	color: var(--hg-primary) !important;
	font-weight: 600;
}
.hga-nav a.is-active .hga-ic { color: var(--hg-primary); }
.hga-nav a.is-active::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--hg-primary);
}
.hga-nav a::after { display: none !important; } /* bỏ gạch chân mặc định của theme */
.hga-count {
	margin-left: auto;
	min-width: 24px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--hg-button);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}
.hga-nav .hga-nav-out {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
	border-radius: 0;
}

/* ---------- Cột phải ---------- */
.hga-pane[hidden] { display: none; }
.hga-pane-head { margin-bottom: 20px; }
.hga-pane-head h2 { margin: 0 0 4px; color: var(--hg-primary); font-size: 26px; font-weight: 700; line-height: 1.3; }
.hga-pane-head p { margin: 0; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 15px; }
.hga-card {
	padding: 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 24px color-mix(in srgb, var(--hg-text) 7%, transparent);
}
.hga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hga-span2 { grid-column: 1 / -1; }

/* ---------- Tour đã đặt ---------- */
.hga-bookings { display: flex; flex-direction: column; gap: 16px; }
.hga-bk {
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
	border-radius: 16px;
	background: #fff;
	transition: box-shadow .2s;
}
.hga-bk:hover { box-shadow: 0 6px 24px color-mix(in srgb, var(--hg-text) 8%, transparent); }
.hga-bk.is-cancelled { opacity: .72; }
.hga-bk-top {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 16px;
}
.hga-bk-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff);
}
.hga-bk-img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; object-fit: cover; }
.hga-bk-info { min-width: 0; }
.hga-bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.hga-code {
	padding: 2px 10px;
	border: 1px dashed color-mix(in srgb, var(--hg-text) 20%, #fff);
	border-radius: 6px;
	color: var(--hg-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
}
.hga-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.hga-badge.is-new { background: color-mix(in srgb, var(--hg-text) 8%, #fff); color: var(--hg-text); }
.hga-badge.is-confirmed { background: color-mix(in srgb, var(--hg-button) 14%, #fff); color: var(--hg-primary); }
.hga-badge.is-completed { background: color-mix(in srgb, var(--green-natural) 16%, #fff); color: var(--hg-text); }
.hga-badge.is-cancelled { background: color-mix(in srgb, var(--hg-text) 6%, #fff); color: color-mix(in srgb, var(--hg-text) 68%, #fff); text-decoration: line-through; }
.hga-bk-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.hga-bk-title a { color: var(--hg-text); text-decoration: none; }
.hga-bk-title a:hover { color: var(--hg-primary); }
.hga-bk-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.hga-bk-facts li { display: flex; align-items: center; gap: 6px; margin: 0; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 14px; }
.hga-bk-facts .hga-ic { width: 16px; height: 16px; color: var(--hg-primary); }
.hga-bk-price { text-align: right; white-space: nowrap; }
.hga-bk-price small { display: block; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 12px; }
.hga-bk-price b { color: var(--hg-primary); font-size: 18px; font-weight: 700; }

.hga-bk-more { border-top: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff); }
.hga-bk-more summary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px;
	color: var(--hg-primary);
	font-size: 14px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.hga-bk-more summary::-webkit-details-marker { display: none; }
.hga-bk-more summary .hga-ic { width: 16px; height: 16px; transition: transform .2s; }
.hga-bk-more[open] summary .hga-ic { transform: rotate(180deg); }
.hga-bk-body { padding: 4px 20px 20px; }

.hga-dl { margin: 0 0 12px; }
.hga-dl > div, .hga-lines > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
	font-size: 14px;
	line-height: 1.45;
}
.hga-dl dt { flex: none; margin: 0; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-weight: 400; }
.hga-dl dd { min-width: 0; margin: 0; color: var(--hg-text); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.hga-lines { margin: 0 0 12px; padding: 4px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hg-primary) 8%, #fff); }
.hga-lines > div:last-child { border-bottom: 0; }
.hga-lines span { color: color-mix(in srgb, var(--hg-text) 68%, #fff); }
.hga-lines b { color: var(--hg-text); font-weight: 600; white-space: nowrap; }
.hga-bk-date { margin: 0 0 12px; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 13px; }
.hga-bk-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chưa có tour */
.hga-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 48px 24px;
	border: 1px dashed color-mix(in srgb, var(--hg-text) 20%, #fff);
	border-radius: 16px;
	background: #fff;
	text-align: center;
}
.hga-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--hg-primary) 8%, #fff);
	color: var(--hg-primary);
}
.hga-empty-icon .hga-ic { width: 34px; height: 34px; }
.hga-empty b { font-size: 18px; }
.hga-empty p { margin: 6px 0 18px; color: color-mix(in srgb, var(--hg-text) 68%, #fff); }

/* ---------- Ảnh đại diện ---------- */
.hga-avatar-edit {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	padding: 20px 24px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 24px color-mix(in srgb, var(--hg-text) 7%, transparent);
}
.hga-avatar-edit > div { min-width: 0; }
.hga-avatar-edit b { display: block; font-size: 16px; }
.hga-avatar-edit small { display: block; margin-bottom: 10px; color: color-mix(in srgb, var(--hg-text) 68%, #fff); font-size: 13px; }
.hga-avatar-edit .hga-msg { margin: 10px 0 0; }
.hga-avatar-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hga-avatar-pick { position: relative; flex: none; margin: 0; cursor: pointer; }
.hga-avatar-pick .hga-avatar {
	width: 96px;
	height: 96px;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hg-primary) 8%, #fff);
}
.hga-avatar-cam {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--hg-button);
	color: #fff;
}
.hga-avatar-cam .hga-ic { width: 15px; height: 15px; }
.hga-avatar-edit.is-busy .hga-avatar-pick { opacity: .5; pointer-events: none; }


/* =====================================================================
 * 6. TABLET NGANG / LAPTOP NHỎ (850 – 1099px)
 * ===================================================================== */
@media (min-width: 850px) and (max-width: 1099px) {
	/* Popup gọn hơn */
	.hga-modal-box { max-width: 760px; grid-template-columns: 40% 60%; }
	.hga-intro { padding: 36px 28px; }
	.hga-intro-title { font-size: 23px; }
	.hga-forms { padding: 40px 32px 32px; }

	/* Trang Tài khoản: cột trái hẹp lại */
	.hga-account { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
	.hga-side { padding: 20px 12px 10px; }
	.hga-nav a { gap: 10px; padding: 10px 12px; font-size: 14px; }

	/* Thẻ tour: giá xuống dòng dưới để tên tour không bị chật */
	.hga-bk-top { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
	.hga-bk-price {
		grid-column: 1 / -1;
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		padding-top: 10px;
		border-top: 1px dashed color-mix(in srgb, var(--hg-text) 10%, #fff);
		text-align: left;
	}
}


/* =====================================================================
 * 7. TABLET DỌC + ĐIỆN THOẠI (≤ 849px)
 * ===================================================================== */
@media (max-width: 849px) {
    .hga-hbtn{
        padding: 8px 12px !important;
    }
	/* ---------- Popup: 1 cột, ẩn phần giới thiệu ---------- */
	.hga-modal .hga-modal-box { display: block; max-width: 460px; }
	.hga-modal .hga-intro { display: none; }
	.hga-forms { padding: 36px 28px 28px; }
	.hga-title { font-size: 23px; }

	/* Khung đăng nhập trong trang: giới thiệu nằm trên, form nằm dưới */
	.hga-login-page { padding: 12px 0 32px; }
	.hga-login-page .hga-modal-box { display: block; max-width: 520px; margin: 0 auto; }
	.hga-login-page .hga-intro { padding: 28px 24px; }
	.hga-login-page .hga-intro-badge { width: 44px; height: 44px; margin-bottom: 14px; }
	.hga-login-page .hga-intro-text { margin-bottom: 0; }
	.hga-login-page .hga-intro-list { display: none; }

	/* ---------- Trang Tài khoản: 1 cột ---------- */
	.hga-account { grid-template-columns: 1fr; gap: 18px; padding-top: 12px; }
	.hga-side { position: static; padding: 16px; }
	.hga-side-user {
		display: grid;
		grid-template-columns: 52px minmax(0, 1fr);
		align-items: center;
		justify-items: start;
		gap: 0 12px;
		margin-bottom: 12px;
		padding: 0 0 14px;
		text-align: left;
	}
	.hga-side-user .hga-avatar { grid-row: 1 / 3; width: 52px; height: 52px; margin: 0; }
	.hga-side-user b { align-self: end; }
	.hga-side-user small { align-self: start; }

	/* Menu: các ô xếp ngang (4 ô trên tablet, 2 cột trên điện thoại) */
	.hga-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
	.hga-nav a,
	.hga-nav .hga-nav-out {
		min-width: 0;
		margin: 0;
		padding: 10px 12px;
		gap: 8px;
		border: 1px solid color-mix(in srgb, var(--hg-text) 10%, #fff);
		border-radius: 12px;
		font-size: 14px;
		line-height: 1.3;
		white-space: normal;
	}
	.hga-nav a.is-active { border-color: color-mix(in srgb, var(--hg-primary) 35%, #fff); }
	.hga-nav a.is-active::before { display: none; }
	.hga-count { min-width: 22px; padding: 1px 7px; }

	.hga-pane-head h2 { font-size: 22px; }
	.hga-card { padding: 20px; }

	/* Thẻ tour: giá xuống dòng dưới */
	.hga-bk-top { grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px; }
	.hga-bk-price {
		grid-column: 1 / -1;
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		padding-top: 10px;
		border-top: 1px dashed color-mix(in srgb, var(--hg-text) 10%, #fff);
		text-align: left;
	}
	.hga-bk-title { font-size: 17px; }
	.hga-bk-body { padding: 4px 16px 16px; }

	.hga-avatar-edit { gap: 16px; padding: 18px; }
	.hga-avatar-pick .hga-avatar { width: 84px; height: 84px; }
}


/* =====================================================================
 * 8. ĐIỆN THOẠI (≤ 549px)
 * ===================================================================== */
@media (max-width: 549px) {
	/* Header: chỉ hiện icon / avatar */
	.hga-hbtn { 
	    justify-content: center; 
	    width: 34px; 
	    height: 34px; 
	    padding: 0 !important; 
	}
	.hga-hbtn .hga-hbtn-text,
	.hga-acc-btn .hga-hbtn-text,
	.hga-acc-btn .hga-ic { display: none; }
	.hga-acc .hga-acc-btn { padding: 3px; }
	.hga-acc-menu { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }

	/* Popup: trượt lên từ đáy màn hình */
	.hga-modal { align-items: flex-end; padding: 0; }
	.hga-modal .hga-modal-box {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
		transform: translateY(40px);
	}
	.hga-modal.is-open .hga-modal-box { transform: none; }
	.hga-forms { padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); }
	.hga-login-page .hga-forms { padding: 26px 20px 28px; }
	.hga-login-page .hga-intro { padding: 24px 20px; }

	/* Trang Tài khoản */
	.hga-side { padding: 14px 12px; }
	.hga-nav { grid-template-columns: 1fr 1fr; }
	.hga-grid { grid-template-columns: 1fr; }
	.hga-card { padding: 18px; }
	.hga-bk-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.hga-bk-title { font-size: 16px; }
	.hga-bk-body { padding: 4px 14px 16px; }
	.hga-avatar-edit { padding: 16px; }
	.hga-avatar-pick .hga-avatar { width: 76px; height: 76px; }
}