/* Concept: sân khấu ánh hồng — nền giấy hồng sáng, chữ mận, điểm nhấn hồng sen + vàng champagne, hiệu ứng AI tím ánh sáng quanh chân dung */
:root {
  --bg: #fff7f9;
  --bg2: #fdeef4;
  --surface: #ffffff;
  --ink: #2b1330;
  --muted: #7a5f78;
  --line: #f0d9e3;
  --rose: #d81b72;
  --rose-soft: #ffe1ee;
  --gold: #b9851f;
  --gold-soft: #fff1d6;
  --violet: #7b3fe4;
  --violet-soft: #efe6ff;
  --ok: #138a55;
  --ok-soft: #dcf5e8;
  --shadow: 0 10px 30px -12px rgba(120, 20, 70, .25);
  --f-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-sign: "Dancing Script", "Brush Script MT", cursive;
  --r: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #170c1a; --bg2: #1f1124; --surface: #251530; --ink: #fbeff5; --muted: #c2a9bf; --line: #3b2445;
    --rose: #ff4f9a; --rose-soft: #3d1530; --gold: #e8b65a; --gold-soft: #3a2a12; --violet: #a57bff; --violet-soft: #2a1a48;
    --ok: #4fd497; --ok-soft: #123326; --shadow: 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #170c1a; --bg2: #1f1124; --surface: #251530; --ink: #fbeff5; --muted: #c2a9bf; --line: #3b2445;
  --rose: #ff4f9a; --rose-soft: #3d1530; --gold: #e8b65a; --gold-soft: #3a2a12; --violet: #a57bff; --violet-soft: #2a1a48;
  --ok: #4fd497; --ok-soft: #123326; --shadow: 0 10px 30px -12px rgba(0,0,0,.6); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--rose), #ff6a3d); color: #fff; box-shadow: 0 8px 20px -8px rgba(216, 27, 114, .7); }
.btn-gold { background: linear-gradient(135deg, #e9b44c, #c8862a); color: #2b1330; box-shadow: 0 8px 20px -8px rgba(185, 133, 31, .7); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font: 700 18px var(--f-display); background: conic-gradient(from 200deg, var(--rose), var(--violet), #ff8a3d, var(--rose)); box-shadow: 0 6px 16px -6px var(--rose); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { font: 700 24px var(--f-sign); color: var(--rose); }
.logo-text small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.banner { justify-self: center; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; max-width: 520px; width: 100%; padding: 6px 16px 6px 6px; border-radius: 999px; background: linear-gradient(110deg, var(--rose-soft), var(--violet-soft), var(--gold-soft)); border: 1px solid var(--line); text-decoration: none; }
.banner img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--surface); }
.banner span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner strong { color: var(--rose); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: shine 5s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.gmail-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.gmail-btn:hover { border-color: var(--rose); }
.gmail-btn svg { width: 22px; height: 22px; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--rose), var(--violet)); flex: none; }
.me-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.me-text b { font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font-size: 11.5px; font-weight: 700; color: var(--gold); }
.coins-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: 13px; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a3, #e2a52c 60%, #b47a14); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.08); flex: none; }

/* ---------- Nav ---------- */
.nav { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px 12px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; flex: none; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); background: var(--bg2); border: 1.5px solid transparent; transition: .15s; }
.nav a:hover { color: var(--ink); border-color: var(--line); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet)); box-shadow: 0 6px 16px -8px var(--rose); }
.nav a .tag { position: absolute; top: -7px; right: -2px; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--gold); color: #fff; letter-spacing: .04em; }

/* ---------- Pages ---------- */
main { min-height: 60vh; }
.page { padding-block: 28px 64px; animation: fade .35s ease; }
@keyframes fade { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; margin-bottom: 28px; padding: 24px; border-radius: 28px; background: linear-gradient(120deg, var(--rose-soft), var(--surface) 55%, var(--violet-soft)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head > div { min-width: 0; display: grid; gap: 10px; }
.page-head p { max-width: 60ch; color: var(--muted); }
.page-head .ph-img { height: 240px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.page-head .ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.section { margin-top: 40px; display: grid; gap: 18px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--rose-soft); color: var(--rose); }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.violet { background: var(--violet-soft); color: var(--violet); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.demo { background: var(--bg2); color: var(--muted); border: 1px dashed var(--line); }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-block: 24px 8px; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, var(--rose), var(--violet) 60%, #ff7a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; padding-top: 6px; }
.hero-facts div { display: grid; }
.hero-facts b { font: 700 26px var(--f-display); color: var(--ink); }
.hero-facts span { font-size: 12.5px; color: var(--muted); }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 480px; width: 100%; justify-self: center; }
.portrait canvas { position: absolute; inset: -8%; width: 116%; height: 116%; z-index: 0; pointer-events: none; }
.portrait .frame { position: absolute; inset: 0; border-radius: 48% 48% 28px 28px; overflow: hidden; z-index: 1; box-shadow: 0 30px 60px -25px rgba(123, 63, 228, .55); border: 3px solid var(--surface); }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(123, 63, 228, .25)), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px); }
.scanline { position: absolute; left: 0; right: 0; height: 60px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(165, 123, 255, .35), transparent); animation: scan 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 60px); } 100% { top: 0; } }
.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; animation: bob 5s ease-in-out infinite; }
.float-chip i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; }
.fc1 { top: 8%; left: -6%; } .fc1 i { background: var(--violet); }
.fc2 { top: 46%; right: -8%; animation-delay: -1.6s; } .fc2 i { background: var(--rose); }
.fc3 { bottom: 7%; left: -2%; animation-delay: -3s; } .fc3 i { background: var(--gold); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.sign { position: absolute; z-index: 3; right: 6%; bottom: -14px; font: 700 40px var(--f-sign); color: var(--gold); text-shadow: 0 2px 10px rgba(0,0,0,.15); transform: rotate(-6deg); }

/* ---------- Home tiles ---------- */
.zoom-card { display: grid; grid-template-columns: 210px 1fr; gap: 0; padding: 0; overflow: hidden; }
.zoom-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.zoom-card .body { padding: 22px; display: grid; gap: 12px; align-content: center; }
.countdown { display: flex; gap: 10px; }
.countdown div { display: grid; place-items: center; min-width: 62px; padding: 8px 6px; border-radius: 14px; background: var(--bg2); }
.countdown b { font: 700 26px var(--f-display); font-variant-numeric: tabular-nums; color: var(--rose); }
.countdown span { font-size: 11px; color: var(--muted); }
.quote-card { position: relative; padding: 0; overflow: hidden; min-height: 300px; display: grid; }
.quote-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote-card .q { position: relative; align-self: end; margin: 14px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(6px); display: grid; gap: 8px; }
.quote-card .q p { font: italic 600 18px/1.4 var(--f-display); }
.tile-link { display: grid; grid-template-rows: 150px auto; padding: 0; overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tile-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-link img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.tile-link div { padding: 14px 16px; display: grid; gap: 4px; }
.tile-link b { font-family: var(--f-display); font-size: 18px; }
.tile-link span { font-size: 13px; color: var(--muted); }
.streak { display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center; }
.streak-days { display: flex; gap: 6px; flex-wrap: wrap; }
.streak-days span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--muted); }
.streak-days span.on { background: linear-gradient(135deg, #ff9a3d, var(--rose)); color: #fff; }
.streak img { width: 100%; height: 200px; object-fit: cover; object-position: 50% 15%; border-radius: 16px; }

/* ---------- Quiz ---------- */
.quiz { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: stretch; }
.quiz > img { width: 100%; height: 100%; max-height: 380px; object-fit: cover; object-position: 50% 15%; border-radius: 18px; }
.quiz-body { display: grid; gap: 14px; align-content: start; min-width: 0; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { text-align: left; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; }
.quiz-opts button:hover { border-color: var(--violet); color: var(--violet); }
.progress { height: 8px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--rose), var(--violet)); border-radius: 99px; transition: width .3s; }

/* ---------- News ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.filters button.on { border-color: var(--rose); background: var(--rose-soft); color: var(--rose); }
.timeline { display: grid; gap: 14px; border-left: 2px solid var(--line); padding-left: 22px; margin-left: 6px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--rose); border: 3px solid var(--bg); }
.tl-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }

/* ---------- Lessons ---------- */
.lessons { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.lesson-list { display: grid; gap: 14px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 4px; }
.lesson-part { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin: 4px 0 2px; }
.lesson-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.lesson-item:hover { border-color: var(--violet); }
.lesson-item.on { border-color: var(--rose); background: var(--rose-soft); }
.lesson-item .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg2); font-weight: 700; font-size: 13px; }
.lesson-item.done .n { background: var(--ok); color: #fff; }
.lesson-item b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.lesson-item small { color: var(--muted); font-size: 12px; }
.lock { width: 16px; height: 16px; color: var(--muted); }
.player { display: grid; gap: 16px; min-width: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 90% at 20% 10%, #7b3fe4aa, transparent 60%), radial-gradient(70% 80% at 90% 90%, #d81b72aa, transparent 60%), #1b0f22; display: grid; place-items: center; }
.screen img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: blur(3px) brightness(.45) saturate(1.2); transform: scale(1.06); }
.screen .lock-box { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; color: #fff; padding: 20px; max-width: 460px; }
.lock-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.lock-ring svg { width: 32px; height: 32px; }
.screen iframe, .screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Store cards ---------- */
.hall { display: grid; gap: 16px; margin-top: 34px; }
.hall-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hall-head p { color: var(--muted); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sk { display: grid; grid-template-rows: auto 1fr; padding: 0; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.sk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sk-art { position: relative; height: 128px; display: grid; place-items: center; overflow: hidden; color: #fff; }
.sk-art .glyph { font: 700 46px var(--f-display); opacity: .95; text-shadow: 0 4px 20px rgba(0,0,0,.2); }
.sk-art .orb { position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.18); right: -50px; top: -60px; }
.sk-art .orb.b { width: 90px; height: 90px; left: -30px; bottom: -40px; top: auto; right: auto; background: rgba(255,255,255,.12); }
.sk-art .tag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: #2b1330; }
.sk-art .owned { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--ok); color: #fff; }
.sk-body { padding: 16px; display: grid; gap: 10px; align-content: start; }
.sk-body h3 { font-size: 17px; }
.sk-body p { font-size: 13.5px; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 700 22px var(--f-display); color: var(--rose); font-variant-numeric: tabular-nums; }
.price span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: end; }
.sk-actions .btn { padding: 9px 10px; font-size: 13px; }
.hall-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbox { flex: 1 1 220px; max-width: 320px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* ---------- Automation ---------- */
.auto { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.auto-cover { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.auto-cover img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 15%; }
.auto-cover .os { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 16px; border-radius: 18px; background: rgba(23, 12, 26, .82); color: #fff; backdrop-filter: blur(6px); display: grid; gap: 4px; }
.auto-cover .os b { font: 700 28px var(--f-display); letter-spacing: .02em; }
.auto-cover .os small { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #e8b65a; letter-spacing: .06em; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.module { padding: 12px; border-radius: 14px; background: var(--bg2); display: grid; gap: 2px; }
.module code { font: 700 13px ui-monospace, Menlo, monospace; color: var(--violet); }
.module span { font-size: 12.5px; color: var(--muted); }
.code-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: 16px; background: var(--ok-soft); border: 1.5px dashed var(--ok); }
.code-box code { font: 700 20px ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--ok); }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-weight: 800; font-size: 13px; }
.steps { padding: 0; margin: 0; }

/* ---------- TOP KOL ---------- */
.me-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.me-card .big-av { width: 72px; height: 72px; font-size: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { padding: 12px; border-radius: 14px; background: var(--bg2); display: grid; }
.stat b { font: 700 22px var(--f-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; }
.pod { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 16px 10px; border-radius: 18px 18px 6px 6px; background: var(--bg2); }
.pod .avatar { width: 54px; height: 54px; font-size: 20px; }
.pod.p1 { padding-top: 28px; background: linear-gradient(180deg, var(--gold-soft), var(--bg2)); }
.pod .place { font: 700 30px var(--f-display); color: var(--gold); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
td.num, th.num { text-align: right; }
tr.you td { background: var(--rose-soft); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.levels { display: flex; gap: 8px; flex-wrap: wrap; }
.level { padding: 8px 12px; border-radius: 12px; background: var(--bg2); font-size: 13px; display: grid; }
.level.on { background: linear-gradient(135deg, var(--rose), var(--violet)); color: #fff; }
.level small { opacity: .75; font-size: 11.5px; }
.earn { display: grid; gap: 8px; }
.earn div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); font-size: 14px; }
.earn b { color: var(--gold); white-space: nowrap; }
.shop { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.shop > img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: 50% 20%; border-radius: 18px; }

/* ---------- Courses / VIP ---------- */
.pack { display: grid; gap: 14px; align-content: start; position: relative; }
.pack.hot { border: 2px solid var(--rose); box-shadow: var(--shadow); }
.pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.pack li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.pack li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.pack .price b { font-size: 30px; }
.pack-img { padding: 0; overflow: hidden; display: grid; grid-template-rows: 200px auto; }
.pack-img > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.pack-img > div { padding: 20px; display: grid; gap: 14px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.about-imgs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.about-imgs img { width: 100%; height: 440px; object-fit: cover; object-position: 50% 15%; border-radius: 22px; }
.about-imgs img + img { height: 360px; margin-top: 60px; }
.about-text { display: grid; gap: 14px; min-width: 0; }
.about-text p { font-size: 16px; max-width: 62ch; }
.journey { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.journey > img { width: 100%; height: 420px; object-fit: cover; object-position: 50% 20%; border-radius: 22px; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery { columns: 4 200px; column-gap: 12px; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--bg2); break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
details[open] { border-color: var(--rose); }
summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; color: var(--rose); line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 14px; color: var(--muted); }
.faq aside img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 15%; border-radius: 20px; }
textarea, input[type="text"], input[type="email"] { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
textarea:focus, input:focus { outline: none; border-color: var(--violet); }
label { font-size: 13px; font-weight: 600; display: grid; gap: 6px; }

/* ---------- Testimonials ---------- */
.story { display: grid; gap: 12px; }
.story .who { display: flex; gap: 10px; align-items: center; }
.story blockquote { margin: 0; font: italic 500 16px/1.5 var(--f-display); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.before-after div { padding: 10px; border-radius: 12px; background: var(--bg2); font-size: 13px; }
.before-after b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Games ---------- */
.game-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.game-tabs button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; }
.game-tabs button.on { background: linear-gradient(135deg, var(--violet), var(--rose)); color: #fff; border-color: transparent; }
.game-area { display: grid; grid-template-columns: 270px minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.game-stage { display: grid; justify-items: center; gap: 12px; padding: 18px; border-radius: 22px; background: radial-gradient(120% 100% at 50% 0%, var(--violet-soft), var(--surface)); border: 1px solid var(--line); min-width: 0; }
.game-stage canvas { max-width: 100%; height: auto; border-radius: 16px; background: #1b0f22; touch-action: none; }
.game-bar { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 700; }
.pad { display: none; gap: 8px; }
.pad button { width: 56px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 18px; font-weight: 800; }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(460px, 100%); }
.mem { aspect-ratio: 3 / 4; border: 0; padding: 0; border-radius: 14px; perspective: 600px; background: transparent; }
.mem .in { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mem.flip .in, .mem.ok .in { transform: rotateY(180deg); }
.mem .face { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; overflow: hidden; display: grid; place-items: center; }
.mem .back { background: conic-gradient(from 45deg, var(--rose), var(--violet), #ff8a3d, var(--rose)); color: #fff; font: 700 26px var(--f-sign); }
.mem .front { transform: rotateY(180deg); background: var(--surface); border: 2px solid var(--line); }
.mem .front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.mem.ok .front { border-color: var(--ok); }
.scores { display: grid; gap: 8px; }
.scores div { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--bg2); font-size: 14px; }

/* ---------- Footer ---------- */
footer { margin-top: 40px; background: linear-gradient(160deg, #2b1330, #4a1640 60%, #2b1330); color: #fbeff5; }
.foot { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 28px; padding-block: 36px; align-items: center; }
.foot > img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 15%; border-radius: 20px; }
.foot h3 { font: 700 34px var(--f-sign); color: #f3c66b; }
.foot p, .foot a { color: #e9d4e3; font-size: 14px; }
.foot .links { display: grid; gap: 8px; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 14px; font-size: 12.5px; color: #c9b0c4; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 70; display: grid; gap: 12px; justify-items: end; }
.fab a, .fab button { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); text-decoration: none; }
.fab .zalo { background: #0068ff; color: #fff; font: 800 14px var(--f-body); }
.fab .chat { padding: 0; background: var(--surface); overflow: visible; }
.fab .chat img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; border: 3px solid var(--rose); }
.fab .chat::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid var(--surface); }
.fab .lbl { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 5px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; }
.fab a:hover .lbl, .fab button:hover .lbl { opacity: 1; }
.chat-panel { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: calc(max(18px, env(safe-area-inset-bottom, 0px) + 12px) + 150px); z-index: 71; width: min(360px, calc(100vw - 32px)); max-height: min(520px, 70vh); display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); overflow: hidden; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: linear-gradient(135deg, var(--rose), var(--violet)); color: #fff; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 2px solid #fff; }
.chat-head small { display: block; opacity: .85; font-size: 12px; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; }
.chat-log { padding: 14px; overflow: auto; display: grid; gap: 8px; align-content: start; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; }
.msg.bot { background: var(--bg2); border-bottom-left-radius: 4px; }
.msg.me { justify-self: end; background: var(--rose); color: #fff; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-quick button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }

/* ---------- Modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(23, 10, 28, .55); backdrop-filter: blur(4px); }
.modal-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--surface) 85%, transparent); font-size: 20px; }
.m-split { display: grid; grid-template-columns: 190px 1fr; }
.m-split > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: 50% 15%; }
.m-body { padding: 24px; display: grid; gap: 14px; align-content: center; }
.qr { width: 180px; height: 180px; margin: 0 auto; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--muted); padding: 14px; background: var(--bg); }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); font-size: 14px; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--rose); animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 95; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: pop .25s ease; max-width: min(360px, calc(100vw - 32px)); }
.lightbox img { max-height: 85vh; width: auto; margin: 0 auto; border-radius: 18px; }
.lightbox .modal-box { background: transparent; box-shadow: none; width: auto; max-width: 100%; }
.demo-note { font-size: 12px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero, .about, .auto, .lessons, .faq, .journey, .game-area { grid-template-columns: 1fr; }
  .lesson-list { position: static; max-height: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait { max-width: 400px; }
  .auto-cover img { height: 420px; }
  .foot { grid-template-columns: 160px 1fr; }
  .foot > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top-row { grid-template-columns: auto 1fr; }
  .banner { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .top-actions { justify-self: end; }
  .me-text, .coins-pill .lbl, .gmail-btn .lbl { display: none; }
  .gmail-btn { padding: 8px; }
  .page-head { grid-template-columns: 1fr; padding: 18px; }
  .page-head .ph-img { height: 220px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .zoom-card, .quiz, .shop, .streak { grid-template-columns: 1fr; }
  .zoom-card img { max-height: 260px; }
  .quiz > img, .shop > img { max-height: 240px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-split { grid-template-columns: 1fr; }
  .m-split > img { min-height: 0; height: 200px; }
  .about-imgs img { height: 300px; }
  .about-imgs img + img { height: 260px; margin-top: 40px; }
  .values { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .foot > img { height: 220px; }
  .fc1 { left: 0; } .fc2 { right: 0; } .fc3 { left: 2%; }
  .pad { display: flex; }
  .podium { gap: 6px; }
  .sk-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Sửa sau kiểm tra ---------- */
html, body { overflow-x: clip; }
.steps li { display: block; position: relative; padding-left: 40px; min-height: 28px; padding-top: 3px; }
.steps li::before { position: absolute; left: 0; top: 0; }
.pack-img > div { align-content: center; }
@media (max-width: 720px) { .pack-img { grid-template-columns: 1fr !important; } .pack-img > img { min-height: 0 !important; height: 240px !important; } }
@media (max-width: 720px) { .fab a, .fab button { width: 50px; height: 50px; } .fab .zalo { font-size: 12.5px; } }
.mem { position: relative; display: block; width: 100%; }
.mem .in { position: absolute; inset: 0; width: auto; height: auto; }
@media (max-width: 420px) { .logo-text small { display: none; } .logo-text b { font-size: 22px; } }
.sk-art.photo { height: 230px; background: var(--bg2); }
.sk-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .5s; }
.sk:hover .sk-art.photo img { transform: scale(1.05); }
.sk-art.photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(23, 10, 28, .55)); }
.hall-pill { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-size: 11px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; }
.sk-art .tag, .sk-art .owned { z-index: 1; }

/* ---------- Màn hình chờ trò chơi ---------- */
.g-menu { width: min(360px, 100%); min-height: 540px; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 28px 22px; border-radius: 16px; text-align: center; color: #fff;
  background: radial-gradient(90% 60% at 50% 0%, rgba(165, 123, 255, .45), transparent 70%), radial-gradient(80% 50% at 50% 100%, rgba(255, 79, 154, .35), transparent 70%), #1b0f22; }
.g-menu-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #f3c66b; font-weight: 700; }
.g-menu-title { font: 700 34px var(--f-display); margin-bottom: 4px; }
.g-last { font-size: 14px; color: #e9d4e3; margin-bottom: 6px; }
.g-btn { width: 100%; max-width: 240px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; border-radius: 16px; border: 2px solid #f2c94c; background: rgba(255, 255, 255, .06); color: #fff; font: 700 16px var(--f-body); cursor: pointer; transition: transform .15s, background .15s; }
.g-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.g-btn.play { border-color: transparent; background: linear-gradient(135deg, #ff4f9a, #ff7a3d); box-shadow: 0 10px 24px -10px #ff4f9a; font-size: 18px; }
.g-btn.sel select { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 10px; border: 0; background: #fff; color: #2b1330; font: 600 14px var(--f-body); }
.g-how { max-width: 280px; font-size: 13.5px; line-height: 1.55; color: #e9d4e3; background: rgba(255, 255, 255, .06); padding: 12px 14px; border-radius: 12px; text-align: left; }

/* ---------- Nối hình ---------- */
.onet-wrap { position: relative; max-width: 100%; overflow-x: auto; }
.onet { display: grid; gap: 0; padding: 0; user-select: none; }
.onet .tile { display: grid; place-items: center; padding: 0; margin: 1px; border-radius: 9px; border: 1.5px solid #f0d9e3; background: linear-gradient(160deg, #fff, #ffeef5); box-shadow: 0 2px 0 #e6c3d3; line-height: 1; font-size: inherit; transition: transform .1s; }
.onet .tile:hover { transform: translateY(-1px); }
.onet .tile.sel { border-color: #d81b72; background: #ffd5e7; transform: scale(1.06); }
.onet .tile.hint { border-color: #7b3fe4; animation: pulse .8s infinite alternate; }
@keyframes pulse { to { background: #e6d9ff; } }
.onet-line { position: absolute; left: 0; top: 0; pointer-events: none; }

/* ===== Tạo website ===== */
.tpl { display: grid; gap: 12px; align-content: start; }
.tpl.hot { border: 2px solid var(--rose); }
.tpl ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.tpl ul li::before { content: "✓ "; color: var(--rose); font-weight: 700; }
.tpl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #eadde3); background: #fff; aspect-ratio: 16/10; display: grid; grid-template-rows: auto 1fr auto; }
.tpl-bar { display: flex; gap: 5px; padding: 7px 9px; background: #f1edf0; }
.tpl-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d7cdd3; }
.tpl-hero { background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #fff)); color: #fff; padding: 14px 16px; display: grid; gap: 7px; align-content: center; }
.tpl-hero b { font: 700 15px var(--f-display); }
.tpl-hero span { height: 7px; width: 70%; border-radius: 4px; background: rgba(255,255,255,.75); }
.tpl-hero span.s { width: 45%; background: rgba(255,255,255,.45); }
.tpl-hero em { width: 64px; height: 18px; border-radius: 9px; background: #fff; }
.tpl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; background: color-mix(in srgb, var(--c2) 45%, #fff); }
.tpl-row span { height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.tpl-custom { display: grid; gap: 10px; place-items: center; text-align: center; align-content: center; border: 2px dashed var(--rose); background: transparent; min-height: 320px; cursor: pointer; font: inherit; color: inherit; }
.tpl-custom .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff; background: linear-gradient(135deg, var(--rose), var(--violet)); }
.tpl-custom:hover { background: color-mix(in srgb, var(--rose) 6%, transparent); }
textarea { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e5d7de); background: var(--surface); color: inherit; resize: vertical; width: 100%; }

.demo .modal-box { width: min(980px, 100%); padding: 14px; display: grid; gap: 10px; }
.demo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 40px; }
.demo-top > b { font: 700 18px var(--f-display); }
.demo-dev { margin-left: auto; display: flex; gap: 4px; background: color-mix(in srgb, var(--rose) 8%, transparent); padding: 4px; border-radius: 999px; }
.demo-dev button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 600 13px var(--f-body, inherit); color: inherit; cursor: pointer; }
.demo-dev button.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.demo-frame { margin: 0 auto; width: 100%; height: min(62vh, 560px); border-radius: 16px; border: 8px solid #2a2230; overflow: hidden; transition: width .3s; background: #fff; }
.demo-frame.mobile { width: 380px; max-width: 100%; border-radius: 28px; }
.demo-site { height: 100%; overflow: auto; color: #241b28; background: #fff; font-size: 14px; }
.d-nav { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.d-nav b { color: var(--c1); font: 700 16px var(--f-display); }
.d-nav nav { display: flex; gap: 14px; margin-left: auto; }
.d-nav a { cursor: pointer; font-weight: 600; font-size: 13px; }
.d-nav a:hover { color: var(--c1); }
.d-cart { font-weight: 700; }
.d-hero { padding: 44px 22px; text-align: center; background: linear-gradient(135deg, var(--c2), #fff); display: grid; gap: 10px; justify-items: center; }
.d-hero h4 { margin: 0; font: 700 clamp(22px, 4vw, 34px) var(--f-display); color: var(--c1); }
.d-hero p { margin: 0; max-width: 460px; }
.d-btn { border: 0; cursor: pointer; background: var(--c1); color: #fff; padding: 10px 18px; border-radius: 999px; font: 700 14px inherit; }
.d-btn.sm { padding: 6px 12px; font-size: 12px; }
.d-btn:hover { filter: brightness(1.08); }
.d-sec { padding: 26px 22px; display: grid; gap: 12px; justify-items: start; scroll-margin-top: 60px; }
.d-sec:nth-of-type(even) { background: color-mix(in srgb, var(--c2) 30%, #fff); }
.d-sec h5 { margin: 0; font: 700 20px var(--f-display); }
.d-cards, .d-prods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.d-card, .d-prod { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.d-card b { color: var(--c1); font-size: 18px; }
.d-prod span { font-size: 36px; }
.d-prod small { color: var(--c1); font-weight: 700; }
.d-list { display: grid; gap: 6px; width: 100%; }
.d-list div { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 9px 12px; }
.d-form { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.d-form input { flex: 1 1 140px; padding: 9px 12px; border-radius: 10px; border: 1px solid #ddd; font: inherit; }
.d-count { display: flex; gap: 10px; align-items: center; }
.d-count b { background: var(--c1); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 18px; }
.d-story { display: flex; gap: 14px; align-items: center; }
.d-ava { width: 64px; height: 64px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.d-story p { margin: 0; }
.d-table { border-collapse: collapse; width: 100%; background: #fff; }
.d-table th, .d-table td { border: 1px solid #eee; padding: 8px; text-align: center; }
.d-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.d-slots button { border: 1px solid var(--c1); background: #fff; color: var(--c1); padding: 7px 12px; border-radius: 10px; cursor: pointer; font: 600 13px inherit; }
.d-slots button.on { background: var(--c1); color: #fff; }
.d-bar { width: 100%; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.d-bar i { display: block; height: 100%; background: var(--c1); }
.d-foot { padding: 16px; text-align: center; font-size: 12px; color: #888; border-top: 1px solid #eee; }
.demo-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo-cta b { color: var(--rose); font-size: 18px; }
@media (max-width: 600px) { .demo-frame { height: 60vh; border-width: 5px; } .d-nav nav { margin-left: 0; width: 100%; } .demo-dev { margin-left: 0; } }
.tpl-custom { grid-column: 1 / -1; min-height: 220px; }
.sk-actions .xu-btn { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.xu-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--gold) 18%, transparent); overflow: hidden; }
.xu-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: 5px; }
.xu-goal { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px dashed var(--gold); }
.g-turns { margin: 0; font-size: 14px; }
.g-turns a { color: var(--rose); font-weight: 700; }
.turns-box { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--violet) 8%, transparent); }
.turns-box b { font-size: 22px; color: var(--violet); }
.turns-box .btn { grid-column: 1 / -1; }
.ad .modal-box { width: min(460px, 100%); overflow: hidden; }
.ad-box { display: grid; }
.ad-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font: 700 12px inherit; padding: 4px 10px; border-radius: 999px; }
.ad .modal-x { display: none; }
.ad-art { color: #fff; padding: 56px 24px 28px; display: grid; gap: 10px; justify-items: start; background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 40%), linear-gradient(135deg, var(--rose), var(--violet)); }
.ad-art h3 { margin: 0; font: 700 28px var(--f-display); }
.ad-art p { margin: 0; opacity: .92; }
.ad-foot { display: grid; gap: 10px; padding: 16px; }
.l-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.l-intro { margin: 0; line-height: 1.65; }
.l-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l-box { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--rose) 5%, transparent); border: 1px solid color-mix(in srgb, var(--rose) 14%, transparent); }
.l-box > b { font: 700 16px var(--f-display); }
.l-box ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.l-todo { display: grid; gap: 8px; font-size: 14px; }
.l-todo label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.l-todo input { margin-top: 3px; accent-color: var(--rose); width: 16px; height: 16px; flex: none; }
.l-todo input:checked + span { text-decoration: line-through; opacity: .6; }
@media (max-width: 700px) { .l-grid { grid-template-columns: 1fr; } }
.lesson-item .l-hook { display: block; font-size: 12.5px; font-weight: 500; opacity: .75; margin: 2px 0; line-height: 1.4; }
.l-hook-big { margin: 0; font: italic 600 18px/1.45 var(--f-display); color: var(--rose); }
/* ===== Học cùng con ===== */
.k-wrap { display: grid; gap: 16px; }
.k-topics { display: flex; gap: 8px; flex-wrap: wrap; }
.k-topics .chip { cursor: pointer; border: 0; font: 600 14px inherit; padding: 8px 14px; }
.k-topics .chip.on { background: linear-gradient(135deg, var(--rose), var(--violet)); color: #fff; }
.k-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.k-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 8px 12px; border-radius: 20px; border: 2px solid color-mix(in srgb, var(--rose) 15%, transparent); background: var(--surface); color: inherit; cursor: pointer; font: inherit; transition: transform .15s; }
.k-card:hover { transform: translateY(-3px); border-color: var(--rose); }
.k-card.pop { transform: scale(1.08); }
.k-card b { font-size: 20px; color: var(--violet); }
.k-card small { opacity: .7; }
.k-spk { position: absolute; top: 8px; right: 10px; font-size: 13px; opacity: .6; }
.k-emoji { font-size: 52px; line-height: 1.1; }
.k-emoji.big { font-size: 64px; }
.k-swatch { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #ddd; display: inline-block; }
.k-start, .k-intro, .k-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 10px 0; }
.k-intro h3, .k-done h3 { margin: 0; font: 700 26px var(--f-display); }
.k-quiz { display: grid; gap: 18px; justify-items: center; }
.k-prog { display: flex; gap: 6px; }
.k-prog i { width: 34px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--rose) 18%, transparent); }
.k-prog i.on { background: var(--rose); }
.k-q { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 50px; border-radius: 22px; background: color-mix(in srgb, var(--violet) 7%, transparent); min-width: min(420px, 100%); }
.k-q small { opacity: .75; }
.k-word { font: 700 clamp(32px, 6vw, 46px) var(--f-display); color: var(--violet); }
.k-say { position: absolute; top: 10px; right: 10px; border: 0; background: var(--surface); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.k-count { font-size: 34px; letter-spacing: 4px; line-height: 1.4; max-width: 420px; }
.k-count.sm { font-size: 22px; letter-spacing: 1px; }
.k-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; width: min(560px, 100%); }
.k-opt { min-height: 96px; display: grid; place-items: center; border-radius: 20px; border: 3px solid color-mix(in srgb, var(--rose) 18%, transparent); background: var(--surface); color: var(--text, inherit); font: 800 36px var(--f-display); cursor: pointer; transition: transform .12s; }
.k-opt:hover { transform: scale(1.04); }
.k-opt.ok { border-color: #2e9d5b; background: #e4f7ec; }
.k-opt.no { border-color: #e04848; background: #fde8e8; animation: kshake .3s; }
@keyframes kshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.k-stars { font-size: 40px; letter-spacing: 4px; }
.k-done .btn { min-width: 180px; }
.k-prompt { display: grid; gap: 8px; align-content: start; }
.k-prompt p { margin: 0; font-size: 14px; opacity: .85; }
.k-prompt .btn { justify-self: start; }
.k-word, .k-opt { font-family: "Be Vietnam Pro", system-ui, sans-serif; font-variant-numeric: lining-nums; }
.k-word { font-weight: 800; }
.tl-item { display: grid; }
.new-dot { display: inline-block; vertical-align: middle; margin-right: 8px; font: 800 10px/1 var(--f-body, inherit); letter-spacing: .5px; color: #fff; background: linear-gradient(135deg, var(--rose), #ff7a45); padding: 4px 7px; border-radius: 6px; }
.news-hot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.nh { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; border: 1.5px solid color-mix(in srgb, var(--rose) 30%, transparent); transition: transform .15s; }
.nh:hover { transform: translateY(-3px); }
.nh-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 18%, transparent), color-mix(in srgb, var(--violet) 18%, transparent)); }
.nh small { display: block; color: var(--rose); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.nh b { font-size: 15px; }
.tl-tag { margin: 6px 0 0; font: italic 600 17px/1.4 var(--f-display); color: var(--rose); }
/* ===== Khóa học (poster) ===== */
.course-list { display: grid; gap: 22px; }
.course { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 24px; align-items: start; }
.course.hot { border: 2px solid var(--rose); box-shadow: var(--shadow); }
.course-poster { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px -14px rgba(40, 20, 90, .55); }
.course-poster img { display: block; width: 100%; height: auto; }
.course-body { display: grid; gap: 14px; min-width: 0; }
.course-body h3 { margin: 0; font: 700 clamp(24px, 3vw, 32px) var(--f-display); }
.course-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.course-price s { color: var(--muted); font-weight: 600; }
.course-price span { font-size: 14px; color: var(--muted); }
.course-price b { font: 800 36px var(--f-body, inherit); color: var(--rose); letter-spacing: -.5px; }
.course-items { display: grid; gap: 8px; }
.course-items > b { font: 700 17px var(--f-display); }
.course-items ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.course-items li span { font-weight: 600; }
.course-items li small { display: block; color: var(--muted); font-size: 13px; }
.course-gift { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px dashed var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.cg-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-weight: 700; }
.cg-head b { color: var(--gold); }
.course-gift ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.course-gift li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.course-gift li small { display: block; color: var(--muted); font-size: 12.5px; }
.course-gift em { font-style: normal; font-weight: 700; color: var(--gold); white-space: nowrap; }
.link-btn { justify-self: start; border: 0; background: none; padding: 0; color: var(--rose); font: 700 13px inherit; cursor: pointer; text-decoration: underline; }
.course-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .course { grid-template-columns: 1fr; } .course-poster { max-width: 360px; justify-self: center; } }
.gift-posters { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.gp { display: grid; gap: 14px; align-content: start; }

/* ===== Mẫu web xem thử v2: mỗi mẫu một phong cách ===== */
.demo-site { --dbg: #fff; --dfg: #1f1a24; --dmut: #6b6475; --dcard: #fff; --dline: #ece8ef; --dfont: var(--f-display); --drad: 14px;
  background: var(--dbg); color: var(--dfg); font: 15px/1.6 "Be Vietnam Pro", system-ui, sans-serif; scroll-behavior: smooth; position: relative; }
.demo-site .d-nav { background: color-mix(in srgb, var(--dbg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--dline); padding: 12px 22px; gap: 16px; }
.d-logo { display: inline-flex; align-items: center; gap: 8px; font: 700 17px var(--dfont); color: var(--dfg); }
.d-logo i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.demo-site .d-nav nav { gap: 18px; }
.demo-site .d-nav a { color: var(--dmut); font-weight: 600; font-size: 13.5px; }
.demo-site .d-nav a:hover { color: var(--c1); }
.demo-site .d-btn { background: var(--c1); color: #fff; border-radius: var(--drad); padding: 11px 20px; font-weight: 700; box-shadow: 0 8px 20px -10px var(--c1); transition: transform .15s; }
.demo-site .d-btn:hover { transform: translateY(-2px); }
.demo-site .d-btn.ghost { background: transparent; color: var(--dfg); border: 1.5px solid var(--dline); box-shadow: none; }
.demo-site .d-btn.light { background: #fff; color: var(--c1); }
.demo-site .d-btn.sm { padding: 7px 14px; font-size: 12.5px; }
.d-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; text-align: left; justify-items: stretch; padding: 56px 32px 48px; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 55%), var(--dbg); }
.d-hero-txt { display: grid; gap: 14px; justify-items: start; }
.d-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c1); background: color-mix(in srgb, var(--c1) 10%, transparent); padding: 6px 12px; border-radius: 999px; }
.demo-site .d-hero h4 { margin: 0; font: 800 clamp(28px, 4.4vw, 46px)/1.1 var(--dfont); color: var(--dfg); letter-spacing: -.5px; }
.demo-site .d-hero p { margin: 0; color: var(--dmut); max-width: 460px; font-size: 16px; }
.d-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.d-stats { display: flex; gap: 26px; margin-top: 8px; }
.d-stats div { display: grid; }
.d-stats b { font: 800 24px var(--dfont); color: var(--dfg); }
.d-stats span { font-size: 12px; color: var(--dmut); }
.d-visual { position: relative; min-height: 280px; display: grid; place-items: center; }
.v-badge { position: absolute; background: var(--dcard); color: var(--dfg); border: 1px solid var(--dline); padding: 8px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; box-shadow: 0 12px 26px -12px rgba(0,0,0,.35); animation: vfloat 4s ease-in-out infinite; }
.v-badge.b1 { top: 6%; left: -2%; } .v-badge.b2 { bottom: 8%; right: -2%; animation-delay: -2s; } .v-badge.b3 { bottom: 30%; left: -6%; animation-delay: -1s; }
@keyframes vfloat { 50% { transform: translateY(-8px); } }
.v-player { width: 92%; border-radius: 18px; overflow: hidden; background: #0d0b14; box-shadow: 0 30px 60px -25px var(--c1); }
.v-screen { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 30% 30%, var(--c1), #1a0f2e 70%); }
.v-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--c1); font-size: 22px; }
.v-cap { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12px; font-weight: 600; }
.v-bar { height: 5px; background: #2a2533; } .v-bar i { display: block; height: 100%; background: var(--c1); }
.v-portrait { width: 240px; aspect-ratio: 1; border-radius: 50%; padding: 8px; background: conic-gradient(var(--c1), var(--c2), var(--c1)); }
.v-ring { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #fff, var(--c2)); border: 6px solid var(--dbg); }
.v-ring span { font: 700 64px var(--dfont); color: var(--c1); }
.v-bowl { width: 260px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--c2)); display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; padding: 40px; font-size: 44px; box-shadow: 0 30px 60px -30px var(--c1); }
.v-review { width: 86%; background: var(--dcard); border: 1px solid var(--dline); border-radius: 18px; padding: 20px; display: grid; gap: 10px; position: relative; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.v-review > b { font: 700 18px var(--dfont); } .v-stars { color: #f5a623; font-size: 18px; } .v-stars small { color: var(--dmut); font-size: 13px; }
.v-score { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.v-score i { height: 8px; border-radius: 4px; background: var(--dline); overflow: hidden; } .v-score em { display: block; height: 100%; background: var(--c1); }
.v-ribbon { position: absolute; top: -12px; right: 16px; background: var(--c1); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 8px; }
.v-arch { width: 230px; height: 300px; border-radius: 115px 115px 18px 18px; background: linear-gradient(180deg, var(--c2), color-mix(in srgb, var(--c1) 35%, #fff)); display: grid; place-content: center; justify-items: center; gap: 6px; color: #4a3b22; box-shadow: 0 30px 60px -30px var(--c1); }
.v-arch span { font-size: 64px; } .v-arch b { font: 700 30px var(--dfont); } .v-arch small { letter-spacing: .2em; font-size: 11px; text-transform: uppercase; }
.v-dash { width: 92%; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: var(--dcard); border: 1px solid var(--dline); box-shadow: 0 30px 60px -30px var(--c1); }
.v-ring2 { width: 104px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--dcard) 78%, transparent 80% 100%), conic-gradient(var(--c1) 68%, var(--dline) 0); }
.v-ring2 b { font-size: 22px; } .v-ring2 small { font-size: 11px; color: var(--dmut); }
.v-lines { display: grid; gap: 8px; align-content: center; } .v-lines span { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c1) 8%, transparent); font-size: 12.5px; }
.v-xu { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--c1); }
.demo-site .d-sec { padding: 48px 32px; gap: 20px; justify-items: stretch; }
.demo-site .d-sec:nth-of-type(even) { background: color-mix(in srgb, var(--c2) 22%, var(--dbg)); }
.d-sec-head { display: flex; align-items: center; gap: 12px; }
.d-sec-head span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--c1); color: #fff; font-weight: 800; font-size: 13px; }
.demo-site .d-sec h5 { margin: 0; font: 800 26px var(--dfont); color: var(--dfg); }
.d-muted { color: var(--dmut); margin: 6px 0 0; } .d-h { font: 700 22px var(--dfont); display: block; }
.d-grid4, .d-grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.d-feat { background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 18px; display: grid; gap: 6px; }
.d-feat p { margin: 0; color: var(--dmut); font-size: 13.5px; }
.d-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--c1) 12%, transparent); }
.d-timeline { display: grid; gap: 12px; }
.d-step { display: flex; gap: 14px; align-items: flex-start; background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 14px 16px; }
.d-step > span { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c1); color: #fff; font-weight: 800; }
.d-step p { margin: 2px 0 0; color: var(--dmut); font-size: 14px; }
.d-split { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.d-split:has(> .d-statbox) { grid-template-columns: 1.3fr 1fr; }
.d-ava.big { width: 140px; height: 140px; border-radius: 28px; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.d-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .d-chips.center { justify-content: center; }
.d-chips span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--dline); background: var(--dcard); font-size: 13px; font-weight: 600; cursor: pointer; }
.d-chips span.on { background: var(--c1); color: #fff; border-color: var(--c1); }
.d-statbox { display: grid; gap: 10px; } .d-statbox div { background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.d-statbox b { font: 800 26px var(--dfont); color: var(--c1); } .d-statbox span { color: var(--dmut); font-size: 13px; }
.d-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.d-plan { position: relative; background: var(--dcard); border: 1.5px solid var(--dline); border-radius: calc(var(--drad) + 4px); padding: 22px; display: grid; gap: 10px; align-content: start; }
.d-plan.hot { border-color: var(--c1); box-shadow: 0 20px 40px -24px var(--c1); }
.d-plan > b { font-size: 15px; color: var(--dmut); } .d-pp { font: 800 28px var(--dfont); color: var(--dfg); }
.d-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; } .d-plan li::before { content: "✓ "; color: var(--c1); font-weight: 800; }
.d-ribbon { position: absolute; top: -11px; right: 16px; background: var(--c1); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.demo-site .d-count { justify-content: center; } .demo-site .d-count b { background: var(--dfg); color: var(--dbg); font-size: 20px; letter-spacing: 2px; border-radius: 10px; }
.demo-site .d-form { background: var(--dcard); border: 1px solid var(--dline); border-radius: calc(var(--drad) + 4px); padding: 16px; }
.demo-site .d-form input { background: var(--dbg); color: var(--dfg); border: 1px solid var(--dline); padding: 11px 14px; border-radius: var(--drad); }
.demo-site .d-prods { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.demo-site .d-prod { position: relative; text-align: center; justify-items: center; border-radius: calc(var(--drad) + 2px); padding: 16px 12px; background: var(--dcard); border: 1px solid var(--dline); transition: transform .15s; }
.demo-site .d-prod:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px var(--c1); }
.demo-site .d-prod span { font-size: 46px; } .d-prod em { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--c1); color: #fff; padding: 3px 8px; border-radius: 6px; }
.d-cartbox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .d-cartbox div { background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 12px; display: grid; } .d-cartbox span { font-size: 12px; color: var(--dmut); } .d-cartbox b { font-size: 18px; }
.d-rank { display: grid; gap: 10px; } .d-rk { display: flex; align-items: center; gap: 14px; background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 14px 16px; }
.d-rk .m { font-size: 30px; } .d-rk div { flex: 1; display: grid; } .d-rk small { color: var(--dmut); }
.demo-site .d-table { border-radius: var(--drad); overflow: hidden; background: var(--dcard); } .demo-site .d-table th, .demo-site .d-table td { border-color: var(--dline); padding: 11px; }
.demo-site .d-table tr:first-child th { background: var(--c1); color: #fff; } .demo-site .d-table td:nth-child(2) { font-weight: 800; color: var(--c1); }
.d-posts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.d-posts article { background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); overflow: hidden; display: grid; }
.d-posts article div { height: 110px; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, var(--c2), color-mix(in srgb, var(--c1) 30%, #fff)); }
.d-posts small { padding: 12px 14px 0; color: var(--c1); font-weight: 700; font-size: 12px; text-transform: uppercase; } .d-posts b { padding: 4px 14px 16px; }
.d-band { text-align: center; } .d-band p { margin: 4px 0 0; color: var(--dmut); }
.d-menu { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.d-menu div { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--dline); }
.d-menu span { display: grid; } .d-menu small { color: var(--dmut); font-size: 12px; } .d-menu i { flex: 1; } .d-menu em { font-style: normal; font: 700 17px var(--dfont); color: var(--c1); }
.demo-site .d-slots button { border-radius: var(--drad); background: var(--dcard); }
.d-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .d-gallery div { aspect-ratio: 4/3; border-radius: var(--drad); display: grid; place-items: center; font-size: 40px; }
.d-gallery div:first-child { grid-row: span 2; aspect-ratio: auto; }
.d-lessons { display: grid; gap: 8px; } .d-lessons div { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 10px 14px; }
.d-lessons span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--dline); font-weight: 800; font-size: 13px; } .d-lessons span.done { background: var(--c1); color: #fff; } .d-lessons small { color: var(--dmut); }
.d-quotes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.d-quotes blockquote { margin: 0; background: var(--dcard); border: 1px solid var(--dline); border-radius: calc(var(--drad) + 4px); padding: 18px; display: grid; gap: 12px; }
.d-quotes p { margin: 0; font-size: 14.5px; } .d-quotes footer { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
.d-quotes footer i { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); } .d-quotes small { color: var(--dmut); font-size: 12px; }
.d-faq { display: grid; gap: 10px; } .d-faq details { background: var(--dcard); border: 1px solid var(--dline); border-radius: var(--drad); padding: 14px 18px; }
.d-faq summary { cursor: pointer; font-weight: 700; } .d-faq p { margin: 8px 0 0; color: var(--dmut); }
.d-ctaband { margin: 0 32px 40px; padding: 30px; border-radius: calc(var(--drad) + 8px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #fff; background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, #000)); }
.d-ctaband b { font: 800 22px var(--dfont); }
.demo-site .d-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; text-align: left; padding: 30px 32px; border-top: 1px solid var(--dline); color: var(--dmut); font-size: 13px; background: color-mix(in srgb, var(--dfg) 4%, var(--dbg)); }
.d-foot > div { display: grid; gap: 6px; align-content: start; } .d-foot > div > b { color: var(--dfg); } .d-foot a { cursor: pointer; } .d-foot p { margin: 0; }
.d-foot > small { grid-column: 1 / -1; text-align: center; padding-top: 14px; border-top: 1px solid var(--dline); }
/* phong cách riêng từng mẫu */
.ds-landing { --dbg: #0e0b1a; --dfg: #f4f1ff; --dmut: #a9a3c2; --dcard: #17132a; --dline: #2a2444; --dfont: "Be Vietnam Pro", sans-serif; --drad: 12px; }
.ds-landing .d-hero { background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 50%), radial-gradient(circle at 10% 90%, rgba(123,63,228,.35), transparent 45%), var(--dbg); }
.ds-landing .d-sec:nth-of-type(even) { background: #120e22; }
.ds-kol { --dbg: #fffaf7; --dfont: "Playfair Display", serif; --drad: 24px; }
.ds-kol .d-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; } .ds-kol .d-hero-txt { justify-items: center; } .ds-kol .d-hero p { margin: 0 auto; } .ds-kol .d-stats { justify-content: center; }
.ds-kol .d-visual { order: -1; min-height: 260px; } .ds-kol .d-hero h4 { font-style: italic; }
.ds-shop { --dbg: #f7fbf6; --dfont: "Be Vietnam Pro", sans-serif; --drad: 18px; }
.ds-shop .d-hero h4 { font-weight: 900; }
.ds-aff { --dbg: #fff; --dfont: "Be Vietnam Pro", sans-serif; --drad: 8px; }
.ds-aff .d-hero { grid-template-columns: .9fr 1.1fr; } .ds-aff .d-hero-txt { order: 2; } .ds-aff .d-nav { border-bottom: 3px solid var(--c1); }
.ds-spa { --dbg: #fbf7f0; --dfg: #3b2f20; --dmut: #8a7a63; --dline: #eadfcd; --dcard: #fffdf9; --dfont: "Playfair Display", serif; --drad: 4px; }
.ds-spa .d-hero h4 { font-weight: 600; letter-spacing: 0; } .ds-spa .d-btn { letter-spacing: .06em; text-transform: uppercase; font-size: 12.5px; }
.ds-member { --dbg: #0b1020; --dfg: #eef2ff; --dmut: #9aa4c7; --dcard: #121a33; --dline: #233056; --dfont: "Be Vietnam Pro", sans-serif; --drad: 14px; }
.ds-member .d-hero { background: radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 55%), var(--dbg); } .ds-member .d-sec:nth-of-type(even) { background: #0e1428; }
/* khung điện thoại */
.demo-frame.mobile .d-hero, .demo-frame.mobile .d-split, .demo-frame.mobile .ds-aff .d-hero { grid-template-columns: 1fr; padding: 34px 18px; }
.demo-frame.mobile .d-hero-txt { order: 0; } .demo-frame.mobile .d-visual { min-height: 230px; transform: scale(.85); }
.demo-frame.mobile .d-nav nav { display: none; } .demo-frame.mobile .d-sec { padding: 34px 18px; }
.demo-frame.mobile .d-foot { grid-template-columns: 1fr; } .demo-frame.mobile .d-ctaband { margin: 0 18px 30px; }
.demo-frame.mobile .d-cartbox { grid-template-columns: 1fr; } .demo-frame.mobile .d-lessons div { grid-template-columns: 30px 1fr auto; } .demo-frame.mobile .d-lessons small { display: none; }
@media (max-width: 700px) { .d-hero, .d-split { grid-template-columns: 1fr !important; padding: 34px 18px; } .d-hero-txt { order: 0 !important; } .d-nav nav { display: none !important; } .demo-site .d-sec { padding: 34px 18px; } .demo-site .d-foot { grid-template-columns: 1fr; } .d-cartbox { grid-template-columns: 1fr; } .d-ctaband { margin: 0 18px 30px; } .d-visual { transform: scale(.85); } }
.demo .modal-box { width: min(1100px, 100%); } .demo-frame { height: min(72vh, 680px); }
/* Học cùng con v2 */
.k-grp,.k-levels{align-items:center}
.k-grp>b{font-size:13px;color:var(--muted);min-width:84px}
.k-grp+.k-grp{margin-top:-6px}
.k-txt{font:600 clamp(15px,2.4vw,19px)/1.3 "Be Vietnam Pro",sans-serif;padding:0 4px}
.k-word.k-long{font-size:clamp(22px,4vw,34px);line-height:1.3;text-align:center}
.k-word u{text-decoration:none;color:var(--rose);display:inline-block;min-width:.6em;border-bottom:4px solid var(--rose);margin:0 2px}
.k-problem{font:600 clamp(17px,2.6vw,22px)/1.55 "Be Vietnam Pro",sans-serif;max-width:620px;text-align:center;margin:0}
.k-shape{width:120px;height:120px;fill:var(--rose);fill-opacity:.85;stroke:var(--violet,#7b3fe4);stroke-width:3}
.k-clock{font-size:96px!important;line-height:1}
.k-start small{display:block;margin-top:8px}
/* quảng cáo video */
.ad-video { position: relative; background: #000; display: grid; place-items: center; }
.ad-video video { width: 100%; max-height: min(62vh, 560px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; display: block; }
.ad-video #ad-go { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; }
.modal.ad .modal-box { width: min(380px, 100%); }
.g-btn.turns { font-size: 14px; }
/* Ai là triệu phú AI */
.qz { display: grid; grid-template-columns: 1fr 170px; gap: 14px; width: min(760px, 100%); color: #fff; }
.qz-main { display: grid; gap: 12px; align-content: start; }
.qz-help { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-help button { flex: 1; min-width: 90px; padding: 9px 10px; border-radius: 999px; border: 1.5px solid #f2b84b; background: rgba(242,184,75,.12); color: #ffe2a3; font: 700 13px "Be Vietnam Pro", sans-serif; cursor: pointer; }
.qz-help button:disabled { opacity: .35; cursor: default; text-decoration: line-through; }
.qz-q { padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #2a1660, #4a1a5c); border: 1.5px solid rgba(165,123,255,.6); text-align: center; }
.qz-q small { color: #f2b84b; font-weight: 700; }
.qz-q p { margin: 6px 0 0; font: 700 clamp(17px, 2.4vw, 21px)/1.45 "Be Vietnam Pro", sans-serif; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-o { display: flex; gap: 10px; align-items: center; text-align: left; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1.5px solid rgba(165,123,255,.55); background: rgba(255,255,255,.06); color: #fff; font: 600 15px/1.35 "Be Vietnam Pro", sans-serif; cursor: pointer; transition: background .2s; }
.qz-o b { color: #f2b84b; }
.qz-o:hover:not(:disabled) { background: rgba(165,123,255,.25); }
.qz-o.sel { background: #f2b84b; color: #2a1660; } .qz-o.sel b { color: #2a1660; }
.qz-o.ok { background: #1fa971; border-color: #1fa971; color: #fff; animation: qzOk .5s 2; } .qz-o.ok b { color: #fff; }
.qz-o.no { background: #d6334a; border-color: #d6334a; color: #fff; }
.qz-o.off { visibility: hidden; }
@keyframes qzOk { 50% { transform: scale(1.03); } }
.qz-crowd { display: flex; gap: 12px; justify-content: center; height: 120px; align-items: end; }
.qz-crowd div { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; width: 44px; height: 100%; font-size: 12px; }
.qz-crowd i { align-self: end; width: 26px; border-radius: 6px 6px 0 0; background: linear-gradient(#f2b84b, #ff7a3d); }
.qz-call { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(242,184,75,.14); color: #ffe2a3; }
.qz-foot { display: grid; gap: 6px; justify-items: center; }
.qz-note { margin: 0; text-align: center; color: #ffd27a !important; }
.qz-ladder { list-style: none; margin: 0; padding: 10px; border-radius: 16px; background: rgba(0,0,0,.25); display: grid; gap: 2px; align-content: start; font: 600 13px "Be Vietnam Pro", sans-serif; }
.qz-ladder li { display: flex; gap: 8px; padding: 4px 8px; border-radius: 8px; color: rgba(255,255,255,.7); }
.qz-ladder li span { width: 20px; color: rgba(255,255,255,.45); }
.qz-ladder li.safe { color: #ffe2a3; }
.qz-ladder li.done { color: #7fe0b5; }
.qz-ladder li.on { background: #f2b84b; color: #2a1660; } .qz-ladder li.on span { color: #2a1660; }
@media (max-width: 640px) { .qz { grid-template-columns: 1fr; } .qz-ladder { display: none; } .qz-opts { grid-template-columns: 1fr; } }
/* Vòng quay */
.wheel-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #f2b84b) 22%, transparent), color-mix(in srgb, var(--rose) 14%, transparent)); }
.wheel-card .wheel-ico { font-size: 30px; }
.wheel-card div { display: grid; } .wheel-card small { color: var(--muted); font-size: 12px; }
.wheel-card .btn { grid-column: 1 / -1; }
.wheel-box { justify-items: center; text-align: center; }
.wheel { position: relative; width: min(300px, 76vw); aspect-ratio: 1; }
.wheel svg { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 9px #f2b84b, 0 14px 40px rgba(0,0,0,.25); transition: transform 4.2s cubic-bezier(.17,.67,.12,1); }
.wheel text { fill: #fff; font: 800 12px "Be Vietnam Pro", sans-serif; }
.wheel-pin { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid #d6334a; z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
#banner-text { transition: transform .35s ease, opacity .35s ease; }
#banner-text.out { transform: translateY(-120%); opacity: 0; }
#banner-text.in { animation: bnIn .4s ease; }
@keyframes bnIn { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
.qz { padding: 16px; border-radius: 22px; background: radial-gradient(circle at 50% 0%, #4a1f86 0%, #1b0f3a 55%, #120a26 100%); box-shadow: 0 18px 40px rgba(27,15,58,.35); }
.ad-ico { display: inline-grid; place-items: center; width: 22px; height: 16px; margin-right: 4px; border-radius: 4px; background: #ff0033; color: #fff; font-size: 9px; vertical-align: -2px; }
/* Video giới thiệu dọc */
.promo-vid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(18px, 4vw, 44px); align-items: center; }
.pv-frame { border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; box-shadow: 0 18px 40px rgba(60,20,80,.25); }
.pv-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-text { display: grid; gap: 12px; }
.pv-text p { max-width: 52ch; margin: 0; }
@media (max-width: 720px) { .promo-vid { grid-template-columns: 1fr; } .pv-frame { width: min(300px, 100%); justify-self: center; } }
.page-head .ph-img.ph-vid { height: auto; width: min(220px, 100%); aspect-ratio: 9 / 16; justify-self: end; background: #000; }
.page-head .ph-img.ph-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .page-head .ph-img.ph-vid { height: auto; justify-self: center; width: min(240px, 100%); } }
/* Màn hình rộng: mở rộng full giao diện */
@media (min-width: 1300px) { .wrap { max-width: 1760px; padding-left: 40px; padding-right: 40px; } }
/* Giữ đúng tỉ lệ ảnh, không kéo theo màn hình */
.sk-art.photo { height: auto; aspect-ratio: 3 / 4; }
.quote-card { grid-template-columns: minmax(160px, 42%) 1fr; min-height: 0; align-items: stretch; }
.quote-card img { position: static; width: 100%; height: 100%; aspect-ratio: 4 / 5; max-height: 420px; object-position: 50% 20%; }
.quote-card .q { align-self: center; background: none; backdrop-filter: none; }
@media (max-width: 560px) { .quote-card { grid-template-columns: 1fr; } .quote-card img { height: auto; max-height: 380px; } }
.about-imgs img { height: auto; aspect-ratio: 3 / 4; }
.about-imgs img + img { height: auto; aspect-ratio: 3 / 4; }
.about-imgs { align-items: start; max-width: 760px; }
@media (min-width: 1300px) { .gallery { columns: 5 220px; } }
.gift-posters .course-poster { max-width: 420px; }
.zoom-card { grid-template-columns: minmax(160px, 42%) 1fr; }
.zoom-card img { height: 100%; aspect-ratio: 4 / 5; max-height: 420px; object-position: 50% 20%; }
@media (max-width: 760px) { .zoom-card { grid-template-columns: 1fr; } .zoom-card img { height: auto; max-height: none; } }
/* Nút 3 gạch và ngăn kéo danh sách mục */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-btn { width: 42px; height: 42px; flex: none; display: grid; place-content: center; gap: 4px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink, #2b1330); }
.menu-btn:hover { border-color: var(--rose); }
.modal.drawer { place-items: stretch start; justify-content: start; align-items: stretch; padding: 0; }
.modal.drawer .modal-box { width: min(340px, 88vw); max-width: none; height: 100%; max-height: none; border-radius: 0 24px 24px 0; padding: 18px 14px; overflow-y: auto; display: grid; align-content: start; gap: 12px; animation: drawerIn .25s ease; }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 4px 40px 10px 6px; border-bottom: 1px solid var(--line); }
.drawer-head div { display: grid; } .drawer-head small { color: var(--muted); font-size: 12px; }
.drawer-list { display: grid; gap: 4px; }
.drawer-list a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; text-decoration: none; color: inherit; }
.drawer-list a:hover { background: var(--rose-soft); }
.drawer-list a.on { background: linear-gradient(110deg, var(--rose-soft), var(--violet-soft)); }
.drawer-list a.on b { color: var(--rose); }
.drawer-list i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--bg2); font-size: 17px; flex: none; }
.drawer-list span { display: grid; flex: 1; min-width: 0; } .drawer-list b { font-size: 14.5px; } .drawer-list small { color: var(--muted); font-size: 12px; }
.drawer-list em { font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--gold, #b9851f); color: #fff; }
@media (max-width: 420px) { .menu-btn { width: 38px; height: 38px; } }
.ph-vid { position: relative; }
.vid-sound { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; white-space: nowrap; padding: 7px 14px; border-radius: 999px; border: 0; background: rgba(0,0,0,.62); color: #fff; font: 700 12.5px "Be Vietnam Pro", sans-serif; cursor: pointer; backdrop-filter: blur(4px); animation: pulseSnd 1.8s ease-in-out infinite; }
@keyframes pulseSnd { 50% { box-shadow: 0 0 0 6px rgba(255,79,154,.35); } }

/* Logo Tuyết AI Pro trên ô nền trắng (cả giao diện sáng và tối) */
.logo-mark { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid rgba(216, 27, 114, .18); box-shadow: 0 6px 18px -8px rgba(216, 27, 114, .45); overflow: hidden; padding: 2px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 560px) { .logo-mark { width: 42px; height: 42px; border-radius: 12px; } }

/* Trang Chính sách bảo mật / Điều khoản */
.legal { max-width: 860px; margin: 28px auto; padding: clamp(20px, 4vw, 40px); display: grid; gap: 10px; }
.legal h2 { font-size: clamp(26px, 4vw, 36px); }
.legal h3 { font-size: 18px; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal a, .foot-bottom a { color: var(--rose); }
.g-btn-box { min-height: 48px; display: grid; place-items: start; }
.qr.qr-real { width: 256px; height: 256px; padding: 12px; border: 0; background: #fff; }
.qr-real img, .qr-real canvas { width: 232px; height: 232px; }
.chat-go { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--rose); }

/* ---------- Thống kê web (quản trị) ---------- */
.page-head.no-img { grid-template-columns: 1fr; }
.st-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-grid3 .card, .st-grid2 .card, .section.card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.st-span .stat { padding: 10px; }
.st-span .stat b { font-size: 16px; line-height: 1.25; }
.stat small { font-size: 11.5px; }
.st-bars { display: grid; gap: 8px; }
.st-bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.st-bar small { grid-column: 3; justify-self: end; font-size: 11.5px; margin-top: -4px; }
.st-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-track { height: 10px; border-radius: 999px; background: var(--bg2); overflow: hidden; }
.st-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--rose); }
.st-bar b { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.st-chart { height: 180px; display: flex; align-items: flex-end; gap: 2px; padding-top: 8px; border-bottom: 1px solid var(--line); cursor: crosshair; }
.st-col { flex: 1; min-width: 2px; background: var(--rose); border-radius: 4px 4px 0 0; opacity: .85; }
.st-col:hover { opacity: 1; outline: 2px solid var(--surface); }
.st-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.st-grid2 .card { position: relative; }
.st-tip { position: absolute; z-index: 3; max-width: 260px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 12.5px; pointer-events: none; box-shadow: var(--shadow); }
.st-table { overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table tr.st-top td { background: var(--gold-soft); }
a.icon-btn { text-decoration: none; font-size: 18px; }
@media (max-width: 860px) { .st-grid3, .st-grid2 { grid-template-columns: 1fr; } }

/* ---------- Kỷ lục người chơi (cột trái trang Trò chơi) ---------- */
.rec-card { display: grid; gap: 12px; align-content: start; }
.rec-head { display: flex; gap: 10px; align-items: center; }
.rec-head h3 { margin: 0; }
.rec-cup { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--gold-soft); flex: none; }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rec-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); font-size: 14px; }
.rec-list li.first { background: var(--gold-soft); font-weight: 700; }
.rec-list li.you { outline: 2px solid var(--rose); }
.rec-m { text-align: center; font-size: 16px; }
.rec-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-push { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--rose-soft); color: var(--ink); font-size: 13.5px; }
.rec-push.gold { background: var(--gold-soft); }
.rec-all { display: grid; gap: 6px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
.rec-all div { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 1100px) and (min-width: 861px) { .game-area { grid-template-columns: 240px minmax(0, 1fr) 240px; gap: 14px; } }
@media (max-width: 860px) { .game-area .game-stage { order: -1; } }
@media (max-width: 480px) { a.icon-btn[href="#thong-ke"] { display: none; } }
.name-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.name-row h3 { margin: 0; overflow-wrap: anywhere; }
.rename-form { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg2); }
.rename-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.rename-form input { padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
#game-tabs { justify-content: center; }
