:root {
  --bg: #0d0b09; --panel: #17130f; --panel2: #201a14; --line: #3a2f22;
  --ink: #efe6d6; --dim: #b3a58f; --gold: #e8c060; --gold2: #b8862f; --red: #c2402e; --ok: #8cd873;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Be Vietnam Pro", system-ui, sans-serif; line-height: 1.55; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }

.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px;
  background: linear-gradient(#0d0b09ee, #0d0b0900); }
.brand img { height: 46px; width: auto; }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--ink); font-weight: 500; }

.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: -40px; background: url("/home/img/hero.jpg?v=2") center/cover no-repeat; filter: blur(22px) brightness(.45); }
.hero-art { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 3 / 2; background: url("/home/img/hero.jpg?v=2") center/cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #0d0b09f2 0%, #0d0b09c0 38%, #0d0b0920 70%), linear-gradient(0deg, #0d0b09 0%, #0d0b0900 30%); }
.hero-inner { position: relative; width: 100%; max-width: 700px; padding: 120px 24px 60px 6vw; }
.hero-logo { width: min(420px, 80vw); filter: drop-shadow(0 6px 24px #000a); }
.hero h1 { font-family: "Noto Serif", serif; font-weight: 800; font-size: clamp(22px, 3vw, 34px); margin: 18px 0 8px; color: var(--gold); text-shadow: 0 2px 10px #000; }
.lead { color: var(--ink); font-size: 17px; margin: 0 0 24px; text-shadow: 0 1px 6px #000; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 8px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-gold { background: linear-gradient(180deg, #f3d27a, #c98f2c); color: #2a1a08; box-shadow: 0 4px 18px #c98f2c55; }
.btn-dark { background: #2a1f16cc; color: var(--ink); border-color: var(--gold2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--gold2); padding: 7px 16px; border-radius: 8px; }
.btn-off { background: #2a2520aa; color: #8b8070; border-color: #3d352c; cursor: default; }
.btn-off:hover { transform: none; filter: none; }

.status { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; background: #0008; padding: 6px 12px; border-radius: 20px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #777; }
.status.on .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.off .dot { background: var(--red); }

section { padding: 64px 24px; }
h2 { font-family: "Noto Serif", serif; font-weight: 800; text-align: center; color: var(--gold); font-size: 30px; margin: 0 0 28px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.features img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.features h3 { margin: 14px 16px 6px; color: var(--gold); font-family: "Noto Serif", serif; }
.features p { margin: 0 16px 18px; color: var(--dim); font-size: 15px; }

.guide { max-width: 1200px; margin: 0 auto; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; }
.step b { position: absolute; top: -14px; left: 16px; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #f3d27a, #c98f2c); color: #2a1a08; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { margin: 10px 0 8px; color: var(--gold); font-family: "Noto Serif", serif; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.step strong { color: var(--ink); }
.guide-note { text-align: center; color: var(--dim); margin: 22px auto 0; max-width: 820px; }
.guide-note strong { color: var(--ink); }
.download { background: linear-gradient(#0d0b09, #15100c); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.dl { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.dl h3 { margin: 0; }
.dl p { color: var(--dim); margin: 0 0 6px; flex: 1; }
.dl.off { opacity: .75; }

.account { max-width: 760px; margin: 0 auto; }
.acc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab { flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); color: var(--dim); font: inherit; font-weight: 700; cursor: pointer; }
.tab.on { color: #2a1a08; background: linear-gradient(180deg, #f3d27a, #c98f2c); border-color: transparent; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form input { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #0f0c09; color: var(--ink); font: inherit; font-size: 16px; }
.form input:focus { outline: 2px solid var(--gold2); border-color: transparent; }
.form small { color: var(--dim); font-weight: 400; font-size: 13px; }
.msg { min-height: 1.4em; margin: 0; font-weight: 500; }
.msg.err { color: #f07a64; } .msg.ok { color: var(--ok); }
.hidden { display: none !important; }

.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.who .name { font-family: "Noto Serif", serif; font-size: 26px; color: var(--gold); font-weight: 800; }
.who .sub { color: var(--dim); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stats div { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.stats span { color: var(--dim); font-size: 13px; }
.stats b { font-size: 17px; }
.topup { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.topup h3 { margin: 0 0 12px; color: var(--gold); font-family: "Noto Serif", serif; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2.code { grid-template-columns: 1fr auto; }
.row2.code input { padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: #0f0c09; color: var(--ink); font: inherit; font-size: 16px; text-transform: uppercase; }
.pw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.pw summary { cursor: pointer; color: var(--gold); font-weight: 700; margin-bottom: 12px; }

.music { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 24px;
  border: 1px solid var(--gold2); background: #140f0bdd; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 4px 16px #0008; }
.music .mi { color: var(--gold); font-size: 16px; }
.music.on .mi { animation: beat 1.06s ease-in-out infinite; }
.music.hint { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px #e8c06055, 0 4px 16px #0008; } }
@keyframes beat { 50% { transform: scale(1.25); } }
footer { text-align: center; padding: 40px 16px 50px; color: var(--dim); border-top: 1px solid var(--line); }
.flogo { width: 160px; margin: 0 auto 10px; opacity: .85; }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .music { right: 12px; bottom: 12px; padding: 8px 12px; }
  .top { padding: 8px 16px; } .brand img { height: 36px; } .top nav { gap: 10px; font-size: 14px; } .top nav a:not(.btn-ghost) { display: none; }
  .hero-inner { padding: 96px 16px 40px; }
  .hero-bg::after { background: linear-gradient(0deg, #0d0b09 0%, #0d0b09cc 45%, #0d0b0966 100%); }
  .features { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  section { padding: 48px 16px; }
  .btn { width: 100%; }
}
.guide-h { text-align: center; color: var(--gold); font-size: 20px; margin: 0 0 14px; }
.guide-more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 0; }
.guide-more a { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); }
.guide-more a:hover { border-color: var(--gold2); }
.guide-more img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.guide-more b { color: var(--gold); font-size: 18px; padding: 10px 14px 0; }
.guide-more span { color: var(--dim); font-size: 14px; padding: 2px 14px 14px; }
@media (max-width: 1000px) { .guide-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .guide-more { grid-template-columns: 1fr; } }
.mobile-tip { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: #2a1d10cc; border-left: 4px solid var(--gold); max-width: 560px; font-size: 15px; }
.mobile-tip.hidden { display: none; }

/* 28/10: biểu tượng app mới cạnh nút tải */
.appbadge { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.appbadge img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 14px #0008; border: 1px solid #ffffff22; }
.appbadge b { display: block; color: var(--ink); font-size: 15px; }
.appbadge span { display: block; color: #b9a98e; font-size: 13px; }
