:root {
  /* original: dark forest green + gold */
  --bg: #07120c; --bg2: #0b1a12; --surface: #0f2118; --surface2: #142a1f;
  --line: color-mix(in srgb, var(--accent) 13%, transparent); --line2: rgba(243, 239, 230, 0.08);
  --text: #f3efe6; --muted: #9aa69d; --faint: #6b786f;
  --gold: #e8c46a; --accent: #e8c46a; --gold2: #ae9366; --gold-ink: #1d1708;
  --green: #4fb37a; --red: #e5654f; --amber: #e9a23b;
  --ok-fg: #7fd3a1; --bad-fg: #ff9c88; --note-fg: #e9dcb8;
  --btn-bg: linear-gradient(180deg, #f0cf7c, #d9b25a); --btn-ink: #1d1708;
  --topbar: rgba(7, 18, 12, 0.82);
  --page-bg: radial-gradient(1200px 600px at 80% -10%, rgba(174,147,102,0.12), transparent 60%),
             radial-gradient(900px 500px at -10% 10%, rgba(15,40,24,0.9), transparent 60%), #07120c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
/* A. Sáng vàng đồng: nền kem sáng, chữ đen rõ, vàng đồng đậm làm điểm nhấn */
html[data-ui="sang"] {
  --bg: #f7f3ea; --bg2: #ffffff; --surface: #ffffff; --surface2: #f4eddd;
  --line2: rgba(28, 24, 16, 0.12); --text: #1c1810; --muted: #5a5243; --faint: #8a8170;
  --gold: #a56f0c; --accent: #e3a72b; --gold2: #c99a3f; --gold-ink: #2a1d04;
  --green: #138a4c; --red: #cf3b2a; --ok-fg: #0f7a41; --bad-fg: #c0321f; --note-fg: #6b4a07;
  --btn-bg: linear-gradient(180deg, #ffd166, #f2a81d); --btn-ink: #2a1d04;
  --topbar: rgba(255, 255, 255, 0.9);
  --page-bg: radial-gradient(1100px 520px at 85% -10%, rgba(242,168,29,0.16), transparent 60%), #f7f3ea;
  --shadow: 0 10px 28px rgba(60, 45, 10, 0.14);
}
/* B. Tối tương phản cao: nền than đậm, chữ trắng, vàng hổ phách rực */
html[data-ui="den"] {
  --bg: #0b0e13; --bg2: #11161e; --surface: #161c26; --surface2: #1e2633;
  --line2: rgba(255, 255, 255, 0.1); --text: #ffffff; --muted: #c2cad6; --faint: #8893a3;
  --gold: #ffc23d; --accent: #ffb000; --gold2: #ffcf6b; --gold-ink: #1f1500;
  --green: #22c55e; --red: #ff5a4a; --ok-fg: #4ade80; --bad-fg: #ff8a7a; --note-fg: #ffe1a3;
  --btn-bg: linear-gradient(180deg, #ffd25e, #ffaa00); --btn-ink: #1f1500;
  --topbar: rgba(11, 14, 19, 0.88);
  --page-bg: radial-gradient(1000px 520px at 85% -10%, rgba(255,176,0,0.14), transparent 60%), #0b0e13;
}
/* C. Trắng xanh Huy Phát: nền trắng, nút xanh lá đậm, điểm vàng */
html[data-ui="xanh"] {
  --bg: #f3f7f4; --bg2: #ffffff; --surface: #ffffff; --surface2: #e9f3ed;
  --line2: rgba(12, 40, 24, 0.12); --text: #0f2418; --muted: #4b5f53; --faint: #7f9186;
  --gold: #0e7a44; --accent: #12a35b; --gold2: #d9a521; --gold-ink: #ffffff;
  --green: #0e8a4b; --red: #cf3b2a; --ok-fg: #0b7a3f; --bad-fg: #c0321f; --note-fg: #0d5b33;
  --btn-bg: linear-gradient(180deg, #19b365, #0e8a4b); --btn-ink: #ffffff;
  --topbar: rgba(255, 255, 255, 0.92);
  --page-bg: radial-gradient(1100px 520px at 85% -10%, rgba(18,163,91,0.12), transparent 60%), #f3f7f4;
  --shadow: 0 10px 28px rgba(10, 50, 28, 0.12);
}
html[data-ui="sang"] .mark, html[data-ui="xanh"] .mark { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
html[data-ui="xanh"] .mark { background: linear-gradient(145deg, #19b365, #0e7a44); color: #fff; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Be Vietnam Pro", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 28px;
  background: var(--topbar);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #f2d48a, #ae9366 70%);
  color: var(--gold-ink); font-weight: 900; font-style: italic; font-size: 20px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 25%, transparent);
}
.brand b { display: block; font-weight: 800; letter-spacing: 0.2px; font-size: 17px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; letter-spacing: 1.4px; text-transform: uppercase; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.on { color: var(--text); background: var(--surface2); }
.chip-disk { font-size: 12.5px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line2); border-radius: 999px; white-space: nowrap; }
.chip-disk.low { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--surface); font-weight: 700; white-space: nowrap;
  transition: transform 0.08s, background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface2); border-color: var(--line); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--btn-bg); color: var(--btn-ink); border: 0; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad-fg); border-color: color-mix(in srgb, var(--red) 35%, transparent); background: transparent; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn.sm { padding: 7px 12px; font-size: 13.5px; border-radius: 8px; }

/* ---------- layout ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 28px 28px 80px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 26px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1 { font-size: 40px; line-height: 1.08; margin: 6px 0 0; font-weight: 800; letter-spacing: -0.5px; }
h1 em { font-style: italic; font-weight: 900; color: var(--gold); }
h2 { font-size: 20px; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); margin: 8px 0 0; max-width: 620px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.section { margin-top: 34px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- album ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.filter:hover { color: var(--text); }
.filter.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter .n { opacity: 0.6; margin-left: 4px; font-weight: 500; }
.search { margin-left: auto; min-width: 240px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); outline: none; }
.search:focus { border-color: var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px 18px; }
.card { display: block; }
.thumb {
  position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line2);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); color: #fff;
}
.badge.dur { right: 8px; bottom: 8px; }
.badge.sty { left: 8px; top: 8px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.card h3 { font-size: 14.5px; line-height: 1.35; margin: 10px 2px 2px; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12.5px; color: var(--faint); margin: 0 2px; }
.empty { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }

/* ---------- job strip ---------- */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.jobcard { display: block; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line2); }
.jobcard:hover { border-color: var(--line); }
.jobcard .t { font-weight: 700; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.jobcard .t span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobcard .last { color: var(--muted); font-size: 13.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 99px; transition: width 0.5s; }
.bar.indet i { width: 30% !important; animation: slide 1.6s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; letter-spacing: 0.2px; }
.pill.running { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--gold); }
.pill.queued { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); }
.pill.done { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--ok-fg); }
.pill.failed, .pill.interrupted { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--bad-fg); }
.pill.cancelled { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--faint); }

/* ---------- new video ---------- */
.steps { display: grid; gap: 18px; max-width: 980px; }
.panel { background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 22px 24px; }
.panel h2 { display: flex; align-items: center; gap: 12px; }
.num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--surface2); color: var(--gold); border: 1px solid var(--line); flex: none; }
.drop {
  display: block;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 14px; padding: 34px 20px; text-align: center;
  background: color-mix(in srgb, var(--accent) 3%, transparent); transition: background 0.15s, border-color 0.15s; cursor: pointer;
}
.drop:hover, .drop.over { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: var(--gold); }
.drop b { font-size: 17px; display: block; margin-bottom: 4px; }
.drop > span { display: block; }
.filebox { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); }
.filebox .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; color: var(--gold); flex: none; }
.filebox .grow { flex: 1; min-width: 0; }
.filebox .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.style {
  text-align: left; padding: 16px; border-radius: 14px; background: var(--bg2); border: 1.5px solid var(--line2);
  transition: border-color 0.15s, background 0.15s;
}
.style:hover { border-color: var(--line); }
.style.on { border-color: var(--gold); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.style .sw { display: flex; gap: 4px; margin-bottom: 12px; }
.style .sw i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.style b { display: block; font-size: 15.5px; }
.style p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 13.5px; }
.field .hint { color: var(--faint); font-size: 12.5px; }
.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg2); outline: none; resize: vertical;
}
.input:focus { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.seg { display: inline-flex; padding: 4px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line2); flex-wrap: wrap; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.note { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, transparent); border: 1px solid var(--line); color: var(--note-fg); font-size: 13.5px; }
.warn { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--red) 8%, transparent); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); color: var(--bad-fg); font-size: 13.5px; }

/* ---------- job page ---------- */
.jobhead { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.stepper { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; margin: 22px 0 8px; }
.stepper div { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.stepper div.done { background: var(--gold2); }
.stepper div.cur { background: var(--gold); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.stagename { color: var(--gold); font-weight: 700; font-size: 14px; }
.bigmsg { font-size: 19px; font-weight: 600; margin: 18px 0 6px; line-height: 1.45; }
.log { display: grid; gap: 2px; margin-top: 10px; max-height: 520px; overflow: auto; padding-right: 6px; }
.log .say { padding: 10px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); margin: 6px 0; white-space: pre-wrap; }
.log .tool, .log .info { font-size: 12.5px; color: var(--faint); padding: 1px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, Menlo, monospace; }
.log time { color: var(--faint); font-size: 11.5px; margin-right: 8px; font-family: ui-monospace, Menlo, monospace; }
.report { white-space: pre-wrap; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 16px 18px; font-size: 14px; max-height: 560px; overflow: auto; }
details summary { cursor: pointer; color: var(--muted); font-weight: 600; margin: 10px 0; }

/* ---------- watch page ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.stage { background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 18px 20px 22px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line2); margin: 14px 0 18px; }
.tabs button { background: none; border: 0; padding: 10px 14px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--gold); }
.players { display: flex; gap: 18px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.player { display: grid; gap: 8px; justify-items: center; }
.player video, .player img { height: min(70vh, 720px); aspect-ratio: 9 / 16; background: #000; border-radius: 12px; object-fit: contain; display: block; max-width: 100%; }
.player.src video { aspect-ratio: auto; max-width: 100%; }
.player .cap { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hookbox { margin: 18px 0 4px; }
.hookbox .l1 { font-weight: 700; font-style: italic; color: var(--muted); }
.hookbox .l2 { font-weight: 900; font-style: italic; font-size: 24px; line-height: 1.12; text-transform: uppercase; }
.hookbox .l2.g { color: var(--gold); }
.facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fact { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line2); color: var(--muted); }
.side h2 { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.side .list { display: grid; gap: 4px; max-height: calc(100vh - 160px); overflow: auto; padding-right: 4px; }
.side a { display: flex; gap: 12px; align-items: center; padding: 7px; border-radius: 10px; }
.side a:hover { background: var(--surface); }
.side a.on { background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.side img { width: 48px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: var(--surface); flex: none; }
.side .tt { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side .mm { font-size: 11.5px; color: var(--faint); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }
.quick button { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--muted); }
.quick button:hover { color: var(--text); border-color: var(--line); }
.hookopts { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); z-index: 50; }

@media (max-width: 980px) {
  .watch { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(11, 1fr); }
}
@media (max-width: 640px) {
  .top { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .brand small { display: none; }
  main { padding: 18px 16px 60px; }
  h1 { font-size: 30px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .search { min-width: 0; width: 100%; margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .chip-disk { display: none; }
  .player video, .player img { height: auto; width: 100%; }
}

/* ================= HPACUT additions ================= */
.notice { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); border-bottom: 1px solid var(--line); color: var(--note-fg); padding: 9px 28px; font-size: 13.5px; text-align: center; }
.notice.red { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--bad-fg); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.notice a { color: var(--gold); font-weight: 700; text-decoration: underline; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.user-chip .av { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; color: var(--gold); font-weight: 800; }
.menu { position: relative; }
.menu .dd { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; z-index: 30; }
.menu.open .dd { display: block; }
.dd a, .dd button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; background: none; border: 0; color: var(--text); font-weight: 600; font-size: 14px; }
.dd a:hover, .dd button:hover { background: var(--surface2); }
.dd hr { border: 0; border-top: 1px solid var(--line2); margin: 6px 0; }

/* auth */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 30px 16px; }
.authbox { width: 100%; max-width: 440px; }
.authbox .panel { padding: 28px; }
.authbox h1 { font-size: 30px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--gold); }
.err { color: var(--bad-fg); font-size: 13.5px; min-height: 18px; margin: 8px 0 0; }
.linkbtn { background: none; border: 0; color: var(--gold); font-weight: 700; padding: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }
.plan { padding: 24px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line2); display: grid; gap: 10px; align-content: start; }
.plan.best { border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), var(--surface) 60%); }
.plan .price { font-size: 32px; font-weight: 900; letter-spacing: -.5px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan ul { margin: 4px 0 8px; padding-left: 18px; color: var(--muted); font-size: 14px; }
.payrow { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.payrow img { width: 100%; border-radius: 14px; background: #fff; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--bg2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; color: var(--gold); }

/* face */
.cam { position: relative; width: 100%; max-width: 420px; aspect-ratio: 3/4; background: #000; border-radius: 16px; overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .oval { position: absolute; inset: 12% 18% 18%; border: 3px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 50%; pointer-events: none; }
.shots { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shots img { width: 76px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.facegrid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 28px; }

/* topic + theme pickers */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.topic { text-align: left; padding: 14px 15px; border-radius: 12px; background: var(--bg2); border: 1.5px solid var(--line2); }
.topic:hover { border-color: var(--line); }
.topic.on { border-color: var(--gold); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.topic b { display: block; font-size: 14.5px; }
.topic p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.theme { background: none; border: 0; padding: 0; text-align: left; color: var(--text); }
.tprev { position: relative; aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; border: 2px solid var(--line2); background: #3a3f44; transition: border-color .15s, transform .15s; }
.theme:hover .tprev { transform: translateY(-2px); }
.theme.on .tprev { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.tprev .bg { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 20%, #c9c2b6 0%, #8f8a82 45%, #57534e 100%); }
.tprev svg.person { position: absolute; left: 4%; top: 13%; width: 92%; opacity: .95; }
.tprev .fade { position: absolute; inset: 0; }
.tprev .hook { position: absolute; left: 8%; right: 8%; top: 52%; line-height: 1.02; }
.tprev .hook .s { font-size: 9px; font-weight: 700; }
.tprev .hook .b { font-size: 17px; font-weight: 900; }
.tprev .cap { position: absolute; left: 6%; right: 6%; bottom: 9%; text-align: center; font-size: 9.5px; font-weight: 700; line-height: 1.3; }
.tprev .cap span.box { padding: 2px 5px; border-radius: 4px; }
.theme .nm { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; font-weight: 700; font-size: 14px; }
.theme .nm small { color: var(--faint); font-weight: 600; }
.theme .tg { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.sugg { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .4px; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.swatches button.on { border-color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.toggle input { width: 38px; height: 22px; appearance: none; background: color-mix(in srgb, var(--text) 12%, transparent); border-radius: 99px; position: relative; cursor: pointer; transition: background .15s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked { background: var(--gold2); }
.toggle input:checked::after { left: 19px; }
.facestat { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 13.5px; }
.facestat.ok { color: var(--ok-fg); } .facestat.fail { color: var(--bad-fg); } .facestat.wait { color: var(--muted); }
.block { padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), var(--surface)); max-width: 640px; }
.block h2 { margin-bottom: 6px; }

/* watch page extras */
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tagrow span { font-size: 12px; color: var(--muted); }
.tagrow span + span::before { content: "·"; margin-right: 6px; color: var(--faint); }
.subnav { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: 14px; }

/* admin */
.adm { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
.admnav { display: grid; gap: 2px; align-content: start; position: sticky; top: 90px; }
.admnav a { padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.admnav a:hover { background: var(--surface); color: var(--text); }
.admnav a.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.admnav .cnt { background: var(--gold); color: var(--gold-ink); border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line2); }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: color-mix(in srgb, var(--text) 2%, transparent); }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; }
.facephoto { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; }
.colorin { display: flex; gap: 8px; align-items: center; }
.colorin input[type=color] { width: 40px; height: 34px; border: 0; background: none; padding: 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { width: 100%; max-width: 760px; max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }

@media (max-width: 980px) {
  .adm { grid-template-columns: 1fr; }
  .admnav { position: static; display: flex; flex-wrap: wrap; }
  .payrow, .facegrid { grid-template-columns: 1fr; }
}

/* ================= HPA · Warm Film Story (chị Long's chosen look, 2026-10-22) ================= */
.brand b i { font-style: normal; color: var(--gold); }
.hero .script, .steps4 { display: none; }
html[data-ui="phim"] {
  --bg: #f4ece0; --bg2: #fffcf7; --surface: #fffaf3; --surface2: #f1e6d6;
  --line: rgba(126, 31, 44, 0.22); --line2: rgba(60, 38, 24, 0.14);
  --text: #261a13; --muted: #67574b; --faint: #978778;
  --gold: #7e1f2c; --accent: #9b2a39; --gold2: #b98a5a; --gold-ink: #ffffff;
  --green: #2f7a4d; --red: #b3261e; --ok-fg: #276b42; --bad-fg: #a8261d; --note-fg: #5e1723;
  --btn-bg: #7e1f2c; --btn-ink: #ffffff;
  --topbar: rgba(251, 246, 238, 0.94);
  --page-bg: #f4ece0;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(54, 32, 18, 0.16);
}
html[data-ui="phim"] body { font-family: "Be Vietnam Pro", -apple-system, "Helvetica Neue", Arial, sans-serif; }
html[data-ui="phim"] .top { border-bottom: 1px solid rgba(60, 38, 24, 0.12); }
html[data-ui="phim"] .mark { display: none; }
html[data-ui="phim"] .brand b { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; color: #261a13; }
html[data-ui="phim"] .brand small { letter-spacing: 2.4px; font-size: 10.5px; color: #67574b; }
html[data-ui="phim"] .nav a { border-radius: 0; padding: 8px 12px; color: #3b2c22; }
html[data-ui="phim"] .nav a:hover { background: none; color: var(--gold); }
html[data-ui="phim"] .nav a.on { background: none; color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
html[data-ui="phim"] .btn { border-radius: 6px; }
html[data-ui="phim"] .top .btn.gold { border-radius: 999px; padding: 10px 20px; }
html[data-ui="phim"] .btn.gold { box-shadow: 0 6px 16px rgba(126, 31, 44, 0.28); }
html[data-ui="phim"] .btn.gold:hover { filter: brightness(1.12); }
html[data-ui="phim"] .btn.ghost { border-color: rgba(38, 26, 19, 0.35); }
html[data-ui="phim"] h1, html[data-ui="phim"] h2, html[data-ui="phim"] .authbox h1 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -0.3px;
}
html[data-ui="phim"] h1 { font-size: 46px; line-height: 1.1; }
html[data-ui="phim"] h1 em { font-weight: 500; color: var(--gold); }
html[data-ui="phim"] h2 { font-size: 24px; }
html[data-ui="phim"] .eyebrow { color: #7d6b5d; font-weight: 600; letter-spacing: 2.6px; font-size: 11.5px; }
html[data-ui="phim"] .notice { background: #7e1f2c; color: #fff; border: 0; letter-spacing: 1.2px; font-weight: 600; font-size: 12.5px; }
html[data-ui="phim"] .notice a { color: #ffe3b0; }
html[data-ui="phim"] .notice.red { background: #5e1018; color: #fff; }
html[data-ui="phim"] .panel, html[data-ui="phim"] .jobcard, html[data-ui="phim"] .stat, html[data-ui="phim"] .tablewrap,
html[data-ui="phim"] .plan, html[data-ui="phim"] .stage, html[data-ui="phim"] .modal { background: #fffaf3; border-color: #e8dccb; box-shadow: 0 2px 10px rgba(54, 32, 18, 0.05); }
html[data-ui="phim"] .input, html[data-ui="phim"] textarea.input, html[data-ui="phim"] .search, html[data-ui="phim"] .seg,
html[data-ui="phim"] .topic, html[data-ui="phim"] .style, html[data-ui="phim"] .filebox, html[data-ui="phim"] .log .say,
html[data-ui="phim"] .report, html[data-ui="phim"] .fact { background: #ffffff; border-color: #e2d5c2; }
html[data-ui="phim"] .seg button.on { background: #7e1f2c; color: #fff; box-shadow: none; }
html[data-ui="phim"] .filter.on { background: #7e1f2c; border-color: #7e1f2c; color: #fff; }
html[data-ui="phim"] .thumb { border-radius: 8px; border: 0; box-shadow: 0 8px 22px rgba(54, 32, 18, 0.18); }
html[data-ui="phim"] .card h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 16px; }
html[data-ui="phim"] .drop { border-color: rgba(126, 31, 44, 0.35); background: #fffaf3; }
html[data-ui="phim"] .tabs button.on { border-color: #7e1f2c; }
html[data-ui="phim"] .stepper div.cur { box-shadow: 0 0 10px rgba(126, 31, 44, 0.45); }
html[data-ui="phim"] .admnav a.on { background: #fffaf3; box-shadow: inset 3px 0 0 #7e1f2c; }
html[data-ui="phim"] .admnav .cnt { background: #7e1f2c; color: #fff; }
html[data-ui="phim"] .pill.running { color: #7e1f2c; }
/* hero: a warm cinematic band — cream on the left fading into amber evening light and dark film tones */
html[data-ui="phim"] .hero.hero-film {
  position: relative; overflow: hidden; margin: -28px -28px 0; padding: 64px 56px 72px; min-height: 380px; border-radius: 0;
  background:
    linear-gradient(90deg, #f6eee3 0%, rgba(246, 238, 227, 0.97) 34%, rgba(246, 238, 227, 0.55) 56%, rgba(246, 238, 227, 0) 74%),
    radial-gradient(38% 60% at 78% 34%, rgba(255, 214, 140, 0.95) 0%, rgba(232, 150, 70, 0.75) 32%, rgba(120, 58, 30, 0.85) 70%, #2b1a12 100%),
    linear-gradient(180deg, #8a4a26, #2b1a12);
  align-items: center;
}
html[data-ui="phim"] .hero.hero-film > div:first-child { max-width: 560px; position: relative; z-index: 1; }
html[data-ui="phim"] .hero.hero-film h1 { font-size: 58px; }
html[data-ui="phim"] .hero.hero-film .sub { color: #3b2c22; font-size: 16px; }
html[data-ui="phim"] .hero .script {
  display: block; position: absolute; right: 7%; bottom: 52px; z-index: 1; text-align: left;
  font-family: "Dancing Script", cursive; font-size: 30px; line-height: 1.25; color: #fff4e3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); transform: rotate(-4deg);
}
html[data-ui="phim"] .steps4 {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -28px 38px; border-top: 1px solid rgba(255, 244, 227, 0.2);
}
html[data-ui="phim"] .steps4 > div {
  padding: 26px 26px 30px; color: #fbefe0; min-height: 168px;
  background: radial-gradient(90% 80% at 70% 0%, rgba(232, 150, 70, 0.35), transparent 60%), linear-gradient(180deg, #4a2b1c, #24160f);
  border-right: 1px solid rgba(255, 244, 227, 0.14);
}
html[data-ui="phim"] .steps4 > div:nth-child(2) { background: radial-gradient(90% 80% at 30% 10%, rgba(255, 196, 110, 0.45), transparent 60%), linear-gradient(180deg, #6a3a20, #2a1910); }
html[data-ui="phim"] .steps4 > div:nth-child(3) { background: radial-gradient(90% 80% at 60% 20%, rgba(120, 160, 190, 0.28), transparent 60%), linear-gradient(180deg, #2d2a2c, #151314); }
html[data-ui="phim"] .steps4 > div:nth-child(4) { background: radial-gradient(90% 80% at 50% 0%, rgba(255, 210, 150, 0.55), transparent 65%), linear-gradient(180deg, #8a5a3a, #2e1d14); }
html[data-ui="phim"] .steps4 span { font-family: "Playfair Display", serif; font-size: 26px; opacity: 0.85; }
html[data-ui="phim"] .steps4 b { display: block; font-family: "Playfair Display", serif; font-weight: 500; font-size: 24px; margin: 8px 0 8px; }
html[data-ui="phim"] .steps4 p { margin: 0; font-size: 13.5px; color: rgba(251, 239, 224, 0.82); }
@media (max-width: 900px) {
  html[data-ui="phim"] .steps4 { grid-template-columns: 1fr 1fr; }
  html[data-ui="phim"] .hero .script { display: none; }
  html[data-ui="phim"] .hero.hero-film { padding: 40px 24px; margin: -18px -16px 0; }
  html[data-ui="phim"] .hero.hero-film h1 { font-size: 40px; }
}
html[data-ui="phim"] .topic.on, html[data-ui="phim"] .style.on { border-color: #7e1f2c; background: #fbf0ee; box-shadow: inset 0 0 0 1px #7e1f2c; }
html[data-ui="phim"] .topic:hover, html[data-ui="phim"] .style:hover { border-color: rgba(126, 31, 44, 0.45); }

/* ================= HPACUT PRO · Creator Lab Blue (HPA_WEB_DEMO_03, 2026-10-29): white, deep blue, lime ================= */
html[data-ui="lab"] {
  --bg: #f5f7fc; --bg2: #ffffff; --surface: #ffffff; --surface2: #eef2ff;
  --line: rgba(31, 59, 245, 0.22); --line2: rgba(15, 23, 60, 0.14);
  --text: #0e1430; --muted: #4f5875; --faint: #8a91a8;
  --gold: #1f3bf5; --accent: #3d57ff; --gold2: #c8ef3a; --gold-ink: #ffffff;
  --green: #2f7a4d; --red: #b3261e; --ok-fg: #276b42; --bad-fg: #a8261d; --note-fg: #172a9e;
  --btn-bg: #1f3bf5; --btn-ink: #ffffff;
  --topbar: rgba(255, 255, 255, 0.94);
  --page-bg: #f5f7fc;
  --radius: 10px;
  --shadow: 0 12px 30px rgba(16, 24, 64, 0.16);
}
html[data-ui="lab"] body { font-family: "Be Vietnam Pro", -apple-system, "Helvetica Neue", Arial, sans-serif; }
html[data-ui="lab"] .top { border-bottom: 1px solid rgba(15, 23, 60, 0.12); }
html[data-ui="lab"] .mark { display: none; }
html[data-ui="lab"] .brand b { font-size: 24px; font-weight: 800; letter-spacing: 0.5px; color: #0e1430; }
html[data-ui="lab"] .brand small { letter-spacing: 2.4px; font-size: 10.5px; color: #4f5875; }
html[data-ui="lab"] .nav a { border-radius: 0; padding: 8px 12px; color: #1b2346; }
html[data-ui="lab"] .nav a:hover { background: none; color: var(--gold); }
html[data-ui="lab"] .nav a.on { background: none; color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
html[data-ui="lab"] .btn { border-radius: 6px; }
html[data-ui="lab"] .top .btn.gold { border-radius: 999px; padding: 10px 20px; }
html[data-ui="lab"] .btn.gold { box-shadow: 0 6px 16px rgba(31, 59, 245, 0.28); }
html[data-ui="lab"] .btn.gold:hover { filter: brightness(1.12); }
html[data-ui="lab"] .btn.ghost { border-color: rgba(14, 20, 48, 0.35); }
html[data-ui="lab"] h1, html[data-ui="lab"] h2, html[data-ui="lab"] .authbox h1 {
  font-family: "Lexend", "Be Vietnam Pro", sans-serif; font-weight: 500; letter-spacing: -0.3px;
}
html[data-ui="lab"] h1 { font-size: 46px; line-height: 1.1; }
html[data-ui="lab"] h1 em { font-weight: 500; color: var(--gold); }
html[data-ui="lab"] h2 { font-size: 24px; }
html[data-ui="lab"] .eyebrow { color: #5b6488; font-weight: 600; letter-spacing: 2.6px; font-size: 11.5px; }
html[data-ui="lab"] .notice { background: #1f3bf5; color: #fff; border: 0; letter-spacing: 1.2px; font-weight: 600; font-size: 12.5px; }
html[data-ui="lab"] .notice a { color: #d7f23b; }
html[data-ui="lab"] .notice.red { background: #14267a; color: #fff; }
html[data-ui="lab"] .panel, html[data-ui="lab"] .jobcard, html[data-ui="lab"] .stat, html[data-ui="lab"] .tablewrap,
html[data-ui="lab"] .plan, html[data-ui="lab"] .stage, html[data-ui="lab"] .modal { background: #ffffff; border-color: #e3e8f5; box-shadow: 0 2px 10px rgba(16, 24, 64, 0.05); }
html[data-ui="lab"] .input, html[data-ui="lab"] textarea.input, html[data-ui="lab"] .search, html[data-ui="lab"] .seg,
html[data-ui="lab"] .topic, html[data-ui="lab"] .style, html[data-ui="lab"] .filebox, html[data-ui="lab"] .log .say,
html[data-ui="lab"] .report, html[data-ui="lab"] .fact { background: #ffffff; border-color: #dfe5f3; }
html[data-ui="lab"] .seg button.on { background: #1f3bf5; color: #fff; box-shadow: none; }
html[data-ui="lab"] .filter.on { background: #1f3bf5; border-color: #1f3bf5; color: #fff; }
html[data-ui="lab"] .thumb { border-radius: 8px; border: 0; box-shadow: 0 8px 22px rgba(16, 24, 64, 0.18); }
html[data-ui="lab"] .card h3 { font-family: "Lexend", "Be Vietnam Pro", sans-serif; font-weight: 600; font-size: 16px; }
html[data-ui="lab"] .drop { border-color: rgba(31, 59, 245, 0.35); background: #ffffff; }
html[data-ui="lab"] .tabs button.on { border-color: #1f3bf5; }
html[data-ui="lab"] .stepper div.cur { box-shadow: 0 0 10px rgba(31, 59, 245, 0.45); }
html[data-ui="lab"] .admnav a.on { background: #ffffff; box-shadow: inset 3px 0 0 #1f3bf5; }
html[data-ui="lab"] .admnav .cnt { background: #1f3bf5; color: #fff; }
html[data-ui="lab"] .pill.running { color: #1f3bf5; }
/* hero: a warm cinematic band — cream on the left fading into amber evening light and dark film tones */
html[data-ui="lab"] .hero.hero-film {
  position: relative; overflow: hidden; margin: -28px -28px 0; padding: 64px 56px 72px; min-height: 380px; border-radius: 0;
  background:
    linear-gradient(90deg, #eef2ff 0%, rgba(238, 242, 255, 0.97) 34%, rgba(238, 242, 255, 0.55) 56%, rgba(238, 242, 255, 0) 74%),
    radial-gradient(42% 62% at 78% 34%, rgba(120, 150, 255, 0.9) 0%, rgba(60, 90, 245, 0.75) 38%, rgba(20, 40, 160, 0.85) 72%, #101a4a 100%),
    linear-gradient(180deg, #2a46d8, #101a4a);
  align-items: center;
}
html[data-ui="lab"] .hero.hero-film > div:first-child { max-width: 560px; position: relative; z-index: 1; }
html[data-ui="lab"] .hero.hero-film h1 { font-size: 58px; }
html[data-ui="lab"] .hero.hero-film .sub { color: #1b2346; font-size: 16px; }
html[data-ui="lab"] .hero .script {
  display: block; position: absolute; right: 7%; bottom: 52px; z-index: 1; text-align: left;
  font-family: "Dancing Script", cursive; font-size: 30px; line-height: 1.25; color: #f2f6ff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); transform: rotate(-4deg);
}
html[data-ui="lab"] .steps4 {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -28px 38px; border-top: 1px solid rgba(240, 244, 255, 0.2);
}
html[data-ui="lab"] .steps4 > div {
  padding: 26px 26px 30px; color: #eaf0ff; min-height: 168px;
  background: radial-gradient(90% 80% at 70% 0%, rgba(200, 239, 58, 0.35), transparent 60%), linear-gradient(180deg, #1a2a7a, #0d1338);
  border-right: 1px solid rgba(240, 244, 255, 0.14);
}
html[data-ui="lab"] .steps4 > div:nth-child(2) { background: radial-gradient(90% 80% at 30% 10%, rgba(110, 150, 255, 0.45), transparent 60%), linear-gradient(180deg, #1f35b8, #0c1440); }
html[data-ui="lab"] .steps4 > div:nth-child(3) { background: radial-gradient(90% 80% at 60% 20%, rgba(120, 160, 190, 0.28), transparent 60%), linear-gradient(180deg, #141c3f, #0b1030); }
html[data-ui="lab"] .steps4 > div:nth-child(4) { background: radial-gradient(90% 80% at 50% 0%, rgba(140, 175, 255, 0.55), transparent 65%), linear-gradient(180deg, #3552e0, #0f1846); }
html[data-ui="lab"] .steps4 span { font-family: "Lexend", sans-serif; font-size: 26px; opacity: 0.85; }
html[data-ui="lab"] .steps4 b { display: block; font-family: "Lexend", sans-serif; font-weight: 500; font-size: 24px; margin: 8px 0 8px; }
html[data-ui="lab"] .steps4 p { margin: 0; font-size: 13.5px; color: rgba(232, 238, 255, 0.82); }
@media (max-width: 900px) {
  html[data-ui="lab"] .steps4 { grid-template-columns: 1fr 1fr; }
  html[data-ui="lab"] .hero .script { display: none; }
  html[data-ui="lab"] .hero.hero-film { padding: 40px 24px; margin: -18px -16px 0; }
  html[data-ui="lab"] .hero.hero-film h1 { font-size: 40px; }
}
html[data-ui="lab"] .topic.on, html[data-ui="lab"] .style.on { border-color: #1f3bf5; background: #eef1ff; box-shadow: inset 0 0 0 1px #1f3bf5; }
html[data-ui="lab"] .topic:hover, html[data-ui="lab"] .style:hover { border-color: rgba(31, 59, 245, 0.45); }
/* Creator Lab: bold geometric titles, the key words underlined in lime (HPA_WEB_DEMO_03) */
html[data-ui="lab"] h1, html[data-ui="lab"] h2, html[data-ui="lab"] .authbox h1 { font-weight: 700; letter-spacing: -0.6px; }
html[data-ui="lab"] h1 em { font-style: normal; font-weight: 700; color: var(--gold); text-decoration: underline;
  text-decoration-color: #c8ef3a; text-decoration-thickness: 7px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
html[data-ui="lab"] .btn.gold { border-radius: 999px; }
html[data-ui="lab"] .hero .script { color: #1f3bf5; }
html[data-ui="lab"] .brand b span { color: #1f3bf5; }

/* ---------- dùng trên điện thoại ---------- */
.phoneqr { display: flex; gap: 24px; align-items: center; }
.phoneqr .qr { flex: none; width: 190px; height: 190px; background: #fff; border-radius: 12px; padding: 8px; }
.phoneqr .qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 640px) { .phoneqr { flex-direction: column; align-items: flex-start; } }

/* ---------- phone: app-like top bar + bottom tab bar (2026-10-23) ---------- */
.tabbar { display: none; }
@media (max-width: 640px) {
  .top { flex-wrap: nowrap; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .top .nav, .top.in > .btn.gold { display: none; }
  .top:not(.in) .btn { padding: 8px 14px; font-size: 13.5px; }
  .top:not(.in) .brand { margin-right: auto; }
  .top .user-chip { font-size: 0; padding: 4px; }
  .top .user-chip .av { font-size: 14px; }
  .top .menu { margin-left: auto; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--topbar, rgba(251, 246, 238, 0.96)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600;
    color: var(--muted); text-decoration: none; padding: 4px 0; }
  .tabbar a span { font-size: 20px; line-height: 1.1; }
  .tabbar a.on { color: var(--gold); }
  .tabbar a.plus span { width: 40px; height: 30px; border-radius: 10px; background: var(--btn-bg, var(--gold)); color: var(--btn-ink, #fff);
    display: grid; place-items: center; font-size: 20px; }
}

/* ---------- ảnh & clip của thành viên (việc 2) ---------- */
.assetlist { display: grid; gap: 6px; }
.asset { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--surface); }
.asset b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.asset small { color: var(--faint); font-size: 12px; }
.asset button { border: 0; background: none; color: var(--muted); font-size: 15px; cursor: pointer; padding: 2px 6px; }

/* welcome letter (core.js showWelcome): once, over the album, the first time a member arrives */
.welcome { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, #000 45%, transparent); }
.welcome-card { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; }
.welcome-card img { display: block; width: 100%; border-radius: 10px; margin: 0 0 14px; }
.welcome-card h2 { margin: 0 0 10px; }
.welcome-card p { margin: 0 0 10px; line-height: 1.55; }
.welcome-card .btn { margin-top: 8px; }

.inst { margin: 8px 0 8px 22px; line-height: 1.75; padding: 0; }
.inst li { margin-bottom: 4px; }
