:root {
	--bg: #070b18;
	--bg-2: #0b1226;
	--panel: rgba(16, 24, 48, .78);
	--line: rgba(226, 182, 89, .28);
	--gold: #e6bb62;
	--gold-2: #f6d98f;
	--ice: #8fd3ff;
	--text: #e7ecf7;
	--muted: #9aa7c4;
	--orange: #ff9a4d;
	--cyan: #62e6ff;
	--green: #74f58f;
	--red: #ff6b6b;
	--yellow: #ffd966;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(90, 120, 220, .18), transparent 60%),
		radial-gradient(900px 500px at 0% 40%, rgba(60, 90, 180, .12), transparent 60%),
		var(--bg);
	color: var(--text);
	font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 11, 24, .85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.nav-inner {
	width: min(1180px, 92%); margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between;
	height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 20px; color: var(--gold-2); }
.brand img { border-radius: 8px; border: 1px solid var(--line); }
.brand b { color: #ff8a3d; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 28px; border-radius: 999px;
	font-weight: 700; font-size: 15px; letter-spacing: .02em;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-gold {
	background: linear-gradient(180deg, #f8dc92, #d9a43f);
	color: #2a1c05;
	box-shadow: 0 6px 18px rgba(230, 187, 98, .28);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(230, 187, 98, .45); }
.btn-ghost { border-color: var(--line); color: var(--gold-2); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(230, 187, 98, .12); }

/* ---------- Hero banner ---------- */
.hero { position: relative; background: #050813; }
.hero img { width: 100%; max-width: 1600px; margin: 0 auto; height: auto; }
.hero-fade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 18%;
	background: linear-gradient(to bottom, transparent, var(--bg));
	pointer-events: none;
}

/* ---------- Countdown ---------- */
.countdown-bar { padding: 26px 0 8px; text-align: center; }
.cd-label { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.cd { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.cd-box {
	min-width: 84px; padding: 12px 10px 10px;
	background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
	box-shadow: inset 0 0 24px rgba(143, 211, 255, .05);
}
.cd-box b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 40px; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-box span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(20, 30, 62, .45), transparent); }
.eyebrow { text-align: center; color: var(--ice); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }
.title {
	text-align: center; font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(26px, 4vw, 40px); font-weight: 800; line-height: 1.25;
	color: var(--gold-2); margin-bottom: 30px;
	text-shadow: 0 2px 20px rgba(230, 187, 98, .25);
}
.title::after {
	content: ""; display: block; width: 90px; height: 2px; margin: 14px auto 0;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tab {
	font: inherit; font-weight: 600; font-size: 15px;
	padding: 11px 22px; border-radius: 10px; cursor: pointer;
	background: rgba(255, 255, 255, .04); color: var(--muted);
	border: 1px solid rgba(255, 255, 255, .1);
	transition: all .18s ease;
}
.tab:hover { color: var(--text); border-color: var(--line); }
.tab.active {
	color: #2a1c05; border-color: transparent;
	background: linear-gradient(180deg, #f8dc92, #d9a43f);
	box-shadow: 0 6px 18px rgba(230, 187, 98, .25);
}
.panel { display: none; animation: fade .3s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.time { text-align: center; color: var(--text); margin-bottom: 24px; font-size: 15.5px; }
.time strong { color: var(--gold-2); }

/* ---------- Cards / grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 22px; }
.card {
	background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
	padding: 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.card-title {
	font-family: "Playfair Display", Georgia, serif; font-size: 21px; color: var(--gold-2);
	margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.card-title small { font-family: "Be Vietnam Pro", sans-serif; font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.list { list-style: none; display: grid; gap: 8px; }
.list li { position: relative; padding-left: 24px; font-size: 15px; }
.list li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 11px; line-height: 24px; }
.list.ticks li::before { content: "✔"; color: var(--green); font-size: 13px; }
.list li.plain::before { content: "◆"; color: var(--gold); font-size: 11px; }
.list li.gift::before { content: "🎁"; font-size: 13px; }
.list li.sep { padding: 0; height: 1px; margin: 6px 0; background: linear-gradient(90deg, var(--red), transparent); opacity: .6; }
.list li.sep::before { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 4px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
th { background: rgba(230, 187, 98, .14); color: var(--gold-2); font-weight: 700; white-space: nowrap; }
tbody tr:hover td { background: rgba(143, 211, 255, .05); }
table.wide { min-width: 760px; }
td code { font-family: ui-monospace, Consolas, monospace; background: rgba(143, 211, 255, .1); color: var(--ice); padding: 2px 8px; border-radius: 6px; font-size: 13.5px; }
table.rank { margin-top: 18px; }
table.rank td:first-child, table.rank th:first-child { width: 80px; text-align: center; }

.medal {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: #1c1405;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .2);
}
.m1 { background: radial-gradient(circle at 30% 30%, #fff3b8, #e6a91f); }
.m2 { background: radial-gradient(circle at 30% 30%, #ffffff, #aeb8c8); }
.m3 { background: radial-gradient(circle at 30% 30%, #ffd2a8, #b8733a); }

/* ---------- Màu chữ ---------- */
.c-orange { color: var(--orange); }
.c-cyan { color: var(--cyan); }
.c-green { color: var(--green); }
.c-red { color: var(--red); }
.c-yellow { color: var(--yellow); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 44px 16px 56px; border-top: 1px solid var(--line); background: rgba(5, 8, 19, .8); }
.footer img { margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--line); }
.f1 { color: var(--red); font-weight: 700; }
.f2 { color: var(--green); font-weight: 600; }
.f3 { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- Nút liên hệ nổi ---------- */
.float-contact { position: fixed; right: 18px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.fc {
	width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 800; font-size: 13px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
	animation: pulse 2.4s infinite;
}
.fc-zalo { background: #0068ff; }
.fc-fb { background: #e60f1e; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(143, 211, 255, .5), 0 4px 14px rgba(0, 0, 0, .55); }
	70% { box-shadow: 0 0 0 14px rgba(143, 211, 255, 0), 0 4px 14px rgba(0, 0, 0, .55); }
	100% { box-shadow: 0 0 0 0 rgba(143, 211, 255, 0), 0 4px 14px rgba(0, 0, 0, .55); }
}

/* ---------- Popup Download ---------- */
button.btn { font-family: inherit; }
body.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(3, 6, 15, .78); backdrop-filter: blur(4px); }
.modal-box {
	position: relative; width: min(440px, 100%); text-align: center;
	background: linear-gradient(180deg, #121c3a, #0a1128);
	border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .6); animation: fade .25s ease;
}
.modal-box h3 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; color: var(--gold-2); margin-bottom: 6px; }
.modal-box p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: #fff; }
.dl-list { display: grid; gap: 12px; }
.dl-item {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 14px; border-radius: 12px; border: 1px solid var(--line);
	background: rgba(255, 255, 255, .04); transition: transform .15s ease, background .15s ease;
}
.dl-item:hover { transform: translateY(-2px); background: rgba(230, 187, 98, .12); }
.dl-item b { font-size: 18px; }
.dl-item span { font-size: 13px; color: var(--muted); }
.dl-item.disabled { opacity: .5; cursor: not-allowed; }
.dl-item.disabled:hover { transform: none; background: rgba(255, 255, 255, .04); }
.dl-mega b { color: #ff5c6c; }
.dl-mf b { color: #5aa9ff; }
.dl-gd b { color: #6dd58c; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.brand span { font-size: 17px; }
	.nav-links { gap: 12px; }
	.nav-links a:not(.btn) { display: none; }
	.cd { gap: 8px; }
	.cd-box { min-width: 64px; padding: 10px 6px 8px; }
	.cd-box b { font-size: 28px; }
	.section { padding: 44px 0; }
	.card { padding: 18px; }
	.tab { padding: 9px 14px; font-size: 14px; }
	.fc { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
