/* =========================================================
   PHÚC SINH QUANTUM — bộ giao diện chung (web app)
   Phong cách: kính tối, viền phát sáng vàng / xanh ngọc,
   khói trầm và đốm sáng bay phía sau.
   Sửa màu ở mục :root bên dưới.
   ========================================================= */
:root {
  --bg: #06080a;
  --bg-2: #0a0e11;
  --panel: rgba(14, 20, 23, .74);
  --panel-2: rgba(20, 28, 32, .72);
  --panel-solid: #0e1417;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #eef2f1;
  --text-2: #a9b4b6;
  --text-3: #6f7c80;
  --gold: #f3c76b;
  --gold-2: #e0a94a;
  --gold-glow: rgba(243, 199, 107, .45);
  --cyan: #4fe6df;
  --cyan-glow: rgba(79, 230, 223, .4);
  --violet: #b98cff;
  --green: #45e08f;
  --red: #ff6b6b;
  --amber: #ffb547;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --sans: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --side-w: 248px;
  --top-h: 68px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
svg.i { width: 18px; height: 18px; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(243, 199, 107, .35); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: var(--red); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nền: khói + đốm sáng ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2s ease; }
.ambient.on canvas { opacity: 1; }
.ambient::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 12% 20%, rgba(79, 230, 223, .06), transparent 70%),
    radial-gradient(50% 45% at 90% 10%, rgba(243, 199, 107, .07), transparent 70%),
    radial-gradient(70% 60% at 60% 100%, rgba(243, 199, 107, .05), transparent 70%);
}

/* ---------- khung ứng dụng ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 16px 0 16px 16px;
}
.side-in {
  height: 100%; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 14px; overflow-y: auto; scrollbar-width: none;
}
.side-in::-webkit-scrollbar { display: none; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 8px 18px; }
.brand img { width: 108px; height: auto; filter: drop-shadow(0 0 10px rgba(243, 199, 107, .35)); }
.brand b { display: block; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(90deg, #ffe7a8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: 11px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; }
.nav-label { margin: 16px 10px 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-size: 14px; transition: background .25s, color .25s;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav a.active {
  color: var(--gold); background: linear-gradient(90deg, rgba(243, 199, 107, .16), rgba(243, 199, 107, .04));
  box-shadow: inset 0 0 0 1px rgba(243, 199, 107, .22);
}
.nav a .badge { margin-left: auto; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; background: currentColor; }
.side-promo { margin-top: auto; padding-top: 16px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid var(--line); margin-top: 14px; }
.side-user .avatar { width: 36px; height: 36px; font-size: 13px; }
.side-user b { display: block; font-size: 13px; }
.side-user small { color: var(--text-3); font-size: 12px; }

.side-back { display: none; }
.main { min-width: 0; padding: 16px 20px 40px; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--top-h); margin: -16px -20px 18px; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(rgba(6, 8, 10, .92), rgba(6, 8, 10, .6) 70%, transparent);
}
.topbar h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar > div:nth-child(2) { min-width: 0; }
.topbar .crumb { font-size: 12px; color: var(--text-3); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-2); width: min(300px, 32vw);
}
.search input { background: none; border: 0; outline: none; width: 100%; font-size: 14px; }
.search svg { width: 16px; height: 16px; color: var(--text-3); }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text-2); transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--gold); border-color: rgba(243, 199, 107, .4); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #1a1408; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.menu-btn { display: none; }

/* ---------- khung kính phát sáng ---------- */
.card {
  position: relative; border-radius: var(--radius); padding: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 40%), var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card.glow-gold { border-color: rgba(243, 199, 107, .45); box-shadow: 0 0 0 1px rgba(243, 199, 107, .08), 0 0 26px -6px var(--gold-glow), var(--shadow), inset 0 0 22px -12px var(--gold-glow); }
.card.glow-cyan { border-color: rgba(79, 230, 223, .42); box-shadow: 0 0 0 1px rgba(79, 230, 223, .08), 0 0 26px -6px var(--cyan-glow), var(--shadow), inset 0 0 22px -12px var(--cyan-glow); }
/* viền chuyển màu vàng -> xanh như ảnh mẫu */
.card.glow-mix { border-color: transparent; background:
    linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01) 40%) padding-box,
    linear-gradient(rgba(11, 15, 18, .9), rgba(11, 15, 18, .9)) padding-box,
    linear-gradient(135deg, rgba(243, 199, 107, .75), rgba(79, 230, 223, .25) 45%, rgba(79, 230, 223, .7)) border-box;
  box-shadow: 0 0 30px -10px var(--gold-glow), 0 0 30px -12px var(--cyan-glow), var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 17px; }
.card-head .sub { font-size: 12px; color: var(--text-3); }
.card-head .more { margin-left: auto; color: var(--text-3); padding: 4px 8px; border-radius: 8px; background: none; border: 0; }
.card-head .more:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.card-link { margin-left: auto; font-size: 13px; color: var(--cyan); }
.card-link:hover { text-decoration: underline; }

/* thẻ số liệu */
.stat { display: grid; gap: 10px; }
.stat-top { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
.stat-ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: rgba(79, 230, 223, .12); color: var(--cyan); border: 1px solid rgba(79, 230, 223, .25);
}
.stat-ico svg { width: 17px; height: 17px; }
.stat-ico.gold { background: rgba(243, 199, 107, .12); color: var(--gold); border-color: rgba(243, 199, 107, .3); }
.stat-ico.violet { background: rgba(185, 140, 255, .12); color: var(--violet); border-color: rgba(185, 140, 255, .3); }
.stat-ico.green { background: rgba(69, 224, 143, .12); color: var(--green); border-color: rgba(69, 224, 143, .3); }
.stat-ico.red { background: rgba(255, 107, 107, .12); color: var(--red); border-color: rgba(255, 107, 107, .3); }
.stat-val { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.stat-val svg { flex: 1 1 0; height: 34px; min-width: 0; max-width: 130px; }
.stat-val { min-width: 0; flex-wrap: wrap; }
.stat-foot { font-size: 12px; color: var(--text-3); }

/* ---------- lưới ---------- */
.grid { display: grid; gap: 18px; }
.grid > *, .stack > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.g-main { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-main-r { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 18px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.section-title { display: flex; align-items: end; gap: 12px; margin: 34px 2px 16px; }
.section-title h2 { font-size: 22px; }
.section-title .eyebrow { display: block; margin-bottom: 4px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 22px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 600; font-size: 14px; letter-spacing: .01em; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-gold { background: linear-gradient(135deg, #ffe09a, var(--gold) 45%, var(--gold-2)); color: #1d1507; border-color: transparent; box-shadow: 0 6px 24px -6px var(--gold-glow); }
.btn-gold:hover { box-shadow: 0 8px 30px -4px var(--gold-glow); border-color: transparent; }
.btn-cyan { background: linear-gradient(135deg, #8ff7f1, var(--cyan)); color: #04201f; border-color: transparent; box-shadow: 0 6px 24px -6px var(--cyan-glow); }
.btn-grad { background: linear-gradient(90deg, #ffe08d, #f3c76b 40%, #7ff0e8); color: #10140f; border-color: transparent; box-shadow: 0 0 24px -4px var(--gold-glow); }
.btn-ghost { background: transparent; }
.btn-outline-gold { background: rgba(243, 199, 107, .06); border-color: rgba(243, 199, 107, .55); color: var(--gold); }
.btn-outline-gold:hover { background: rgba(243, 199, 107, .14); border-color: var(--gold); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- huy hiệu trạng thái ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.paid, .badge.ok { background: rgba(69, 224, 143, .12); color: var(--green); border: 1px solid rgba(69, 224, 143, .3); }
.badge.pending { background: rgba(255, 181, 71, .12); color: var(--amber); border: 1px solid rgba(255, 181, 71, .32); }
.badge.failed { background: rgba(255, 107, 107, .12); color: var(--red); border: 1px solid rgba(255, 107, 107, .32); }
.badge.ship { background: rgba(79, 230, 223, .1); color: var(--cyan); border: 1px solid rgba(79, 230, 223, .3); }
.badge.gold { background: rgba(243, 199, 107, .12); color: var(--gold); border: 1px solid rgba(243, 199, 107, .35); }
.badge.violet { background: rgba(185, 140, 255, .12); color: var(--violet); border: 1px solid rgba(185, 140, 255, .32); }

/* ---------- bảng ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 20px; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.who { display: flex; align-items: center; gap: 12px; }
.who b { display: block; font-size: 14px; font-weight: 600; }
.who small { display: block; color: var(--text-3); font-size: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px;
  background: rgba(79, 230, 223, .14); color: var(--cyan); border: 1px solid rgba(79, 230, 223, .35);
}
.avatar.v { background: rgba(185, 140, 255, .14); color: var(--violet); border-color: rgba(185, 140, 255, .35); }
.avatar.g { background: rgba(243, 199, 107, .14); color: var(--gold); border-color: rgba(243, 199, 107, .35); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* danh sách hoạt động */
.feed { display: grid; }
.feed-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }
.feed-item b { display: block; font-size: 14px; font-weight: 600; }
.feed-item small { color: var(--text-3); font-size: 12px; }

/* chú thích biểu đồ */
.legend { display: grid; gap: 10px; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legend-row:last-child { border-bottom: 0; padding-bottom: 0; }
.legend-row span:last-child { margin-left: auto; color: var(--text-2); }
.chart { width: 100%; display: block; overflow: visible; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--sans); }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--text-2); }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; outline: none;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--panel-solid); }
.input:focus { border-color: rgba(243, 199, 107, .6); box-shadow: 0 0 0 3px rgba(243, 199, 107, .12); }
.input::placeholder { color: var(--text-3); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); cursor: pointer; transition: border-color .2s, background .2s; }
.choice input { accent-color: var(--gold); }
.choice label:has(input:checked) { border-color: rgba(243, 199, 107, .6); background: rgba(243, 199, 107, .07); }

/* thẻ chọn (tab, lọc) */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 36px; padding: 0 16px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 500; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: rgba(243, 199, 107, .14); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(243, 199, 107, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); color: var(--text-2); font-size: 13px; }
.chip.on, .chip:hover { border-color: rgba(79, 230, 223, .5); color: var(--cyan); background: rgba(79, 230, 223, .07); }

/* ---------- sản phẩm ---------- */
.p-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.p-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.p-card:hover { transform: translateY(-4px); border-color: rgba(243, 199, 107, .45); box-shadow: 0 0 30px -10px var(--gold-glow), var(--shadow); }
.p-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, rgba(243, 199, 107, .12), transparent 70%), linear-gradient(#0d1215, #080b0d); overflow: hidden; }
.p-img img, .p-img svg { width: 78%; height: 78%; object-fit: contain; transition: transform .6s; }
.p-card:hover .p-img svg { transform: scale(1.06) rotate(-4deg); }
/* ảnh thật: phủ kín khung */
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-img .tag { position: absolute; top: 12px; left: 12px; background: rgba(8, 10, 12, .78); }
.p-body { padding: 16px; display: grid; gap: 8px; flex: 1; }
.p-body h3 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.p-price { font-size: 17px; font-weight: 700; color: var(--gold); }
.p-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.p-actions .btn { flex: 1; }

/* ---------- hero trang ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 460px; padding: clamp(28px, 5vw, 64px);
  display: grid; align-content: center; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 10, .92), rgba(6, 8, 10, .55) 55%, rgba(6, 8, 10, .2)), linear-gradient(transparent 60%, rgba(6, 8, 10, .85)); }
@keyframes heroDrift { to { transform: scale(1.12) translateX(-2%); } }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; max-width: 13ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffe7a8, var(--gold), #9ff3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 52ch; margin-top: 18px; font-size: clamp(15px, 1.3vw, 17px); color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero { min-height: 280px; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 18ch; }

/* ---------- bài viết ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(79, 230, 223, .4); }
.post-cover { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8, 11, 13, .9)); }
.post-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-body h3 { font-size: 16px; line-height: 1.45; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); }
.prose { font-size: 16px; line-height: 1.85; color: #d7dfde; max-width: 72ch; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; color: var(--text); }
.prose h3 { font-size: 18px; margin: 24px 0 8px; color: var(--gold); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(243, 199, 107, .06); border-radius: 0 12px 12px 0; color: var(--text); }

/* ---------- ô thông tin nhỏ ---------- */
.feature { display: grid; gap: 12px; }
.feature .stat-ico { width: 44px; height: 44px; border-radius: 12px; }
.feature .stat-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; }
.feature p { font-size: 14px; color: var(--text-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--cyan)); box-shadow: 0 0 12px var(--gold-glow); }
.empty { padding: 40px 20px; text-align: center; color: var(--text-3); }
.empty svg { width: 42px; height: 42px; margin: 0 auto 12px; opacity: .5; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- ngăn kéo giỏ hàng, hộp thoại, thông báo ---------- */
.drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(420px, 100%); display: flex; flex-direction: column;
  background: rgba(10, 14, 16, .94); border-left: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateX(100%); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.drawer.open { transform: none; }
.drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-head .icon-btn { margin-left: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 64px; border-radius: 12px; background: #0c1114; display: grid; place-items: center; border: 1px solid var(--line); }
.cart-thumb svg { width: 52px; height: 52px; }
.cart-line b { display: block; font-size: 14px; line-height: 1.4; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; margin-top: 6px; }
.qty button { width: 30px; height: 30px; background: none; border: 0; color: var(--text-2); }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-3); font-size: 12px; }
.link-btn:hover { color: var(--red); }

.modal-back { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: rgba(12, 17, 20, .96); transform: translateY(12px) scale(.98); transition: transform .3s; }
.modal-back.open .modal { transform: none; }

.toasts { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 12px; background: rgba(14, 20, 23, .95); border: 1px solid rgba(243, 199, 107, .45); box-shadow: 0 0 24px -8px var(--gold-glow), var(--shadow); font-size: 14px; animation: toastIn .35s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.toast-err { border-color: rgba(255, 107, 107, .75); background: rgba(48, 12, 14, .96); color: #ffd2d2; box-shadow: 0 0 24px -6px rgba(255, 90, 90, .6), var(--shadow); max-width: min(520px, calc(100vw - 32px)); }

/* ---------- chân trang ---------- */
.foot { margin-top: 40px; padding: 26px 4px 6px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; font-size: 14px; color: var(--text-2); }
.foot h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--gold); }
.foot .copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

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

/* màn hình thấp: gọn thanh bên */
@media (min-width: 1100px) and (max-height: 940px) {
  .side .nav-cats { display: none; }
  .nav a { padding: 9px 12px; }
}
@media (min-width: 1100px) and (max-height: 760px) { .side-promo { display: none; } .side-user { margin-top: auto; } }

/* thanh điều hướng dưới (điện thoại) */
.tabbar { display: none; }

/* ---------- máy tính bảng ---------- */
@media (max-width: 1280px) {
  :root { --side-w: 224px; }
}
@media (min-width: 1100px) and (max-width: 1280px) {
  .g-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-5 > * { grid-column: span 2; }
  .g-5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 1099px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 80; left: 0; top: 0; bottom: 0; width: 280px; padding: 12px; transform: translateX(-105%); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
  .side .card { height: 100%; background: rgba(10, 14, 16, .97); }
  .app.nav-open .side { transform: none; }
  .side-back { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .app.nav-open .side-back { opacity: 1; pointer-events: auto; }
  .menu-btn { display: grid; }
  .gift-btn { display: grid; }
  .g-main, .g-main-r { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .search { width: min(260px, 36vw); }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .g-main-tab { grid-template-columns: 1fr 1fr; }
}
/* ---------- điện thoại ---------- */
@media (max-width: 699px) {
  body { font-size: 14px; }
  .main { padding: 12px 14px 96px; }
  .topbar { margin: -12px -14px 14px; padding: 10px 14px; height: 60px; }
  .topbar h1 { font-size: 17px; }
  .topbar .crumb { display: none; }
  .search { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-4.keep-2, .g-2.keep-2, .g-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .span-2, .span-3 { grid-column: auto; }
  .card { padding: 16px; border-radius: 16px; }
  .card.p-card, .card.post-card { padding: 0; }
  .table-wrap { margin: 0 -16px -16px; }
  .form-grid { grid-template-columns: 1fr; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p-body { padding: 12px; }
  .p-body h3 { font-size: 13px; }
  .p-price { font-size: 15px; }
  .p-actions { padding: 0 12px 12px; flex-direction: column; }
  .p-actions .btn { height: 36px; font-size: 12px; }
  .hero { min-height: 520px; border-radius: 20px; align-content: end; }
  .hero::after { background: linear-gradient(rgba(6, 8, 10, .15), rgba(6, 8, 10, .6) 45%, rgba(6, 8, 10, .95)); }
  .page-hero { min-height: 300px; }
  .section-title { margin: 28px 2px 12px; }
  .section-title h2 { font-size: 19px; }
  .foot { grid-template-columns: 1fr; padding-bottom: 10px; }
  .stat-val { font-size: 22px; }
  .tabbar {
    display: flex; position: fixed; z-index: 70; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px));
    height: 64px; border-radius: 20px; padding: 0 6px; justify-content: space-around; align-items: center;
    background: rgba(10, 14, 16, .9); border: 1px solid rgba(243, 199, 107, .3); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 24px -8px var(--gold-glow), var(--shadow);
  }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3); padding: 6px 0; }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--gold); }
  .tabbar a.active svg { filter: drop-shadow(0 0 6px var(--gold-glow)); }
  .toasts { bottom: 90px; }
}
/* giảm chuyển động chỉ khi chủ web bật (thêm class reduce-motion vào thẻ html) */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
html.reduce-motion .reveal { opacity: 1; transform: none; }

/* ---------- video trải nghiệm khách hàng (đầu trang chủ) ---------- */
.vids { padding: clamp(16px, 2vw, 22px); }
.vids-head { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vids-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.vids-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.vids-body.single { grid-template-columns: minmax(0, 1fr); }
.vid-main { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.vid-main iframe, .vid-main img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vid-main .vid-play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(transparent 55%, rgba(6, 8, 10, .85)); border: 0; padding: 0; color: inherit; }
.vid-play .ring { width: clamp(58px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 10, 12, .55); border: 1.5px solid var(--gold); box-shadow: 0 0 30px -4px var(--gold-glow); transition: transform .3s; }
.vid-play:hover .ring { transform: scale(1.08); }
.vid-play .ring svg { width: 40%; height: 40%; color: var(--gold); margin-left: 6%; }
.vid-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; text-align: left; pointer-events: none; }
.vid-cap b { display: block; font-size: clamp(15px, 1.4vw, 18px); }
.vid-cap small { color: var(--text-2); }
.vid-list { display: flex; flex-direction: column; gap: 8px; max-height: min(52vw, 470px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(243, 199, 107, .35) transparent; }
.vid-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .02); cursor: pointer; text-align: left; color: inherit; font: inherit; }
.vid-item:hover { background: rgba(255, 255, 255, .05); }
.vid-item.on { border-color: rgba(243, 199, 107, .55); background: rgba(243, 199, 107, .08); }
.vid-item .th { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.vid-item .th img { width: 100%; height: 100%; object-fit: cover; }
.vid-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
.vid-item small { color: var(--text-3); font-size: 12px; }
.vid-yt { font-size: 12px; }
@media (max-width: 1099px) {
  .vids-body { grid-template-columns: minmax(0, 1fr); }
  .vid-list { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 0 0 6px; scroll-snap-type: x mandatory; }
  .vid-item { flex: 0 0 min(240px, 70%); grid-template-columns: minmax(0, 1fr); scroll-snap-align: start; }
}

/* ---------- danh mục nhỏ: 6 ô một hàng, dư thì trượt ngang ---------- */
.cat-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(243, 199, 107, .35) transparent; }
.cat-row::-webkit-scrollbar { height: 6px; } .cat-row::-webkit-scrollbar-thumb { background: rgba(243, 199, 107, .35); border-radius: 6px; }
/* thẻ danh mục: bằng 80% cỡ cũ (6 thẻ một hàng x 0,8); hàng không đầy thì căn giữa */
.cat-item { flex: 1 1 0; min-width: 150px; max-width: calc((100% - 14px * 5) / 6 * .8); scroll-snap-align: start; padding: 0; overflow: hidden; position: relative;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
/* ít danh mục: cỡ tối đa, căn giữa; nhiều hơn: các thẻ co đều cho kín hàng; quá nhiều: trượt ngang bằng nút */
.cat-item:first-child { margin-left: auto; } .cat-item:last-child { margin-right: auto; }
.cat-item .p-img { overflow: hidden; position: relative; }
.cat-item .p-img > * { transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.cat-item .p-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6, 8, 10, .75)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.cat-go { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translate(-50%, 12px); opacity: 0; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #2a1a05; background: linear-gradient(145deg, #ffe7a8, var(--gold) 60%, #c8923a); box-shadow: 0 6px 18px rgba(243, 199, 107, .4); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cat-go svg { width: 13px; height: 13px; }
.cat-item h3 { transition: color .3s; }
@media (hover: hover) {
  .cat-item:hover, .cat-item:focus-visible { transform: translateY(-6px); border-color: rgba(243, 199, 107, .85); box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .9), 0 0 28px -6px rgba(243, 199, 107, .55); outline: none; }
  .cat-item:hover .p-img > *, .cat-item:focus-visible .p-img > * { transform: scale(1.1); filter: brightness(1.08) saturate(1.1); }
  .cat-item:hover .p-img::after, .cat-item:focus-visible .p-img::after { opacity: 1; }
  .cat-item:hover .cat-go, .cat-item:focus-visible .cat-go { opacity: 1; transform: translate(-50%, 0); }
  .cat-item:hover h3, .cat-item:focus-visible h3 { color: var(--gold); }
}
.cat-item .p-img { aspect-ratio: 1; }
.cat-item .cat-name { padding: 10px 12px 12px; }
.cat-item h3 { font-size: 13.5px; line-height: 1.3; }
.cat-item span { font-size: 12px; color: var(--text-3); }
.cat-nav { display: flex; gap: 8px; margin-left: auto; }
.cat-nav button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text-2); cursor: pointer; }
.cat-nav button:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 1099px) { .cat-item { min-width: 140px; max-width: calc((100% - 14px * 3) / 4 * .8); } }
@media (max-width: 699px) { .cat-row { gap: 10px; } .cat-item { flex: 0 0 calc((100% - 10px * 2) / 2.6); min-width: 0; max-width: none; } .cat-row { padding-top: 8px; } .cat-nav { display: none; } }
.foot .brand { align-items: flex-start; text-align: left; } .foot .brand img { width: 84px; }

/* ---------- thanh bên thu gọn dạng biểu tượng (máy tính) ----------
   Mặc định chỉ hiện biểu tượng; rê chuột hoặc dùng phím Tab thì mở rộng đè lên nội dung.
   Nút ghim giữ thanh bên luôn mở (lưu trên trình duyệt). */
@media (min-width: 1100px) {
  :root { --rail-w: 92px; --side-open: 252px; }
  .app { grid-template-columns: var(--rail-w) minmax(0, 1fr); transition: grid-template-columns .35s cubic-bezier(.2, .8, .2, 1); }
  .app.side-pinned { grid-template-columns: calc(var(--side-open) + 16px) minmax(0, 1fr); }
  .side { z-index: 60; width: var(--rail-w); padding: 14px 0 14px 14px; }
  .side-in {
    position: relative; width: calc(var(--rail-w) - 14px); padding: 16px 12px; gap: 4px; overflow-x: hidden;
    transition: width .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, background .35s;
  }
  .side:hover .side-in, .side:focus-within .side-in, .app.side-pinned .side-in { width: var(--side-open); }
  .side:hover .side-in, .side:focus-within .side-in { background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01) 40%), #0b0f11; box-shadow: 24px 0 60px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(243, 199, 107, .22), 0 0 30px -12px rgba(243, 199, 107, .35); }
  .app.side-pinned .side:not(:hover) .side-in { box-shadow: none; }

  /* chữ ẩn khi thu gọn */
  .side .nav a > span:not(.badge), .side .brand b, .side-user > span:not(.avatar), .side-promo, .side-pin { opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .side:hover .nav a > span, .side:focus-within .nav a > span, .app.side-pinned .nav a > span,
  .side:hover .brand b, .side:focus-within .brand b, .app.side-pinned .brand b,
  .side:hover .side-user > span:not(.avatar), .side:focus-within .side-user > span:not(.avatar), .app.side-pinned .side-user > span:not(.avatar),
  .side:hover .side-promo, .side:focus-within .side-promo, .app.side-pinned .side-promo,
  .side:hover .side-pin, .side:focus-within .side-pin, .app.side-pinned .side-pin { opacity: 1; transition: opacity .25s .12s; }
  .side-promo { width: calc(var(--side-open) - 24px); pointer-events: none; white-space: normal !important; }
  .side:hover .side-promo, .side:focus-within .side-promo, .app.side-pinned .side-promo { pointer-events: auto; }

  /* logo */
  .side .brand { padding: 4px 0 14px; gap: 8px; width: calc(var(--side-open) - 24px); align-items: flex-start; }
  .side .brand img { width: 44px; margin-left: 4px; transition: width .35s cubic-bezier(.2, .8, .2, 1), margin .35s; }
  .side .brand b { font-size: 13px; line-height: 1.35; margin-left: 4px; }
  .side:hover .brand img, .side:focus-within .brand img, .app.side-pinned .brand img { width: 92px; }

  /* mục menu: ô vuông phát sáng khi thu gọn */
  .side .nav a { position: relative; gap: 16px; padding: 12px 14px; width: 100%; border-radius: 14px; overflow: hidden; }
  .side .nav a svg { width: 20px; height: 20px; opacity: .8; transition: transform .25s, opacity .25s, filter .25s; }
  .side .nav a:hover svg { transform: scale(1.12); opacity: 1; filter: drop-shadow(0 0 6px rgba(243, 199, 107, .6)); color: var(--gold); }
  .side .nav a.active svg { opacity: 1; filter: drop-shadow(0 0 8px rgba(243, 199, 107, .75)); }
  .side .nav a.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .side .nav a .badge { position: absolute; left: 28px; top: 5px; height: 16px; min-width: 16px; padding: 0 4px; font-size: 10px; margin: 0; }
  .side:hover .nav a .badge, .side:focus-within .nav a .badge, .app.side-pinned .nav a .badge { position: static; margin-left: auto; height: 20px; font-size: 11px; }
  .side .nav-label { position: relative; height: 18px; margin: 12px 4px 4px; white-space: nowrap; color: transparent; transition: color .2s; }
  .side .nav-label::before { content: ""; position: absolute; left: 10px; width: 30px; top: 50%; border-top: 1px solid var(--line); transition: opacity .2s; }
  .side:hover .nav-label, .side:focus-within .nav-label, .app.side-pinned .nav-label { color: var(--text-3); }
  .side:hover .nav-label::before, .side:focus-within .nav-label::before, .app.side-pinned .nav-label::before { opacity: 0; }
  .side .nav-cats { display: none; }

  /* người dùng và nút ghim */
  .side-user { padding: 12px 5px 0; width: calc(var(--side-open) - 24px); margin-top: auto; }
  .side-promo + .side-user { margin-top: 14px; }
  .side-pin { position: absolute; right: 10px; top: 12px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text-3); cursor: pointer; }
  .side-pin svg { width: 15px; height: 15px; }
  .side-pin:hover { color: var(--gold); border-color: rgba(243, 199, 107, .4); }
  .app.side-pinned .side-pin { color: var(--gold); border-color: rgba(243, 199, 107, .45); background: rgba(243, 199, 107, .1); }
}
@media (min-width: 1100px) and (max-height: 820px) { .side-promo { display: none; } }
@media (min-width: 1100px) and (prefers-reduced-motion: reduce) { html.reduce-motion .side-in, html.reduce-motion .app { transition: none; } }
.side-pin { display: none; }
@media (min-width: 1100px) { .side-pin { display: grid; } }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ---------- chọn ngôn ngữ ---------- */
.lang-btn { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; }
.lang-btn b { font-size: 12px; letter-spacing: .06em; color: var(--gold); }
.lang-pop { position: fixed; z-index: 10000; width: 240px; max-height: min(460px, calc(100vh - 24px)); overflow-y: auto; padding: 8px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .01) 40%), #0b0f11; border: 1px solid rgba(243, 199, 107, .35);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8), 0 0 30px -12px rgba(243, 199, 107, .4); font-family: 'Be Vietnam Pro', system-ui, sans-serif; animation: langIn .2s ease both; }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang-pop-h { padding: 8px 10px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8c9799; }
.lang-pop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: #dfe6e7; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.lang-pop button[dir="rtl"] { flex-direction: row-reverse; text-align: right; }
.lang-pop button:hover, .lang-pop button:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.lang-pop button.on { background: rgba(243, 199, 107, .12); color: #f3c76b; }
.lang-pop button b { flex: none; width: 34px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #f3c76b; }
.lang-pop button span { flex: 1; }
.lang-pop button i { font-style: normal; color: #f3c76b; }
.lang-pop-n { padding: 8px 10px 4px; font-size: 11px; color: #6f7a7c; }
/* ẩn thanh công cụ của Google Dịch, giữ trang nguyên giao diện */
.goog-te-banner-frame, iframe.skiptranslate, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
html.lang-tr body { top: 0 !important; position: static !important; }
.goog-text-highlight, font[style] { background: none !important; box-shadow: none !important; }

/* ---------- nút liên hệ nổi: Zalo, Messenger, gọi điện ---------- */
.contact-dock { position: fixed; right: 18px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; gap: 12px; }
.cd-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; padding: 4px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 60%), #0b1012;
  border: 1px solid rgba(243, 199, 107, .45); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .8), 0 0 18px -6px rgba(243, 199, 107, .45);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, border-color .25s; }
.cd-ico { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cd-ico svg { width: 22px; height: 22px; }
.cd-zalo .cd-ico { background: linear-gradient(145deg, #2f8cff, #0060e6); font: 700 12.5px/1 'Be Vietnam Pro', system-ui, sans-serif; letter-spacing: .01em; }
.cd-mess .cd-ico { background: conic-gradient(from 200deg at 30% 80%, #ff6a5c, #ff3d8b, #a64dff, #2f7bff, #00c6ff, #ff6a5c); }
.cd-call .cd-ico { background: linear-gradient(145deg, #ffe3a1, #e0a640 60%, #a8741f); color: #2a1a05; }
.cd-call::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(243, 199, 107, .7); animation: cdRing 2.4s ease-out infinite; pointer-events: none; }
.cd-call .cd-ico svg { animation: cdShake 2.4s ease-in-out infinite; }
@keyframes cdRing { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@keyframes cdShake { 0%, 60%, 100% { transform: rotate(0); } 64%, 72% { transform: rotate(-14deg); } 68%, 76% { transform: rotate(14deg); } }
.cd-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); white-space: nowrap; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 500;
  color: #f3e7c7; background: rgba(11, 15, 17, .96); border: 1px solid rgba(243, 199, 107, .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
.cd-btn:hover, .cd-btn:focus-visible { transform: translateY(-2px) scale(1.06); border-color: rgba(243, 199, 107, .85); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .85), 0 0 26px -4px rgba(243, 199, 107, .6); outline: none; }
.cd-btn:hover .cd-tip, .cd-btn:focus-visible .cd-tip { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1099px) {
  .contact-dock { right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); gap: 10px; }
  .cd-btn { width: 46px; height: 46px; padding: 3px; }
  .cd-ico svg { width: 20px; height: 20px; }
  .cd-zalo .cd-ico { font-size: 11px; }
  .cd-tip { display: none; }
}
html.reduce-motion .cd-call::after, html.reduce-motion .cd-call .cd-ico svg { animation: none; }

/* ---------- trang chủ: chia sẻ từ khách hàng ---------- */
.story { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; min-height: 440px; padding: clamp(24px, 3.4vw, 48px);
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.story-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.04); }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 8, 10, .9), rgba(6, 8, 10, .6) 45%, rgba(6, 8, 10, .35)), linear-gradient(transparent 55%, rgba(6, 8, 10, .8)); }
.story-text h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; margin-top: 14px; }
.story-text h1 em { font-style: normal; background: linear-gradient(90deg, #ffe7a8, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-text h2 { font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; line-height: 1.3; margin-top: 14px; max-width: 22ch; }
.story-text .lead { margin-top: 14px; max-width: 46ch; color: var(--text-2); font-size: clamp(14px, 1.15vw, 16px); }
.story-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.story-reel { position: relative; min-width: 0; padding: 0 22px 52px; }
.story-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; }
.story-track::-webkit-scrollbar { display: none; }
.story-card { position: relative; aspect-ratio: 3 / 4.3; border-radius: 16px; overflow: hidden; scroll-snap-align: start; padding: 0; cursor: pointer; color: #fff; font: inherit;
  background: #0b0f11; border: 1px solid rgba(243, 199, 107, .45); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .85), 0 0 22px -10px rgba(243, 199, 107, .5);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform .6s ease; }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(6, 8, 10, .88)); pointer-events: none; }
.story-card:hover, .story-card:focus-visible { transform: translateY(-4px); border-color: rgba(243, 199, 107, .9); box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .9), 0 0 30px -6px rgba(243, 199, 107, .6); outline: none; }
.story-card:hover img { transform: scale(1.42); }
.story-play { position: absolute; left: 50%; top: 46%; z-index: 1; width: clamp(48px, 4.4vw, 62px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .78); color: #3b2c12; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); transition: transform .3s, background .3s; }
.story-play svg { width: 42%; height: 42%; margin-left: 8%; }
.story-card.hot .story-play, .story-card:hover .story-play { background: linear-gradient(145deg, #ffe7a8, var(--gold) 55%, #b88332); color: #2a1a05; box-shadow: 0 0 0 6px rgba(243, 199, 107, .2), 0 8px 26px rgba(243, 199, 107, .45); }
.story-card:hover .story-play { transform: translate(-50%, -50%) scale(1.08); }
.story-cap { position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 1; text-align: center; font-size: clamp(12.5px, 1vw, 14px); font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.story-cap a { color: var(--gold); text-decoration: underline; }
.empty-card { cursor: default; } .empty-card img { filter: saturate(.6) brightness(.55); }
.empty-card .story-play { background: rgba(255, 255, 255, .35); }
.story-arrow { position: absolute; top: calc(50% - 26px); z-index: 2; width: 34px; height: 34px; transform: translateY(-50%); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 0; color: #2a1a05; background: linear-gradient(145deg, #ffe7a8, var(--gold)); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s; }
.story-arrow svg { width: 16px; height: 16px; }
.story-arrow.prev { left: -6px; } .story-arrow.next { right: -6px; }
.story-arrow:hover { transform: translateY(-50%) scale(1.1); }
.story-nav { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: flex; gap: 10px; }
.story-nav button { width: 36px; height: 30px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--text); background: rgba(10, 14, 16, .7); border: 1px solid rgba(243, 199, 107, .35); transition: border-color .25s, color .25s; }
.story-nav button:not(:disabled):hover { color: var(--gold); border-color: var(--gold); }
.story-nav button svg { width: 16px; height: 16px; }
#story [data-dir]:disabled { opacity: .35; cursor: default; }
#story.no-scroll .story-arrow, #story.no-scroll .story-nav { display: none; } #story.no-scroll .story-reel { padding-bottom: 0; }
.modal:has(.story-modal) { width: min(920px, 100%); }
.modal:has(.story-modal.tall) { width: min(440px, 100%); }
.modal:has(.story-grid) { width: min(980px, 100%); }
.story-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.story-modal.tall .story-frame { aspect-ratio: 9 / 16; max-height: 72vh; margin: 0 auto; }
.story-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 1099px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-text h2 { max-width: none; }
}
@media (max-width: 699px) {
  .story { padding: 22px 16px; min-height: 0; }
  .story-text h1 br { display: none; }
  .story-text .actions .btn { flex: 1 1 auto; }
  .story-reel { padding: 0 0 46px; }
  .story-track { grid-auto-columns: calc((100% - 14px) / 2); }
  .story-arrow { display: none; }
}

/* ===================== VÒNG QUAY MAY MẮN (vong-quay.html, quản trị) ===================== */
.wh-hero .lead { max-width: 60ch; }
.wh-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.wh-hero-stats span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(6, 8, 10, .55); border: 1px solid rgba(243, 199, 107, .3); font-size: 13px; color: var(--text-2); }
.wh-hero-stats svg { width: 16px; height: 16px; color: var(--gold); }
.wh-hero-stats b { color: var(--gold); font-size: 15px; }
.wh-tabs { width: max-content; max-width: 100%; }
.wh-tabs button { height: 42px; padding: 0 20px; font-size: 14px; }
.wh-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.wh-wheel-card { padding: clamp(16px, 2.4vw, 28px); overflow: hidden; }
.wh-wheel-card .card-head { margin-bottom: 6px; }
.wh-wheel { width: min(100%, 620px); margin: 18px auto 6px; }
.wh-stage { position: relative; width: 100%; aspect-ratio: 1; user-select: none; -webkit-user-select: none; border-radius: 50%; box-shadow: 0 26px 60px -10px rgba(0, 0, 0, .75); }
.wh-stage > * { position: absolute; }
.wh-halo { inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(243, 199, 107, .22) 0 46%, rgba(79, 230, 223, .1) 56%, transparent 70%); pointer-events: none; }
.wh-rot { inset: 0; will-change: transform; }
.wh-face, .wh-rim { inset: 0; width: 100%; height: 100%; display: block; }
.wh-rim { pointer-events: none; }
.wh-t { font-family: var(--sans); font-weight: 700; fill: #fff4dc; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 5px; stroke-linejoin: round; letter-spacing: .01em; }
.wh-tm { font-weight: 500; fill: rgba(255, 244, 220, .6); }
.wh-bulb { animation: wh-blink 1.2s ease-in-out infinite; }
.wh-wheel.spinning .wh-bulb { animation-duration: .36s; }
@keyframes wh-blink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }
.wh-pointer { left: 50%; top: -4.2%; width: 11.5%; transform: translateX(-50%); transform-origin: 50% 27%; z-index: 3; pointer-events: none; }
.wh-pointer svg { width: 100%; display: block; }
.wh-hub { left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 0; padding: 0; z-index: 2; cursor: pointer;
  background: conic-gradient(from 210deg, #fff1c4, #b9822f, #ffe39a, #8a5a17, #f6d488, #a3701f, #fff1c4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 4px rgba(10, 14, 16, .9), 0 0 40px -6px var(--gold-glow); transition: transform .2s; }
.wh-hub-in { position: absolute; inset: 7%; border-radius: 50%; display: grid; place-content: center; justify-items: center; gap: 4%; background: radial-gradient(circle at 50% 35%, #1b2428, #080c0e 70%); box-shadow: inset 0 0 0 2px rgba(255, 231, 163, .35), inset 0 -10px 24px rgba(0, 0, 0, .6); }
.wh-hub-in img { width: 64%; height: auto; margin: 0 auto; }
.wh-hub-in b { font-size: clamp(13px, 2.1vw, 22px); letter-spacing: .18em; padding-left: .18em; color: var(--gold); line-height: 1; text-shadow: 0 0 12px rgba(243, 199, 107, .6); }
.wh-hub:hover { transform: translate(-50%, -50%) scale(1.04); }
.wh-hub:active { transform: translate(-50%, -50%) scale(.97); }
.wh-hub:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.wh-hub[disabled] { cursor: not-allowed; }
.wh-hub[disabled] .wh-hub-in b { color: var(--text-3); text-shadow: none; }
.wh-hub.wh-armed::after { content: ""; position: absolute; inset: -9%; border-radius: 50%; border: 2px solid rgba(243, 199, 107, .7); animation: wh-pulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes wh-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.wh-wheel.spinning .wh-hub { cursor: progress; }
.wh-status { text-align: center; font-size: 14px; color: var(--text-2); margin-top: 12px; min-height: 1.6em; }
.wh-status.ready { color: var(--text); }
.wh-status.run { color: var(--cyan); }
.wh-sound { margin-left: auto; }
.wh-code { display: flex; gap: 10px; }
.wh-code .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 16px; }
.wh-code .input::placeholder { letter-spacing: .12em; }
.wh-msg { font-size: 13px; min-height: 1.4em; margin-top: 8px; }
.wh-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 12px; border: 1px dashed rgba(243, 199, 107, .35); font-size: 13.5px; color: var(--text-2); }
.wh-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; }
.wh-codes { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 2px; }
.wh-cd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .22); }
.wh-cd b { display: block; font-size: 14.5px; }
.wh-cd small { display: block; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-cd.new { border-color: rgba(243, 199, 107, .3); }
.wh-cd.new b { color: var(--gold); }
.wh-cd.on { border-color: var(--gold); background: rgba(243, 199, 107, .08); box-shadow: 0 0 20px -8px var(--gold-glow); }
.wh-cd.used { opacity: .78; }
.wh-used { display: grid; justify-items: end; gap: 2px; text-align: right; min-width: 0; max-width: 50%; }
.wh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wh-steps li { display: flex; gap: 12px; align-items: flex-start; }
.wh-steps li > span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #1d1507; background: linear-gradient(135deg, #ffe09a, var(--gold) 50%, var(--gold-2)); }
.wh-steps b { display: block; font-size: 14px; }
.wh-steps small { display: block; color: var(--text-3); font-size: 12.5px; }
.wh-ref { display: flex; gap: 8px; margin-top: 14px; }
.wh-ref .input { flex: 1; min-width: 0; height: 36px; font-size: 12.5px; }
.wh-plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wh-pi { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(0, 0, 0, .2)); }
.wh-pi b { font-size: 13.5px; line-height: 1.35; }
.wh-pi small { grid-column: 2; color: var(--text-3); font-size: 12px; }
.wh-pdot { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.wh-recent, .wh-wins { display: grid; gap: 8px; }
.wh-ri { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.wh-ri:last-child { border-bottom: 0; }
.wh-ri .avatar { width: 34px; height: 34px; font-size: 12px; flex: none; }
.wh-ri b { display: block; font-size: 14px; }
.wh-ri small { display: block; font-size: 12.5px; color: var(--text-3); }
.wh-ri time { margin-left: auto; font-size: 12px; white-space: nowrap; }
.wh-now { margin: 14px auto 0; max-width: 520px; text-align: center; padding: 12px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(243, 199, 107, .1), rgba(0, 0, 0, .25)); border: 1px solid rgba(243, 199, 107, .35); }
.wh-now small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.wh-now b { display: block; font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff4dc; }
.wh-evinfo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wh-evinfo > div { padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line-2); text-align: center; }
.wh-evinfo small { display: block; font-size: 11.5px; color: var(--text-3); }
.wh-evinfo b { font-size: 17px; color: var(--gold); }
.wh-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wh-slots .chip { height: 30px; display: inline-flex; align-items: center; font-size: 12.5px; }
.wh-qtabs button { flex: 1; }
.wh-wins { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.wh-wins li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.wh-wins b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-wins small { display: block; font-size: 12.5px; }
.wh-wins time { margin-left: auto; font-size: 12px; }
.wh-wn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid rgba(243, 199, 107, .45); background: rgba(243, 199, 107, .08); }
.wh-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 96; pointer-events: none; }
.wh-win { text-align: center; padding: 8px 4px 0; }
.wh-win-ico { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #1d1507; background: radial-gradient(circle at 35% 30%, #fff3c8, var(--gold) 55%, var(--gold-2)); box-shadow: 0 0 40px -4px var(--gold-glow); animation: wh-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.wh-win-ico svg { width: 36px; height: 36px; }
.wh-win h2 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; margin-top: 6px; background: linear-gradient(90deg, #ffe7a8, var(--gold), #9ff3ee); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
@keyframes wh-pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.wh-fs-on .contact-dock { display: none; }
body.wh-fs-on #whEv { position: fixed; inset: 0; z-index: 90; margin: 0; padding: 18px; overflow-y: auto; background: radial-gradient(ellipse at 30% 40%, #10181b, #06080a 70%); grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); }
body.wh-fs-on #whEv .wh-wheel { width: min(100%, calc(100vh - 270px), 860px); margin-top: 8px; }
html.reduce-motion .wh-bulb { animation-duration: 1.2s !important; }
@media (max-width: 1099px) {
  .wh-grid, body.wh-fs-on #whEv { grid-template-columns: minmax(0, 1fr); }
  body.wh-fs-on #whEv .wh-wheel { width: min(100%, calc(100vh - 230px)); }
}
@media (max-width: 699px) {
  .wh-tabs { width: 100%; }
  .wh-tabs button { flex: 1; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
  .wh-wheel { margin-top: 22px; }
  .wh-plist { grid-template-columns: minmax(0, 1fr); }
  .wh-hub-in b { font-size: 12px; letter-spacing: .12em; }
  .wh-code .btn { padding: 0 14px; }
  body.wh-fs-on #whEv { padding: 10px; }
}
/* quản trị vòng quay */
.wh-adm-tabs { margin-bottom: 16px; }
.wh-mini { width: 220px; max-width: 100%; margin: 0 auto; display: block; }
.wh-sw { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); flex: none; display: inline-block; vertical-align: middle; }
.wh-color { width: 46px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); cursor: pointer; }
.wh-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; min-width: 70px; }
.wh-bar i { display: block; height: 100%; border-radius: 6px; }
.wh-law { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .07); color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.wh-law svg { color: var(--amber); margin-top: 2px; }
.wh-acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.wh-evcard { display: grid; gap: 10px; }
.modal.wh-wide { width: min(760px, 100%); }
.wh-adm-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.wh-pgrid { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }
.wh-ptbl th { white-space: nowrap; }
.wh-ptbl .who > div { min-width: 190px; }
@media (max-width: 1299px) { .wh-pgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) { .wh-fs-t { display: none; } #whFs { width: 36px; padding: 0; } }
.choice label.off { opacity: .65; cursor: default; }

/* menu tài khoản ở góc trên */
.user-btn .avatar { width: 28px; height: 28px; font-size: 11px; }
.user-btn.on { border-color: rgba(243, 199, 107, .5); }
.user-pop { position: fixed; z-index: 10000; width: 250px; padding: 8px; border-radius: 16px; background: #0e1517; border: 1px solid rgba(243, 199, 107, .35); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 24px rgba(243, 199, 107, .08); animation: upIn .16s ease-out; }
@keyframes upIn { from { opacity: 0; transform: translateY(-4px); } }
.user-pop .up-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.user-pop .up-head > div { display: grid; min-width: 0; } .user-pop .up-head b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop .up-head small { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text); font-size: 14px; }
.user-pop a svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.user-pop a:hover, .user-pop a:focus-visible { background: rgba(243, 199, 107, .08); outline: none; }
.user-pop a[data-user-act="logout"] svg, .user-pop a[data-user-act="logout"] { color: #ff8b8b; }
.user-pop .up-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* icon thanh bên nhấp nháy đỏ khi vào trang (khoảng 7 giây, lần lượt từng icon) */
@keyframes navAttn {
  0%, 100% { color: inherit; filter: none; transform: none; }
  45% { color: #ff4d4d; filter: drop-shadow(0 0 6px rgba(255, 60, 60, .95)) drop-shadow(0 0 14px rgba(255, 60, 60, .55)); transform: scale(1.18); }
}
@keyframes navAttnBg { 0%, 100% { box-shadow: none; } 45% { box-shadow: inset 0 0 0 1px rgba(255, 77, 77, .55), 0 0 16px rgba(255, 60, 60, .35); } }
.nav-attn .side .nav a svg, .nav-attn .tabbar a svg { animation: navAttn 1.1s ease-in-out calc(var(--i, 0) * .12s) 5; }
.nav-attn .side .nav a, .nav-attn .tabbar a { animation: navAttnBg 1.1s ease-in-out calc(var(--i, 0) * .12s) 5; }

/* icon hộp quà (Vòng quay) luôn nhấp nháy để thu hút */
.gift-btn { display: none; }
@keyframes giftBlink {
  0%, 100% { color: #ff4d4d; filter: drop-shadow(0 0 4px rgba(255, 60, 60, .8)); transform: scale(1); }
  50% { color: #ffd166; filter: drop-shadow(0 0 8px rgba(255, 60, 60, 1)) drop-shadow(0 0 16px rgba(255, 120, 60, .6)); transform: scale(1.2) rotate(-8deg); }
}
.gift-blink svg, .nav-attn .side .nav a.gift-blink svg { animation: giftBlink 1s ease-in-out infinite; }
.gift-blink > span:first-of-type { color: #ff6b6b; }
html.reduce-motion .gift-blink svg { animation: none !important; color: #ff4d4d; }
@media (max-width: 1099px) { .gift-btn { display: grid; } }

/* ---------- đại lý uy tín ---------- */
.dealer-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px * 3) / 4); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; }
.dealer-row::-webkit-scrollbar { display: none; }
.dealer-row > * { scroll-snap-align: start; }
.dealer-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dealer-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
.dealer-top { display: flex; gap: 12px; align-items: center; }
.dealer-ph { width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden; display: grid; place-items: center; font-family: var(--display); font-size: 22px; color: var(--gold); background: radial-gradient(circle at 30% 25%, rgba(243, 199, 107, .25), rgba(243, 199, 107, .05)); border: 1px solid rgba(243, 199, 107, .4); box-shadow: 0 0 18px -6px var(--gold-glow); }
.dealer-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dealer-id { min-width: 0; display: grid; gap: 3px; }
.dealer-id h3 { font-size: 16px; line-height: 1.25; }
.dealer-id small { display: flex; gap: 5px; align-items: center; color: var(--text-3); font-size: 12px; }
.dealer-id small svg { width: 13px; height: 13px; color: var(--cyan); }
.dealer-badge { display: inline-flex; gap: 5px; align-items: center; width: max-content; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.dealer-badge svg { width: 12px; height: 12px; }
.dealer-note { font-size: 13.5px; color: var(--text-2); }
.dealer-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.dealer-line svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--text-3); }
.dealer-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.dealer-acts .btn svg { width: 14px; height: 14px; }
@media (max-width: 1280px) { .dealer-row { grid-auto-columns: calc((100% - 14px * 2) / 3); } }
@media (max-width: 899px) { .dealer-row { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (max-width: 599px) { .dealer-row { grid-auto-columns: 82%; } }
@media (max-width: 699px) { .dl-nav { display: flex; } .dl-nav[hidden] { display: none; } }
.dealer-code { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.dealer-code b { color: var(--cyan); letter-spacing: .08em; font-size: 13.5px; }
.dealer-copy { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); padding: 0; }
.dealer-copy:hover { color: var(--gold); border-color: var(--gold); }
.dealer-copy svg { width: 13px; height: 13px; }
.dealer-reg { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gold); padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(243, 199, 107, .4); background: rgba(243, 199, 107, .05); }
.dealer-reg:hover { background: rgba(243, 199, 107, .12); }
.dealer-reg svg { width: 14px; height: 14px; flex: none; }
/* ảnh, chú thích, liên kết trong bài viết kiến thức */
.prose figure { margin: 22px 0; }
.prose img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 14px; border: 1px solid var(--line-2); }
.prose figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--text-3); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose hr { border: 0; height: 1px; margin: 26px 0; background: linear-gradient(90deg, transparent, rgba(243, 199, 107, .45), transparent); }

/* đổi sản phẩm (quản trị) */
.tabs button:disabled { opacity: .4; cursor: not-allowed; }
.xlist { display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.xo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); cursor: pointer; font-size: 14px; }
.xo small { display: block; font-size: 12px; }
.xo:has(input:checked) { border-color: rgba(243, 199, 107, .55); background: rgba(243, 199, 107, .08); }
.foot .foot-social { display: flex; gap: 8px; margin-top: 8px; }
.foot .foot-social a { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); }
.foot .foot-social a:hover { border-color: rgba(243, 199, 107, .5); }
.foot .foot-social svg { width: 16px; height: 16px; }
.p-card.sold-out .p-img > img, .p-card.sold-out .p-img > svg { filter: grayscale(.75) brightness(.7); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* trang chủ: thành viên mới */
.new-mem { display: grid; gap: 4px; max-height: 330px; overflow: auto; scrollbar-width: thin; }
.nm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.nm-row:last-child { border-bottom: 0; }
.nm-row b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-row small { font-size: 12px; color: var(--text-3); }
.pwa-steps { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.saved-addr { margin-bottom: 14px; }
/* thanh trên cùng: nút Đăng ký CTV (HOT) và lời nhắc cho khách lần đầu */
.ctv-cta { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 8px; border-radius: 14px; flex: none; color: #1d1507;
  background: linear-gradient(135deg, #ffe09a, var(--gold) 45%, var(--gold-2)); box-shadow: 0 0 0 1px rgba(255, 224, 154, .5), 0 0 22px -4px var(--gold-glow); animation: ctvPulse 2.2s ease-in-out infinite; overflow: hidden; }
.ctv-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: ctvShine 3.2s ease-in-out infinite; pointer-events: none; }
.ctv-cta:hover { filter: brightness(1.06); }
.ctv-hot { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; padding: 4px 7px; border-radius: 8px; background: linear-gradient(135deg, #ff5a5a, #ff2d55); box-shadow: 0 0 12px rgba(255, 60, 80, .7); animation: ctvHot 1s ease-in-out infinite; }
.ctv-txt { display: grid; line-height: 1.15; }
.ctv-txt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ctv-txt small { font-size: 11px; font-weight: 600; opacity: .75; white-space: nowrap; }
.ctv-short { display: none; font-weight: 800; font-size: 13px; }
@keyframes ctvPulse { 50% { box-shadow: 0 0 0 1px rgba(255, 224, 154, .7), 0 0 34px 2px var(--gold-glow); } }
@keyframes ctvShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes ctvHot { 50% { transform: scale(1.12); background: linear-gradient(135deg, #ff8a5a, #ff2d55); } }
.ctv-tip { position: fixed; z-index: 60; width: min(320px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: 16px; background: rgba(14, 20, 23, .97); border: 1px solid rgba(243, 199, 107, .55); box-shadow: 0 0 30px -6px var(--gold-glow), var(--shadow); animation: tipIn .45s cubic-bezier(.2, .9, .3, 1.3); }
.ctv-tip::before { content: ""; position: absolute; top: -7px; left: calc(var(--ax, 50%) - 7px); width: 12px; height: 12px; transform: rotate(45deg); background: inherit; border-left: 1px solid rgba(243, 199, 107, .55); border-top: 1px solid rgba(243, 199, 107, .55); }
.ctv-tip b { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 14px; }
.ctv-tip b svg { width: 16px; height: 16px; }
.ctv-tip p { font-size: 13px; color: var(--text-2); margin: 6px 0 12px; line-height: 1.5; }
.ctv-tip .ctv-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; }
.ctv-tip .ctv-x svg { width: 14px; height: 14px; }
.ctv-tip.out { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes tipIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@media (max-width: 1280px) { .ctv-txt small { display: none; } }
@media (max-width: 760px) { .ctv-cta { height: 40px; padding: 0 10px 0 6px; gap: 6px; border-radius: 12px; } .ctv-txt { display: none; } .ctv-short { display: inline; } .ctv-hot { font-size: 10px; padding: 3px 5px; } }
@media (prefers-reduced-motion: reduce) { html.reduce-motion .ctv-cta, html.reduce-motion .ctv-cta::after, html.reduce-motion .ctv-hot { animation: none; } }

/* mã QR chuyển khoản */
.qr-pay { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.qr-pay img { width: 200px; height: auto; border-radius: 12px; background: #fff; padding: 6px; }
.qr-pay small { font-size: 12px; color: var(--muted, #9aa7ab); text-align: center; }

/* chờ thanh toán: vòng xoay khi chờ, dấu tích và pháo giấy khi đã nhận tiền */
.pay-wait { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(243,199,107,.35); background: rgba(243,199,107,.07); text-align: left; overflow: visible; }
.pay-wait b { display: block; font-size: 14.5px; }
.pay-wait > div { flex: 1; min-width: 0; }
.pay-wait #pwClaim { flex: none; }
@media (max-width: 560px) { .pay-wait { flex-wrap: wrap; } .pay-wait #pwClaim { width: 100%; } }
.pay-wait small { display: block; color: var(--muted, #9aa7ab); font-size: 12.5px; margin-top: 2px; }
.pw-ring { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(243,199,107,.2); border-top-color: #f3c76b; animation: pw-spin 1s linear infinite; }
.pw-ring i { position: absolute; inset: 7px; border-radius: 50%; background: #f3c76b; animation: pw-pulse 1.6s ease-in-out infinite; }
.pay-wait.paid { border-color: rgba(69,224,143,.5); background: rgba(69,224,143,.1); animation: pw-pop .5s ease; }
.pw-ok { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #45e08f; color: #08140d; animation: pw-pop .5s ease; }
.pw-ok .i { width: 22px; height: 22px; stroke-width: 2.6; }
.pw-dot { position: absolute; left: 30px; top: 50%; width: 8px; height: 8px; border-radius: 2px; background: var(--c); opacity: 0; animation: pw-burst 1.1s ease-out forwards; }
@keyframes pw-spin { to { transform: rotate(360deg); } }
@keyframes pw-pulse { 0%, 100% { transform: scale(.55); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes pw-pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes pw-burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(220deg); } }
html.reduce-motion .pw-ring, html.reduce-motion .pw-ring i, html.reduce-motion .pw-dot { animation: none; }

.pw-bill { margin-top: 10px; padding: 12px; border-radius: 14px; border: 1px dashed rgba(243,199,107,.45); background: rgba(0,0,0,.18); text-align: left; animation: pw-pop .3s ease; }
.pw-pick { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px; border-radius: 10px; }
.pw-pick:hover { background: rgba(243,199,107,.06); }
.pw-pick > .i { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(243,199,107,.14); color: #f3c76b; }
.pw-pick b { display: block; font-size: 14px; }
.pw-pick small { display: block; color: var(--muted, #9aa7ab); font-size: 12.5px; }
.pw-pick img { display: block; max-width: 100%; max-height: 320px; margin: auto; border-radius: 10px; }
.pw-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.pts-pay { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(79,230,223,.3); background: rgba(79,230,223,.06); text-align: left; }
.pts-pay > div { flex: 1; min-width: 0; }
.pts-pay b { font-size: 14px; }
.pts-pay small { display: block; color: var(--muted, #9aa7ab); font-size: 12.5px; margin-top: 2px; }
.pts-pay small b { font-size: inherit; }
.pts-pay #ptBuy { flex: none; }
@media (max-width: 560px) { .pts-pay { flex-wrap: wrap; } .pts-pay #ptBuy { width: 100%; } }
