/* ===== Hoivien – Trung tâm Hội viên ===== */
.hoivien-portal {
	--hv-primary: #2563eb;
	--hv-primary-hover: #1d4ed8;
	--hv-bg: #f8fafc;
	--hv-card: #ffffff;
	--hv-border: #e2e8f0;
	--hv-text: #1e293b;
	--hv-muted: #64748b;
	--hv-success: #16a34a;
	--hv-warning: #d97706;
	--hv-danger: #dc2626;
	--hv-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--hv-text);
	max-width: 860px;
	margin: 0 auto;
	padding: 12px;
}

.hoivien-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.hoivien-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hoivien-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
}

.hoivien-user strong {
	display: block;
	font-size: 16px;
}

.hoivien-phone {
	font-size: 13px;
	color: var(--hv-muted);
}

/* Tabs */
.hoivien-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--hv-border);
	-webkit-overflow-scrolling: touch;
}

.hoivien-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 8px 8px 0 0;
	text-decoration: none;
	color: var(--hv-muted);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	position: relative;
	transition: all 0.15s;
}

.hoivien-tabs a:hover {
	color: var(--hv-primary);
	background: #eff6ff;
}

.hoivien-tabs a.active {
	color: var(--hv-primary);
	background: #eff6ff;
	font-weight: 600;
}

.hoivien-tabs a.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--hv-primary);
}

.hv-icon {
	font-size: 15px;
}

.hv-badge {
	background: var(--hv-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	line-height: 1;
}

/* Content */
.hv-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.hv-section-head h3 {
	margin: 0;
	font-size: 18px;
}

/* Empty state */
.hv-empty {
	text-align: center;
	padding: 40px 20px;
	background: var(--hv-bg);
	border-radius: var(--hv-radius);
}

.hv-empty-icon {
	font-size: 42px;
	margin-bottom: 12px;
}

.hv-empty p {
	margin: 6px 0;
	color: var(--hv-muted);
}

.hv-muted {
	font-size: 13px;
	color: var(--hv-muted);
}

/* Notifications */
.hv-noti-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hv-noti-item {
	display: flex;
	gap: 12px;
	padding: 14px;
	background: var(--hv-card);
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	position: relative;
	transition: background 0.15s;
}

.hv-noti-item.is-unread {
	background: #f0f9ff;
	border-color: #bae6fd;
}

.hv-noti-type {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.hv-noti-body {
	flex: 1;
	min-width: 0;
}

.hv-noti-title {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
}

.hv-noti-msg {
	font-size: 14px;
	color: var(--hv-muted);
	line-height: 1.45;
	margin-bottom: 6px;
}

.hv-noti-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	font-size: 12px;
	color: var(--hv-muted);
}

.hv-noti-link {
	color: var(--hv-primary);
	text-decoration: none;
	font-weight: 500;
}

.hv-noti-link:hover {
	text-decoration: underline;
}

.hv-noti-mark {
	background: none;
	border: 1px solid var(--hv-border);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: var(--hv-success);
	font-size: 14px;
	flex-shrink: 0;
	align-self: center;
}

.hv-noti-mark:hover {
	background: #dcfce7;
	border-color: #86efac;
}

/* Orders / Bookings cards */
.hv-order-list,
.hv-booking-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hv-order-card,
.hv-booking-card {
	background: var(--hv-card);
	border: 1px solid var(--hv-border);
	border-radius: var(--hv-radius);
	padding: 14px 16px;
}

.hv-order-top,
.hv-booking-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	gap: 10px;
}

.hv-order-info,
.hv-booking-info {
	font-size: 13px;
	color: var(--hv-muted);
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.hv-order-info strong {
	color: var(--hv-text);
}

/* Status badges */
.hv-status {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.hv-status-pending,
.hv-status-processing { background: #fef3c7; color: #92400e; }
.hv-status-confirmed,
.hv-status-booked { background: #dbeafe; color: #1e40af; }
.hv-status-shipping { background: #e0e7ff; color: #3730a3; }
.hv-status-completed { background: #dcfce7; color: #166534; }
.hv-status-cancelled,
.hv-status-refunded { background: #fee2e2; color: #991b1b; }

/* Info box */
.hv-info-box {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: var(--hv-radius);
	padding: 14px 16px;
	font-size: 14px;
	color: #1e40af;
	line-height: 1.5;
}

.hv-info-box p {
	margin: 0 0 8px;
}

.hv-info-box p:last-child {
	margin-bottom: 0;
}

.hv-info-box a {
	color: var(--hv-primary);
	font-weight: 600;
}

/* Forms */
.hv-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 420px;
}

.hv-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--hv-text);
}

.hv-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--hv-border);
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.hv-field input:focus {
	outline: none;
	border-color: var(--hv-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hv-help {
	font-size: 12px;
	color: var(--hv-muted);
	margin: 4px 0 0;
}

.hv-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.hv-form-msg {
	font-size: 13px;
}

.hv-form-msg.is-success { color: var(--hv-success); }
.hv-form-msg.is-error { color: var(--hv-danger); }

.hv-divider {
	border: none;
	border-top: 1px solid var(--hv-border);
	margin: 28px 0 20px;
}

/* Buttons */
.hv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid var(--hv-border);
	background: #fff;
	color: var(--hv-text);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
	line-height: 1.3;
}

.hv-btn:hover {
	background: var(--hv-bg);
	border-color: #cbd5e1;
}

.hv-btn-primary {
	background: var(--hv-primary);
	border-color: var(--hv-primary);
	color: #fff;
}

.hv-btn-primary:hover {
	background: var(--hv-primary-hover);
	border-color: var(--hv-primary-hover);
	color: #fff;
}

.hv-btn-sm {
	padding: 6px 12px;
	font-size: 13px;
}

/* Login prompt */
.hoivien-login-prompt {
	max-width: 480px;
	margin: 40px auto;
}

.hoivien-login-prompt .hv-btn {
	margin: 4px;
}

/* Badge trên menu (nếu theme hỗ trợ) */
.hoivien-menu-badge {
	background: var(--hv-danger);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	margin-left: 4px;
	vertical-align: middle;
	line-height: 1;
}

/* Responsive */
@media (max-width: 600px) {
	.hoivien-portal {
		padding: 8px;
	}
	.hoivien-tabs a {
		padding: 9px 11px;
		font-size: 13px;
	}
	.hv-section-head {
		flex-direction: column;
		align-items: flex-start;
	}
	.hv-noti-item {
		padding: 12px;
	}
}

/* Login prompt actions */
.hv-login-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 8px;
}
.hv-login-actions .hv-btn {
	min-width: 140px;
}

/* ===== Simple Auth (Đăng nhập / Đăng ký / Quên MK) ===== */
.hv-simple-auth {
	max-width: 420px;
	margin: 24px auto;
	padding: 0 12px;
}
.hv-auth-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 24px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
	border: 1px solid #e2e8f0;
	text-align: center;
}
.hv-auth-icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 10px;
}
.hv-auth-card h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: #0f172a;
}
.hv-auth-desc {
	margin: 0 0 20px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.5;
}
.hv-auth-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 20px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 12px;
}
.hv-auth-tab {
	flex: 1;
	padding: 10px 6px;
	border: none;
	border-radius: 9px;
	background: transparent;
	color: #64748b;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s;
}
.hv-auth-tab.is-active {
	background: #fff;
	color: #0f172a;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}
.hv-auth-panel {
	display: none;
	text-align: left;
}
.hv-auth-panel.is-active {
	display: block;
}
.hv-auth-panel .hv-field {
	display: block;
	margin-bottom: 14px;
}
.hv-auth-panel .hv-field span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}
.hv-auth-panel .hv-field span em {
	font-weight: 400;
	color: #94a3b8;
	font-style: normal;
}
.hv-auth-panel .hv-field input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 15px;
	color: #0f172a;
	background: #fff;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s;
}
.hv-auth-panel .hv-field input:focus {
	border-color: #06b6d4;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.hv-auth-note {
	font-size: 13px;
	color: #64748b;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0 0 14px;
	line-height: 1.45;
}
.hv-auth-msg {
	min-height: 22px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	text-align: center;
	line-height: 1.4;
}
.hv-auth-msg.is-error { color: #dc2626; }
.hv-auth-msg.is-success { color: #16a34a; }
.hv-auth-msg .hv-pin {
	display: inline-block;
	margin-top: 6px;
	padding: 8px 16px;
	background: #ecfdf5;
	border: 2px dashed #34d399;
	border-radius: 8px;
	font-size: 22px;
	letter-spacing: 4px;
	color: #065f46;
	font-weight: 800;
}
.hv-auth-btn {
	width: 100%;
	padding: 13px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(90deg, #22d3ee, #06b6d4);
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
	transition: transform 0.15s, box-shadow 0.15s;
}
.hv-auth-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}
.hv-auth-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}
.hv-auth-btn-outline {
	background: #fff;
	color: #0f172a;
	border: 1.5px solid #cbd5e1;
	box-shadow: none;
}
.hv-auth-btn-outline:hover {
	background: #f8fafc;
	box-shadow: none;
}
.hv-auth-hint {
	text-align: center;
	margin: 14px 0 0;
	font-size: 13px;
	color: #64748b;
}
.hv-auth-hint a {
	color: #0891b2;
	font-weight: 600;
	text-decoration: none;
}
.hv-auth-hint a:hover {
	text-decoration: underline;
}

/* Logout */
.hv-logout-btn {
	color: #dc2626 !important;
	border-color: #fecaca !important;
	background: #fef2f2 !important;
	white-space: nowrap;
}
.hv-logout-btn:hover {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
	color: #b91c1c !important;
}
.hoivien-header .hv-logout-btn {
	margin-left: auto;
}

/* Hạng & quyền lợi */
.hv-tier-badge {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-top: 2px;
}
.hv-benefits-card {
	background: linear-gradient(135deg, #f0f9ff, #f8fafc);
	border: 1px solid #bae6fd;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 20px;
}
.hv-benefits-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.hv-benefits-tier {
	font-weight: 700;
	font-size: 15px;
}
.hv-benefits-points {
	font-size: 13px;
	font-weight: 600;
	color: #0369a1;
	background: #e0f2fe;
	padding: 3px 10px;
	border-radius: 20px;
}
.hv-benefits-list {
	margin: 0;
	padding-left: 18px;
	font-size: 14px;
	color: #334155;
	line-height: 1.55;
}
.hv-benefits-list li {
	margin-bottom: 4px;
}

/* Public benefits page */
.hv-benefits-public {
	max-width: 960px;
	margin: 0 auto;
	padding: 12px;
	color: #0f172a;
}
.hv-benefits-intro {
	text-align: center;
	margin-bottom: 28px;
}
.hv-benefits-intro h2 {
	margin: 0 0 10px;
	font-size: 26px;
}
.hv-benefits-intro p {
	color: #475569;
	line-height: 1.55;
}
.hv-benefits-you {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	display: inline-block;
	padding: 8px 14px;
	border-radius: 10px;
	color: #065f46 !important;
}
.hv-benefits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px;
}
.hv-benefits-tier-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 16px;
	border-top: 4px solid var(--tier-color, #64748b);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.hv-benefits-tier-card.is-current {
	box-shadow: 0 0 0 2px var(--tier-color, #06b6d4);
}
.hv-btc-badge {
	font-size: 28px;
	line-height: 1;
	margin-bottom: 6px;
}
.hv-benefits-tier-card h3 {
	margin: 0 0 6px;
	font-size: 17px;
}
.hv-btc-current {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	background: #ecfeff;
	color: #0e7490;
	padding: 2px 8px;
	border-radius: 20px;
	margin-bottom: 8px;
}
.hv-btc-min {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 10px;
	min-height: 36px;
}
.hv-btc-disc {
	font-size: 14px;
	background: #fef3c7;
	color: #92400e;
	padding: 6px 10px;
	border-radius: 8px;
	margin-bottom: 12px;
	font-weight: 600;
}
.hv-btc-disc-free {
	background: #f1f5f9;
	color: #475569;
}
.hv-benefits-tier-card ul {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #334155;
}
.hv-benefits-tier-card li {
	margin-bottom: 4px;
}
.hv-benefits-footnote {
	margin-top: 24px;
	padding: 14px 16px;
	background: #f8fafc;
	border-radius: 10px;
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}
.hv-benefits-intro .hv-auth-btn {
	display: inline-block;
	width: auto;
	padding: 12px 22px;
	text-decoration: none;
}
