/* RQX Chinese - giao diện chung */
:root {
  --navy: #0B1B3F; --navy2: #13285C; --blue: #1E3A8A; --blue2: #2D5BD7; --sky: #E8EFFF;
  --red: #C8102E; --red2: #E23B50; --gold: #F2B705; --gold2: #FFD25A; --green: #12A150;
  --ink: #1F2937; --muted: #64748B; --line: #E2E8F0; --bg: #F6F8FC; --card: #FFFFFF;
  --radius: 16px; --shadow: 0 10px 30px rgba(15, 23, 42, .08); --shadow2: 0 20px 50px rgba(11, 27, 63, .18);
  --zh: "Noto Serif SC", "Songti SC", "SimSun", "KaiTi", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue2); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.zh { font-family: var(--zh); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }

/* ---------- thanh menu ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 27, 63, .92); backdrop-filter: blur(10px); color: #fff; }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .2px; white-space: nowrap; }
.logo .seal { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), #8E0A1F); font-family: var(--zh); font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: #9FB4E6; margin-top: -4px; }
.nav .menu { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav .menu a { color: #CBD5E1; padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav .menu a:hover, .nav .menu a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .menu a.cta { background: var(--gold); color: var(--navy); font-weight: 700; }
.nav .burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
@media (max-width: 900px) {
  .nav .burger { display: block; }
  .nav .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 10px 16px 16px; }
  .nav .menu.open { display: flex; }
  .nav .menu a { padding: 12px; }
}

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(242, 183, 5, .35); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(30, 58, 138, .25); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 16, 46, .25); }
.btn-green { background: var(--green); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-line { background: #fff; color: var(--blue); border: 1.5px solid #C7D5F5; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- khối chung ---------- */
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--blue); }
.pill.free { background: #DCFCE7; color: #166534; }
.pill.paid { background: #FEF3C7; color: #92400E; }
.pill.red { background: #FDE2E6; color: var(--red); }
.price { font-size: 22px; font-weight: 800; color: var(--red); }
.price s { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 6px; }

/* ---------- đầu trang con ---------- */
.pagehead { background: radial-gradient(1200px 400px at 80% -20%, rgba(45, 91, 215, .55), transparent), linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); }
.pagehead p { color: #D6E2FF; font-size: 18px; max-width: 760px; margin: 0; }
.pagehead .bgzh { position: absolute; right: -20px; bottom: -60px; font-family: var(--zh); font-size: 260px; color: rgba(255, 255, 255, .06); line-height: 1; pointer-events: none; }

/* ---------- khung điện thoại ---------- */
.phone { position: relative; width: 270px; aspect-ratio: 1170 / 2532; border-radius: 42px; padding: 11px; background: linear-gradient(145deg, #1C2333, #0A0F1C); box-shadow: var(--shadow2), inset 0 0 0 2px #2B3447; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 14px; background: #05070C; z-index: 2; }

/* ---------- chân trang ---------- */
footer.site { background: var(--navy); color: #AFC0E6; padding: 48px 0 28px; font-size: 15px; }
footer.site h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
footer.site a { color: #D6E2FF; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer.site .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- hộp thoại ---------- */
.modal { position: fixed; inset: 0; background: rgba(8, 15, 35, .6); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 30px 14px; overflow-y: auto; }
.modal.open { display: flex; }
.modal .box { background: #fff; border-radius: 20px; max-width: 520px; width: 100%; padding: 26px; box-shadow: var(--shadow2); position: relative; animation: pop .2s ease; }
.modal .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(45, 91, 215, .15); }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin: 10px 0; }
.msg.err { background: #FEE2E2; color: #991B1B; }
.msg.ok { background: #DCFCE7; color: #166534; }
.msg.info { background: var(--sky); color: var(--blue); }
.qrbox { text-align: center; }
.qrbox img { width: 260px; margin: 8px auto; border-radius: 12px; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 15px; text-align: left; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.kv b { color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 200; font-size: 15px; box-shadow: var(--shadow2); }

/* ---------- bảng ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: var(--sky); color: var(--navy); font-weight: 700; }

/* ---------- hiệu ứng xuất hiện ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
