/* ============================================================
   Mochi3D — style.css (dùng chung cho index.html, tinh-nang.html, 404.html)
   Chỉ HTML/CSS/JS thuần. Đường dẫn tương đối.
   ============================================================ */

/* ---------- Phông chữ ---------- */
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../assets/font/BeVietnamPro_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../assets/font/BeVietnamPro_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Biến màu ---------- */
:root {
  --choco: #4A2C11;      /* nâu chocolate — tiêu đề, nút chính */
  --xanh: #02BFFD;       /* xanh "3D" — điểm nhấn */
  --xanh-nut: #5E87F1;   /* xanh nút */
  --dao: #FF9A9E;        /* hồng đào */
  --matcha: #A8E6CF;     /* xanh matcha */
  --vang: #FFD3B6;       /* vàng */
  --nen: #FFFAF5;        /* nền kem */
  --the: #FFFFFF;        /* nền thẻ trắng */
  --chu: #3A2A1E;        /* chữ thân */
  --phu: #7A6A5C;        /* chữ phụ */
  --vien: #F0E4D8;       /* viền nhạt */
  --tim: #2B1D4F;        /* tím đêm — chân trang */
  --r: 20px;             /* bo góc lớn */
  --shadow: 0 18px 50px rgba(74, 44, 17, 0.10);
  --shadow-soft: 0 8px 24px rgba(74, 44, 17, 0.08);
}

/* ---------- Cơ bản ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--choco); margin: 0; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
#tai-ve { scroll-margin-top: 90px; }

/* ---------- Đầu trang ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 245, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vien);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--phu);
  transition: color .15s;
}
.nav a:hover { color: var(--choco); }

/* nút ☰ (ẩn trên màn to) */
.menu-btn {
  display: none;
  border: 1px solid var(--vien);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--choco);
  align-items: center;
  justify-content: center;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--choco);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 44, 17, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(74, 44, 17, 0.34); }
.btn-accent {
  background: var(--xanh-nut);
  color: #fff;
  box-shadow: 0 8px 20px rgba(94, 135, 241, 0.30);
}
.btn-outline {
  background: #fff;
  color: var(--choco);
  border: 2px solid var(--choco);
}
.btn-ghost {
  background: #fff;
  color: var(--choco);
  border: 1px solid var(--vien);
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-zalo { background: var(--tim); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--tim); }
.hero-media { width: 100%; }
.hero-media img { width: 100%; max-height: 560px; object-fit: cover; }
.hero-card {
  position: relative;
  max-width: 860px;
  margin: -40px auto 0;
  background: #fff;
  border-radius: 26px;
  padding: 34px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(43, 29, 79, 0.18);
}
.hero-card h1 {
  font-size: clamp(26px, 4.2vw, 42px);
  margin-bottom: 14px;
}
.hero-card h1 .accent { color: var(--xanh); }
.hero-card > p { color: var(--phu); max-width: 640px; margin: 0 auto 22px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--phu); }

/* ---------- Khối / mục ---------- */
.section { padding: 80px 0; }
.section-tint { background: linear-gradient(135deg, #F2FFF9 0%, #FFF0F0 55%, #FFF6E8 100%); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.section-head p { color: var(--phu); }
.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow-blue { background: rgba(2, 191, 253, 0.16); color: #026d8f; }
.eyebrow-pink { background: rgba(255, 154, 158, 0.22); color: #a34c50; }
.eyebrow-matcha { background: rgba(168, 230, 207, 0.5); color: #2e6b53; }
.eyebrow-choco { background: rgba(74, 44, 17, 0.10); color: var(--choco); }

/* ---------- Ba thế mạnh ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strength {
  background: var(--the);
  border: 1px solid var(--vien);
  border-radius: var(--r);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.strength::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--tone);
}
.strength .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--tone);
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.strength h3 { font-size: 20px; margin-bottom: 8px; }
.strength p { color: var(--phu); font-size: 15px; }

/* ---------- Mục tính năng (ảnh + chữ) ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature + .feature { margin-top: 80px; }
.feature.rev .shot { order: 2; }
.feature-body h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.feature-body > p { color: var(--phu); margin-bottom: 18px; }
.feature-body li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tone, var(--matcha));
}
.feature-body li b { color: var(--choco); }

/* khung ảnh chụp app */
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 20px 50px rgba(43, 29, 79, 0.18);
  background: #2a2340;
}
.shot img { width: 100%; }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- 4 bước ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 0 40px; }
.step {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--choco);
  background: var(--tone);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--phu); font-size: 14px; }

/* ---------- 6 kiểu khuôn ---------- */
.mold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mold {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.mold b { display: block; color: var(--choco); font-size: 16px; margin-bottom: 6px; }
.mold span { color: var(--phu); font-size: 14px; }

/* ---------- Sửa file AI ---------- */
.fix { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.fix-body h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 14px; }
.fix-body p { color: var(--phu); }

/* ---------- Plugin ---------- */
.plugin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plugin {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: var(--r);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plugin .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--tone, #eef3ff);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.plugin b { color: var(--choco); font-size: 16px; }
.plugin span { color: var(--phu); font-size: 14px; }
.plugin .to { margin-top: auto; }
.link-more {
  display: inline-block;
  margin-top: 26px;
  font-weight: 700;
  color: var(--xanh-nut);
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }

/* ---------- Bản quyền ---------- */
.license {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
}
.license h3 { font-size: 20px; margin-bottom: 12px; }
.license li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: var(--chu);
}
.license li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #2e9e6f;
}
.license .price-col {
  border-left: 2px dashed var(--vien);
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.license .price { font-size: 28px; font-weight: 700; color: var(--choco); }
.license .price small { display: block; font-size: 14px; font-weight: 400; color: var(--phu); }

/* ---------- Hỏi đáp ---------- */
.faq { max-width: 820px; margin: 0 auto; }
details {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}
summary {
  font-weight: 700;
  color: var(--choco);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--xanh-nut);
  transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--phu); margin-top: 10px; }

/* ---------- Liên hệ ---------- */
.contact { text-align: center; }
.contact .ba-vien { width: 190px; margin: 0 auto 6px; }
.contact h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.contact p { color: var(--phu); max-width: 620px; margin: 0 auto 24px; }
.contact p b { color: var(--choco); }

/* ---------- Chân trang ---------- */
.site-footer { background: var(--tim); color: #cfc7ea; padding: 44px 0 30px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo img { height: 40px; width: auto; }
.footer-links { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #cfc7ea; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-bottom .dots { color: #a89ad0; }

/* ============================================================
   Trang tinh-nang.html
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #FDF3EC, #EFF9FF);
  padding: 72px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--vien);
}
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.page-hero p { color: var(--phu); max-width: 640px; margin: 0 auto; }

.feature-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start; }

/* mục lục dính */
.toc {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--phu); margin-bottom: 12px; }
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--phu);
  font-size: 14px;
  font-weight: 700;
}
.toc a:hover { background: #fff4ec; color: var(--choco); }

/* khối chi tiết tính năng */
.fn-block { scroll-margin-top: 100px; }
.fn-card {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.fn-card h2 { font-size: 22px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.fn-card h2 .eyebrow { margin-bottom: 0; }
.fn-card > p { color: var(--phu); margin-bottom: 16px; }
.fn-card ul li {
  position: relative;
  padding-left: 26px;
  margin: 7px 0;
}
.fn-card ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--xanh-nut);
  font-weight: 700;
}
.fn-card ul li b { color: var(--choco); }

/* bảng phím tắt */
.key-table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 15px; }
.key-table th, .key-table td {
  border: 1px solid var(--vien);
  padding: 10px 14px;
  text-align: left;
}
.key-table th { background: #fff7ef; color: var(--choco); }
.key-table td:first-child {
  font-weight: 700;
  color: var(--choco);
  white-space: nowrap;
}
.key-table tr:nth-child(even) td { background: #fffdf9; }

/* bảng 6 kiểu khuôn */
.mold-table { border-collapse: collapse; width: 100%; margin-top: 6px; font-size: 15px; }
.mold-table th, .mold-table td { border: 1px solid var(--vien); padding: 10px 14px; text-align: left; vertical-align: top; }
.mold-table th { background: #fff7ef; color: var(--choco); }
.mold-table td:first-child { font-weight: 700; color: var(--choco); white-space: nowrap; }
.mold-table tr:nth-child(even) td { background: #fffdf9; }

/* thẻ plugin lớn */
.plugin-big {
  background: #fff;
  border: 1px solid var(--vien);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}
.plugin-big h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.plugin-big .icon { font-size: 20px; }
.plugin-big ul li { position: relative; padding-left: 24px; margin: 6px 0; color: var(--chu); }
.plugin-big ul li::before { content: "•"; position: absolute; left: 6px; color: var(--xanh-nut); font-weight: 700; }
.plugin-big.is-soon { opacity: .6; background: #fbfaf7; }
.tag-soon {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  background: rgba(94, 135, 241, 0.14);
  color: var(--xanh-nut);
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* kêu gọi cuối trang tính năng */
.cta-box {
  margin-top: 30px;
  background: var(--tim);
  color: #fff;
  border-radius: 26px;
  padding: 42px 34px;
  text-align: center;
}
.cta-box h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.cta-box p { color: #cfc7ea; margin-bottom: 22px; }
.cta-box .hero-actions { justify-content: center; }

/* ============================================================
   Trang 404
   ============================================================ */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-404 .site-main {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.page-404 .ba-vien { width: 220px; margin: 0 auto 16px; }
.page-404 h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 10px; }
.page-404 p { color: var(--phu); max-width: 460px; margin: 0 auto 26px; }

/* ---------- Hiệu ứng hiện dần (chỉ ẩn khi bật JS) ---------- */
.js-enabled .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-enabled .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .strengths { grid-template-columns: 1fr 1fr; }
  .plugin-grid { grid-template-columns: 1fr 1fr; }
  .mold-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feature-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* Menu thu thành nút ☰ khi màn hẹp hơn 1180px (menu có 8 mục) */
@media (max-width: 1180px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--vien);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(43, 29, 79, 0.12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--vien); }
  .nav a:last-child { border-bottom: 0; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .feature, .fix { grid-template-columns: 1fr; gap: 24px; }
  .feature.rev .shot { order: 0; }
  .feature + .feature { margin-top: 56px; }
  .shot-row { grid-template-columns: 1fr; }
  .license { grid-template-columns: 1fr; }
  .license .price-col { border-left: 0; border-top: 2px dashed var(--vien); padding: 22px 0 0; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 540px) {
  .section { padding: 56px 0; }
  .strengths, .plugin-grid, .mold-grid, .steps { grid-template-columns: 1fr; }
  .hero-card { margin: -28px 14px 0; padding: 26px 20px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .site-header .wrap { height: 60px; }
  .logo img { height: 32px; }
  .nav { top: 60px; }
  .key-table, .mold-table { font-size: 13px; }
  .key-table th, .key-table td, .mold-table th, .mold-table td { padding: 8px 10px; }
}

/* ======================================================================
   KHO MẪU · MUA KEY · TÀI KHOẢN · QUẢN TRỊ (các trang .php)
   ====================================================================== */
.trang-shop { padding: 0 0 72px; min-height: 60vh; }
.trang-shop > .wrap:first-child, .trang-shop > .wrap.hep { padding-top: 40px; }
.wrap.hep { max-width: 640px; }
.tieu-de-trang { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 8px; }
.tieu-de-muc { font-size: 20px; margin: 34px 0 12px; }
.phu { color: var(--phu); }
.nho { font-size: 13.5px; }
.hop { background: var(--the); border: 1px solid var(--vien); border-radius: var(--r); box-shadow: var(--shadow-soft); padding: 24px; margin: 18px 0; }
.thong-bao { border-radius: 14px; padding: 12px 16px; margin: 14px 0; font-weight: 700; font-size: 15px; }
.tb-ok { background: #E8FAF2; color: #1f6b4c; border: 1px solid var(--matcha); }
.tb-loi { background: #FFF0F0; color: #9a3338; border: 1px solid var(--dao); }
code { background: #fff3e8; padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-all; }
.ma, .o-key { font-family: Consolas, "Courier New", monospace; letter-spacing: .03em; word-break: break-all; }

/* Biểu mẫu */
.form label { display: block; font-weight: 700; color: var(--choco); font-size: 14px; margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .loc-mau input, .loc-mau select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 14px; font: inherit; font-weight: 400; color: var(--chu);
  background: #fffdfa; border: 1.5px solid var(--vien); border-radius: 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus, .loc-mau input:focus, .loc-mau select:focus { border-color: var(--xanh); box-shadow: 0 0 0 3px rgba(2,191,253,.15); }
.form input[type=file] { display: block; margin-top: 6px; font-weight: 400; font-size: 14px; max-width: 100%; }
.form h2 { font-size: 17px; margin: 22px 0 12px; padding-top: 18px; border-top: 1px dashed var(--vien); }
.form h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form fieldset { border: 1.5px dashed var(--vien); border-radius: 14px; padding: 14px 16px 2px; margin: 0 0 16px; }
.form legend { font-weight: 700; color: var(--choco); padding: 0 6px; font-size: 14px; }
.form .chon { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--chu); }
.form button[type=submit].btn { margin-top: 6px; }
.form-rong { max-width: 860px; }
.hai-cot { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hang-nut { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-chu { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--phu); text-decoration: underline; cursor: pointer; }
.btn-chu.do { color: #b23b41; }
.o-ma { text-transform: uppercase; font-family: Consolas, monospace; font-size: 18px !important; letter-spacing: .12em; }
.form-key { text-align: left; margin-top: 4px; }

/* Lọc + lưới kho mẫu */
.loc-mau { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 26px; }
.loc-mau input { flex: 1 1 220px; width: auto; margin: 0; }
.loc-mau select { flex: 0 1 200px; width: auto; margin: 0; }
.luoi-mau { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.the-mau { display: flex; flex-direction: column; background: var(--the); border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .18s, box-shadow .18s; }
.the-mau:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.the-mau-anh { aspect-ratio: 4 / 3; background: #fff5ec; overflow: hidden; }
.the-mau-anh img { width: 100%; height: 100%; object-fit: cover; }
.the-mau-chu { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.the-mau-chu b { color: var(--choco); line-height: 1.35; }
.the-mau-chu .dm { font-size: 13px; color: var(--phu); }
.gia { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--choco); font-size: 16px; }
.gia-free { color: #2e8a63; }
.trong { text-align: center; padding: 30px 0; color: var(--phu); }
.trong img { width: 170px; margin: 0 auto 10px; }

/* Chi tiết mẫu */
.vet { font-size: 14px; color: var(--phu); margin-bottom: 8px; }
.vet a { color: var(--xanh-nut); text-decoration: none; }
.ctm-luoi { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.ctm-anh-chinh img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ctm-anh-nho { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ctm-anh-nho button { padding: 0; border: 2px solid var(--vien); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; width: 84px; }
.ctm-anh-nho button:hover { border-color: var(--xanh); }
.ctm-chu { margin: 0; }
.ctm-chu h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.ctm-gia .gia { font-size: 24px; margin: 0 0 14px; }
.ctm-mota { color: var(--chu); margin-bottom: 14px; }
.ctm-thongso { margin-bottom: 18px; color: var(--phu); font-size: 14px; }
.ctm-chu .btn { width: 100%; }
.ctm-chu .phu.nho { margin-top: 10px; }

/* Mua key */
.trang-shop .license { margin-top: 10px; }
.huong-dan-ma { max-width: 860px; margin: 24px auto; }
.huong-dan-ma h2 { font-size: 18px; margin-bottom: 8px; }
.huong-dan-ma ol { margin: 0; padding-left: 20px; }

/* Thanh toán */
.don-tom-tat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.don-tom-tat > div { display: flex; flex-direction: column; gap: 2px; }
.don-tom-tat .phu { font-size: 13px; }
.don-tom-tat.doc { grid-template-columns: 1fr; }
.so-to { font-size: 28px; color: var(--choco); }
.nhan { display: inline-block; align-self: flex-start; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.nhan-cho_chuyen { background: #FFF1E3; color: #9a5a1e; }
.nhan-cho_xac_nhan { background: #E5F7FF; color: #04709a; }
.nhan-da_xac_nhan { background: #E8FAF2; color: #1f6b4c; }
.nhan-huy { background: #f2eeea; color: #8a7d72; }
.thanh-toan { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }
.tt-qr { text-align: center; }
.tt-qr img { width: 100%; max-width: 300px; margin: 0 auto 8px; border-radius: 14px; }
.tt-chu h2 { font-size: 20px; margin-bottom: 10px; }
.bang-ck { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.bang-ck td { padding: 8px 0; border-bottom: 1px dashed var(--vien); vertical-align: top; }
.bang-ck td:first-child { color: var(--phu); width: 40%; font-size: 14px; }
.noi-dung-ck { color: #c2410c; font-size: 18px; letter-spacing: .04em; }
.chep { cursor: pointer; position: relative; }
.chep:hover { text-decoration: underline dotted; }
.chep.da-chep::after { content: "✔ đã chép"; position: absolute; left: 0; top: -22px; font-size: 12px; background: var(--choco); color: #fff; padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.tt-chu .btn { margin-top: 10px; }
.huy-don { margin-top: 10px; }
.cho-xn, .xong { text-align: center; }
.cho-xn h2, .xong h2 { font-size: 20px; margin-bottom: 10px; }
.cho-xn p { margin-bottom: 8px; }
.xoay { width: 46px; height: 46px; margin: 4px auto 14px; border-radius: 50%; border: 5px solid #E5F7FF; border-top-color: var(--xanh); animation: xoay 1s linear infinite; }
@keyframes xoay { to { transform: rotate(360deg); } }
.o-key { margin: 12px auto; padding: 14px 18px; background: #fff7ef; border: 2px dashed var(--vang); border-radius: 14px; font-size: 18px; font-weight: 700; color: var(--choco); }
.xong .btn { margin-top: 6px; }

/* Tài khoản */
.tk-dau { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dong-key { padding: 16px 20px; margin: 10px 0; }
.dong-key .o-key { margin: 6px 0 0; font-size: 16px; text-align: left; }
.ds-mau-mua li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--vien); }
.ds-mau-mua li:last-child { border-bottom: 0; }
.cuon-ngang { overflow-x: auto; padding: 8px 16px; }
.bang { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.bang th { text-align: left; color: var(--phu); font-weight: 700; font-size: 13px; padding: 10px 10px; border-bottom: 2px solid var(--vien); }
.bang td { padding: 12px 10px; border-bottom: 1px solid var(--vien); vertical-align: top; }
.bang tr:last-child td { border-bottom: 0; }
.bang a { color: var(--xanh-nut); }
.dong-noi td { background: #F2FBFF; }
.viec form { display: inline-block; margin: 0 8px 4px 0; }

/* Quản trị */
.qt { background: #f7f3ef; }
.qt-dau { background: var(--tim); color: #fff; position: sticky; top: 0; z-index: 30; }
.qt-dau .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.qt-logo { display: flex; align-items: center; gap: 10px; color: #cfc7ea; text-decoration: none; font-weight: 700; }
.qt-logo img { height: 32px; width: auto; }
.qt-dau nav { display: flex; gap: 6px; flex-wrap: wrap; }
.qt-dau nav a { color: #cfc7ea; text-decoration: none; padding: 6px 12px; border-radius: 10px; font-size: 14px; }
.qt-dau nav a:hover, .qt-dau nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.qt .trang-shop > .wrap { padding-top: 28px; }
.qt-so { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.qt-so .hop { margin: 0 0 18px; display: flex; flex-direction: column; }
.qt-so b { font-size: 26px; color: var(--choco); }
.anh-nho { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.anh-xem { width: 200px; border-radius: 12px; margin-bottom: 10px; }
.anh-phu-ds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.anh-phu-ds img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; }
.xoa-mau { max-width: 860px; text-align: right; }
.nut-to { width: 100%; font-size: 18px; padding: 18px; }

@media (max-width: 860px) {
  .ctm-luoi, .thanh-toan { grid-template-columns: 1fr; }
  .tt-qr img { max-width: 260px; }
}
@media (max-width: 540px) {
  .hop { padding: 18px; }
  .hai-cot, .don-tom-tat { grid-template-columns: 1fr; }
  .loc-mau select { flex: 1 1 45%; }
  .luoi-mau { grid-template-columns: 1fr 1fr; gap: 12px; }
  .the-mau-chu { padding: 10px 12px 12px; }
  .the-mau-chu b { font-size: 14px; }
}
.kho-teaser { display: grid; grid-template-columns: 1fr 240px; gap: 30px; align-items: center; background: linear-gradient(135deg, #F2FFF9, #FFF6E8);
  border: 1px solid var(--vien); border-radius: 28px; padding: 36px 40px; box-shadow: var(--shadow-soft); }
.kho-teaser h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.kho-teaser p { color: var(--phu); margin-bottom: 18px; }
.license .price-col .link-more { display: inline-block; margin-top: 10px; }
@media (max-width: 640px) { .kho-teaser { grid-template-columns: 1fr; padding: 26px 22px; } .kho-teaser img { width: 150px; margin: 0 auto; } }

/* ---------- Video (ảnh bìa YouTube, bấm mới phát) ---------- */
.luoi-video { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.the-video { margin: 0; background: var(--the); border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.vd-khung, .vd-phat { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #1d1433; position: relative; cursor: pointer; }
.vd-khung img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .25s; opacity: .92; }
.vd-khung:hover img { transform: scale(1.04); opacity: 1; }
.vd-nut { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.vd-nut::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--choco); }
.vd-khung:hover .vd-nut { transform: scale(1.1); }
.the-video figcaption { padding: 12px 16px 14px; font-weight: 700; color: var(--choco); font-size: 15px; line-height: 1.4; }
.video-them { text-align: center; margin-top: 18px; }
@media (max-width: 960px) { .luoi-video { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .luoi-video { grid-template-columns: 1fr; } }

/* Trang cài đặt lần đầu */
.buoc h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; border: 0; padding: 0; margin: 0 0 14px; }
.buoc .so { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--choco); color: #fff; font-size: 15px; }
.goi-y { background: #F2FBFF; border: 1px solid #cdeefc; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.form label small { display: block; font-weight: 400; margin-top: 2px; }

/* Gói key */
.mua-key { max-width: 900px; margin: 0 auto; }
.goi-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.goi { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 16px 20px; cursor: pointer;
  background: var(--the); border: 2px solid var(--vien); border-radius: var(--r); box-shadow: var(--shadow-soft); transition: border-color .15s, transform .15s; }
.goi:hover { transform: translateY(-2px); }
.goi input { position: absolute; opacity: 0; pointer-events: none; }
.goi:has(input:checked) { border-color: var(--choco); box-shadow: 0 0 0 4px rgba(74,44,17,.10), var(--shadow-soft); }
.goi:has(input:focus-visible) { outline: 3px solid var(--xanh); outline-offset: 2px; }
.goi-ten { font-weight: 700; color: var(--phu); }
.goi-gia { font-size: 28px; font-weight: 700; color: var(--choco); line-height: 1.2; }
.goi-phu { font-size: 13px; color: var(--phu); }
.goi-nhan { position: absolute; top: -12px; background: var(--dao); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.goi-noi { border-color: var(--dao); }
.goi-loi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 22px 4px 4px; font-size: 15px; }
.goi-loi li::before { content: "✓ "; color: #2e8a63; font-weight: 700; }
.o-mua { text-align: center; }
.o-mua .form { display: block; max-width: 320px; margin: 0 auto 14px; text-align: left; font-weight: 700; color: var(--choco); font-size: 14px; }
.o-mua .o-ma { margin-top: 6px; }
.o-mua .btn + .btn { margin-left: 8px; }
.ba-cot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.het-han { color: #b23b41; }
@media (max-width: 640px) {
  .goi-luoi { grid-template-columns: 1fr; gap: 18px; }
  .goi-loi, .ba-cot { grid-template-columns: 1fr; }
}
.chip-dm { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.chip { padding: 7px 16px; border-radius: 999px; background: var(--the); border: 1.5px solid var(--vien); color: var(--phu); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip:hover { border-color: var(--choco); color: var(--choco); }
.chip.on { background: var(--choco); border-color: var(--choco); color: #fff; }
.the-mau-anh { position: relative; }
.nhan-file { position: absolute; left: 10px; top: 10px; background: rgba(43,29,79,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
@media (max-width: 540px) { .chip-dm { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; } .chip { white-space: nowrap; } }

/* ---------- Trang chủ: khẩu hiệu trên ảnh bìa + dải video ---------- */
.hero2 .hero-media { position: relative; }
.hero-top { position: absolute; inset: 0 0 auto 0; padding: clamp(18px, 4vw, 44px) 16px 70px; text-align: center;
  background: linear-gradient(to bottom, rgba(26,16,52,.78), rgba(26,16,52,.35) 65%, transparent); }
.hero-top h1 { color: #fff; font-size: clamp(24px, 4.2vw, 50px); max-width: 1000px; margin: 0 auto; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.hero-top h1 .accent { color: var(--xanh); }
.hero-band { background: var(--tim); color: #e9e4ff; padding: 26px 0 40px; }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.band-head h2 { color: #fff; font-size: clamp(18px, 2.2vw, 24px); }
.band-nut { display: flex; gap: 8px; }
.vd-cuon { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.vd-cuon:hover { background: rgba(255,255,255,.2); }
.vd-day { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * 16px) / 3.4)); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-color: var(--xanh) rgba(255,255,255,.1); scrollbar-width: thin; }
.vd-day::-webkit-scrollbar { height: 8px; }
.vd-day::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 8px; }
.vd-day::-webkit-scrollbar-thumb { background: var(--xanh); border-radius: 8px; }
.vd-day .the-video { scroll-snap-align: start; background: #3a2a66; border-color: rgba(255,255,255,.12); }
.vd-day .the-video figcaption { color: #fff; font-size: 14px; }
.the-cho .vd-khung { cursor: default; }
.the-cho img { filter: saturate(.8) brightness(.75); }
.vd-sap { position: absolute; right: 10px; top: 10px; background: rgba(255,154,158,.95); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.band-cta { text-align: center; margin-top: 22px; }
.band-cta p { max-width: 760px; margin: 0 auto 18px; color: #cfc7ea; }
.band-cta .hero-note { color: #a89ad0; }
.btn-sang { background: #fff; color: var(--choco); }
.btn-vien-sang { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-vien-sang:hover { background: rgba(255,255,255,.1); }
@media (max-width: 640px) {
  .hero2 .hero-media img { min-height: 260px; }
  .vd-day { grid-auto-columns: 78%; }
  .hero2 .hero-actions { flex-direction: column; }
}
.hero2 .hero-media img { object-position: 50% 88%; max-height: 600px; }
.hero-top h1 { font-size: clamp(22px, 3.3vw, 46px); max-width: 1200px; }
/* 19/10: ảnh bìa thấp lại cho thấy dải video ngay màn đầu; ba viên mochi nằm dưới khẩu hiệu */
.hero2 .hero-media img { height: clamp(300px, 50vh, 560px); max-height: none; min-height: 0; object-position: 50% 45%; }
.hero-top { padding-top: clamp(12px, 2.2vw, 28px); padding-bottom: 40px; }
.hero-band { padding-top: 18px; }

/* ---------- Kho mẫu v2: tab máy, cột danh mục, lưới thẻ ---------- */
.kho-dau { background: linear-gradient(135deg, #F2FFF9 0%, #FFF0F0 55%, #FFF6E8 100%); padding: 30px 0 0; border-bottom: 1px solid var(--vien); }
.kho-dau h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }
.kho-tim { display: flex; gap: 10px; max-width: 720px; margin-bottom: 18px; }
.kho-tim input { flex: 1; padding: 13px 18px; font: inherit; border: 2px solid var(--vien); border-radius: 999px; background: #fff; outline: none; }
.kho-tim input:focus { border-color: var(--xanh); }
.kho-tab { display: flex; gap: 4px; }
.kho-tab a { padding: 10px 20px; border-radius: 14px 14px 0 0; text-decoration: none; font-weight: 700; color: var(--phu); }
.kho-tab a small { font-weight: 400; color: var(--phu); margin-left: 4px; }
.kho-tab a.on { background: var(--nen); color: var(--choco); box-shadow: 0 -1px 0 var(--vien), 1px 0 0 var(--vien), -1px 0 0 var(--vien); }
.kho-than { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-top: 24px; align-items: start; }
.kho-cot { position: sticky; top: 86px; background: var(--the); border: 1px solid var(--vien); border-radius: var(--r); padding: 14px 10px; box-shadow: var(--shadow-soft); }
.kho-nhom + .kho-nhom { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--vien); }
.kho-nhom b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--phu); padding: 2px 10px 6px; }
.kho-nhom a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--chu); font-size: 14.5px; }
.kho-nhom a small { color: var(--phu); }
.kho-nhom a:hover { background: #fff4ec; }
.kho-nhom a.on { background: var(--choco); color: #fff; }
.kho-nhom a.on small { color: #e8d9c9; }
.kho-thanh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kho-thanh h2 { font-size: 20px; }
.kho-thanh h2 small { font-size: 14px; font-weight: 400; color: var(--phu); margin-left: 6px; }
.kho-loc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kho-loc select { padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--vien); font: inherit; font-size: 14px; background: #fff; }
.kho-ket .luoi-mau { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.nhan-may { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--choco); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.the-mau-chan { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.the-mau-chan .gia { margin: 0; }
.luot { font-size: 12.5px; color: var(--phu); }
.phan-trang { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 28px 0 6px; }
.phan-trang a { min-width: 38px; text-align: center; padding: 7px 12px; border-radius: 10px; background: var(--the); border: 1px solid var(--vien); text-decoration: none; color: var(--chu); font-weight: 700; font-size: 14px; }
.phan-trang a.on, .phan-trang a:hover { background: var(--choco); color: #fff; border-color: var(--choco); }
.phan-trang span { color: var(--phu); font-size: 13px; margin-left: 6px; }
@media (max-width: 860px) {
  .kho-than { grid-template-columns: 1fr; gap: 14px; }
  .kho-cot { position: static; display: flex; overflow-x: auto; gap: 6px; padding: 8px; }
  .kho-nhom { display: flex; gap: 6px; flex: none; }
  .kho-nhom + .kho-nhom { margin: 0; padding: 0 0 0 6px; border-top: 0; border-left: 1px dashed var(--vien); }
  .kho-nhom b { display: none; }
  .kho-nhom a { white-space: nowrap; border: 1px solid var(--vien); border-radius: 999px; padding: 6px 12px; }
  .kho-tab a { padding: 9px 12px; font-size: 14px; }
  .kho-tim .btn { padding: 10px 16px; }
}
@media (max-width: 540px) { .kho-ket .luoi-mau { grid-template-columns: 1fr 1fr; gap: 10px; } }
.the-mau-chu { flex: 1; }
.the-mau-chu b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.the-mau-chan { margin-top: auto; padding-top: 6px; }
/* 19/10 chiều: ảnh nâng lên cho thấy trọn 3 viên mochi; ô video to hơn, phủ xuống chỗ đoạn chữ cũ */
.hero2 .hero-media img { object-position: 50% 51%; }
.vd-day { grid-auto-columns: max(250px, calc((min(100vw - 48px, 1112px) - 36px) / 3.15)); gap: 18px; padding-bottom: 16px; }
.vd-day .the-video figcaption { font-size: 15.5px; padding: 14px 18px 18px; }
.band-cta { margin-top: 26px; }
/* 19/10 tối: ảnh bìa CAO hơn (thấy trọn 3 viên mochi + chữ mochi3D), dải video đẩy xuống dưới */
.hero2 .hero-media img { height: clamp(340px, 72vh, 760px); object-position: 50% 80%; }
.hero2 .hero-media img { object-position: 50% 92%; }
@media (max-width: 640px) { .hero2 .hero-media img { height: 300px; object-position: 50% 60%; } }
/* 19/10 tối (chốt): ảnh bìa hiện NGUYÊN ẢNH, không cắt; cuộn xuống mới tới dải video */
.hero2 .hero-media img { height: auto; max-height: none; min-height: 0; object-fit: initial; object-position: 50% 50%; }
@media (max-width: 640px) { .hero2 .hero-media img { height: auto; } }
/* nút Tải về lên trước, dải video xuống dưới */
.hero-band .band-cta { margin: 6px 0 34px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
/* 19/10 tối: mở trang là thấy vừa khít ẢNH + phần TẢI VỀ trong một màn hình; cuộn xuống mới tới video */
@media (min-width: 641px) {
  .hero2 .hero-media img { height: calc(100vh - 68px - 236px); min-height: 340px; object-fit: cover; object-position: 50% 74%; }
  .hero-band { padding-top: 22px; }
  .hero-band .band-cta { margin: 0 0 30px; padding-bottom: 26px; }
  .hero-band .band-cta p { margin-bottom: 14px; }
}
/* Ảnh hiện NGUYÊN VẸN (không cắt) mà vẫn vừa màn hình: co ảnh theo chiều cao, hai bên lấp bằng chính ảnh làm mờ */
@media (min-width: 641px) {
  .hero2 .hero-media { position: relative; overflow: hidden; background: var(--tim); }
  .hero2 .hero-media::before { content: ""; position: absolute; inset: -40px; background: url("../assets/banner-1.jpg") center / cover no-repeat; filter: blur(28px) brightness(.75) saturate(1.1); }
  .hero2 .hero-media img { position: relative; object-fit: contain; object-position: 50% 50%; width: 100%; }
}
/* 19/10 khuya: ảnh TRÀN NGANG cả màn (không thu nhỏ), vừa khít màn cùng phần Tải về; giữ trọn 3 viên mochi + chữ mochi3D, chỉ bớt bầu trời phía trên */
@media (min-width: 641px) {
  .hero2 .hero-media::before { display: none; }
  .hero2 .hero-media img { width: 100%; height: calc(100vh - 68px - 236px); min-height: 380px; object-fit: cover; object-position: 50% 92%; }
}
@media (min-width: 641px) {
  .hero2 .hero-media img { height: calc(100vh - 68px - 196px); object-position: 50% 80%; }
  .hero-band { padding-top: 16px; }
  .hero-band .band-cta p { max-width: 1100px; margin-bottom: 12px; font-size: 15px; }
  .hero-band .band-cta .hero-note { margin-top: 10px; }
  .hero-top { padding-top: 14px; }
  .hero-top h1 { font-size: clamp(22px, 2.6vw, 40px); }
}
/* bỏ đoạn chữ dưới ảnh → ảnh cao thêm, thấy trọn chữ mochi3D */
@media (min-width: 641px) {
  .hero2 .hero-media img { height: calc(100vh - 68px - 142px); object-position: 50% 84%; }
}
@media (min-width: 641px) { .hero2 .hero-media img { object-position: 50% 95%; } }

/* ---------- Số dư / nạp tiền ---------- */
.so-du-o { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.so-du-o b { font-size: 30px; color: var(--choco); display: block; line-height: 1.2; }
.tk-sd > div { display: flex; flex-direction: column; }
.chon-tien { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cho-tien { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #F2FBFF; color: #04709a; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cho-tien.xong { background: #E8FAF2; color: #1f6b4c; }
.nho-xoay { width: 18px; height: 18px; border-width: 3px; margin: 0; display: inline-block; }
.tien-vao { color: #1f6b4c; font-weight: 700; }
.tien-ra { color: #b23b41; font-weight: 700; }
.sd-nho { color: #2e8a63; }

/* ===== Đợt 2: bản quyền theo tài khoản ===== */
.dong-goi { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.dong-goi > div { display:flex; flex-direction:column; gap:4px; }
.dong-goi b { font-size:1.08rem; }
.goi-paid { border-left:4px solid #2e9e5b; }
.goi-trial { border-left:4px solid #e0a020; }
.goi-none { border-left:4px solid #d04848; }
.ds-may { list-style:none; margin:0; padding:0; }
.ds-may li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid rgba(0,0,0,.08); }
.ds-may li:last-child { border-bottom:0; }

/* ===== Quản trị: tải file lớn từng mảnh, danh mục, bộ cài ===== */
.tai-manh { margin: 6px 0 14px; }
.tai-manh input[type=file] { display: block; font-weight: 400; font-size: 14px; max-width: 100%; }
.tm-thanh { height: 8px; background: var(--vien); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.tm-thanh span { display: block; height: 100%; width: 0; background: var(--xanh); transition: width .2s; }
.tai-manh.tm-xong .tm-thanh span { background: #3bb273; }
.tai-manh.tm-loi .tm-thanh span { background: #b23b41; }
.tai-manh .tm-chu { margin-top: 6px; }
.tai-manh.tm-xong .tm-chu { color: #2a7d52; font-weight: 700; }
.tai-manh.tm-loi .tm-chu { color: #b23b41; font-weight: 700; }
.dm-nhom { margin-bottom: 18px; }
.dm-nhom-dau { display: grid; grid-template-columns: 70px 1fr 90px auto; gap: 10px; align-items: end; }
.dm-nhom-dau label { margin-bottom: 8px; }
.bang-dm { width: 100%; border-collapse: collapse; }
.bang-dm td, .bang-dm th { padding: 6px 6px; border-bottom: 1px dashed var(--vien); vertical-align: middle; text-align: left; }
.bang-dm th { font-size: 12.5px; color: var(--phu); font-weight: 700; }
.bang-dm input:not([type=checkbox]), .bang-dm select { margin: 0 !important; }
.bang-dm .o-so { width: 70px; }
.bang-dm .o-ma { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--phu); white-space: nowrap; }
.dm-moi td { background: #FFFBF3; }
.bo-cai-hien { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
.bo-cai-hien b { font-size: 17px; color: var(--choco); }
@media (max-width: 760px) {
  .dm-nhom-dau { grid-template-columns: 60px 1fr; }
  .bang-dm .o-ma { display: none; }
}


/* ===== 30/10: thẻ Phù Điêu 3D + Kho mẫu trên ảnh bìa (dạng tab to bám mép trái) ===== */
.hero-tab { position: absolute; left: 0; top: 54%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 14px; }
.htab { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; width: 268px;
  padding: 11px 20px 11px 14px; border-radius: 0 22px 22px 0; text-decoration: none; overflow: hidden;
  box-shadow: 0 14px 34px rgba(16, 8, 36, .38); transition: transform .22s ease, box-shadow .22s ease; }
.htab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.htab:hover, .htab:focus-visible { transform: translateX(8px); box-shadow: 0 18px 40px rgba(16, 8, 36, .48); }
.hero2 .hero-media .htab img { position: static; width: 64px; height: 64px; min-height: 0; max-height: none; border-radius: 14px; object-fit: cover; object-position: 50% 50%; }
.htab-chu { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.htab-chu small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.htab-chu b { font-size: 19px; font-weight: 700; }
.htab-chu span { font-size: 13px; }
.htab-moi { position: absolute; right: 12px; top: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: #EBC489; color: #2A1B0C; }
/* Phù Điêu: đá tối + ánh đồng */
.htab-pd { background: linear-gradient(135deg, #33271C 0%, #1A1511 70%); border: 1px solid rgba(235, 196, 137, .5); border-left: 0; color: #F2E6D2; }
.htab-pd::before { background: linear-gradient(180deg, #F3D49B, #B8803F); }
.htab-pd img { box-shadow: 0 0 0 1px rgba(235, 196, 137, .55); }
.htab-pd small { color: #C89455; }
.htab-pd b { color: #EBC489; }
.htab-pd .htab-chu span { color: #B9A88F; }
.htab-pd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 228, 170, .16) 50%, transparent 65%);
  transform: translateX(-100%); animation: htab-loe 5.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes htab-loe { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
/* Kho mẫu: kem + pastel mochi */
.htab-kho { background: rgba(255, 250, 245, .96); border: 1px solid var(--vien); border-left: 0; color: var(--choco); }
.htab-kho::before { background: linear-gradient(180deg, var(--matcha), var(--dao)); }
.htab-kho small { color: #2e8a63; }
.htab-kho .htab-chu span { color: var(--phu); }
@media (max-width: 900px) and (min-width: 641px) { .htab { width: 222px; grid-template-columns: 52px 1fr; } .hero2 .hero-media .htab img { width: 52px; height: 52px; } .htab-chu b { font-size: 17px; } }
@media (max-width: 640px) {
  .hero-tab { position: static; transform: none; flex-direction: row; gap: 10px; padding: 12px 16px 0; background: var(--tim); }
  .htab { flex: 1; width: auto; grid-template-columns: 44px 1fr; gap: 10px; padding: 9px 10px; border-radius: 16px; border-left: 1px solid; }
  .htab-pd { border-left-color: rgba(235, 196, 137, .5); }
  .htab-kho { border-left-color: var(--vien); }
  .htab::before { display: none; }
  .hero2 .hero-media .htab img { width: 44px; height: 44px; border-radius: 10px; }
  .htab-chu b { font-size: 15px; }
  .htab-chu span, .htab-chu small { display: none; }
  .htab-moi { right: 8px; top: 6px; font-size: 9px; padding: 1px 6px; }
  .htab:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .htab-pd::after { animation: none; display: none; } .htab { transition: none; } }
/* mục Phù Điêu 3D trên menu: chấm đồng */
.nav a.nav-pd { color: #8A5A22; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nav a.nav-pd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #C89455; box-shadow: 0 0 0 3px rgba(200, 148, 85, .22); }
/* menu thêm mục Phù Điêu 3D: khít lại một chút, nút Tải về không xuống dòng */
@media (min-width: 1181px) { .nav { gap: 18px; } }
.header-cta { white-space: nowrap; }

/* ===== 30/10: TRANG TẢI VỀ (tai-xuong.php) — mỗi app một thẻ đủ thông tin ===== */
.tx-dau { background: linear-gradient(135deg, #F2FFF9 0%, #FFF0F0 55%, #FFF6E8 100%); border-bottom: 1px solid var(--vien); padding: 34px 0 26px; }
.tx-dau p { color: var(--phu); max-width: 680px; }
.tx-nhay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tx-nhay a { padding: 7px 16px; border-radius: 999px; background: var(--the); border: 1.5px solid var(--vien); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--choco); }
.tx-nhay a:hover { border-color: var(--choco); }
.tx-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; margin: 30px 0 10px; align-items: stretch; }
.tx-the { background: var(--the); border: 1px solid var(--vien); border-radius: 24px; box-shadow: var(--shadow-soft); padding: 26px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; min-width: 0; }
.tx-dau-the { display: flex; gap: 16px; align-items: center; }
.tx-dau-the img { width: 72px; height: 72px; object-fit: contain; border-radius: 18px; flex: none; }
.tx-dau-the h2 { font-size: 26px; }
.tx-slogan { font-size: 14px; font-weight: 700; color: var(--xanh-nut); }
.tx-mo-ta { color: var(--phu); }
.tx-thong-tin { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 0; }
.tx-thong-tin div { background: #FBF4EC; border-radius: 12px; padding: 9px 12px; min-width: 0; }
.tx-thong-tin dt { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--phu); }
.tx-thong-tin dd { margin: 2px 0 0; font-weight: 700; color: var(--choco); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx-nut { display: flex; flex-direction: column; gap: 8px; }
.tx-tai { justify-content: center; font-size: 16px; padding: 15px 22px; }
.tx-sap { justify-content: center; background: #EFE6DC; color: var(--phu); cursor: default; padding: 15px 22px; }
.tx-ghi { font-size: 13px; color: var(--phu); text-align: center; overflow-wrap: anywhere; }
.tx-moi { background: #F2FBFF; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; }
.tx-moi b { color: #04709a; }
.tx-the h3 { font-size: 17px; margin-top: 4px; }
.tx-cau-hinh { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tx-cau-hinh th, .tx-cau-hinh td { text-align: left; padding: 9px 0; border-top: 1px solid var(--vien); vertical-align: top; }
.tx-cau-hinh th { width: 38%; padding-right: 14px; color: var(--phu); font-weight: 600; }
.tx-xem { align-self: flex-start; margin-top: auto; padding-top: 6px; }  /* hai thẻ cao bằng nhau, link giới thiệu nằm sát đáy */
/* Phù Điêu 3D: thẻ đá tối ánh đồng như trang phu-dieu.html */
.tx-phudieu3d { background: linear-gradient(160deg, #33271C 0%, #1C1814 55%); border-color: #3B3128; color: #F2E6D2; box-shadow: 0 18px 44px rgba(28, 24, 20, .28); }
.tx-phudieu3d .tx-dau-the img { object-fit: cover; box-shadow: 0 0 0 1px rgba(235, 196, 137, .55); }
.tx-phudieu3d h2, .tx-phudieu3d h3 { color: #EBC489; }
.tx-phudieu3d .tx-slogan { color: #C89455; }
.tx-phudieu3d .tx-mo-ta, .tx-phudieu3d .tx-ghi { color: #B9A88F; }
.tx-phudieu3d .tx-thong-tin div { background: #28211B; }
.tx-phudieu3d .tx-thong-tin dt { color: #B9A88F; }
.tx-phudieu3d .tx-thong-tin dd { color: #F2E6D2; }
.tx-phudieu3d .tx-tai { background: linear-gradient(180deg, #EBC489, #C89455); color: #2A1B0C; box-shadow: 0 8px 22px rgba(200, 148, 85, .3); }
.tx-phudieu3d .tx-sap { background: #28211B; color: #B9A88F; }
.tx-phudieu3d .tx-moi { background: rgba(200, 148, 85, .1); }
.tx-phudieu3d .tx-moi b { color: #EBC489; }
.tx-phudieu3d .tx-cau-hinh th, .tx-phudieu3d .tx-cau-hinh td { border-top-color: #3B3128; }
.tx-phudieu3d .tx-cau-hinh th { color: #B9A88F; }
.tx-phudieu3d .link-more, .tx-phudieu3d a { color: #EBC489; }
.tx-cai { margin: 40px 0 20px; }
.tx-cai h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; }
.tx-cai ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: b; }
.tx-cai li { counter-increment: b; background: var(--the); border: 1px solid var(--vien); border-radius: 18px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.tx-cai li::before { content: counter(b); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--choco); color: #fff; font-weight: 700; }
.tx-cai li b { color: var(--choco); }
.tx-cai li span { font-size: 14.5px; color: var(--phu); }
.tx-luu-y { margin-top: 14px; color: var(--phu); font-size: 14.5px; }
@media (max-width: 900px) { .tx-cai ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tx-cai ol { grid-template-columns: 1fr; } .tx-the { padding: 20px; } }
/* quản trị Bộ cài: thẻ chọn app */
.qt-app-tab { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
