:root {
	--hi-purple: #7b3ff2;
	--hi-magenta: #f04ca8;
	--hi-blue: #37a7ff;
	--hi-orange: #ff8a19;
	--hi-ink: #202335;
	--hi-muted: #667085;
	--hi-line: #e6e8f2;
	--hi-bg: #f5f7ff;
	--hi-card: #ffffff;
	--hi-shadow: 0 18px 42px rgba(75, 66, 130, .12);
}

.hi88-portal {
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #ffffff 0%, var(--hi-bg) 44%, #f0ecff 100%);
	color: var(--hi-ink);
	font-family: Arial, "Helvetica Neue", sans-serif;
	letter-spacing: 0;
}

.hi88-portal * { box-sizing: border-box; }
.hi88-portal a { color: inherit; text-decoration: none; }
.hi88-portal img { display: block; max-width: 100%; }

.hi88-shell {
	width: min(1160px, calc(100% - 40px));
	margin: 0 auto;
}

.hi88-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgba(255, 255, 255, .95);
	border-bottom: 1px solid rgba(225, 228, 240, .9);
	box-shadow: 0 10px 28px rgba(75, 66, 130, .08);
	backdrop-filter: blur(14px);
}

.hi88-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 20px;
}

.hi88-logo {
	flex: 0 0 auto;
	color: var(--hi-purple);
	font-size: 38px;
	line-height: 1;
	font-weight: 900;
}

.hi88-logo span {
	color: var(--hi-magenta);
}

.hi88-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	color: #30334a;
	font-size: 14px;
	font-weight: 900;
}

.hi88-menu a {
	position: relative;
	padding: 28px 0 25px;
	white-space: nowrap;
}

.hi88-menu a::after {
	position: absolute;
	right: 0;
	bottom: 18px;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--hi-purple), var(--hi-magenta));
	border-radius: 999px;
	content: "";
	opacity: 0;
	transform: scaleX(.35);
	transition: .2s ease;
}

.hi88-menu a:hover,
.hi88-menu a.active {
	color: var(--hi-purple);
}

.hi88-menu a:hover::after,
.hi88-menu a.active::after {
	opacity: 1;
	transform: scaleX(1);
}

.hi88-nav-actions,
.hi88-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hi88-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 17px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 900;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease;
}

.hi88-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(123, 63, 242, .2);
}

.hi88-btn-hot {
	background: linear-gradient(135deg, #ff8a19, #ff4fa7 55%, #7b3ff2);
	color: #fff !important;
}

.hi88-btn-login,
.hi88-btn-light {
	background: #fff;
	color: #2e3147 !important;
	border-color: #dfe2ef;
}

.hi88-btn-large {
	min-height: 52px;
	padding: 0 24px;
	border-radius: 14px;
	font-size: 16px;
}

.hi88-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(410px, .88fr);
	gap: 26px;
	align-items: stretch;
	margin-top: 28px;
	padding: 28px;
	border-radius: 28px;
	background:
		radial-gradient(circle at 90% 12%, rgba(55, 167, 255, .28), transparent 32%),
		linear-gradient(135deg, #5227d6 0%, #9e45ff 46%, #f04ca8 100%);
	box-shadow: var(--hi-shadow);
	overflow: hidden;
	color: #fff;
}

.hi88-hero-copy {
	position: relative;
	z-index: 1;
	padding: 26px 4px 18px 12px;
}

.hi88-eyebrow,
.hi88-title-row p,
.hi88-section-head p {
	margin: 0 0 10px;
	color: var(--hi-purple);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
}

.hi88-hero .hi88-eyebrow {
	color: #ffe37a;
}

.hi88-hero h1 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.05;
	font-weight: 900;
}

.hi88-hero p {
	max-width: 650px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, .9);
	font-size: 18px;
	line-height: 1.7;
}

.hi88-actions {
	flex-wrap: wrap;
	margin-top: 26px;
}

.hi88-badges {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}

.hi88-badges span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 13px;
	background: rgba(255, 255, 255, .14);
	font-weight: 900;
	text-align: center;
	backdrop-filter: blur(8px);
}

.hi88-hero-media {
	position: relative;
	z-index: 1;
	overflow: hidden;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 22px;
	background: rgba(255, 255, 255, .14);
}

.hi88-hero-media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
}

.hi88-info,
.hi88-benefits,
.hi88-games,
.hi88-news,
.hi88-guide,
.hi88-faq,
.hi88-article-card,
.hi88-side-card {
	margin-top: 24px;
	padding: 28px;
	border: 1px solid var(--hi-line);
	border-radius: 24px;
	background: rgba(255, 255, 255, .97);
	box-shadow: var(--hi-shadow);
}

.hi88-info {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
	gap: 28px;
	align-items: center;
}

.hi88-info-copy h2,
.hi88-title-row h2,
.hi88-section-head h2 {
	margin: 0;
	color: #202335;
	font-size: 32px;
	line-height: 1.18;
	font-weight: 900;
}

.hi88-info-copy p:not(.hi88-eyebrow) {
	margin: 16px 0 0;
	color: var(--hi-muted);
	font-size: 16px;
	line-height: 1.75;
}

.hi88-table {
	display: grid;
	gap: 10px;
}

.hi88-table div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 14px 16px;
	border: 1px solid #e7e9f4;
	border-radius: 14px;
	background: #fbfcff;
}

.hi88-table b {
	color: var(--hi-purple);
}

.hi88-table span {
	color: #4f566b;
	font-weight: 800;
	text-align: right;
}

.hi88-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
}

.hi88-title-row > a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid #dfe2ef;
	border-radius: 999px;
	background: #fff;
	color: #30334a;
	font-weight: 900;
}

.hi88-card-grid,
.hi88-step-grid {
	display: grid;
	gap: 16px;
}

.hi88-card-grid.four,
.hi88-step-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hi88-card-grid.six {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hi88-card-grid article,
.hi88-step-grid article {
	padding: 20px;
	border: 1px solid #e7e9f4;
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

.hi88-card-grid i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: #f1eaff;
	color: var(--hi-purple);
	font-size: 21px;
}

.hi88-card-grid h3,
.hi88-step-grid h3 {
	margin: 14px 0 0;
	font-size: 18px;
	font-weight: 900;
}

.hi88-card-grid p,
.hi88-step-grid p {
	margin: 8px 0 0;
	color: var(--hi-muted);
	font-size: 14px;
	line-height: 1.56;
}

.hi88-news-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.hi88-news-grid:empty::before {
	display: flex;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	border: 1px dashed #d9dcf0;
	border-radius: 18px;
	background: #fbfcff;
	color: var(--hi-muted);
	font-weight: 800;
	text-align: center;
	content: "Khu vực bài viết HI88 sẽ tự động hiển thị sau khi cập nhật nội dung trong hệ thống.";
}

.hi88-news-card {
	overflow: hidden;
	border: 1px solid #e7e9f4;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 26px rgba(75, 66, 130, .08);
}

.hi88-news-media {
	display: block;
	min-height: 178px;
	background: linear-gradient(135deg, #f1eaff, #e8f7ff);
}

.hi88-news-media img {
	width: 100%;
	height: 100%;
	min-height: 178px;
	object-fit: cover;
}

.hi88-news-body {
	padding: 18px;
}

.hi88-news-body time,
.hi88-news-body span {
	display: inline-flex;
	margin: 0 8px 10px 0;
	color: var(--hi-purple);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.hi88-news-body h3 {
	margin: 0;
	color: #202335;
	font-size: 19px;
	line-height: 1.32;
	font-weight: 900;
}

.hi88-news-body p {
	margin: 10px 0 0;
	color: var(--hi-muted);
	font-size: 14px;
	line-height: 1.6;
}

.hi88-read {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--hi-purple);
	font-weight: 900;
}

.hi88-page-list {
	margin-top: 18px;
}

.hi88-page-list li {
	list-style: none;
}

.hi88-section-head {
	max-width: 760px;
	margin: 0 auto 24px;
	text-align: center;
}

.hi88-step-grid article {
	text-align: center;
}

.hi88-step-grid b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--hi-purple), var(--hi-magenta));
	color: #fff;
	font-weight: 900;
}

.hi88-faq details {
	border-top: 1px solid #e7e9f4;
}

.hi88-faq details:first-of-type {
	border-top: 0;
}

.hi88-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	color: #202335;
	font-weight: 900;
	cursor: pointer;
}

.hi88-faq summary::after {
	color: var(--hi-purple);
	font-family: FontAwesome;
	content: "\f107";
}

.hi88-faq details[open] summary::after {
	content: "\f106";
}

.hi88-faq p {
	margin: 0 0 18px;
	color: var(--hi-muted);
	line-height: 1.7;
}

.hi88-footer {
	margin-top: 42px;
	padding: 34px 0 18px;
	background: linear-gradient(135deg, #f7f4ff, #eaf7ff);
	border-top: 1px solid #dfe2ef;
}

.hi88-footer-grid {
	display: grid;
	grid-template-columns: 1.25fr .8fr .8fr .8fr;
	gap: 28px;
}

.footer-logo {
	display: inline-flex;
	margin-bottom: 14px;
}

.hi88-footer p {
	margin: 0;
	color: var(--hi-muted);
	line-height: 1.7;
}

.hi88-footer h3 {
	margin: 4px 0 14px;
	font-size: 17px;
	font-weight: 900;
}

.hi88-footer a {
	display: block;
	margin: 8px 0;
	color: #4f566b;
	font-weight: 700;
}

.hi88-social {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.hi88-social i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--hi-purple);
	box-shadow: 0 8px 18px rgba(75, 66, 130, .08);
}

.hi88-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid #dfe2ef;
	color: var(--hi-muted);
	font-size: 14px;
}

.hi88-footer-bottom span:last-child {
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
}

.hi88-article-hero {
	padding: 44px 0 54px;
	background: linear-gradient(135deg, #f7f4ff 0%, #e9f7ff 100%);
	border-bottom: 1px solid #e1e5f2;
}

.hi88-breadcrumb {
	margin-bottom: 20px;
	color: var(--hi-muted);
	font-size: 14px;
}

.hi88-breadcrumb a {
	color: var(--hi-purple);
}

.hi88-article-hero h1 {
	max-width: 900px;
	margin: 0;
	color: #202335;
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.12;
	font-weight: 900;
}

.hi88-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	color: #596174;
}

.hi88-article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #dfe2ef;
	border-radius: 999px;
	background: #fff;
}

.hi88-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	margin-top: 28px;
}

.hi88-article-card {
	margin-top: 0;
}

.hi88-article-content {
	color: #2a2f42;
	font-size: 17px;
	line-height: 1.82;
}

.hi88-article-content img {
	height: auto;
	margin: 18px 0;
	border-radius: 16px;
}

.hi88-article-content h2,
.hi88-article-content h3 {
	margin-top: 28px;
	font-weight: 900;
}

.hi88-updated {
	margin: 20px 0 0;
	color: var(--hi-muted);
}

.hi88-pagebreak {
	margin-top: 22px;
}

.hi88-prev-next {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--hi-line);
}

.hi88-prev-next > div {
	padding: 14px;
	border: 1px solid #e7e9f4;
	border-radius: 14px;
	background: #fbfcff;
}

.hi88-sidebar {
	display: grid;
	gap: 18px;
	align-content: start;
}

.hi88-side-card {
	margin-top: 0;
	padding: 22px;
}

.hi88-side-card h3 {
	margin: 0 0 12px;
	font-weight: 900;
}

.hi88-side-card p {
	color: var(--hi-muted);
	line-height: 1.65;
}

.hi88-side-card > a,
.hi88-related a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid #e7e9f4;
	color: #30334a;
	font-weight: 800;
}

.hi88-side-card > a:last-child,
.hi88-related a:last-child {
	border-bottom: 0;
}

.hi88-side-card > a i {
	color: var(--hi-purple);
}

@media (max-width: 1080px) {
	.hi88-menu { gap: 14px; font-size: 13px; }
	.hi88-hero,
	.hi88-info,
	.hi88-article-layout { grid-template-columns: 1fr; }
	.hi88-card-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hi88-news-grid,
	.hi88-card-grid.four,
	.hi88-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.hi88-shell { width: min(100% - 28px, 1160px); }
	.hi88-nav { flex-wrap: wrap; padding: 14px 0; }
	.hi88-logo { font-size: 34px; }
	.hi88-menu {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 6px 14px;
	}
	.hi88-menu a { padding: 10px 0 14px; }
	.hi88-menu a::after { bottom: 5px; }
	.hi88-nav-actions { margin-left: auto; }
	.hi88-btn-login { display: none; }
	.hi88-hero { margin-top: 18px; padding: 18px; }
	.hi88-hero h1,
	.hi88-article-hero h1 { font-size: 34px; }
	.hi88-hero p { font-size: 16px; }
	.hi88-badges,
	.hi88-card-grid.six,
	.hi88-news-grid,
	.hi88-card-grid.four,
	.hi88-step-grid,
	.hi88-footer-grid { grid-template-columns: 1fr; }
	.hi88-title-row,
	.hi88-footer-bottom { flex-direction: column; align-items: flex-start; }
	.hi88-hero-media img { min-height: 240px; }
	.hi88-prev-next { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.hi88-shell { width: min(100% - 22px, 1160px); }
	.hi88-nav-actions .hi88-btn-hot { min-height: 38px; padding: 0 13px; font-size: 13px; }
	.hi88-hero h1,
	.hi88-article-hero h1 { font-size: 31px; }
	.hi88-actions,
	.hi88-btn-large { width: 100%; }
	.hi88-info,
	.hi88-benefits,
	.hi88-games,
	.hi88-news,
	.hi88-guide,
	.hi88-faq,
	.hi88-article-card,
	.hi88-side-card {
		padding: 18px;
		border-radius: 18px;
	}
	.hi88-info-copy h2,
	.hi88-title-row h2,
	.hi88-section-head h2 { font-size: 24px; }
}
